PV2
type: StructureDefinition
node role: treeRoot
id:
  v: PV2
meta:
  last updated:
    v: 2023-08-09T18:09:04.747+02:00
text:
  status:
    v: generated
  div: Segment: PV2
url:
  v: http://hl7.org/fhir/StructureDefinition/PV2
version:
  v: 2.9
name:
  v: PV2
title:
  v: PV2 (Segment)
status:
  v: draft
experimental:
  v: true
date:
  v: 2023-08-09T18:09:04+02:00
publisher:
  v: FO
description:
  v: Patient Visit - Additional Information
copyright:
  v: FO
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: logical
abstract:
  v: false
type:
  v: PV2
base definition:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource
derivation:
  v: specialization
snapshot:
  element:
    id:
      v: PV2
    path:
      v: PV2
    short:
      v: A resource with narrative, extensions, and contained resources
    definition:
      v: Patient Visit - Additional Information
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: DomainResource
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act,Entity, Role, or Act
  element:
    id:
      v: PV2.id
    path:
      v: PV2.id
    short:
      v: Logical id of this artifact
    definition:
      v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    comment:
      v: Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Resource.id
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: http://hl7.org/fhirpath/System.String
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: true
  element:
    id:
      v: PV2.meta
    path:
      v: PV2.meta
    short:
      v: Metadata about the resource
    definition:
      v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Resource.meta
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: Meta
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children

v: true

v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

v: id

v: hasValue() or (children().count() > id.count())

v: false

v: false

v: true

id:
  v: PV2.implicitRules
path:
  v: PV2.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation
is summary:
  v: true

id:
  v: PV2.language
path:
  v: PV2.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    value:
      v: true
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    link: 5.0
    link: .0
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      link: http://hl7.org/fhir/ValueSet/languages

id:
  v: PV2.text
path:
  v: PV2.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
condition:
  v: dom-6
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: PV2.contained
path:
  v: PV2.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
condition:
  v: dom-2
condition:
  v: dom-4
condition:
  v: dom-3
condition:
  v: dom-5
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PV2.extension
path:
  v: PV2.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PV2.modifierExtension
path:
  v: PV2.modifierExtension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: PV2.priorPendingLocation
path:
  v: PV2.priorPendingLocation
short:
  v: priorPendingLocation
definition:
  v: **Prior Pending Location**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.priorPendingLocation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: PL

id:
  v: PV2.accommodationCode
path:
  v: PV2.accommodationCode
short:
  v: accommodationCode
definition:
  v: **Accommodation Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.accommodationCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.admitReason
path:
  v: PV2.admitReason
short:
  v: admitReason
definition:
  v: **Admit Reason**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.admitReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.transferReason
path:
  v: PV2.transferReason
short:
  v: transferReason
definition:
  v: **Transfer Reason**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.transferReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.patientValuables
path:
  v: PV2.patientValuables
short:
  v: patientValuables
definition:
  v: **Patient Valuables**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV2.patientValuables
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ST

id:
  v: PV2.patientValuablesLocation
path:
  v: PV2.patientValuablesLocation
short:
  v: patientValuablesLocation
definition:
  v: **Patient Valuables Location**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.patientValuablesLocation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ST

id:
  v: PV2.visitUserCode
path:
  v: PV2.visitUserCode
short:
  v: visitUserCode
definition:
  v: **Visit User Code**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV2.visitUserCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CWE

id:
  v: PV2.expectedAdmitDateTime
path:
  v: PV2.expectedAdmitDateTime
short:
  v: expectedAdmitDateTime
definition:
  v: **Expected Admit DateTime**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.expectedAdmitDateTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DTM

id:
  v: PV2.expectedDischargeDateTime
path:
  v: PV2.expectedDischargeDateTime
short:
  v: expectedDischargeDateTime
definition:
  v: **Expected Discharge DateTime**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.expectedDischargeDateTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DTM

id:
  v: PV2.estimatedLengthofInpatientStay
path:
  v: PV2.estimatedLengthofInpatientStay
short:
  v: estimatedLengthofInpatientStay
definition:
  v: **Estimated Length of Inpatient Stay**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.estimatedLengthofInpatientStay
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: NM

id:
  v: PV2.actualLengthofInpatientStay
path:
  v: PV2.actualLengthofInpatientStay
short:
  v: actualLengthofInpatientStay
definition:
  v: **Actual Length of Inpatient Stay**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.actualLengthofInpatientStay
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: NM

id:
  v: PV2.visitDescription
path:
  v: PV2.visitDescription
short:
  v: visitDescription
definition:
  v: **Visit Description**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.visitDescription
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ST

id:
  v: PV2.referralSourceCode
path:
  v: PV2.referralSourceCode
short:
  v: referralSourceCode
definition:
  v: **Referral Source Code**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV2.referralSourceCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: XCN

id:
  v: PV2.previousServiceDate
path:
  v: PV2.previousServiceDate
short:
  v: previousServiceDate
definition:
  v: **Previous Service Date**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.previousServiceDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DT

id:
  v: PV2.employmentIllnessRelatedIndicator
path:
  v: PV2.employmentIllnessRelatedIndicator
short:
  v: employmentIllnessRelatedIndicator
definition:
  v: **Employment Illness Related Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.employmentIllnessRelatedIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.purgeStatusCode
path:
  v: PV2.purgeStatusCode
short:
  v: purgeStatusCode
definition:
  v: **Purge Status Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.purgeStatusCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.purgeStatusDate
path:
  v: PV2.purgeStatusDate
short:
  v: purgeStatusDate
definition:
  v: **Purge Status Date**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.purgeStatusDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DT

id:
  v: PV2.specialProgramCode
path:
  v: PV2.specialProgramCode
short:
  v: specialProgramCode
definition:
  v: **Special Program Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.specialProgramCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.retentionIndicator
path:
  v: PV2.retentionIndicator
short:
  v: retentionIndicator
definition:
  v: **Retention Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.retentionIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.expectedNumberofInsurancePlans
path:
  v: PV2.expectedNumberofInsurancePlans
short:
  v: expectedNumberofInsurancePlans
definition:
  v: **Expected Number of Insurance Plans**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.expectedNumberofInsurancePlans
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: NM

id:
  v: PV2.visitPublicityCode
path:
  v: PV2.visitPublicityCode
short:
  v: visitPublicityCode
definition:
  v: **Visit Publicity Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.visitPublicityCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.visitProtectionIndicator
path:
  v: PV2.visitProtectionIndicator
short:
  v: visitProtectionIndicator
definition:
  v: **Visit Protection Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.visitProtectionIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.clinicOrganizationName
path:
  v: PV2.clinicOrganizationName
short:
  v: clinicOrganizationName
definition:
  v: **Clinic Organization Name**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV2.clinicOrganizationName
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: XON

id:
  v: PV2.patientStatusCode
path:
  v: PV2.patientStatusCode
short:
  v: patientStatusCode
definition:
  v: **Patient Status Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.patientStatusCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.visitPriorityCode
path:
  v: PV2.visitPriorityCode
short:
  v: visitPriorityCode
definition:
  v: **Visit Priority Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.visitPriorityCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.previousTreatmentDate
path:
  v: PV2.previousTreatmentDate
short:
  v: previousTreatmentDate
definition:
  v: **Previous Treatment Date**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.previousTreatmentDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DT

id:
  v: PV2.expectedDischargeDisposition
path:
  v: PV2.expectedDischargeDisposition
short:
  v: expectedDischargeDisposition
definition:
  v: **Expected Discharge Disposition**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.expectedDischargeDisposition
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.signatureonFileDate
path:
  v: PV2.signatureonFileDate
short:
  v: signatureonFileDate
definition:
  v: **Signature on File Date**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.signatureonFileDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DT

id:
  v: PV2.firstSimilarIllnessDate
path:
  v: PV2.firstSimilarIllnessDate
short:
  v: firstSimilarIllnessDate
definition:
  v: **First Similar Illness Date**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.firstSimilarIllnessDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DT

id:
  v: PV2.patientChargeAdjustmentCode
path:
  v: PV2.patientChargeAdjustmentCode
short:
  v: patientChargeAdjustmentCode
definition:
  v: **Patient Charge Adjustment Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.patientChargeAdjustmentCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.recurringServiceCode
path:
  v: PV2.recurringServiceCode
short:
  v: recurringServiceCode
definition:
  v: **Recurring Service Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.recurringServiceCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.billingMediaCode
path:
  v: PV2.billingMediaCode
short:
  v: billingMediaCode
definition:
  v: **Billing Media Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.billingMediaCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.expectedSurgeryDateandTime
path:
  v: PV2.expectedSurgeryDateandTime
short:
  v: expectedSurgeryDateandTime
definition:
  v: **Expected Surgery Date and Time**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.expectedSurgeryDateandTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DTM

id:
  v: PV2.militaryPartnershipCode
path:
  v: PV2.militaryPartnershipCode
short:
  v: militaryPartnershipCode
definition:
  v: **Military Partnership Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.militaryPartnershipCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.militaryNon-AvailabilityCode
path:
  v: PV2.militaryNon-AvailabilityCode
short:
  v: militaryNon-AvailabilityCode
definition:
  v: **Military Non-Availability Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.militaryNon-AvailabilityCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.newbornBabyIndicator
path:
  v: PV2.newbornBabyIndicator
short:
  v: newbornBabyIndicator
definition:
  v: **Newborn Baby Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.newbornBabyIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.babyDetainedIndicator
path:
  v: PV2.babyDetainedIndicator
short:
  v: babyDetainedIndicator
definition:
  v: **Baby Detained Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.babyDetainedIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.modeofArrivalCode
path:
  v: PV2.modeofArrivalCode
short:
  v: modeofArrivalCode
definition:
  v: **Mode of Arrival Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.modeofArrivalCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.recreationalDrugUseCode
path:
  v: PV2.recreationalDrugUseCode
short:
  v: recreationalDrugUseCode
definition:
  v: **Recreational Drug Use Code**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV2.recreationalDrugUseCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CWE

id:
  v: PV2.admissionLevelofCareCode
path:
  v: PV2.admissionLevelofCareCode
short:
  v: admissionLevelofCareCode
definition:
  v: **Admission Level of Care Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.admissionLevelofCareCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.precautionCode
path:
  v: PV2.precautionCode
short:
  v: precautionCode
definition:
  v: **Precaution Code**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV2.precautionCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CWE

id:
  v: PV2.patientConditionCode
path:
  v: PV2.patientConditionCode
short:
  v: patientConditionCode
definition:
  v: **Patient Condition Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.patientConditionCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.livingWillCode
path:
  v: PV2.livingWillCode
short:
  v: livingWillCode
definition:
  v: **Living Will Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.livingWillCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.organDonorCode
path:
  v: PV2.organDonorCode
short:
  v: organDonorCode
definition:
  v: **Organ Donor Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.organDonorCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV2.advanceDirectiveCode
path:
  v: PV2.advanceDirectiveCode
short:
  v: advanceDirectiveCode
definition:
  v: **Advance Directive Code**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV2.advanceDirectiveCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CWE

id:
  v: PV2.patientStatusEffectiveDate
path:
  v: PV2.patientStatusEffectiveDate
short:
  v: patientStatusEffectiveDate
definition:
  v: **Patient Status Effective Date**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.patientStatusEffectiveDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DT

id:
  v: PV2.expectedLOAReturnDateTime
path:
  v: PV2.expectedLOAReturnDateTime
short:
  v: expectedLOAReturnDateTime
definition:
  v: **Expected LOA Return DateTime**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.expectedLOAReturnDateTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DTM

id:
  v: PV2.expectedPre-admissionTestingDateTime
path:
  v: PV2.expectedPre-admissionTestingDateTime
short:
  v: expectedPre-admissionTestingDateTime
definition:
  v: **Expected Pre-admission Testing DateTime**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.expectedPre-admissionTestingDateTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DTM

id:
  v: PV2.notifyClergyCode
path:
  v: PV2.notifyClergyCode
short:
  v: notifyClergyCode
definition:
  v: **Notify Clergy Code**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV2.notifyClergyCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CWE

id:
  v: PV2.advanceDirectiveLastVerifiedDate
path:
  v: PV2.advanceDirectiveLastVerifiedDate
short:
  v: advanceDirectiveLastVerifiedDate
definition:
  v: **Advance Directive Last Verified Date**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV2.advanceDirectiveLastVerifiedDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DT

element:
  id:
    v: PV2
  path:
    v: PV2
  definition:
    v: Patient Visit - Additional Information
  min:
    v: 1
  max:
    v: 1
element:
  id:
    v: PV2.priorPendingLocation
  path:
    v: PV2.priorPendingLocation
  short:
    v: priorPendingLocation
  definition:
    v: **Prior Pending Location**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: PL
element:
  id:
    v: PV2.accommodationCode
  path:
    v: PV2.accommodationCode
  short:
    v: accommodationCode
  definition:
    v: **Accommodation Code**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CWE
element:
  id:
    v: PV2.admitReason
  path:
    v: PV2.admitReason
  short:
    v: admitReason
  definition:
    v: **Admit Reason**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CWE
element:
  id:
    v: PV2.transferReason
  path:
    v: PV2.transferReason
  short:
    v: transferReason
  definition:
    v: **Transfer Reason**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CWE
element:
  id:
    v: PV2.patientValuables
  path:
    v: PV2.patientValuables
  short:
    v: patientValuables
  definition:
    v: **Patient Valuables**
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: ST
element:
  id:
    v: PV2.patientValuablesLocation
  path:
    v: PV2.patientValuablesLocation
  short:
    v: patientValuablesLocation
  definition:
    v: **Patient Valuables Location**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: ST
element:
  id:
    v: PV2.visitUserCode
  path:
    v: PV2.visitUserCode
  short:
    v: visitUserCode
  definition:
    v: **Visit User Code**
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: CWE
element:
  id:
    v: PV2.expectedAdmitDateTime
  path:
    v: PV2.expectedAdmitDateTime
  short:
    v: expectedAdmitDateTime
  definition:
    v: **Expected Admit DateTime**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: DTM
element:
  id:
    v: PV2.expectedDischargeDateTime
  path:
    v: PV2.expectedDischargeDateTime
  short:
    v: expectedDischargeDateTime
  definition:
    v: **Expected Discharge DateTime**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: DTM
element:
  id:
    v: PV2.estimatedLengthofInpatientStay
  path:
    v: PV2.estimatedLengthofInpatientStay
  short:
    v: estimatedLengthofInpatientStay
  definition:
    v: **Estimated Length of Inpatient Stay**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: NM
element:
  id:
    v: PV2.actualLengthofInpatientStay
  path:
    v: PV2.actualLengthofInpatientStay
  short:
    v: actualLengthofInpatientStay
  definition:
    v: **Actual Length of Inpatient Stay**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: NM
element:
  id:
    v: PV2.visitDescription
  path:
    v: PV2.visitDescription
  short:
    v: visitDescription
  definition:
    v: **Visit Description**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: ST

id:
  v: PV2.referralSourceCode
path:
  v: PV2.referralSourceCode
short:
  v: referralSourceCode
definition:
  v: **Referral Source Code**
min:
  v: 0
max:
  v: *
type:
  code:
    v: XCN

id:
  v: PV2.previousServiceDate
path:
  v: PV2.previousServiceDate
short:
  v: previousServiceDate
definition:
  v: **Previous Service Date**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DT

id:
  v: PV2.employmentIllnessRelatedIndicator
path:
  v: PV2.employmentIllnessRelatedIndicator
short:
  v: employmentIllnessRelatedIndicator
definition:
  v: **Employment Illness Related Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.purgeStatusCode
path:
  v: PV2.purgeStatusCode
short:
  v: purgeStatusCode
definition:
  v: **Purge Status Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.purgeStatusDate
path:
  v: PV2.purgeStatusDate
short:
  v: purgeStatusDate
definition:
  v: **Purge Status Date**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DT

id:
  v: PV2.specialProgramCode
path:
  v: PV2.specialProgramCode
short:
  v: specialProgramCode
definition:
  v: **Special Program Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.retentionIndicator
path:
  v: PV2.retentionIndicator
short:
  v: retentionIndicator
definition:
  v: **Retention Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.expectedNumberofInsurancePlans
path:
  v: PV2.expectedNumberofInsurancePlans
short:
  v: expectedNumberofInsurancePlans
definition:
  v: **Expected Number of Insurance Plans**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: NM

id:
  v: PV2.visitPublicityCode
path:
  v: PV2.visitPublicityCode
short:
  v: visitPublicityCode
definition:
  v: **Visit Publicity Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.visitProtectionIndicator
path:
  v: PV2.visitProtectionIndicator
short:
  v: visitProtectionIndicator
definition:
  v: **Visit Protection Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.clinicOrganizationName
path:
  v: PV2.clinicOrganizationName
short:
  v: clinicOrganizationName
definition:
  v: **Clinic Organization Name**
min:
  v: 0
max:
  v: *
type:
  code:
    v: XON

id:
  v: PV2.patientStatusCode
path:
  v: PV2.patientStatusCode
short:
  v: patientStatusCode
definition:
  v: **Patient Status Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.visitPriorityCode
path:
  v: PV2.visitPriorityCode
short:
  v: visitPriorityCode
definition:
  v: **Visit Priority Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.previousTreatmentDate
path:
  v: PV2.previousTreatmentDate
short:
  v: previousTreatmentDate
definition:
  v: **Previous Treatment Date**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DT

id:
  v: PV2.expectedDischargeDisposition
path:
  v: PV2.expectedDischargeDisposition
short:
  v: expectedDischargeDisposition
definition:
  v: **Expected Discharge Disposition**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.signatureonFileDate
path:
  v: PV2.signatureonFileDate
short:
  v: signatureonFileDate
definition:
  v: **Signature on File Date**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DT

id:
  v: PV2.firstSimilarIllnessDate
path:
  v: PV2.firstSimilarIllnessDate
short:
  v: firstSimilarIllnessDate
definition:
  v: **First Similar Illness Date**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DT

id:
  v: PV2.patientChargeAdjustmentCode
path:
  v: PV2.patientChargeAdjustmentCode
short:
  v: patientChargeAdjustmentCode
definition:
  v: **Patient Charge Adjustment Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.recurringServiceCode
path:
  v: PV2.recurringServiceCode
short:
  v: recurringServiceCode
definition:
  v: **Recurring Service Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.billingMediaCode
path:
  v: PV2.billingMediaCode
short:
  v: billingMediaCode
definition:
  v: **Billing Media Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.expectedSurgeryDateandTime
path:
  v: PV2.expectedSurgeryDateandTime
short:
  v: expectedSurgeryDateandTime
definition:
  v: **Expected Surgery Date and Time**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DTM

id:
  v: PV2.militaryPartnershipCode
path:
  v: PV2.militaryPartnershipCode
short:
  v: militaryPartnershipCode
definition:
  v: **Military Partnership Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.militaryNon-AvailabilityCode
path:
  v: PV2.militaryNon-AvailabilityCode
short:
  v: militaryNon-AvailabilityCode
definition:
  v: **Military Non-Availability Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.newbornBabyIndicator
path:
  v: PV2.newbornBabyIndicator
short:
  v: newbornBabyIndicator
definition:
  v: **Newborn Baby Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.babyDetainedIndicator
path:
  v: PV2.babyDetainedIndicator
short:
  v: babyDetainedIndicator
definition:
  v: **Baby Detained Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ID
max length:
  v: 1

id:
  v: PV2.modeofArrivalCode
path:
  v: PV2.modeofArrivalCode
short:
  v: modeofArrivalCode
definition:
  v: **Mode of Arrival Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.recreationalDrugUseCode
path:
  v: PV2.recreationalDrugUseCode
short:
  v: recreationalDrugUseCode
definition:
  v: **Recreational Drug Use Code**
min:
  v: 0
max:
  v: *
type:
  code:
    v: CWE

id:
  v: PV2.admissionLevelofCareCode
path:
  v: PV2.admissionLevelofCareCode
short:
  v: admissionLevelofCareCode
definition:
  v: **Admission Level of Care Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.precautionCode
path:
  v: PV2.precautionCode
short:
  v: precautionCode
definition:
  v: **Precaution Code**
min:
  v: 0
max:
  v: *
type:
  code:
    v: CWE

id:
  v: PV2.patientConditionCode
path:
  v: PV2.patientConditionCode
short:
  v: patientConditionCode
definition:
  v: **Patient Condition Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.livingWillCode
path:
  v: PV2.livingWillCode
short:
  v: livingWillCode
definition:
  v: **Living Will Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.organDonorCode
path:
  v: PV2.organDonorCode
short:
  v: organDonorCode
definition:
  v: **Organ Donor Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV2.advanceDirectiveCode
path:
  v: PV2.advanceDirectiveCode
short:
  v: advanceDirectiveCode
definition:
  v: **Advance Directive Code**
min:
  v: 0
max:
  v: *
type:
  code:
    v: CWE

id:
  v: PV2.patientStatusEffectiveDate
path:
  v: PV2.patientStatusEffectiveDate
short:
  v: patientStatusEffectiveDate
definition:
  v: **Patient Status Effective Date**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DT

id:
  v: PV2.expectedLOAReturnDateTime
path:
  v: PV2.expectedLOAReturnDateTime
short:
  v: expectedLOAReturnDateTime
definition:
  v: **Expected LOA Return DateTime**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DTM

id:
  v: PV2.expectedPre-admissionTestingDateTime
path:
  v: PV2.expectedPre-admissionTestingDateTime
short:
  v: expectedPre-admissionTestingDateTime
definition:
  v: **Expected Pre-admission Testing DateTime**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DTM

id:
  v: PV2.notifyClergyCode
path:
  v: PV2.notifyClergyCode
short:
  v: notifyClergyCode
definition:
  v: **Notify Clergy Code**
min:
  v: 0
max:
  v: *
type:
  code:
    v: CWE

id:
  v: PV2.advanceDirectiveLastVerifiedDate
path:
  v: PV2.advanceDirectiveLastVerifiedDate
short:
  v: advanceDirectiveLastVerifiedDate
definition:
  v: **Advance Directive Last Verified Date**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DT