StructureDefinition-bluebutton-patient-claim
type: StructureDefinition
node role: treeRoot
resource.id:
  value: bluebutton-patient-claim
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: Name Flags Card. Type Description & Constraints Patient 0..* Information about an individual or animal receiving health care services id S 1.. identifier S 1.. use ..0 type ..0 system S 1.. value S 1.. period ..0 assigner ..0 active ..0 name S 1..1 use 1.. text ..0 family S 1.. given S 1.. prefix ..0 suffix ..0 period ..0 telecom ..0 gender S 1.. deceased[x] ..0 address S 1..1 use ..0 type ..0 text ..0 line ..0 city ..0 district S 1.. state S 1.. postalCode S 1.. country ..0 period ..0 maritalStatus ..0 multipleBirth[x] ..0 photo ..0 contact ..0 animal ..0 communication ..0 generalPractitioner ..0 managingOrganization ..0 link ..0 bluebutton-patient-race-extension 0..1 Coding Optional Extensions Element URL: https://bluebutton.cms.gov/assets/ig/StructureDefinition-bluebutton-patient-race-extension Documentation for this format
structure definition.url:
  value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-bluebutton-patient-claim
structure definition.version:
  value: 1.1.1
structure definition.name:
  value: BluebuttonPatient
structure definition.title:
  value: BluebuttonPatient
structure definition.status:
  value: draft
structure definition.date:
  value: 2018-02-14
structure definition.publisher:
  value: CMS Blue Button 2.0 Team
structure definition.description:
  value: Patient Claim profile for the Blue Button project
structure definition.fhir version:
  value: 3.0.1
structure definition.mapping:
  index: 0
  structure definition.mapping.identity:
    value: rim
  structure definition.mapping.uri:
    value: http://hl7.org/v3
  structure definition.mapping.name:
    value: RIM Mapping
structure definition.kind:
  value: resource
structure definition.abstract:
  value: false
structure definition.type:
  value: Patient
structure definition.base definition:
  value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-Patient
structure definition.derivation:
  value: constraint
structure definition.snapshot:
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: Patient
    element definition.path:
      value: Patient
    element definition.short:
      value: Information about an individual or animal receiving health care services
    element definition.definition:
      value: Demographics and other administrative information about an individual or animal receiving care or other health-related services.
    element definition.alias:
      value: SubjectOfCare Client Resident
      index: 0
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: Resource
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: Entity. Role, or Act
    element definition.mapping:
      index: 1
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: Patient[classCode=PAT]
    element definition.mapping:
      index: 2
      element definition.mapping.identity:
        value: cda
      element definition.mapping.map:
        value: ClinicalDocument.recordTarget.patientRole
    element definition.mapping:
      index: 3
      element definition.mapping.identity:
        value: w5
      element definition.mapping.map:
        value: administrative.individual
  structure definition.snapshot.element:
    index: 1
    element.id:
      value: Patient.id
    element definition.path:
      value: Patient.id
    element definition.short:
      value: Logical id of this artifact
    element definition.definition:
      value: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    element definition.comment:
      value: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
    element definition.min:
      value: 1
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: Resource.id
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: id
    element definition.must support:
      value: true
    element definition.is summary:
      value: true
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: n/a
  structure definition.snapshot.element:
    index: 2
    element.id:
      value: Patient.extension
    element definition.path:
      value: Patient.extension
    element definition.slicing:
      element definition.slicing.discriminator:
        index: 0
      element definition.slicing.description:
        value: Extensions are always sliced by (at least) url
      element definition.slicing.rules:
        value: open
    element definition.short:
      value: Additional Content defined by implementations
    element definition.definition:
      value: May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, 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.
    element definition.comment:
      value: 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.
    element definition.alias:
      value: extensions
      index: 0
    element definition.alias:
      value: user content
      index: 1
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: DomainResource.extension
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.type:
      index: 0
      element definition.type.code:
        value: Extension
    element definition.constraint:
      index: 0
      element definition.constraint.key:
        value: ext-1
      element definition.constraint.severity:
        value: error
      element definition.constraint.human:
        value: Must have either extensions or value[x], not both
      element definition.constraint.expression:
        value: extension.exists() != value.exists()
      element definition.constraint.xpath:
        value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
    element definition.mapping:
      index: 0
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: n/a
    element definition.mapping:
      index: 1
      element definition.mapping.identity:
        value: rim
      element definition.mapping.map:
        value: N/A
  structure definition.snapshot.element:
    index: 3
    element.id:
      value: Patient.extension:race
    element definition.path:
      value: Patient.extension
    element definition.slice name:
      value: race

value: value

value: url

value: Additional Content defined by implementations

value: May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, 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.

value: 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.

value: extensions
index: 0

value: user content
index: 1

value: 0

value: 1

element definition.base.path:
  value: DomainResource.extension
element definition.base.min:
  value: 0
element definition.base.max:
  value: *

index: 0
element definition.type.code:
  value: Extension
element definition.type.profile:
  value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-bluebutton-patient-race-extension

index: 0
element definition.constraint.key:
  value: ext-1
element definition.constraint.severity:
  value: error
element definition.constraint.human:
  value: Must have either extensions or value[x], not both
element definition.constraint.expression:
  value: extension.exists() != value.exists()
element definition.constraint.xpath:
  value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])

element definition.binding.strength:
  value: required
element definition.binding.value set reference:
  link: https://bluebutton.cms.gov/assets/ig/ValueSet-race
  reference.reference:
    value: https://bluebutton.cms.gov/assets/ig/ValueSet-race

index: 0
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: n/a

index: 1
element definition.mapping.identity:
  value: rim
element definition.mapping.map:
  value: N/A

index: 4
element.id:
  value: Patient.modifierExtension
element definition.path:
  value: Patient.modifierExtension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Extensions that cannot be ignored
element definition.definition:
  value: 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. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: DomainResource.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.is modifier:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 5
element.id:
  value: Patient.identifier
element definition.path:
  value: Patient.identifier
element definition.short:
  value: An identifier for this patient
element definition.definition:
  value: An identifier for this patient.
element definition.requirements:
  value: Patients are almost always assigned specific numerical identifiers.
element definition.min:
  value: 1
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Patient.identifier
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Identifier
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX / EI (occasionally, more often EI maps to a resource id or a URL)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: Identifier
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-3
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: id
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .id
element definition.mapping:
  index: 7
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: id

index: 6
element.id:
  value: Patient.identifier.id
element definition.path:
  value: Patient.identifier.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 7
element.id:
  value: Patient.identifier.extension
element definition.path:
  value: Patient.identifier.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 8
element.id:
  value: Patient.identifier.use
element definition.path:
  value: Patient.identifier.use
element definition.short:
  value: usual | official | temp | secondary (If known)
element definition.definition:
  value: The purpose of this identifier.
element definition.comment:
  value: This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.
element definition.requirements:
  value: Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Identifier.use
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: IdentifierUse
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: Identifies the purpose for this identifier, if known .
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-identifier-use
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-identifier-use
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: N/A
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Role.code or implied by context

index: 9
element.id:
  value: Patient.identifier.type
element definition.path:
  value: Patient.identifier.type
element definition.short:
  value: Description of identifier
element definition.definition:
  value: A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.
element definition.comment:
  value: This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.
element definition.requirements:
  value: Allows users to make use of identifiers when the identifier system is not known.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Identifier.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: IdentifierType
  element.extension:
    index: 1
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-isCommonBinding
    extension.value boolean:
      value: true
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-identifier-type
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-identifier-type
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CE/CNE/CWE
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CD
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept rdfs:subClassOf dt:CD
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.5
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Role.code or implied by context

index: 10
element.id:
  value: Patient.identifier.type.id
element definition.path:
  value: Patient.identifier.type.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 11
element.id:
  value: Patient.identifier.type.extension
element definition.path:
  value: Patient.identifier.type.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 12
element.id:
  value: Patient.identifier.type.coding
element definition.path:
  value: Patient.identifier.type.coding
element definition.short:
  value: Code defined by a terminology system
element definition.definition:
  value: A reference to a code defined by a terminology system.
element definition.comment:
  value: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
element definition.requirements:
  value: Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: CodeableConcept.coding
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Coding
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CV
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding rdfs:subClassOf dt:CDCoding
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.1-8, C*E.10-22
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: union(., ./translation)
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

index: 13
element.id:
  value: Patient.identifier.type.coding.id
element definition.path:
  value: Patient.identifier.type.coding.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 14
element.id:
  value: Patient.identifier.type.coding.extension
element definition.path:
  value: Patient.identifier.type.coding.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 15
element.id:
  value: Patient.identifier.type.coding.system
element definition.path:
  value: Patient.identifier.type.coding.system
element definition.short:
  value: Identity of the terminology system
element definition.definition:
  value: The identification of the code system that defines the meaning of the symbol in the code.
element definition.comment:
  value: The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.
element definition.requirements:
  value: Need to be unambiguous about the source of the definition of the symbol.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.system
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: uri
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.3
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./codeSystem
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem

index: 16
element.id:
  value: Patient.identifier.type.coding.version
element definition.path:
  value: Patient.identifier.type.coding.version
element definition.short:
  value: Version of the system - if relevant
element definition.definition:
  value: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
element definition.comment:
  value: Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.version
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.7
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./codeSystemVersion
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion

index: 17
element.id:
  value: Patient.identifier.type.coding.code
element definition.path:
  value: Patient.identifier.type.coding.code
element definition.short:
  value: Symbol in syntax defined by the system
element definition.definition:
  value: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: Need to refer to a particular code in the system.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.code
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./code
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code

index: 18
element.id:
  value: Patient.identifier.type.coding.display
element.extension:
  index: 0
  extension.url:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: Patient.identifier.type.coding.display
element definition.short:
  value: Representation defined by the system
element definition.definition:
  value: A representation of the meaning of the code in the system, following the rules of the system.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: Need to be able to carry a human-readable meaning of the code for readers that do not know the system.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.display
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.2 - but note this is not well followed
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CV.displayName
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName

index: 19
element.id:
  value: Patient.identifier.type.coding.userSelected
element definition.path:
  value: Patient.identifier.type.coding.userSelected
element definition.short:
  value: If this coding was chosen directly by the user
element definition.definition:
  value: Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
element definition.comment:
  value: Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
element definition.requirements:
  value: This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.userSelected
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: Sometimes implied by being first
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CD.codingRationale
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]

index: 20
element.id:
  value: Patient.identifier.type.text
element.extension:
  index: 0
  extension.url:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: Patient.identifier.type.text
element definition.short:
  value: Plain text representation of the concept
element definition.definition:
  value: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
element definition.comment:
  value: Very often the text is the same as a displayName of one of the codings.
element definition.requirements:
  value: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: CodeableConcept.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.9. But note many systems use C*E.2 for this
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./originalText[mediaType/code="text/plain"]/data
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

index: 21
element.id:
  value: Patient.identifier.system
element definition.path:
  value: Patient.identifier.system
element definition.short:
  value: The namespace for the identifier value
element definition.definition:
  value: Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
element definition.comment:
  value: see http://en.wikipedia.org/wiki/Uniform_resource_identifier
element definition.requirements:
  value: There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Identifier.system
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: uri
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value uri:
    value: http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.4 / EI-2-4
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: II.root or Role.id.root
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./IdentifierType

index: 22
element.id:
  value: Patient.identifier.value
element definition.path:
  value: Patient.identifier.value
element definition.short:
  value: The value that is unique
element definition.definition:
  value: The portion of the identifier typically relevant to the user and which is unique within the context of the system.
element definition.comment:
  value: If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Identifier.value
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 123456
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.1 / EI.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Value

index: 23
element.id:
  value: Patient.identifier.period
element definition.path:
  value: Patient.identifier.period
element definition.short:
  value: Time period when id is/was valid for use
element definition.definition:
  value: Time period during which identifier is/was valid for use.
element definition.comment:
  value: This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Identifier.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: per-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If present, start SHALL have a lower value than end
  element definition.constraint.expression:
    value: start.empty() or end.empty() or (start <= end)
  element definition.constraint.xpath:
    value: not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.7 + CX.8
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: Role.effectiveTime or implied by context
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StartDate and ./EndDate

index: 24
element.id:
  value: Patient.identifier.period.id
element definition.path:
  value: Patient.identifier.period.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 25
element.id:
  value: Patient.identifier.period.extension
element definition.path:
  value: Patient.identifier.period.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 26
element.id:
  value: Patient.identifier.period.start
element definition.path:
  value: Patient.identifier.period.start
element definition.short:
  value: Starting time with inclusive boundary
element definition.definition:
  value: The start of the period. The boundary is inclusive.
element definition.comment:
  value: If the low element is missing, the meaning is that the low boundary is not known.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.start
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./low

index: 27
element.id:
  value: Patient.identifier.period.end
element definition.path:
  value: Patient.identifier.period.end
element definition.short:
  value: End time with inclusive boundary, if not ongoing
element definition.definition:
  value: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
element definition.comment:
  value: The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.end
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.meaning when missing:
  value: If the end of the period is missing, it means that the period is ongoing
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.2
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./high

index: 28
element.id:
  value: Patient.identifier.assigner
element definition.path:
  value: Patient.identifier.assigner
element definition.short:
  value: Organization that issued id (may be just text)
element definition.definition:
  value: Organization that issued/manages the identifier.
element definition.comment:
  value: The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Identifier.assigner
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-Organization
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ref-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: SHALL have a contained resource if a local reference is provided
  element definition.constraint.expression:
    value: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))
  element definition.constraint.xpath:
    value: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX.4 / (CX.4,CX.9,CX.10)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./IdentifierIssuingAuthority

index: 29
element.id:
  value: Patient.identifier.assigner.id
element definition.path:
  value: Patient.identifier.assigner.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 30
element.id:
  value: Patient.identifier.assigner.extension
element definition.path:
  value: Patient.identifier.assigner.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 31
element.id:
  value: Patient.identifier.assigner.reference
element definition.path:
  value: Patient.identifier.assigner.reference
element definition.short:
  value: Literal reference, Relative, internal or absolute URL
element definition.definition:
  value: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
element definition.comment:
  value: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.reference
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: ref-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 32
element.id:
  value: Patient.identifier.assigner.identifier
element definition.path:
  value: Patient.identifier.assigner.identifier
element definition.short:
  value: Logical reference, when literal reference is not known
element definition.definition:
  value: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
element definition.comment:
  value: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.identifier
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Identifier
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CX / EI (occasionally, more often EI maps to a resource id or a URL)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: Identifier
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .identifier

index: 33
element.id:
  value: Patient.identifier.assigner.display
element.extension:
  index: 0
  extension.url:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: Patient.identifier.assigner.display
element definition.short:
  value: Text alternative for the resource
element definition.definition:
  value: Plain text narrative that identifies the resource in addition to the resource reference.
element definition.comment:
  value: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Reference.display
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 34
element.id:
  value: Patient.active
element definition.path:
  value: Patient.active
element definition.short:
  value: Whether this patient's record is in active use
element definition.definition:
  value: Whether this patient record is in active use.
element definition.comment:
  value: Default is true. If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient This element is labeled as a modifier because when the patient record is marked as not active it is not expected to be used/referenced without being changed back to active.
element definition.requirements:
  value: Need to be able to mark a patient record as not to be used because it was created in error.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Patient.active
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean
element definition.default value boolean:
  value: true
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: statusCode
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: w5
  element definition.mapping.map:
    value: status

index: 35
element.id:
  value: Patient.name
element definition.path:
  value: Patient.name
element definition.short:
  value: A name associated with the patient
element definition.definition:
  value: A name associated with the individual.
element definition.comment:
  value: A patient may have multiple names with different uses or applicable periods. For animals, the name is a "HumanName" in the sense that is assigned and used by humans and has the same patterns.
element definition.requirements:
  value: Need to be able to track the patient by multiple names. Examples are your official name and a partner name.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Patient.name
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: HumanName
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: EN (actually, PN)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ProviderName
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-5, PID-9
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: name
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .patient.name

index: 36
element.id:
  value: Patient.name.id
element definition.path:
  value: Patient.name.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 37
element.id:
  value: Patient.name.extension
element definition.path:
  value: Patient.name.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 38
element.id:
  value: Patient.name.use
element definition.path:
  value: Patient.name.use
element definition.short:
  value: usual | official | temp | nickname | anonymous | old | maiden
element definition.definition:
  value: Identifies the purpose for this name.
element definition.comment:
  value: This is labeled as "Is Modifier" because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old.
element definition.requirements:
  value: Allows the appropriate name for a particular context of use to be selected from among a set of names.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: HumanName.use
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.must support:
  value: true
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: NameUse
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The use of a human name
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-name-use
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-name-use
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.7, but often indicated by which field contains the name
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./NamePurpose

index: 39
element.id:
  value: Patient.name.text
element definition.path:
  value: Patient.name.text
element definition.short:
  value: Text representation of the full name
element definition.definition:
  value: A full text representation of the name.
element definition.comment:
  value: Can provide both a text representation and structured parts.
element definition.requirements:
  value: A renderable, unencoded form.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: HumanName.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: implied by XPN.11
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./formatted

index: 40
element.id:
  value: Patient.name.family
element definition.path:
  value: Patient.name.family
element definition.short:
  value: Family name (often called 'Surname')
element definition.definition:
  value: The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
element definition.comment:
  value: Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures).
element definition.alias:
  value: surname
  index: 0
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: HumanName.family
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.1/FN.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./part[partType = FAM]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./FamilyName

index: 41
element.id:
  value: Patient.name.given
element definition.path:
  value: Patient.name.given
element definition.short:
  value: Given names (not always 'first'). Includes middle names
element definition.definition:
  value: Given name.
element definition.comment:
  value: If only initials are recorded, they may be used in place of the full name. Not called "first name" since given names do not always come first.
element definition.alias:
  value: first name
  index: 0
element definition.alias:
  value: middle name
  index: 1
element definition.min:
  value: 1
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: HumanName.given
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.order meaning:
  value: Given Names appear in the correct order for presenting the name
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.2 + XPN.3
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./part[partType = GIV]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./GivenNames

index: 42
element.id:
  value: Patient.name.prefix
element definition.path:
  value: Patient.name.prefix
element definition.short:
  value: Parts that come before the name
element definition.definition:
  value: Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: HumanName.prefix
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.order meaning:
  value: Prefixes appear in the correct order for presenting the name
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.5
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./part[partType = PFX]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./TitleCode

index: 43
element.id:
  value: Patient.name.suffix
element definition.path:
  value: Patient.name.suffix
element definition.short:
  value: Parts that come after the name
element definition.definition:
  value: Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: HumanName.suffix
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.order meaning:
  value: Suffixes appear in the correct order for presenting the name
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN/4
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./part[partType = SFX]

index: 44
element.id:
  value: Patient.name.period
element definition.path:
  value: Patient.name.period
element definition.short:
  value: Time period when name was/is in use
element definition.definition:
  value: Indicates the period of time when this name was valid for the named person.
element definition.comment:
  value: This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.
element definition.requirements:
  value: Allows names to be placed in historical context.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: HumanName.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: per-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If present, start SHALL have a lower value than end
  element definition.constraint.expression:
    value: start.empty() or end.empty() or (start <= end)
  element definition.constraint.xpath:
    value: not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.13 + XPN.14
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./usablePeriod[type="IVL<TS>"]
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StartDate and ./EndDate

index: 45
element.id:
  value: Patient.name.period.id
element definition.path:
  value: Patient.name.period.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 46
element.id:
  value: Patient.name.period.extension
element definition.path:
  value: Patient.name.period.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 47
element.id:
  value: Patient.name.period.start
element definition.path:
  value: Patient.name.period.start
element definition.short:
  value: Starting time with inclusive boundary
element definition.definition:
  value: The start of the period. The boundary is inclusive.
element definition.comment:
  value: If the low element is missing, the meaning is that the low boundary is not known.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.start
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./low

index: 48
element.id:
  value: Patient.name.period.end
element definition.path:
  value: Patient.name.period.end
element definition.short:
  value: End time with inclusive boundary, if not ongoing
element definition.definition:
  value: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
element definition.comment:
  value: The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.end
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.meaning when missing:
  value: If the end of the period is missing, it means that the period is ongoing
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.2
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./high

index: 49
element.id:
  value: Patient.telecom
element definition.path:
  value: Patient.telecom
element definition.short:
  value: A contact detail for the individual
element definition.definition:
  value: A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.
element definition.comment:
  value: A Patient may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and also to help with identification. The address may not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).
element definition.requirements:
  value: People have (primary) ways to contact them in some way such as phone, email.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Patient.telecom
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: ContactPoint
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: cpt-2
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: A system is required if a value is provided.
  element definition.constraint.expression:
    value: value.empty() or system.exists()
  element definition.constraint.xpath:
    value: not(exists(f:value)) or exists(f:system)
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XTN
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: TEL
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ContactPoint
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-13, PID-14, PID-40
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: telecom
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .telecom

index: 50
element.id:
  value: Patient.telecom.id
element definition.path:
  value: Patient.telecom.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 51
element.id:
  value: Patient.telecom.extension
element definition.path:
  value: Patient.telecom.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 52
element.id:
  value: Patient.telecom.system
element definition.path:
  value: Patient.telecom.system
element definition.short:
  value: phone | fax | email | pager | url | sms | other
element definition.definition:
  value: Telecommunications form for contact point - what communications system is required to make use of the contact.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.system
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: cpt-2
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: ContactPointSystem
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: Telecommunications form for contact point
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-contact-point-system
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-contact-point-system
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XTN.3
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./scheme
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./ContactPointType

index: 53
element.id:
  value: Patient.telecom.value
element definition.path:
  value: Patient.telecom.value
element definition.short:
  value: The actual contact point details
element definition.definition:
  value: The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
element definition.comment:
  value: Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value.
element definition.requirements:
  value: Need to support legacy numbers that are not in a tightly controlled format.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.value
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XTN.1 (or XTN.12)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./url
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Value

index: 54
element.id:
  value: Patient.telecom.use
element definition.path:
  value: Patient.telecom.use
element definition.short:
  value: home | work | temp | old | mobile - purpose of this contact point
element definition.definition:
  value: Identifies the purpose for the contact point.
element definition.comment:
  value: This is labeled as "Is Modifier" because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old.
element definition.requirements:
  value: Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.use
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: ContactPointUse
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: Use of contact point
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-contact-point-use
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-contact-point-use
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XTN.2 - but often indicated by field
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./ContactPointPurpose

index: 55
element.id:
  value: Patient.telecom.rank
element definition.path:
  value: Patient.telecom.rank
element definition.short:
  value: Specify preferred order of use (1 = highest)
element definition.definition:
  value: Specifies a preferred order in which to use a set of contacts. Contacts are ranked with lower values coming before higher values.
element definition.comment:
  value: Note that rank does not necessarily follow the order in which the contacts are represented in the instance.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.rank
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: positiveInt
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: n/a

index: 56
element.id:
  value: Patient.telecom.period
element definition.path:
  value: Patient.telecom.period
element definition.short:
  value: Time period when the contact point was/is in use
element definition.definition:
  value: Time period when the contact point was/is in use.
element definition.comment:
  value: This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: per-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If present, start SHALL have a lower value than end
  element definition.constraint.expression:
    value: start.empty() or end.empty() or (start <= end)
  element definition.constraint.xpath:
    value: not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: N/A
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./usablePeriod[type="IVL<TS>"]
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StartDate and ./EndDate

index: 57
element.id:
  value: Patient.telecom.period.id
element definition.path:
  value: Patient.telecom.period.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 58
element.id:
  value: Patient.telecom.period.extension
element definition.path:
  value: Patient.telecom.period.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 59
element.id:
  value: Patient.telecom.period.start
element definition.path:
  value: Patient.telecom.period.start
element definition.short:
  value: Starting time with inclusive boundary
element definition.definition:
  value: The start of the period. The boundary is inclusive.
element definition.comment:
  value: If the low element is missing, the meaning is that the low boundary is not known.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.start
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./low

index: 60
element.id:
  value: Patient.telecom.period.end
element definition.path:
  value: Patient.telecom.period.end
element definition.short:
  value: End time with inclusive boundary, if not ongoing
element definition.definition:
  value: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
element definition.comment:
  value: The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.end
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.meaning when missing:
  value: If the end of the period is missing, it means that the period is ongoing
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.2
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./high

index: 61
element.id:
  value: Patient.gender
element definition.path:
  value: Patient.gender
element definition.short:
  value: male | female | other | unknown
element definition.definition:
  value: Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.
element definition.comment:
  value: The gender may not match the biological sex as determined by genetics, or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than M and F, though the vast majority of systems and contexts only support M and F. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific gender aspect of interest (anatomical, chromosonal, social, etc.) However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice. Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosonal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overrideable error, not a "hard" error.
element definition.requirements:
  value: Needed for identification of the individual, in combination with (at least) name and birth date. Gender of individual drives many clinical processes.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Patient.gender
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element definition.binding.strength:
    value: required
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-gndr-cd
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-gndr-cd
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-8
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .patient.administrativeGenderCode

index: 62
element.id:
  value: Patient.birthDate
element definition.path:
  value: Patient.birthDate
element definition.short:
  value: The date of birth for the individual
element definition.definition:
  value: The date of birth for the individual.
element definition.comment:
  value: At least an estimated year should be provided as a guess if the real DOB is unknown There is a standard extension "patient-birthTime" available that should be used where Time is required (such as in maternaty/infant care systems).
element definition.requirements:
  value: Age of the individual drives many clinical processes.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Patient.birthDate
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: date
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-7
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .patient.birthTime
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: loinc
  element definition.mapping.map:
    value: 21112-8

index: 63
element.id:
  value: Patient.deceased[x]
element definition.path:
  value: Patient.deceased[x]
element definition.short:
  value: Indicates if the individual is deceased or not
element definition.definition:
  value: Indicates if the individual is deceased or not.
element definition.comment:
  value: If there's no value in the instance it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive. This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.
element definition.requirements:
  value: The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Patient.deceased[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean
element definition.type:
  index: 1
  element definition.type.code:
    value: dateTime
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-30 (bool) and PID-29 (datetime)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: n/a

index: 64
element.id:
  value: Patient.address
element definition.path:
  value: Patient.address
element definition.short:
  value: Addresses for the individual
element definition.definition:
  value: Addresses for the individual.
element definition.comment:
  value: Patient may have multiple addresses with different uses or applicable periods.
element definition.requirements:
  value: May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Patient.address
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Address
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: Address
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-11
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: addr
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .addr

index: 65
element.id:
  value: Patient.address.id
element definition.path:
  value: Patient.address.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 66
element.id:
  value: Patient.address.extension
element definition.path:
  value: Patient.address.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 67
element.id:
  value: Patient.address.use
element definition.path:
  value: Patient.address.use
element definition.short:
  value: home | work | temp | old - purpose of this address
element definition.definition:
  value: The purpose of this address.
element definition.comment:
  value: This is labeled as "Is Modifier" because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old.
element definition.requirements:
  value: Allows an appropriate address to be chosen from a list of many.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Address.use
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value code:
    value: home
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: AddressUse
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The use of an address
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-address-use
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-address-use
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.7
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./AddressPurpose

index: 68
element.id:
  value: Patient.address.type
element definition.path:
  value: Patient.address.type
element definition.short:
  value: postal | physical | both
element definition.definition:
  value: Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Address.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value code:
    value: both
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: AddressType
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The type of an address (physical / postal)
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-address-type
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-address-type
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.18
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: address type parameter

index: 69
element.id:
  value: Patient.address.text
element definition.path:
  value: Patient.address.text
element definition.short:
  value: Text representation of the address
element definition.definition:
  value: A full text representation of the address.
element definition.comment:
  value: Can provide both a text representation and parts.
element definition.requirements:
  value: A renderable, unencoded form.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Address.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 137 Nowhere Street, Erewhon 9132
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./formatted
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: address label parameter

index: 70
element.id:
  value: Patient.address.line
element definition.path:
  value: Patient.address.line
element definition.short:
  value: Street name, number, direction & P.O. Box etc.
element definition.definition:
  value: This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: home | work | temp | old - purpose of this address.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Address.line
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.order meaning:
  value: The order in which lines should appear in an address label
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 137 Nowhere Street
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = AL]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: street
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StreetAddress (newline delimitted)

index: 71
element.id:
  value: Patient.address.city
element definition.path:
  value: Patient.address.city
element definition.short:
  value: Name of city, town etc.
element definition.definition:
  value: The name of the city, town, village or other community or delivery center.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.alias:
  value: Municpality
  index: 0
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Address.city
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: Erewhon
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.3
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = CTY]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: locality
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Jurisdiction

index: 72
element.id:
  value: Patient.address.district
element definition.path:
  value: Patient.address.district
element definition.short:
  value: District name (aka county)
element definition.definition:
  value: The name of the administrative area (county).
element definition.comment:
  value: District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead.
element definition.alias:
  value: County
  index: 0
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.district
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: Madison
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.9
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = CNT | CPA]

index: 73
element.id:
  value: Patient.address.state
element definition.path:
  value: Patient.address.state
element definition.short:
  value: Sub-unit of country (abbreviations ok)
element definition.definition:
  value: Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.alias:
  value: Province
  index: 0
element definition.alias:
  value: Territory
  index: 1
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.state
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.4
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = STA]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: region
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Region

index: 74
element.id:
  value: Patient.address.postalCode
element definition.path:
  value: Patient.address.postalCode
element definition.short:
  value: Postal code for area
element definition.definition:
  value: A postal code designating a region defined by the postal service.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.alias:
  value: Zip
  index: 0
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.postalCode
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 9132
element definition.must support:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.5
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = ZIP]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: code
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./PostalIdentificationCode

index: 75
element.id:
  value: Patient.address.country
element definition.path:
  value: Patient.address.country
element definition.short:
  value: Country (e.g. can be ISO 3166 2 or 3 letter code)
element definition.definition:
  value: Country - a nation as commonly understood or generally accepted.
element definition.comment:
  value: ISO 3166 3 letter codes can be used in place of a full country name.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Address.country
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.6
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = CNT]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: country
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Country

index: 76
element.id:
  value: Patient.address.period
element definition.path:
  value: Patient.address.period
element definition.short:
  value: Time period when address was/is in use
element definition.definition:
  value: Time period when address was/is in use.
element definition.comment:
  value: This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.
element definition.requirements:
  value: Allows addresses to be placed in historical context.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Address.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value period:
    period.start:
      value: 2010-03-23
    period.end:
      value: 2010-07-01
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: per-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If present, start SHALL have a lower value than end
  element definition.constraint.expression:
    value: start.empty() or end.empty() or (start <= end)
  element definition.constraint.xpath:
    value: not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.12 / XAD.13 + XAD.14
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./usablePeriod[type="IVL<TS>"]
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StartDate and ./EndDate

index: 77
element.id:
  value: Patient.address.period.id
element definition.path:
  value: Patient.address.period.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 78
element.id:
  value: Patient.address.period.extension
element definition.path:
  value: Patient.address.period.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 79
element.id:
  value: Patient.address.period.start
element definition.path:
  value: Patient.address.period.start
element definition.short:
  value: Starting time with inclusive boundary
element definition.definition:
  value: The start of the period. The boundary is inclusive.
element definition.comment:
  value: If the low element is missing, the meaning is that the low boundary is not known.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.start
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./low

index: 80
element.id:
  value: Patient.address.period.end
element definition.path:
  value: Patient.address.period.end
element definition.short:
  value: End time with inclusive boundary, if not ongoing
element definition.definition:
  value: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
element definition.comment:
  value: The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.end
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.meaning when missing:
  value: If the end of the period is missing, it means that the period is ongoing
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.2
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./high

index: 81
element.id:
  value: Patient.maritalStatus
element definition.path:
  value: Patient.maritalStatus
element definition.short:
  value: Marital (civil) status of a patient
element definition.definition:
  value: This field contains a patient's most recent marital (civil) status.
element definition.comment:
  value: Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.
element definition.requirements:
  value: Most, if not all systems capture it.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Patient.maritalStatus
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: MaritalStatus
  element.extension:
    index: 1
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-isCommonBinding
    extension.value boolean:
      value: true
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: The domestic partnership status of a person.
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-marital-status
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-marital-status
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CE/CNE/CWE
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CD
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept rdfs:subClassOf dt:CD
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-16
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: player[classCode=PSN]/maritalStatusCode
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: .patient.maritalStatusCode

index: 82
element.id:
  value: Patient.maritalStatus.id
element definition.path:
  value: Patient.maritalStatus.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 83
element.id:
  value: Patient.maritalStatus.extension
element definition.path:
  value: Patient.maritalStatus.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 84
element.id:
  value: Patient.maritalStatus.coding
element definition.path:
  value: Patient.maritalStatus.coding
element definition.short:
  value: Code defined by a terminology system
element definition.definition:
  value: A reference to a code defined by a terminology system.
element definition.comment:
  value: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
element definition.requirements:
  value: Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: CodeableConcept.coding
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Coding
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CV
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding rdfs:subClassOf dt:CDCoding
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.1-8, C*E.10-22
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: union(., ./translation)
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

index: 85
element.id:
  value: Patient.maritalStatus.coding.id
element definition.path:
  value: Patient.maritalStatus.coding.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 86
element.id:
  value: Patient.maritalStatus.coding.extension
element definition.path:
  value: Patient.maritalStatus.coding.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 87
element.id:
  value: Patient.maritalStatus.coding.system
element definition.path:
  value: Patient.maritalStatus.coding.system
element definition.short:
  value: Identity of the terminology system
element definition.definition:
  value: The identification of the code system that defines the meaning of the symbol in the code.
element definition.comment:
  value: The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.
element definition.requirements:
  value: Need to be unambiguous about the source of the definition of the symbol.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.system
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: uri
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.3
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./codeSystem
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem

index: 88
element.id:
  value: Patient.maritalStatus.coding.version
element definition.path:
  value: Patient.maritalStatus.coding.version
element definition.short:
  value: Version of the system - if relevant
element definition.definition:
  value: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
element definition.comment:
  value: Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.version
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.7
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./codeSystemVersion
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion

index: 89
element.id:
  value: Patient.maritalStatus.coding.code
element definition.path:
  value: Patient.maritalStatus.coding.code
element definition.short:
  value: Symbol in syntax defined by the system
element definition.definition:
  value: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: Need to refer to a particular code in the system.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.code
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./code
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code

index: 90
element.id:
  value: Patient.maritalStatus.coding.display
element.extension:
  index: 0
  extension.url:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: Patient.maritalStatus.coding.display
element definition.short:
  value: Representation defined by the system
element definition.definition:
  value: A representation of the meaning of the code in the system, following the rules of the system.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: Need to be able to carry a human-readable meaning of the code for readers that do not know the system.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.display
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.2 - but note this is not well followed
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CV.displayName
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName

index: 91
element.id:
  value: Patient.maritalStatus.coding.userSelected
element definition.path:
  value: Patient.maritalStatus.coding.userSelected
element definition.short:
  value: If this coding was chosen directly by the user
element definition.definition:
  value: Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
element definition.comment:
  value: Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
element definition.requirements:
  value: This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.userSelected
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: Sometimes implied by being first
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CD.codingRationale
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]

index: 92
element.id:
  value: Patient.maritalStatus.text
element.extension:
  index: 0
  extension.url:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: Patient.maritalStatus.text
element definition.short:
  value: Plain text representation of the concept
element definition.definition:
  value: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
element definition.comment:
  value: Very often the text is the same as a displayName of one of the codings.
element definition.requirements:
  value: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: CodeableConcept.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.9. But note many systems use C*E.2 for this
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./originalText[mediaType/code="text/plain"]/data
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

index: 93
element.id:
  value: Patient.multipleBirth[x]
element definition.path:
  value: Patient.multipleBirth[x]
element definition.short:
  value: Whether patient is part of a multiple birth
element definition.definition:
  value: Indicates whether the patient is part of a multiple (bool) or indicates the actual birth order (integer).
element definition.comment:
  value: Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in tripplets would be valueInteger=2 and the third born would have valueInteger=3 If a bool value was provided for this tripplets examle, then all 3 patient records would have valueBool=true (the ordering is not indicated).
element definition.requirements:
  value: For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Patient.multipleBirth[x]
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean
element definition.type:
  index: 1
  element definition.type.code:
    value: integer
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: PID-24 (bool), PID-25 (integer)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: n/a

index: 94
element.id:
  value: Patient.photo
element definition.path:
  value: Patient.photo
element definition.short:
  value: Image of the patient
element definition.definition:
  value: Image of the patient.
element definition.comment:
  value: When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as "Attachment".
element definition.requirements:
  value: Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Patient.photo
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Attachment
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: att-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: It the Attachment has data, it SHALL have a contentType
  element definition.constraint.expression:
    value: data.empty() or contentType.exists()
  element definition.constraint.xpath:
    value: not(exists(f:data)) or exists(f:contentType)
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: ED/RP
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ED
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: OBX-5 - needs a profile
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: n/a

index: 95
element.id:
  value: Patient.photo.id
element definition.path:
  value: Patient.photo.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 96
element.id:
  value: Patient.photo.extension
element definition.path:
  value: Patient.photo.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 97
element.id:
  value: Patient.photo.contentType
element definition.path:
  value: Patient.photo.contentType
element definition.short:
  value: Mime type of the content, with charset etc.
element definition.definition:
  value: Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: Processors of the data need to be able to know how to interpret the data.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Attachment.contentType
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value code:
    value: text/plain; charset=UTF-8, image/png
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: MimeType
  element.extension:
    index: 1
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-isCommonBinding
    extension.value boolean:
      value: true
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The mime type of an attachment. Any valid mime type is allowed.
  element definition.binding.value set uri:
    value: http://www.rfc-editor.org/bcp/bcp13.txt
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./mediaType, ./charset

index: 98
element.id:
  value: Patient.photo.language
element definition.path:
  value: Patient.photo.language
element definition.short:
  value: Human language of the content (BCP-47)
element definition.definition:
  value: The human language of the content. The value can be any valid value according to BCP 47.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: Users need to be able to choose between the languages in a set of attachments.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Attachment.language
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value code:
    value: en-AU
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-maxValueSet
    extension.value reference:
      link: https://bluebutton.cms.gov/assets/ig/ValueSet-all-languages
      reference.reference:
        value: https://bluebutton.cms.gov/assets/ig/ValueSet-all-languages
  element.extension:
    index: 1
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: Language
  element.extension:
    index: 2
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-isCommonBinding
    extension.value boolean:
      value: true
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: A human language.
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-languages
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-languages
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./language

index: 99
element.id:
  value: Patient.photo.data
element definition.path:
  value: Patient.photo.data
element definition.short:
  value: Data inline, base64ed
element definition.definition:
  value: The actual data of the attachment - a sequence of bytes. In XML, represented using base64.
element definition.comment:
  value: The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON.
element definition.requirements:
  value: The data needs to able to be transmitted inline.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Attachment.data
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: base64Binary
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: ED.5
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./data

index: 100
element.id:
  value: Patient.photo.url
element definition.path:
  value: Patient.photo.url
element definition.short:
  value: Uri where the data can be found
element definition.definition:
  value: An alternative location where the data can be accessed.
element definition.comment:
  value: If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data.
element definition.requirements:
  value: The data needs to be transmitted by reference.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Attachment.url
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: uri
element definition.example:
  index: 0
  element definition.example.label:
    value: General
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: RP.1+RP.2 - if they refer to a URL (see v2.6)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./reference/literal

index: 101
element.id:
  value: Patient.photo.size
element definition.path:
  value: Patient.photo.size
element definition.short:
  value: Number of bytes of content (if url provided)
element definition.definition:
  value: The number of bytes of data that make up this attachment (before base64 encoding, if that is done).
element definition.comment:
  value: The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference.
element definition.requirements:
  value: Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Attachment.size
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: unsignedInt
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A (needs data type R3 proposal)

index: 102
element.id:
  value: Patient.photo.hash
element definition.path:
  value: Patient.photo.hash
element definition.short:
  value: Hash of the data (sha-1, base64ed)
element definition.definition:
  value: The calculated hash of the data using SHA-1. Represented using base64.
element definition.comment:
  value: The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded.
element definition.requirements:
  value: Included so that applications can verify that the contents of a location have not changed and so that a signature of the content can implicitly sign the content of an image without having to include the data in the instance or reference the url in the signature.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Attachment.hash
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: base64Binary
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: .integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"]

index: 103
element.id:
  value: Patient.photo.title
element.extension:
  index: 0
  extension.url:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: Patient.photo.title
element definition.short:
  value: Label to display in place of the data
element definition.definition:
  value: A label or set of text to display in place of the data.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Attachment.title
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: Official Corporate Logo
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./title/data

index: 104
element.id:
  value: Patient.photo.creation
element definition.path:
  value: Patient.photo.creation
element definition.short:
  value: Date attachment was first created
element definition.definition:
  value: The date that the attachment was first created.
element definition.requirements:
  value: This is often tracked as an integrity issue for use of the attachment.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Attachment.creation
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A (needs data type R3 proposal)

index: 105
element.id:
  value: Patient.contact
element.extension:
  index: 0
  extension.url:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-structuredefinition-explicit-type-name
  extension.value string:
    value: Contact
element definition.path:
  value: Patient.contact
element definition.short:
  value: A contact party (e.g. guardian, partner, friend) for the patient
element definition.definition:
  value: A contact party (e.g. guardian, partner, friend) for the patient.
element definition.comment:
  value: Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.
element definition.requirements:
  value: Need to track people you can contact about the patient.
element definition.min:
  value: 0
element definition.max:
  value: 0
element definition.base:
  element definition.base.path:
    value: Patient.contact
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: pat-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: SHALL at least contain a contact's details or a reference to an organization
  element definition.constraint.expression:
    value: name.exists() or telecom.exists() or address.exists() or organization.exists()
  element definition.constraint.xpath:
    value: exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: n/a

index: 106
element.id:
  value: Patient.contact.id
element definition.path:
  value: Patient.contact.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 107
element.id:
  value: Patient.contact.extension
element definition.path:
  value: Patient.contact.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 108
element.id:
  value: Patient.contact.modifierExtension
element definition.path:
  value: Patient.contact.modifierExtension
element definition.short:
  value: Extensions that cannot be ignored
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.alias:
  value: modifiers
  index: 2
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: BackboneElement.modifierExtension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 109
element.id:
  value: Patient.contact.relationship
element definition.path:
  value: Patient.contact.relationship
element definition.short:
  value: The kind of relationship
element definition.definition:
  value: The nature of the relationship between the patient and the contact person.
element definition.comment:
  value: Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.
element definition.requirements:
  value: Used to determine which contact person is the most relevant to approach, depending on circumstances.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Patient.contact.relationship
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: ContactRelationship
  element definition.binding.strength:
    value: extensible
  element definition.binding.description:
    value: The nature of the relationship between a patient and a contact person for that patient.
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-v2-0131
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-v2-0131
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CE/CNE/CWE
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CD
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept rdfs:subClassOf dt:CD
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: NK1-7, NK1-3
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: code
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: n/a

index: 110
element.id:
  value: Patient.contact.relationship.id
element definition.path:
  value: Patient.contact.relationship.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 111
element.id:
  value: Patient.contact.relationship.extension
element definition.path:
  value: Patient.contact.relationship.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 112
element.id:
  value: Patient.contact.relationship.coding
element definition.path:
  value: Patient.contact.relationship.coding
element definition.short:
  value: Code defined by a terminology system
element definition.definition:
  value: A reference to a code defined by a terminology system.
element definition.comment:
  value: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
element definition.requirements:
  value: Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: CodeableConcept.coding
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Coding
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CV
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding rdfs:subClassOf dt:CDCoding
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.1-8, C*E.10-22
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: union(., ./translation)
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

index: 113
element.id:
  value: Patient.contact.relationship.coding.id
element definition.path:
  value: Patient.contact.relationship.coding.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 114
element.id:
  value: Patient.contact.relationship.coding.extension
element definition.path:
  value: Patient.contact.relationship.coding.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 115
element.id:
  value: Patient.contact.relationship.coding.system
element definition.path:
  value: Patient.contact.relationship.coding.system
element definition.short:
  value: Identity of the terminology system
element definition.definition:
  value: The identification of the code system that defines the meaning of the symbol in the code.
element definition.comment:
  value: The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.
element definition.requirements:
  value: Need to be unambiguous about the source of the definition of the symbol.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.system
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: uri
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.3
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./codeSystem
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem

index: 116
element.id:
  value: Patient.contact.relationship.coding.version
element definition.path:
  value: Patient.contact.relationship.coding.version
element definition.short:
  value: Version of the system - if relevant
element definition.definition:
  value: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
element definition.comment:
  value: Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.version
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.7
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./codeSystemVersion
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion

index: 117
element.id:
  value: Patient.contact.relationship.coding.code
element definition.path:
  value: Patient.contact.relationship.coding.code
element definition.short:
  value: Symbol in syntax defined by the system
element definition.definition:
  value: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: Need to refer to a particular code in the system.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.code
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./code
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code

index: 118
element.id:
  value: Patient.contact.relationship.coding.display
element.extension:
  index: 0
  extension.url:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: Patient.contact.relationship.coding.display
element definition.short:
  value: Representation defined by the system
element definition.definition:
  value: A representation of the meaning of the code in the system, following the rules of the system.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: Need to be able to carry a human-readable meaning of the code for readers that do not know the system.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.display
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.2 - but note this is not well followed
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CV.displayName
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName

index: 119
element.id:
  value: Patient.contact.relationship.coding.userSelected
element definition.path:
  value: Patient.contact.relationship.coding.userSelected
element definition.short:
  value: If this coding was chosen directly by the user
element definition.definition:
  value: Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
element definition.comment:
  value: Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
element definition.requirements:
  value: This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Coding.userSelected
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: Sometimes implied by being first
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: CD.codingRationale
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]

index: 120
element.id:
  value: Patient.contact.relationship.text
element.extension:
  index: 0
  extension.url:
    value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-translatable
  extension.value boolean:
    value: true
element definition.path:
  value: Patient.contact.relationship.text
element definition.short:
  value: Plain text representation of the concept
element definition.definition:
  value: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
element definition.comment:
  value: Very often the text is the same as a displayName of one of the codings.
element definition.requirements:
  value: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: CodeableConcept.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: C*E.9. But note many systems use C*E.2 for this
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./originalText[mediaType/code="text/plain"]/data
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: orim
  element definition.mapping.map:
    value: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

index: 121
element.id:
  value: Patient.contact.name
element definition.path:
  value: Patient.contact.name
element definition.short:
  value: A name associated with the contact person
element definition.definition:
  value: A name associated with the contact person.
element definition.comment:
  value: Names may be changed, or repudiated, or people may have different names in different contexts. Names may be divided into parts of different type that have variable significance depending on context, though the division into parts does not always matter. With personal names, the different parts may or may not be imbued with some implicit meaning; various cultures associate different importance with the name parts and the degree to which systems must care about name parts around the world varies widely.
element definition.requirements:
  value: Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Patient.contact.name
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: HumanName
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: EN (actually, PN)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ProviderName
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: NK1-2
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: name
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: n/a

index: 122
element.id:
  value: Patient.contact.name.id
element definition.path:
  value: Patient.contact.name.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 123
element.id:
  value: Patient.contact.name.extension
element definition.path:
  value: Patient.contact.name.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 124
element.id:
  value: Patient.contact.name.use
element definition.path:
  value: Patient.contact.name.use
element definition.short:
  value: usual | official | temp | nickname | anonymous | old | maiden
element definition.definition:
  value: Identifies the purpose for this name.
element definition.comment:
  value: This is labeled as "Is Modifier" because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old.
element definition.requirements:
  value: Allows the appropriate name for a particular context of use to be selected from among a set of names.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: HumanName.use
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: NameUse
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The use of a human name
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-name-use
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-name-use
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.7, but often indicated by which field contains the name
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./NamePurpose

index: 125
element.id:
  value: Patient.contact.name.text
element definition.path:
  value: Patient.contact.name.text
element definition.short:
  value: Text representation of the full name
element definition.definition:
  value: A full text representation of the name.
element definition.comment:
  value: Can provide both a text representation and structured parts.
element definition.requirements:
  value: A renderable, unencoded form.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: HumanName.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: implied by XPN.11
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./formatted

index: 126
element.id:
  value: Patient.contact.name.family
element definition.path:
  value: Patient.contact.name.family
element definition.short:
  value: Family name (often called 'Surname')
element definition.definition:
  value: The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
element definition.comment:
  value: Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures).
element definition.alias:
  value: surname
  index: 0
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: HumanName.family
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.1/FN.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./part[partType = FAM]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./FamilyName

index: 127
element.id:
  value: Patient.contact.name.given
element definition.path:
  value: Patient.contact.name.given
element definition.short:
  value: Given names (not always 'first'). Includes middle names
element definition.definition:
  value: Given name.
element definition.comment:
  value: If only initials are recorded, they may be used in place of the full name. Not called "first name" since given names do not always come first.
element definition.alias:
  value: first name
  index: 0
element definition.alias:
  value: middle name
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: HumanName.given
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.order meaning:
  value: Given Names appear in the correct order for presenting the name
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.2 + XPN.3
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./part[partType = GIV]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./GivenNames

index: 128
element.id:
  value: Patient.contact.name.prefix
element definition.path:
  value: Patient.contact.name.prefix
element definition.short:
  value: Parts that come before the name
element definition.definition:
  value: Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: HumanName.prefix
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.order meaning:
  value: Prefixes appear in the correct order for presenting the name
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.5
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./part[partType = PFX]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./TitleCode

index: 129
element.id:
  value: Patient.contact.name.suffix
element definition.path:
  value: Patient.contact.name.suffix
element definition.short:
  value: Parts that come after the name
element definition.definition:
  value: Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: HumanName.suffix
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.order meaning:
  value: Suffixes appear in the correct order for presenting the name
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN/4
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./part[partType = SFX]

index: 130
element.id:
  value: Patient.contact.name.period
element definition.path:
  value: Patient.contact.name.period
element definition.short:
  value: Time period when name was/is in use
element definition.definition:
  value: Indicates the period of time when this name was valid for the named person.
element definition.comment:
  value: This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.
element definition.requirements:
  value: Allows names to be placed in historical context.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: HumanName.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: per-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If present, start SHALL have a lower value than end
  element definition.constraint.expression:
    value: start.empty() or end.empty() or (start <= end)
  element definition.constraint.xpath:
    value: not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XPN.13 + XPN.14
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./usablePeriod[type="IVL<TS>"]
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StartDate and ./EndDate

index: 131
element.id:
  value: Patient.contact.name.period.id
element definition.path:
  value: Patient.contact.name.period.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 132
element.id:
  value: Patient.contact.name.period.extension
element definition.path:
  value: Patient.contact.name.period.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 133
element.id:
  value: Patient.contact.name.period.start
element definition.path:
  value: Patient.contact.name.period.start
element definition.short:
  value: Starting time with inclusive boundary
element definition.definition:
  value: The start of the period. The boundary is inclusive.
element definition.comment:
  value: If the low element is missing, the meaning is that the low boundary is not known.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.start
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./low

index: 134
element.id:
  value: Patient.contact.name.period.end
element definition.path:
  value: Patient.contact.name.period.end
element definition.short:
  value: End time with inclusive boundary, if not ongoing
element definition.definition:
  value: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
element definition.comment:
  value: The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.end
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.meaning when missing:
  value: If the end of the period is missing, it means that the period is ongoing
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.2
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./high

index: 135
element.id:
  value: Patient.contact.telecom
element definition.path:
  value: Patient.contact.telecom
element definition.short:
  value: A contact detail for the person
element definition.definition:
  value: A contact detail for the person, e.g. a telephone number or an email address.
element definition.comment:
  value: Contact may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently, and also to help with identification.
element definition.requirements:
  value: People have (primary) ways to contact them in some way such as phone, email.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Patient.contact.telecom
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: ContactPoint
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: cpt-2
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: A system is required if a value is provided.
  element definition.constraint.expression:
    value: value.empty() or system.exists()
  element definition.constraint.xpath:
    value: not(exists(f:value)) or exists(f:system)
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XTN
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: TEL
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ContactPoint
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: NK1-5, NK1-6, NK1-40
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: telecom
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: n/a

index: 136
element.id:
  value: Patient.contact.telecom.id
element definition.path:
  value: Patient.contact.telecom.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 137
element.id:
  value: Patient.contact.telecom.extension
element definition.path:
  value: Patient.contact.telecom.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 138
element.id:
  value: Patient.contact.telecom.system
element definition.path:
  value: Patient.contact.telecom.system
element definition.short:
  value: phone | fax | email | pager | url | sms | other
element definition.definition:
  value: Telecommunications form for contact point - what communications system is required to make use of the contact.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.system
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: cpt-2
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: ContactPointSystem
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: Telecommunications form for contact point
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-contact-point-system
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-contact-point-system
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XTN.3
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./scheme
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./ContactPointType

index: 139
element.id:
  value: Patient.contact.telecom.value
element definition.path:
  value: Patient.contact.telecom.value
element definition.short:
  value: The actual contact point details
element definition.definition:
  value: The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
element definition.comment:
  value: Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value.
element definition.requirements:
  value: Need to support legacy numbers that are not in a tightly controlled format.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.value
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XTN.1 (or XTN.12)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./url
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Value

index: 140
element.id:
  value: Patient.contact.telecom.use
element definition.path:
  value: Patient.contact.telecom.use
element definition.short:
  value: home | work | temp | old | mobile - purpose of this contact point
element definition.definition:
  value: Identifies the purpose for the contact point.
element definition.comment:
  value: This is labeled as "Is Modifier" because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old.
element definition.requirements:
  value: Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.use
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: ContactPointUse
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: Use of contact point
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-contact-point-use
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-contact-point-use
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XTN.2 - but often indicated by field
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./ContactPointPurpose

index: 141
element.id:
  value: Patient.contact.telecom.rank
element definition.path:
  value: Patient.contact.telecom.rank
element definition.short:
  value: Specify preferred order of use (1 = highest)
element definition.definition:
  value: Specifies a preferred order in which to use a set of contacts. Contacts are ranked with lower values coming before higher values.
element definition.comment:
  value: Note that rank does not necessarily follow the order in which the contacts are represented in the instance.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.rank
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: positiveInt
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: n/a

index: 142
element.id:
  value: Patient.contact.telecom.period
element definition.path:
  value: Patient.contact.telecom.period
element definition.short:
  value: Time period when the contact point was/is in use
element definition.definition:
  value: Time period when the contact point was/is in use.
element definition.comment:
  value: This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: ContactPoint.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: per-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If present, start SHALL have a lower value than end
  element definition.constraint.expression:
    value: start.empty() or end.empty() or (start <= end)
  element definition.constraint.xpath:
    value: not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: N/A
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./usablePeriod[type="IVL<TS>"]
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StartDate and ./EndDate

index: 143
element.id:
  value: Patient.contact.telecom.period.id
element definition.path:
  value: Patient.contact.telecom.period.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 144
element.id:
  value: Patient.contact.telecom.period.extension
element definition.path:
  value: Patient.contact.telecom.period.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 145
element.id:
  value: Patient.contact.telecom.period.start
element definition.path:
  value: Patient.contact.telecom.period.start
element definition.short:
  value: Starting time with inclusive boundary
element definition.definition:
  value: The start of the period. The boundary is inclusive.
element definition.comment:
  value: If the low element is missing, the meaning is that the low boundary is not known.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.start
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.1
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./low

index: 146
element.id:
  value: Patient.contact.telecom.period.end
element definition.path:
  value: Patient.contact.telecom.period.end
element definition.short:
  value: End time with inclusive boundary, if not ongoing
element definition.definition:
  value: The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
element definition.comment:
  value: The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Period.end
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime
element definition.meaning when missing:
  value: If the end of the period is missing, it means that the period is ongoing
element definition.condition:
  value: ele-1
  index: 0
element definition.condition:
  value: per-1
  index: 1
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() | (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR.2
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./high

index: 147
element.id:
  value: Patient.contact.address
element definition.path:
  value: Patient.contact.address
element definition.short:
  value: Address for the contact person
element definition.definition:
  value: Address for the contact person.
element definition.comment:
  value: Note: address is for postal addresses, not physical locations.
element definition.requirements:
  value: Need to keep track where the contact person can be contacted per postal mail or visited.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Patient.contact.address
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Address
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: Address
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: NK1-4
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: addr
element definition.mapping:
  index: 6
  element definition.mapping.identity:
    value: cda
  element definition.mapping.map:
    value: n/a

index: 148
element.id:
  value: Patient.contact.address.id
element definition.path:
  value: Patient.contact.address.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 149
element.id:
  value: Patient.contact.address.extension
element definition.path:
  value: Patient.contact.address.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 150
element.id:
  value: Patient.contact.address.use
element definition.path:
  value: Patient.contact.address.use
element definition.short:
  value: home | work | temp | old - purpose of this address
element definition.definition:
  value: The purpose of this address.
element definition.comment:
  value: This is labeled as "Is Modifier" because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old.
element definition.requirements:
  value: Allows an appropriate address to be chosen from a list of many.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.use
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value code:
    value: home
element definition.is modifier:
  value: true
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: AddressUse
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The use of an address
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-address-use
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-address-use
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.7
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./AddressPurpose

index: 151
element.id:
  value: Patient.contact.address.type
element definition.path:
  value: Patient.contact.address.type
element definition.short:
  value: postal | physical | both
element definition.definition:
  value: Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.type
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: code
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value code:
    value: both
element definition.is summary:
  value: true
element definition.binding:
  element.extension:
    index: 0
    extension.url:
      value: https://bluebutton.cms.gov/assets/ig/StructureDefinition-elementdefinition-bindingName
    extension.value string:
      value: AddressType
  element definition.binding.strength:
    value: required
  element definition.binding.description:
    value: The type of an address (physical / postal)
  element definition.binding.value set reference:
    link: https://bluebutton.cms.gov/assets/ig/ValueSet-address-type
    reference.reference:
      value: https://bluebutton.cms.gov/assets/ig/ValueSet-address-type
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.18
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: unique(./use)
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: address type parameter

index: 152
element.id:
  value: Patient.contact.address.text
element definition.path:
  value: Patient.contact.address.text
element definition.short:
  value: Text representation of the address
element definition.definition:
  value: A full text representation of the address.
element definition.comment:
  value: Can provide both a text representation and parts.
element definition.requirements:
  value: A renderable, unencoded form.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.text
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 137 Nowhere Street, Erewhon 9132
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./formatted
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: address label parameter

index: 153
element.id:
  value: Patient.contact.address.line
element definition.path:
  value: Patient.contact.address.line
element definition.short:
  value: Street name, number, direction & P.O. Box etc.
element definition.definition:
  value: This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.requirements:
  value: home | work | temp | old - purpose of this address.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Address.line
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.order meaning:
  value: The order in which lines should appear in an address label
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 137 Nowhere Street
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = AL]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: street
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StreetAddress (newline delimitted)

index: 154
element.id:
  value: Patient.contact.address.city
element definition.path:
  value: Patient.contact.address.city
element definition.short:
  value: Name of city, town etc.
element definition.definition:
  value: The name of the city, town, village or other community or delivery center.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.alias:
  value: Municpality
  index: 0
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.city
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: Erewhon
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.3
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = CTY]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: locality
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Jurisdiction

index: 155
element.id:
  value: Patient.contact.address.district
element definition.path:
  value: Patient.contact.address.district
element definition.short:
  value: District name (aka county)
element definition.definition:
  value: The name of the administrative area (county).
element definition.comment:
  value: District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead.
element definition.alias:
  value: County
  index: 0
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.district
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: Madison
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.9
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = CNT | CPA]

index: 156
element.id:
  value: Patient.contact.address.state
element definition.path:
  value: Patient.contact.address.state
element definition.short:
  value: Sub-unit of country (abbreviations ok)
element definition.definition:
  value: Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.alias:
  value: Province
  index: 0
element definition.alias:
  value: Territory
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.state
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.4
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = STA]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: region
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Region

index: 157
element.id:
  value: Patient.contact.address.postalCode
element definition.path:
  value: Patient.contact.address.postalCode
element definition.short:
  value: Postal code for area
element definition.definition:
  value: A postal code designating a region defined by the postal service.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.alias:
  value: Zip
  index: 0
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.postalCode
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value string:
    value: 9132
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.5
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = ZIP]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: code
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./PostalIdentificationCode

index: 158
element.id:
  value: Patient.contact.address.country
element definition.path:
  value: Patient.contact.address.country
element definition.short:
  value: Country (e.g. can be ISO 3166 2 or 3 letter code)
element definition.definition:
  value: Country - a nation as commonly understood or generally accepted.
element definition.comment:
  value: ISO 3166 3 letter codes can be used in place of a full country name.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.country
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.6
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: AD.part[parttype = CNT]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: vcard
  element definition.mapping.map:
    value: country
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./Country

index: 159
element.id:
  value: Patient.contact.address.period
element definition.path:
  value: Patient.contact.address.period
element definition.short:
  value: Time period when address was/is in use
element definition.definition:
  value: Time period when address was/is in use.
element definition.comment:
  value: This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration.
element definition.requirements:
  value: Allows addresses to be placed in historical context.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Address.period
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period
element definition.example:
  index: 0
  element definition.example.label:
    value: General
  element definition.example.value period:
    period.start:
      value: 2010-03-23
    period.end:
      value: 2010-07-01
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: per-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: If present, start SHALL have a lower value than end
  element definition.constraint.expression:
    value: start.empty() or end.empty() or (start <= end)
  element definition.constraint.xpath:
    value: not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)
element definition.is summary:
  value: true
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: DR
element definition.mapping:
  index: 2
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
element definition.mapping:
  index: 3
  element definition.mapping.identity:
    value: v2
  element definition.mapping.map:
    value: XAD.12 / XAD.13 + XAD.14
element definition.mapping:
  index: 4
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: ./usablePeriod[type="IVL<TS>"]
element definition.mapping:
  index: 5
  element definition.mapping.identity:
    value: servd
  element definition.mapping.map:
    value: ./StartDate and ./EndDate

index: 160
element.id:
  value: Patient.contact.address.period.id
element definition.path:
  value: Patient.contact.address.period.id
element definition.representation:
  value: xmlAttr
  index: 0
element definition.short:
  value: xml:id (or equivalent in JSON)
element definition.definition:
  value: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
element definition.comment:
  value: Note that FHIR strings may not exceed 1MB in size
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: Element.id
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a

index: 161
element.id:
  value: Patient.contact.address.period.extension
element definition.path:
  value: Patient.contact.address.period.extension
element definition.slicing:
  element definition.slicing.discriminator:
    index: 0
    element definition.slicing.discriminator.type:
      value: value
    element definition.slicing.discriminator.path:
      value: url
  element definition.slicing.description:
    value: Extensions are always sliced by (at least) url
  element definition.slicing.rules:
    value: open
element definition.short:
  value: Additional Content defined by implementations
element definition.definition:
  value: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, 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.
element definition.comment:
  value: 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.
element definition.alias:
  value: extensions
  index: 0
element definition.alias:
  value: user content
  index: 1
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: Element.extension
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Extension
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ext-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: Must have either extensions or value[x], not both
  element definition.constraint.expression:
    value: extension.exists() != value.exists()
  element definition.constraint.xpath:
    value: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
element definition.mapping:
  index: 0
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: n/a
element definition.mapping:
  index: 1
  element definition.mapping.identity:
    value: rim
  element definition.mapping.map:
    value: N/A

index: 162
element.id:
  value: Patient.contact.address.period.start
element definition.path:
  value: Patient.contact.address.period.start
element definition.short:
  value: Starting time with inclusive boundary
element definition.definition:
  value: The start of the period. The boundary is inclusive.
element definition.comment:
  value: If the low element is missing, the meaning is that the low boundary is not known.
element definition.min:
  value: 0
element definition.max:
  value: 1