PV1
type: StructureDefinition
node role: treeRoot
id:
  v: PV1
meta:
  last updated:
    v: 2023-08-09T18:09:04.716+02:00
text:
  status:
    v: generated
  div: Segment: PV1
url:
  v: http://hl7.org/fhir/StructureDefinition/PV1
version:
  v: 2.9
name:
  v: PV1
title:
  v: PV1 (Segment)
status:
  v: draft
experimental:
  v: true
date:
  v: 2023-08-09T18:09:04+02:00
publisher:
  v: FO
description:
  v: Patient Visit
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: PV1
base definition:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource
derivation:
  v: specialization
snapshot:
  element:
    id:
      v: PV1
    path:
      v: PV1
    short:
      v: A resource with narrative, extensions, and contained resources
    definition:
      v: Patient Visit
    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: PV1.id
    path:
      v: PV1.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: PV1.meta
    path:
      v: PV1.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: PV1.implicitRules
path:
  v: PV1.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: PV1.language
path:
  v: PV1.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: PV1.text
path:
  v: PV1.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: PV1.contained
path:
  v: PV1.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: PV1.extension
path:
  v: PV1.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: PV1.modifierExtension
path:
  v: PV1.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: PV1.setID-PV1
path:
  v: PV1.setID-PV1
short:
  v: setID-PV1
definition:
  v: **Set ID - PV1**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.setID-PV1
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: SI
max length:
  v: 4

id:
  v: PV1.patientClass
path:
  v: PV1.patientClass
short:
  v: patientClass
definition:
  v: **Patient Class**
min:
  v: 1
max:
  v: 1
base:
  path:
    v: PV1.patientClass
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CWE
must support:
  v: true

id:
  v: PV1.assignedPatientLocation
path:
  v: PV1.assignedPatientLocation
short:
  v: assignedPatientLocation
definition:
  v: **Assigned Patient Location**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.assignedPatientLocation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: PL

id:
  v: PV1.admissionType
path:
  v: PV1.admissionType
short:
  v: admissionType
definition:
  v: **Admission Type**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.admissionType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.preadmitNumber
path:
  v: PV1.preadmitNumber
short:
  v: preadmitNumber
definition:
  v: **Preadmit Number**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.preadmitNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CX

id:
  v: PV1.priorPatientLocation
path:
  v: PV1.priorPatientLocation
short:
  v: priorPatientLocation
definition:
  v: **Prior Patient Location**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.priorPatientLocation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: PL

id:
  v: PV1.attendingDoctor
path:
  v: PV1.attendingDoctor
short:
  v: attendingDoctor
definition:
  v: **Attending Doctor**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.attendingDoctor
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: XCN

id:
  v: PV1.referringDoctor
path:
  v: PV1.referringDoctor
short:
  v: referringDoctor
definition:
  v: **Referring Doctor**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.referringDoctor
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: XCN

id:
  v: PV1.consultingDoctor
path:
  v: PV1.consultingDoctor
short:
  v: consultingDoctor
definition:
  v: **Consulting Doctor**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.consultingDoctor
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: XCN

id:
  v: PV1.hospitalService
path:
  v: PV1.hospitalService
short:
  v: hospitalService
definition:
  v: **Hospital Service**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.hospitalService
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.temporaryLocation
path:
  v: PV1.temporaryLocation
short:
  v: temporaryLocation
definition:
  v: **Temporary Location**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.temporaryLocation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: PL

id:
  v: PV1.preadmitTestIndicator
path:
  v: PV1.preadmitTestIndicator
short:
  v: preadmitTestIndicator
definition:
  v: **Preadmit Test Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.preadmitTestIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.re-admissionIndicator
path:
  v: PV1.re-admissionIndicator
short:
  v: re-admissionIndicator
definition:
  v: **Re-admission Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.re-admissionIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.admitSource
path:
  v: PV1.admitSource
short:
  v: admitSource
definition:
  v: **Admit Source**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.admitSource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.ambulatoryStatus
path:
  v: PV1.ambulatoryStatus
short:
  v: ambulatoryStatus
definition:
  v: **Ambulatory Status**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.ambulatoryStatus
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CWE

id:
  v: PV1.vIPIndicator
path:
  v: PV1.vIPIndicator
short:
  v: vIPIndicator
definition:
  v: **VIP Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.vIPIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.admittingDoctor
path:
  v: PV1.admittingDoctor
short:
  v: admittingDoctor
definition:
  v: **Admitting Doctor**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.admittingDoctor
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: XCN

id:
  v: PV1.patientType
path:
  v: PV1.patientType
short:
  v: patientType
definition:
  v: **Patient Type**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.patientType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.visitNumber
path:
  v: PV1.visitNumber
short:
  v: visitNumber
definition:
  v: **Visit Number**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.visitNumber
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CX

id:
  v: PV1.financialClass
path:
  v: PV1.financialClass
short:
  v: financialClass
definition:
  v: **Financial Class**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.financialClass
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: FC

id:
  v: PV1.chargePriceIndicator
path:
  v: PV1.chargePriceIndicator
short:
  v: chargePriceIndicator
definition:
  v: **Charge Price Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.chargePriceIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.courtesyCode
path:
  v: PV1.courtesyCode
short:
  v: courtesyCode
definition:
  v: **Courtesy Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.courtesyCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.creditRating
path:
  v: PV1.creditRating
short:
  v: creditRating
definition:
  v: **Credit Rating**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.creditRating
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.contractCode
path:
  v: PV1.contractCode
short:
  v: contractCode
definition:
  v: **Contract Code**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.contractCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CWE

id:
  v: PV1.contractEffectiveDate
path:
  v: PV1.contractEffectiveDate
short:
  v: contractEffectiveDate
definition:
  v: **Contract Effective Date**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.contractEffectiveDate
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: DT

id:
  v: PV1.contractAmount
path:
  v: PV1.contractAmount
short:
  v: contractAmount
definition:
  v: **Contract Amount**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.contractAmount
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: NM

id:
  v: PV1.contractPeriod
path:
  v: PV1.contractPeriod
short:
  v: contractPeriod
definition:
  v: **Contract Period**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.contractPeriod
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: NM

id:
  v: PV1.interestCode
path:
  v: PV1.interestCode
short:
  v: interestCode
definition:
  v: **Interest Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.interestCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.transfertoBadDebtCode
path:
  v: PV1.transfertoBadDebtCode
short:
  v: transfertoBadDebtCode
definition:
  v: **Transfer to Bad Debt Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.transfertoBadDebtCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.transfertoBadDebtDate
path:
  v: PV1.transfertoBadDebtDate
short:
  v: transfertoBadDebtDate
definition:
  v: **Transfer to Bad Debt Date**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.transfertoBadDebtDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DT

id:
  v: PV1.badDebtAgencyCode
path:
  v: PV1.badDebtAgencyCode
short:
  v: badDebtAgencyCode
definition:
  v: **Bad Debt Agency Code**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.badDebtAgencyCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.badDebtTransferAmount
path:
  v: PV1.badDebtTransferAmount
short:
  v: badDebtTransferAmount
definition:
  v: **Bad Debt Transfer Amount**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.badDebtTransferAmount
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: NM

id:
  v: PV1.badDebtRecoveryAmount
path:
  v: PV1.badDebtRecoveryAmount
short:
  v: badDebtRecoveryAmount
definition:
  v: **Bad Debt Recovery Amount**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.badDebtRecoveryAmount
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: NM

id:
  v: PV1.deleteAccountIndicator
path:
  v: PV1.deleteAccountIndicator
short:
  v: deleteAccountIndicator
definition:
  v: **Delete Account Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.deleteAccountIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.deleteAccountDate
path:
  v: PV1.deleteAccountDate
short:
  v: deleteAccountDate
definition:
  v: **Delete Account Date**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.deleteAccountDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DT

id:
  v: PV1.dischargeDisposition
path:
  v: PV1.dischargeDisposition
short:
  v: dischargeDisposition
definition:
  v: **Discharge Disposition**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.dischargeDisposition
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.dischargedtoLocation
path:
  v: PV1.dischargedtoLocation
short:
  v: dischargedtoLocation
definition:
  v: **Discharged to Location**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.dischargedtoLocation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DLD

id:
  v: PV1.dietType
path:
  v: PV1.dietType
short:
  v: dietType
definition:
  v: **Diet Type**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.dietType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.servicingFacility
path:
  v: PV1.servicingFacility
short:
  v: servicingFacility
definition:
  v: **Servicing Facility**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.servicingFacility
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.bedStatus
path:
  v: PV1.bedStatus
short:
  v: bedStatus
definition:
  v: **Bed Status**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.bedStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.accountStatus
path:
  v: PV1.accountStatus
short:
  v: accountStatus
definition:
  v: **Account Status**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.accountStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.pendingLocation
path:
  v: PV1.pendingLocation
short:
  v: pendingLocation
definition:
  v: **Pending Location**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.pendingLocation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: PL

id:
  v: PV1.priorTemporaryLocation
path:
  v: PV1.priorTemporaryLocation
short:
  v: priorTemporaryLocation
definition:
  v: **Prior Temporary Location**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.priorTemporaryLocation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: PL

id:
  v: PV1.admitDateTime
path:
  v: PV1.admitDateTime
short:
  v: admitDateTime
definition:
  v: **Admit DateTime**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.admitDateTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DTM

id:
  v: PV1.dischargeDateTime
path:
  v: PV1.dischargeDateTime
short:
  v: dischargeDateTime
definition:
  v: **Discharge DateTime**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.dischargeDateTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: DTM

id:
  v: PV1.currentPatientBalance
path:
  v: PV1.currentPatientBalance
short:
  v: currentPatientBalance
definition:
  v: **Current Patient Balance**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.currentPatientBalance
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: NM

id:
  v: PV1.totalCharges
path:
  v: PV1.totalCharges
short:
  v: totalCharges
definition:
  v: **Total Charges**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.totalCharges
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: NM

id:
  v: PV1.totalAdjustments
path:
  v: PV1.totalAdjustments
short:
  v: totalAdjustments
definition:
  v: **Total Adjustments**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.totalAdjustments
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: NM

id:
  v: PV1.totalPayments
path:
  v: PV1.totalPayments
short:
  v: totalPayments
definition:
  v: **Total Payments**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.totalPayments
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: NM

id:
  v: PV1.alternateVisitID
path:
  v: PV1.alternateVisitID
short:
  v: alternateVisitID
definition:
  v: **Alternate Visit ID**
min:
  v: 0
max:
  v: *
base:
  path:
    v: PV1.alternateVisitID
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CX

id:
  v: PV1.visitIndicator
path:
  v: PV1.visitIndicator
short:
  v: visitIndicator
definition:
  v: **Visit Indicator**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.visitIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CWE

id:
  v: PV1.otherHealthcareProvider
path:
  v: PV1.otherHealthcareProvider
short:
  v: otherHealthcareProvider
definition:
  v: **Other Healthcare Provider**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.otherHealthcareProvider
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: -

id:
  v: PV1.serviceEpisodeDescription
path:
  v: PV1.serviceEpisodeDescription
short:
  v: serviceEpisodeDescription
definition:
  v: **Service Episode Description**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.serviceEpisodeDescription
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: ST

id:
  v: PV1.serviceEpisodeIdentifier
path:
  v: PV1.serviceEpisodeIdentifier
short:
  v: serviceEpisodeIdentifier
definition:
  v: **Service Episode Identifier**
min:
  v: 0
max:
  v: 1
base:
  path:
    v: PV1.serviceEpisodeIdentifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CX

element:
  id:
    v: PV1
  path:
    v: PV1
  definition:
    v: Patient Visit
  min:
    v: 1
  max:
    v: 1
element:
  id:
    v: PV1.setID-PV1
  path:
    v: PV1.setID-PV1
  short:
    v: setID-PV1
  definition:
    v: **Set ID - PV1**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: SI
  max length:
    v: 4
element:
  id:
    v: PV1.patientClass
  path:
    v: PV1.patientClass
  short:
    v: patientClass
  definition:
    v: **Patient Class**
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CWE
  must support:
    v: true
element:
  id:
    v: PV1.assignedPatientLocation
  path:
    v: PV1.assignedPatientLocation
  short:
    v: assignedPatientLocation
  definition:
    v: **Assigned Patient Location**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: PL
element:
  id:
    v: PV1.admissionType
  path:
    v: PV1.admissionType
  short:
    v: admissionType
  definition:
    v: **Admission Type**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CWE
element:
  id:
    v: PV1.preadmitNumber
  path:
    v: PV1.preadmitNumber
  short:
    v: preadmitNumber
  definition:
    v: **Preadmit Number**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CX
element:
  id:
    v: PV1.priorPatientLocation
  path:
    v: PV1.priorPatientLocation
  short:
    v: priorPatientLocation
  definition:
    v: **Prior Patient Location**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: PL
element:
  id:
    v: PV1.attendingDoctor
  path:
    v: PV1.attendingDoctor
  short:
    v: attendingDoctor
  definition:
    v: **Attending Doctor**
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: XCN
element:
  id:
    v: PV1.referringDoctor
  path:
    v: PV1.referringDoctor
  short:
    v: referringDoctor
  definition:
    v: **Referring Doctor**
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: XCN
element:
  id:
    v: PV1.consultingDoctor
  path:
    v: PV1.consultingDoctor
  short:
    v: consultingDoctor
  definition:
    v: **Consulting Doctor**
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: XCN
element:
  id:
    v: PV1.hospitalService
  path:
    v: PV1.hospitalService
  short:
    v: hospitalService
  definition:
    v: **Hospital Service**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CWE
element:
  id:
    v: PV1.temporaryLocation
  path:
    v: PV1.temporaryLocation
  short:
    v: temporaryLocation
  definition:
    v: **Temporary Location**
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: PL
element:
  id:
    v: PV1.preadmitTestIndicator
  path:
    v: PV1.preadmitTestIndicator
  short:
    v: preadmitTestIndicator
  definition:
    v: **Preadmit Test Indicator**
  min:
    v: 0

v: 1

code:
  v: CWE

id:
  v: PV1.re-admissionIndicator
path:
  v: PV1.re-admissionIndicator
short:
  v: re-admissionIndicator
definition:
  v: **Re-admission Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.admitSource
path:
  v: PV1.admitSource
short:
  v: admitSource
definition:
  v: **Admit Source**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.ambulatoryStatus
path:
  v: PV1.ambulatoryStatus
short:
  v: ambulatoryStatus
definition:
  v: **Ambulatory Status**
min:
  v: 0
max:
  v: *
type:
  code:
    v: CWE

id:
  v: PV1.vIPIndicator
path:
  v: PV1.vIPIndicator
short:
  v: vIPIndicator
definition:
  v: **VIP Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.admittingDoctor
path:
  v: PV1.admittingDoctor
short:
  v: admittingDoctor
definition:
  v: **Admitting Doctor**
min:
  v: 0
max:
  v: *
type:
  code:
    v: XCN

id:
  v: PV1.patientType
path:
  v: PV1.patientType
short:
  v: patientType
definition:
  v: **Patient Type**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.visitNumber
path:
  v: PV1.visitNumber
short:
  v: visitNumber
definition:
  v: **Visit Number**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CX

id:
  v: PV1.financialClass
path:
  v: PV1.financialClass
short:
  v: financialClass
definition:
  v: **Financial Class**
min:
  v: 0
max:
  v: *
type:
  code:
    v: FC

id:
  v: PV1.chargePriceIndicator
path:
  v: PV1.chargePriceIndicator
short:
  v: chargePriceIndicator
definition:
  v: **Charge Price Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.courtesyCode
path:
  v: PV1.courtesyCode
short:
  v: courtesyCode
definition:
  v: **Courtesy Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.creditRating
path:
  v: PV1.creditRating
short:
  v: creditRating
definition:
  v: **Credit Rating**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.contractCode
path:
  v: PV1.contractCode
short:
  v: contractCode
definition:
  v: **Contract Code**
min:
  v: 0
max:
  v: *
type:
  code:
    v: CWE

id:
  v: PV1.contractEffectiveDate
path:
  v: PV1.contractEffectiveDate
short:
  v: contractEffectiveDate
definition:
  v: **Contract Effective Date**
min:
  v: 0
max:
  v: *
type:
  code:
    v: DT

id:
  v: PV1.contractAmount
path:
  v: PV1.contractAmount
short:
  v: contractAmount
definition:
  v: **Contract Amount**
min:
  v: 0
max:
  v: *
type:
  code:
    v: NM

id:
  v: PV1.contractPeriod
path:
  v: PV1.contractPeriod
short:
  v: contractPeriod
definition:
  v: **Contract Period**
min:
  v: 0
max:
  v: *
type:
  code:
    v: NM

id:
  v: PV1.interestCode
path:
  v: PV1.interestCode
short:
  v: interestCode
definition:
  v: **Interest Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.transfertoBadDebtCode
path:
  v: PV1.transfertoBadDebtCode
short:
  v: transfertoBadDebtCode
definition:
  v: **Transfer to Bad Debt Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.transfertoBadDebtDate
path:
  v: PV1.transfertoBadDebtDate
short:
  v: transfertoBadDebtDate
definition:
  v: **Transfer to Bad Debt Date**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DT

id:
  v: PV1.badDebtAgencyCode
path:
  v: PV1.badDebtAgencyCode
short:
  v: badDebtAgencyCode
definition:
  v: **Bad Debt Agency Code**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.badDebtTransferAmount
path:
  v: PV1.badDebtTransferAmount
short:
  v: badDebtTransferAmount
definition:
  v: **Bad Debt Transfer Amount**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: NM

id:
  v: PV1.badDebtRecoveryAmount
path:
  v: PV1.badDebtRecoveryAmount
short:
  v: badDebtRecoveryAmount
definition:
  v: **Bad Debt Recovery Amount**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: NM

id:
  v: PV1.deleteAccountIndicator
path:
  v: PV1.deleteAccountIndicator
short:
  v: deleteAccountIndicator
definition:
  v: **Delete Account Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.deleteAccountDate
path:
  v: PV1.deleteAccountDate
short:
  v: deleteAccountDate
definition:
  v: **Delete Account Date**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DT

id:
  v: PV1.dischargeDisposition
path:
  v: PV1.dischargeDisposition
short:
  v: dischargeDisposition
definition:
  v: **Discharge Disposition**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.dischargedtoLocation
path:
  v: PV1.dischargedtoLocation
short:
  v: dischargedtoLocation
definition:
  v: **Discharged to Location**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DLD

id:
  v: PV1.dietType
path:
  v: PV1.dietType
short:
  v: dietType
definition:
  v: **Diet Type**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.servicingFacility
path:
  v: PV1.servicingFacility
short:
  v: servicingFacility
definition:
  v: **Servicing Facility**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.bedStatus
path:
  v: PV1.bedStatus
short:
  v: bedStatus
definition:
  v: **Bed Status**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.accountStatus
path:
  v: PV1.accountStatus
short:
  v: accountStatus
definition:
  v: **Account Status**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.pendingLocation
path:
  v: PV1.pendingLocation
short:
  v: pendingLocation
definition:
  v: **Pending Location**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: PL

id:
  v: PV1.priorTemporaryLocation
path:
  v: PV1.priorTemporaryLocation
short:
  v: priorTemporaryLocation
definition:
  v: **Prior Temporary Location**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: PL

id:
  v: PV1.admitDateTime
path:
  v: PV1.admitDateTime
short:
  v: admitDateTime
definition:
  v: **Admit DateTime**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DTM

id:
  v: PV1.dischargeDateTime
path:
  v: PV1.dischargeDateTime
short:
  v: dischargeDateTime
definition:
  v: **Discharge DateTime**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: DTM

id:
  v: PV1.currentPatientBalance
path:
  v: PV1.currentPatientBalance
short:
  v: currentPatientBalance
definition:
  v: **Current Patient Balance**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: NM

id:
  v: PV1.totalCharges
path:
  v: PV1.totalCharges
short:
  v: totalCharges
definition:
  v: **Total Charges**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: NM

id:
  v: PV1.totalAdjustments
path:
  v: PV1.totalAdjustments
short:
  v: totalAdjustments
definition:
  v: **Total Adjustments**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: NM

id:
  v: PV1.totalPayments
path:
  v: PV1.totalPayments
short:
  v: totalPayments
definition:
  v: **Total Payments**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: NM

id:
  v: PV1.alternateVisitID
path:
  v: PV1.alternateVisitID
short:
  v: alternateVisitID
definition:
  v: **Alternate Visit ID**
min:
  v: 0
max:
  v: *
type:
  code:
    v: CX

id:
  v: PV1.visitIndicator
path:
  v: PV1.visitIndicator
short:
  v: visitIndicator
definition:
  v: **Visit Indicator**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CWE

id:
  v: PV1.otherHealthcareProvider
path:
  v: PV1.otherHealthcareProvider
short:
  v: otherHealthcareProvider
definition:
  v: **Other Healthcare Provider**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: -

id:
  v: PV1.serviceEpisodeDescription
path:
  v: PV1.serviceEpisodeDescription
short:
  v: serviceEpisodeDescription
definition:
  v: **Service Episode Description**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: ST

id:
  v: PV1.serviceEpisodeIdentifier
path:
  v: PV1.serviceEpisodeIdentifier
short:
  v: serviceEpisodeIdentifier
definition:
  v: **Service Episode Identifier**
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CX