mii-pr-person-patient-pseudonymisiert
type: StructureDefinition
node role: treeRoot
id:
  v: mii-pr-person-patient-pseudonymisiert
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition mii-pr-person-patient-pseudonymisiert Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Patient C 0..* Patient Information about an individual or animal receiving health care services mii-pat-1: Falls die Geschlechtsangabe 'other' gewählt wird, muss die amtliche Differenzierung per Extension angegeben werden id S 0..1 id Logical id of this artifact meta S 0..1 Meta Metadata about the resource profile S 0..* canonical(StructureDefinition) Profiles this resource claims to conform to Slices for identifier S 1..* Identifier Identifier Slice: Unordered, Open by pattern:$this identifier:PseudonymisierterIdentifier S 0..* Identifier Pseudonymisierter Identifikator Required Pattern: At least the following type 1..1 CodeableConcept Description of identifier Fixed Value: (complex) coding 1..* Coding Code defined by a terminology system Fixed Value: (complex) system 1..1 uri Identity of the terminology system Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ObservationValue code 1..1 code Symbol in syntax defined by the system Fixed Value: PSEUDED identifier:AnonymisierterIdentifier S 0..* Identifier Anonymisierter Identifikator Required Pattern: At least the following type 1..1 CodeableConcept Description of identifier Fixed Value: (complex) coding 1..* Coding Code defined by a terminology system Fixed Value: (complex) system 1..1 uri Identity of the terminology system Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ObservationValue code 1..1 code Symbol in syntax defined by the system Fixed Value: ANONYED active S 0..1 boolean Active gender S 0..1 code Administrative gender Slices for extension Content/Rules for all slices extension:other-amtlich S 0..1 Coding Extension administrative gender URL: http://fhir.de/StructureDefinition/gender-amtlich-de Binding: GenderOtherDE ValueSet (required) birthDate SC 0..1 date Date of birth pat-pseuded-1: Das Geburtsdatum MU…
extension:
  url:
    v: https://www.medizininformatik-initiative.de/fhir/modul-meta/StructureDefinition/mii-ex-meta-license-codeable
  value: CodeableConcept
    coding:
      system:
        v: http://hl7.org/fhir/spdx-license
      code:
        v: CC-BY-4.0
      display:
        v: Creative Commons Attribution 4.0 International
url:
  v: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
version:
  v: 2025.0.1
name:
  v: MII_PR_Person_PatientPseudonymisiert
title:
  v: MII PR Person Patient (Pseudonymisiert)
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Patient / Patientin pseudonymisiert
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Patient pseudonymized
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
status:
  v: active
date:
  v: 2025-02-28
publisher:
  v: Medizininformatik Initiative
contact:
  name:
    v: Medizininformatik Initiative
  telecom:
    system:
      v: url
    value:
      v: https://www.medizininformatik-initiative.de/
description:
  v: Dieses Profil beschreibt eine*n pseudonymisierte*n Patient*in in der Medizininformatik-Initiative.
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Demografische und andere administrative Informationen über eine Patientin oder einen Patienten.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Demographics and other administrative information about a patient.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: cda
  uri:
    v: http://hl7.org/v3/cda
  name:
    v: CDA (R2)
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 v2 Mapping
mapping:
  identity:
    v: loinc
  uri:
    v: http://loinc.org
  name:
    v: LOINC code for the element
kind:
  v: resource
abstract:
  v: false
type:
  v: Patient
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Patient
  link: http://hl7.org/fhir/StructureDefinition/Patient
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: Patient
    path:
      v: Patient
    short:
      v: Information about an individual or animal receiving health care services
    definition:
      v: Demographics and other administrative information about an individual or animal receiving care or other health-related services.
    alias:
      v: SubjectOfCare Client Resident
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Patient
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource

v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()

v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
  value: boolean
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation
  value: markdown
    v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.
key:
  v: dom-6
severity:
  v: warning
human:
  v: A resource should have narrative for robust management
expression:
  v: text.`div`.exists()
xpath:
  v: exists(f:text/h:div)
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

key:
  v: dom-5
severity:
  v: error
human:
  v: If a resource is contained in another resource, it SHALL NOT have a security label
expression:
  v: contained.meta.security.empty()
xpath:
  v: not(exists(f:contained/*/f:meta/f:security))
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  link: http://hl7.org/fhir/StructureDefinition/DomainResource

key:
  v: mii-pat-1
severity:
  v: error
human:
  v: Falls die Geschlechtsangabe 'other' gewählt wird, muss die amtliche Differenzierung per Extension angegeben werden
expression:
  v: gender.exists() and gender='other' implies gender.extension('http://fhir.de/StructureDefinition/gender-amtlich-de').exists()
source:
  v: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
  link: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: rim
map:
  v: Patient[classCode=PAT]

identity:
  v: cda
map:
  v: ClinicalDocument.recordTarget.patientRole

id:
  v: Patient.id
path:
  v: Patient.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
must support:
  v: true
is summary:
  v: true

id:
  v: Patient.meta
path:
  v: Patient.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.meta.id
path:
  v: Patient.meta.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.meta.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.meta.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.meta.versionId
path:
  v: Patient.meta.versionId
short:
  v: Version specific identifier
definition:
  v: The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.
comment:
  v: The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.versionId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.meta.lastUpdated
path:
  v: Patient.meta.lastUpdated
short:
  v: When the resource version last changed
definition:
  v: When the resource last changed - e.g. when the version changed.
comment:
  v: This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.lastUpdated
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: instant
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.meta.source
path:
  v: Patient.meta.source
short:
  v: Identifies where the resource comes from
definition:
  v: A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.
comment:
  v: In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Meta.source
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.meta.profile
path:
  v: Patient.meta.profile
short:
  v: Profiles this resource claims to conform to
definition:
  v: A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url).
comment:
  v: It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.profile
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition
    link: http://hl7.org/fhir/StructureDefinition/StructureDefinition
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.meta.security
path:
  v: Patient.meta.security
short:
  v: Security Labels applied to this resource
definition:
  v: Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.
comment:
  v: The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.security
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: SecurityLabels
  strength:
    v: extensible
  description:
    v: Security Labels from the Healthcare Privacy and Security Classification System.
  value set:
    v: http://hl7.org/fhir/ValueSet/security-labels
    link: http://hl7.org/fhir/ValueSet/security-labels
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding

id:
  v: Patient.meta.tag
path:
  v: Patient.meta.tag
short:
  v: Tags applied to this resource
definition:
  v: Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.
comment:
  v: The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Meta.tag
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: Tags
  strength:
    v: example
  description:
    v: Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".
  value set:
    v: http://hl7.org/fhir/ValueSet/common-tags
    link: http://hl7.org/fhir/ValueSet/common-tags
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding

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

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

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

id:
  v: Patient.contained
path:
  v: Patient.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
mapping:
  identity:
    v: rim
  map:
    v: Entity. Role, or Act
mapping:
  identity:
    v: rim
  map:
    v: N/A

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

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

id:
  v: Patient.identifier
path:
  v: Patient.identifier
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: Patienten-Identifikator
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Identifikator
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Identifier
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Ein Identifikator für den/die Patient*in
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Ein Identifikator für den/die Patient*in
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: An identifier for this patient
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
requirements:
  v: Patients are almost always assigned specific numerical identifiers.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Patient.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CX / EI (occasionally, more often EI maps to a resource id or a URL)
mapping:
  identity:
    v: rim
  map:
    v: II - 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]
mapping:
  identity:
    v: servd
  map:
    v: Identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: PID-3
mapping:
  identity:
    v: rim
  map:
    v: id
mapping:
  identity:
    v: cda
  map:
    v: .id

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.identifier:PseudonymisierterIdentifier
path:
  v: Patient.identifier
slice name:
  v: PseudonymisierterIdentifier
short:
  v: Pseudonymisierter Identifikator
definition:
  v: Ein Pseudonym ersetzt einen Originalwert. Die Verarbeitung ist umkehrbar. Zusätzliche Informationen sind erforderlich, um den Originalwert zu rekonstruieren, bspw. eine Trusted Third Party.
requirements:
  v: Patients are almost always assigned specific numerical identifiers.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
pattern: Identifier
  type:
    coding:
      system:
        v: http://terminology.hl7.org/CodeSystem/v3-ObservationValue
      code:
        v: PSEUDED
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CX / EI (occasionally, more often EI maps to a resource id or a URL)
mapping:
  identity:
    v: rim
  map:
    v: II - 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]
mapping:
  identity:
    v: servd
  map:
    v: Identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: PID-3
mapping:
  identity:
    v: rim
  map:
    v: id
mapping:
  identity:
    v: cda
  map:
    v: .id

id:
  v: Patient.identifier:AnonymisierterIdentifier
path:
  v: Patient.identifier
slice name:
  v: AnonymisierterIdentifier
short:
  v: Anonymisierter Identifikator
definition:
  v: Ein Anonymisierter Identifikator ersetzt einen Originalwert. Die Verarbeitung ist unumkehrbar. Der Originalwert kann nicht oder nur mit unverhältnismäßigem Aufwand rekonstruiert werden.
requirements:
  v: Patients are almost always assigned specific numerical identifiers.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
pattern: Identifier
  type:
    coding:
      system:
        v: http://terminology.hl7.org/CodeSystem/v3-ObservationValue
      code:
        v: ANONYED
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CX / EI (occasionally, more often EI maps to a resource id or a URL)
mapping:
  identity:
    v: rim
  map:
    v: II - 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]
mapping:
  identity:
    v: servd
  map:
    v: Identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: PID-3
mapping:
  identity:
    v: rim
  map:
    v: id
mapping:
  identity:
    v: cda
  map:
    v: .id

id:
  v: Patient.active
path:
  v: Patient.active
short:
  v: Aktiv
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Aktiv
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Active
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Gibt an, ob diese Patient-Ressource aktiv verwendet wird.
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Gibt an, ob diese Patient-Ressource aktiv verwendet wird.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Whether this patient's record is in active use
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
comment:
  v: If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.
requirements:
  v: Need to be able to mark a patient record as not to be used because it was created in error.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.active
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: This resource is generally assumed to be active if no value is provided for the active element
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: rim
  map:
    v: statusCode
mapping:
  identity:
    v: cda
  map:
    v: n/a

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.name
path:
  v: Patient.name
short:
  v: A name associated with the patient
definition:
  v: A name associated with the individual.
comment:
  v: 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.
requirements:
  v: Need to be able to track the patient by multiple names. Examples are your official name and a partner name.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.name
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: HumanName
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XPN
mapping:
  identity:
    v: rim
  map:
    v: EN (actually, PN)
mapping:
  identity:
    v: servd
  map:
    v: ProviderName
mapping:
  identity:
    v: v2
  map:
    v: PID-5, PID-9
mapping:
  identity:
    v: rim
  map:
    v: name
mapping:
  identity:
    v: cda
  map:
    v: .patient.name

id:
  v: Patient.telecom
path:
  v: Patient.telecom
short:
  v: A contact detail for the individual
definition:
  v: A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.
comment:
  v: 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 might 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).
requirements:
  v: People have (primary) ways to contact them in some way such as phone, email.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: cpt-2
  severity:
    v: error
  human:
    v: A system is required if a value is provided.
  expression:
    v: value.empty() or system.exists()
  xpath:
    v: not(exists(f:value)) or exists(f:system)
  source:
    v: http://hl7.org/fhir/StructureDefinition/ContactDetail
    link: http://hl7.org/fhir/StructureDefinition/ContactDetail
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XTN
mapping:
  identity:
    v: rim
  map:
    v: TEL
mapping:
  identity:
    v: servd
  map:
    v: ContactPoint
mapping:
  identity:
    v: v2
  map:
    v: PID-13, PID-14, PID-40
mapping:
  identity:
    v: rim
  map:
    v: telecom
mapping:
  identity:
    v: cda
  map:
    v: .telecom

id:
  v: Patient.gender
path:
  v: Patient.gender
short:
  v: Administratives Geschlecht
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Administratives Geschlecht
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Administrative gender
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: männlich | weiblich | andere | unbekannt | unbestimmt | divers
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: männlich | weiblich | andere | unbekannt | unbestimmt | divers
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: male | female | other | unknown | undetermined | diverse
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
comment:
  v: The gender might 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 male and female, though the vast majority of systems and contexts only support male and female. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, 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, chromosomal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a "hard" error. See the Patient Gender and Sex section for additional information about communicating patient gender and sex.
requirements:
  v: Needed for identification of the individual, in combination with (at least) name and birth date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.gender
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AdministrativeGender
  strength:
    v: required
  description:
    v: The gender of a person used for administrative purposes.
  value set:
    v: http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: PID-8
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender
mapping:
  identity:
    v: cda
  map:
    v: .patient.administrativeGenderCode

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.gender.id
path:
  v: Patient.gender.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.gender.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.gender.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.gender.extension:other-amtlich
path:
  v: Patient.gender.extension
slice name:
  v: other-amtlich
short:
  v: Extension Administratives Geschlecht
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Extension Administratives Geschlecht
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Extension administrative gender
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Extension zur genaueren Differenzierung des administrativen Geschlechts
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Extension zur genaueren Differenzierung des administrativen Geschlechts
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Extension for detailed differentiation of administrative gender
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://fhir.de/StructureDefinition/gender-amtlich-de
    link: http://fhir.de/StructureDefinition/gender-amtlich-de
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.gender.value
path:
  v: Patient.gender.value
representation:
  v: xmlAttr
short:
  v: Primitive value for code
definition:
  v: Primitive value for code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: code
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/regex
    value: string
      v: [^\s]+(\s[^\s]+)*
  code:
    v: http://hl7.org/fhirpath/System.String
max length:
  v: 1048576

id:
  v: Patient.birthDate
path:
  v: Patient.birthDate
short:
  v: Geburtsdatum
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Geburtsdatum
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Date of birth
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Das Geburtsdatum der Patientin oder des Patienten
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Das Geburtsdatum der Patientin oder des Patienten
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: The date of birth for the individual
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
comment:
  v: 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 maternity/infant care systems).
requirements:
  v: Age of the individual drives many clinical processes.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.birthDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: pat-pseuded-1
  severity:
    v: error
  human:
    v: Das Geburtsdatum MUSS auf Quartal und Jahr vergröbert werden. Das Jahr SOLLTE NICHT verändert werden. Wenn vorhanden, MUSS der Monat auf den ersten Monat des Quartals abgerundet werden. Die Angabe des Tags ist OPTIONAL. Wenn vorhanden, MUSS der Tag auf den ersten des Monats abgerundet werden. Die Datumsangabe MUSS entweder vierstellig, siebenstellig oder zehnstellig sein.
  expression:
    v: toString().matches('^\\d{4}(-(01|04|07|10)(-01)?)?$')
  source:
    v: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
    link: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: PID-7
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime
mapping:
  identity:
    v: cda
  map:
    v: .patient.birthTime
mapping:
  identity:
    v: loinc
  map:
    v: 21112-8

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.deceased[x]
path:
  v: Patient.deceased[x]
short:
  v: Indicates if the individual is deceased or not
definition:
  v: Indicates if the individual is deceased or not.
comment:
  v: 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.
requirements:
  v: 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.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.deceased[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
type:
  code:
    v: dateTime
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: 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.
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: PID-30 (bool) and PID-29 (datetime)
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.address
path:
  v: Patient.address
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: Adresse
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Adresse
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Address
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Eine Adresse der Patientin oder des Patienten
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Eine Adresse der Patientin oder des Patienten
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: An address for the individual
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
comment:
  v: Patient may have multiple addresses with different uses or applicable periods.
requirements:
  v: May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.address
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Address
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD
mapping:
  identity:
    v: rim
  map:
    v: AD
mapping:
  identity:
    v: servd
  map:
    v: Address
mapping:
  identity:
    v: v2
  map:
    v: PID-11
mapping:
  identity:
    v: rim
  map:
    v: addr
mapping:
  identity:
    v: cda
  map:
    v: .addr

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.address:Strassenanschrift
path:
  v: Patient.address
slice name:
  v: Strassenanschrift
short:
  v: Straßenanschrift
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Straßenanschrift
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Street address
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Eine Straßenanschrift der Patientin oder des Patienten
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Eine Straßenanschrift der Patientin oder des Patienten
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: A street address for the individual
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
comment:
  v: Patient may have multiple addresses with different uses or applicable periods.
requirements:
  v: May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.address
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Address
  profile:
    v: http://fhir.de/StructureDefinition/address-de-basis
    link: http://fhir.de/StructureDefinition/address-de-basis
pattern: Address
  type:
    v: both
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: pat-cnt-2or3-char
  severity:
    v: warning
  human:
    v: The content of the country element (if present) SHALL be selected EITHER from ValueSet ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2 OR MAY be selected from ISO Country Alpha-3 Value Set http://hl7.org/fhir/ValueSet/iso3166-1-3, IF the country is not specified in value Set ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2.
  expression:
    v: country.empty() or (country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2') or country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
  source:
    v: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
    link: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD
mapping:
  identity:
    v: rim
  map:
    v: AD
mapping:
  identity:
    v: servd
  map:
    v: Address
mapping:
  identity:
    v: v2
  map:
    v: PID-11
mapping:
  identity:
    v: rim
  map:
    v: addr
mapping:
  identity:
    v: cda
  map:
    v: .addr

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.address:Strassenanschrift.id
path:
  v: Patient.address.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.address:Strassenanschrift.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.address.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.address:Strassenanschrift.extension:Stadtteil
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.address.extension
slice name:
  v: Stadtteil
short:
  v: Stadt- oder Ortsteil
definition:
  v: A subsection of a municipality.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct
    link: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-precinct
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: ADXP[partType=PRE]

id:
  v: Patient.address:Strassenanschrift.use
path:
  v: Patient.address.use
short:
  v: home | work | temp | old | billing - purpose of this address
definition:
  v: The purpose of this address.
comment:
  v: Applications can assume that an address is current unless it explicitly says that it is temporary or old.
requirements:
  v: Allows an appropriate address to be chosen from a list of many.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Address.use
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
example:
  label:
    v: General
  value: code
    v: home
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not mistake a temporary or old address etc.for a current/permanent one
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AddressUse
  strength:
    v: required
  description:
    v: The use of an address.
  value set:
    v: http://hl7.org/fhir/ValueSet/address-use|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD.7
mapping:
  identity:
    v: rim
  map:
    v: unique(./use)
mapping:
  identity:
    v: servd
  map:
    v: ./AddressPurpose

id:
  v: Patient.address:Strassenanschrift.type
path:
  v: Patient.address.type
short:
  v: postal | physical | both
definition:
  v: Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
comment:
  v: The definition of Address states that "address is intended to describe postal addresses, not physical locations". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Address.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
example:
  label:
    v: General
  value: code
    v: both
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AddressType
  strength:
    v: required
  description:
    v: The type of an address (physical / postal).
  value set:
    v: http://hl7.org/fhir/ValueSet/address-type|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD.18
mapping:
  identity:
    v: rim
  map:
    v: unique(./use)
mapping:
  identity:
    v: vcard
  map:
    v: address type parameter

id:
  v: Patient.address:Strassenanschrift.text
path:
  v: Patient.address.text
short:
  v: Text representation of the address
definition:
  v: Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts.
comment:
  v: Can provide both a text representation and parts. Applications updating an address SHALL ensure that when both text and parts are present, no content is included in the text that isn't found in a part.
requirements:
  v: A renderable, unencoded form.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Address.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value: string
    v: 137 Nowhere Street, Erewhon 9132
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6
mapping:
  identity:
    v: rim
  map:
    v: ./formatted
mapping:
  identity:
    v: vcard
  map:
    v: address label parameter

id:
  v: Patient.address:Strassenanschrift.line
path:
  v: Patient.address.line
short:
  v: Straßenname mit Hausnummer oder Postfach sowie weitere Angaben zur Zustellung
definition:
  v: Diese Komponente kann Straßennamen, Hausnummer, Appartmentnummer, Postfach, c/o sowie weitere Zustellungshinweise enthalten. Die Informationen können in mehrere line-Komponenten aufgeteilt werden. Bei Verwendung der Extensions, um Straße, Hausnnummer und Postleitzahl strukturiert zu übermitteln, müssen diese Informationen stets vollständig auch in der line-Komponente, die sie erweitern, enthalten sein, um es Systemen, die diese Extensions nicht verwenden zu ermöglichen, auf diese Informationen zugreifen zu können.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
min:
  v: 0
max:
  v: 3
base:
  path:
    v: Address.line
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
order meaning:
  v: The order in which lines should appear in an address label
example:
  label:
    v: General
  value: string
    v: 137 Nowhere Street
example:
  label:
    v: Beipiel für Adresszeile mit Extensions für Straße und Hausnummer
  value: string
    v: Musterweg 42
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName
      value: string
        v: Musterweg
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber
      value: string
        v: 42
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)
mapping:
  identity:
    v: rim
  map:
    v: AD.part[parttype = AL]
mapping:
  identity:
    v: vcard
  map:
    v: street
mapping:
  identity:
    v: servd
  map:
    v: ./StreetAddress (newline delimitted)

id:
  v: Patient.address:Strassenanschrift.line.id
path:
  v: Patient.address.line.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.address:Strassenanschrift.line.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.address.line.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.address:Strassenanschrift.line.extension:Strasse
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.address.line.extension
slice name:
  v: Strasse
short:
  v: Strassenname (ohne Hausnummer)
definition:
  v: Strassenname (ohne Hausnummer) Bei Angabe einer Strasse in dieser Extension muss diese auch in Address.line angegeben werden um die Interoperabilität mit Systemen zu gewährleisten, die diese Extension nicht verwenden.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName
    link: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-streetName
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: ADXP[partType=STR]

id:
  v: Patient.address:Strassenanschrift.line.extension:Hausnummer
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.address.line.extension
slice name:
  v: Hausnummer
short:
  v: Hausnummer
definition:
  v: Hausnummer, sowie Zusätze (Appartmentnummer, Etage...) Bei Angabe einer Hausnummer in dieser Extension muss diese auch in Address.line angegeben werden um die Interoperabilität mit Systemen zu gewährleisten, die diese Extension nicht verwenden.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber
    link: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: ADXP[partType=BNR]

id:
  v: Patient.address:Strassenanschrift.line.extension:Adresszusatz
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.address.line.extension
slice name:
  v: Adresszusatz
short:
  v: Adresszusatz
definition:
  v: Zusätzliche Informationen, wie z.B. "3. Etage", "Appartment C" Bei Angabe einer Zusatzinformation in dieser Extension muss diese auch in Address.line angegeben werden um die Interoperabilität mit Systemen zu gewährleisten, die diese Extension nicht verwenden.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator
    link: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-additionalLocator
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: ADXP[partType=ADL]

id:
  v: Patient.address:Strassenanschrift.line.extension:Postfach
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.address.line.extension
slice name:
  v: Postfach
short:
  v: Postfach
definition:
  v: Postfach-Adresse. Bei Angabe eines Postfaches in dieser Extension muss das Postfach auch in Address.line angegeben werden um die Interoperabilität mit Systemen zu gewährleisten, die diese Extension nicht verwenden. Eine Postfach-Adresse darf nicht in Verbindung mit Address.type "physical" oder "both" verwendet werden.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox
    link: http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-postBox
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: ADXP[partType=POB]

id:
  v: Patient.address:Strassenanschrift.line.value
path:
  v: Patient.address.line.value
representation:
  v: xmlAttr
short:
  v: Primitive value for string
definition:
  v: Primitive value for string
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/regex
    value: string
      v: [ \r\n\t\S]+
  code:
    v: http://hl7.org/fhirpath/System.String
max length:
  v: 1048576

id:
  v: Patient.address:Strassenanschrift.city
path:
  v: Patient.address.city
short:
  v: Name of city, town etc.
definition:
  v: The name of the city, town, suburb, village or other community or delivery center.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
alias:
  v: Municpality
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Address.city
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value: string
    v: Erewhon
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD.3
mapping:
  identity:
    v: rim
  map:
    v: AD.part[parttype = CTY]
mapping:
  identity:
    v: vcard
  map:
    v: locality
mapping:
  identity:
    v: servd
  map:
    v: ./Jurisdiction

id:
  v: Patient.address:Strassenanschrift.city.id
path:
  v: Patient.address.city.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.address:Strassenanschrift.city.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.address.city.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.address:Strassenanschrift.city.extension:gemeindeschluessel
path:
  v: Patient.address.city.extension
slice name:
  v: gemeindeschluessel
short:
  v: Optional Extensions Element
definition:
  v: Optional Extension Element - found in all resources.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: http://fhir.de/StructureDefinition/destatis/ags
    link: http://fhir.de/StructureDefinition/destatis/ags
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.address:Strassenanschrift.city.value
path:
  v: Patient.address.city.value
representation:
  v: xmlAttr
short:
  v: Primitive value for string
definition:
  v: Primitive value for string
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/regex
    value: string
      v: [ \r\n\t\S]+
  code:
    v: http://hl7.org/fhirpath/System.String
max length:
  v: 1048576

id:
  v: Patient.address:Strassenanschrift.district
path:
  v: Patient.address.district
short:
  v: District name (aka county)
definition:
  v: The name of the administrative area (county).
comment:
  v: 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.
alias:
  v: County
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Address.district
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value: string
    v: Madison
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD.9
mapping:
  identity:
    v: rim
  map:
    v: AD.part[parttype = CNT | CPA]

id:
  v: Patient.address:Strassenanschrift.state
path:
  v: Patient.address.state
short:
  v: Bundesland
definition:
  v: Name (oder Kürzel) des Bundeslandes.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
alias:
  v: Province
alias:
  v: Territory
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Address.state
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  strength:
    v: preferred
  value set:
    v: http://fhir.de/ValueSet/iso/bundeslaender
    link: http://fhir.de/ValueSet/iso/bundeslaender
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD.4
mapping:
  identity:
    v: rim
  map:
    v: AD.part[parttype = STA]
mapping:
  identity:
    v: vcard
  map:
    v: region
mapping:
  identity:
    v: servd
  map:
    v: ./Region

id:
  v: Patient.address:Strassenanschrift.postalCode
path:
  v: Patient.address.postalCode
short:
  v: Postleitzahl
definition:
  v: Postleitzahl gemäß der im jeweiligen Land gültigen Konventionen
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
alias:
  v: Zip
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Address.postalCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value: string
    v: 9132
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: pat-pseuded-2
  severity:
    v: error
  human:
    v: Die Postleitzahl MUSS auf die ersten beiden Ziffern vergröbert werden.
  expression:
    v: length() = 2
  source:
    v: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
    link: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD.5
mapping:
  identity:
    v: rim
  map:
    v: AD.part[parttype = ZIP]
mapping:
  identity:
    v: vcard
  map:
    v: code
mapping:
  identity:
    v: servd
  map:
    v: ./PostalIdentificationCode

id:
  v: Patient.address:Strassenanschrift.country
path:
  v: Patient.address.country
short:
  v: Staat
definition:
  v: Staat (vorzugsweise als 2-Stelliger ISO-Ländercode). Es obliegt abgeleiteten Profilen, hier die Verwendung der ISO-Ländercodes verbindlich vorzuschreiben
comment:
  v: ISO 3166 3 letter codes can be used in place of a human readable country name.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Address.country
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is summary:
  v: true
binding:
  strength:
    v: preferred
  value set:
    v: http://hl7.org/fhir/ValueSet/iso3166-1-2
    link: http://hl7.org/fhir/ValueSet/iso3166-1-2
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD.6
mapping:
  identity:
    v: rim
  map:
    v: AD.part[parttype = CNT]
mapping:
  identity:
    v: vcard
  map:
    v: country
mapping:
  identity:
    v: servd
  map:
    v: ./Country

id:
  v: Patient.address:Strassenanschrift.period
path:
  v: Patient.address.period
short:
  v: Time period when address was/is in use
definition:
  v: Time period when address was/is in use.
comment:
  v: 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"). Period is not used for a duration (a measure of elapsed time). See [Duration](http://hl7.org/fhir/R4/datatypes.html#Duration).
requirements:
  v: Allows addresses to be placed in historical context.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Address.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
example:
  label:
    v: General
  value: Period
    start:
      v: 2010-03-23
    end:
      v: 2010-07-01
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: per-1
  severity:
    v: error
  human:
    v: If present, start SHALL have a lower value than end
  expression:
    v: start.hasValue().not() or end.hasValue().not() or (start <= end)
  xpath:
    v: not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))
  source:
    v: http://hl7.org/fhir/StructureDefinition/Identifier
    link: http://hl7.org/fhir/StructureDefinition/Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: DR
mapping:
  identity:
    v: rim
  map:
    v: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
mapping:
  identity:
    v: v2
  map:
    v: XAD.12 / XAD.13 + XAD.14
mapping:
  identity:
    v: rim
  map:
    v: ./usablePeriod[type="IVL<TS>"]
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

id:
  v: Patient.maritalStatus
path:
  v: Patient.maritalStatus
short:
  v: Marital (civil) status of a patient
definition:
  v: This field contains a patient's most recent marital (civil) status.
comment:
  v: 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.
requirements:
  v: Most, if not all systems capture it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.maritalStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: MaritalStatus
  strength:
    v: extensible
  description:
    v: The domestic partnership status of a person.
  value set:
    v: http://hl7.org/fhir/ValueSet/marital-status
    link: http://hl7.org/fhir/ValueSet/marital-status
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: v2
  map:
    v: PID-16
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=PSN]/maritalStatusCode
mapping:
  identity:
    v: cda
  map:
    v: .patient.maritalStatusCode

id:
  v: Patient.multipleBirth[x]
path:
  v: Patient.multipleBirth[x]
short:
  v: Whether patient is part of a multiple birth
definition:
  v: Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).
comment:
  v: Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).
requirements:
  v: For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.multipleBirth[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
type:
  code:
    v: integer
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: PID-24 (bool), PID-25 (integer)
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.photo
path:
  v: Patient.photo
short:
  v: Image of the patient
definition:
  v: Image of the patient.
comment:
  v: Guidelines: * Use id photos, not clinical photos. * Limit dimensions to thumbnail. * Keep byte count low to ease resource updates.
requirements:
  v: Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.photo
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Attachment
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: att-1
  severity:
    v: error
  human:
    v: If the Attachment has data, it SHALL have a contentType
  expression:
    v: data.empty() or contentType.exists()
  xpath:
    v: not(exists(f:data)) or exists(f:contentType)
  source:
    v: http://hl7.org/fhir/StructureDefinition/SubstanceSpecification
    link: http://hl7.org/fhir/StructureDefinition/SubstanceSpecification
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: ED/RP
mapping:
  identity:
    v: rim
  map:
    v: ED
mapping:
  identity:
    v: v2
  map:
    v: OBX-5 - needs a profile
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.contact
path:
  v: Patient.contact
short:
  v: A contact party (e.g. guardian, partner, friend) for the patient
definition:
  v: A contact party (e.g. guardian, partner, friend) for the patient.
comment:
  v: 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.
requirements:
  v: Need to track people you can contact about the patient.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.contact
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: pat-1
  severity:
    v: error
  human:
    v: SHALL at least contain a contact's details or a reference to an organization
  expression:
    v: name.exists() or telecom.exists() or address.exists() or organization.exists()
  xpath:
    v: exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.contact.id
path:
  v: Patient.contact.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.contact.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.contact.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.contact.modifierExtension
path:
  v: Patient.contact.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.contact.relationship
path:
  v: Patient.contact.relationship
short:
  v: The kind of relationship
definition:
  v: The nature of the relationship between the patient and the contact person.
comment:
  v: 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.
requirements:
  v: Used to determine which contact person is the most relevant to approach, depending on circumstances.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.contact.relationship
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: ContactRelationship
  strength:
    v: extensible
  description:
    v: The nature of the relationship between a patient and a contact person for that patient.
  value set:
    v: http://hl7.org/fhir/ValueSet/patient-contactrelationship
    link: http://hl7.org/fhir/ValueSet/patient-contactrelationship
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: v2
  map:
    v: NK1-7, NK1-3
mapping:
  identity:
    v: rim
  map:
    v: code
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.contact.name
path:
  v: Patient.contact.name
short:
  v: A name associated with the contact person
definition:
  v: A name associated with the contact person.
comment:
  v: 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 might or might 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.
requirements:
  v: Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.contact.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: HumanName
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XPN
mapping:
  identity:
    v: rim
  map:
    v: EN (actually, PN)
mapping:
  identity:
    v: servd
  map:
    v: ProviderName
mapping:
  identity:
    v: v2
  map:
    v: NK1-2
mapping:
  identity:
    v: rim
  map:
    v: name
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.contact.telecom
path:
  v: Patient.contact.telecom
short:
  v: A contact detail for the person
definition:
  v: A contact detail for the person, e.g. a telephone number or an email address.
comment:
  v: 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.
requirements:
  v: People have (primary) ways to contact them in some way such as phone, email.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.contact.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: cpt-2
  severity:
    v: error
  human:
    v: A system is required if a value is provided.
  expression:
    v: value.empty() or system.exists()
  xpath:
    v: not(exists(f:value)) or exists(f:system)
  source:
    v: http://hl7.org/fhir/StructureDefinition/ContactDetail
    link: http://hl7.org/fhir/StructureDefinition/ContactDetail
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XTN
mapping:
  identity:
    v: rim
  map:
    v: TEL
mapping:
  identity:
    v: servd
  map:
    v: ContactPoint
mapping:
  identity:
    v: v2
  map:
    v: NK1-5, NK1-6, NK1-40
mapping:
  identity:
    v: rim
  map:
    v: telecom
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.contact.address
path:
  v: Patient.contact.address
short:
  v: Address for the contact person
definition:
  v: Address for the contact person.
comment:
  v: Note: address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates. Postal addresses are often used as proxies for physical locations (also see the [Location](http://hl7.org/fhir/R4/location.html#) resource).
requirements:
  v: Need to keep track where the contact person can be contacted per postal mail or visited.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.contact.address
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Address
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD
mapping:
  identity:
    v: rim
  map:
    v: AD
mapping:
  identity:
    v: servd
  map:
    v: Address
mapping:
  identity:
    v: v2
  map:
    v: NK1-4
mapping:
  identity:
    v: rim
  map:
    v: addr
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.contact.gender
path:
  v: Patient.contact.gender
short:
  v: male | female | other | unknown
definition:
  v: Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Needed to address the person correctly.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.contact.gender
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: AdministrativeGender
  strength:
    v: required
  description:
    v: The gender of a person used for administrative purposes.
  value set:
    v: http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: NK1-15
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.contact.organization
path:
  v: Patient.contact.organization
short:
  v: Organization that is associated with the contact
definition:
  v: Organization on behalf of which the contact is acting or for which the contact is working.
comment:
  v: References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.
requirements:
  v: For guardians or business related contacts, the organization is relevant.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.contact.organization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
condition:
  v: ele-1
condition:
  v: pat-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: 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, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: v2
  map:
    v: NK1-13, NK1-30, NK1-31, NK1-32, NK1-41
mapping:
  identity:
    v: rim
  map:
    v: scoper
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.contact.period
path:
  v: Patient.contact.period
short:
  v: The period during which this contact person or organization is valid to be contacted relating to this patient
definition:
  v: The period during which this contact person or organization is valid to be contacted relating to this patient.
comment:
  v: 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"). Period is not used for a duration (a measure of elapsed time). See [Duration](http://hl7.org/fhir/R4/datatypes.html#Duration).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.contact.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: per-1
  severity:
    v: error
  human:
    v: If present, start SHALL have a lower value than end
  expression:
    v: start.hasValue().not() or end.hasValue().not() or (start <= end)
  xpath:
    v: not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))
  source:
    v: http://hl7.org/fhir/StructureDefinition/Library
    link: http://hl7.org/fhir/StructureDefinition/Library
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: DR
mapping:
  identity:
    v: rim
  map:
    v: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
mapping:
  identity:
    v: rim
  map:
    v: effectiveTime
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.communication
path:
  v: Patient.communication
short:
  v: A language which may be used to communicate with the patient about his or her health
definition:
  v: A language which may be used to communicate with the patient about his or her health.
comment:
  v: If no language is specified, this *implies* that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple Patient.Communication associations. For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.
requirements:
  v: If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency are important things to keep track of both for patient and other persons of interest.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.communication
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: LanguageCommunication
mapping:
  identity:
    v: cda
  map:
    v: patient.languageCommunication

id:
  v: Patient.communication.id
path:
  v: Patient.communication.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.communication.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.communication.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.communication.modifierExtension
path:
  v: Patient.communication.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.communication.language
path:
  v: Patient.communication.language
short:
  v: The language which can be used to communicate with the patient about his or her health
definition:
  v: The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. "en" for English, or "en-US" for American English versus "en-EN" for England English.
comment:
  v: The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.
requirements:
  v: Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Patient.communication.language
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    value: canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    link: http://hl7.org/fhir/ValueSet/languages
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: v2
  map:
    v: PID-15, LAN-2
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code
mapping:
  identity:
    v: cda
  map:
    v: .languageCode

id:
  v: Patient.communication.preferred
path:
  v: Patient.communication.preferred
short:
  v: Language preference indicator
definition:
  v: Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).
comment:
  v: This language is specifically identified for communicating healthcare information.
requirements:
  v: People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.communication.preferred
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: PID-15
mapping:
  identity:
    v: rim
  map:
    v: preferenceInd
mapping:
  identity:
    v: cda
  map:
    v: .preferenceInd

id:
  v: Patient.generalPractitioner
path:
  v: Patient.generalPractitioner
short:
  v: Patient's nominated primary care provider
definition:
  v: Patient's nominated care provider.
comment:
  v: This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles. It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources. Multiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a "fly-in/fly-out" worker that has the onsite GP also included with his home GP to remain aware of medical issues. Jurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.
alias:
  v: careProvider
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.generalPractitioner
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: 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, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: v2
  map:
    v: PD1-4
mapping:
  identity:
    v: rim
  map:
    v: subjectOf.CareEvent.performer.AssignedEntity
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.managingOrganization
path:
  v: Patient.managingOrganization
short:
  v: Organization that is the custodian of the patient record
definition:
  v: Organization that is the custodian of the patient record.
comment:
  v: There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).
requirements:
  v: Need to know who recognizes this patient record, manages and updates it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Patient.managingOrganization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: 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, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: rim
  map:
    v: scoper
mapping:
  identity:
    v: cda
  map:
    v: .providerOrganization

id:
  v: Patient.link
path:
  v: Patient.link
short:
  v: Link to another patient resource that concerns the same actual person
definition:
  v: Link to another patient resource that concerns the same actual patient.
comment:
  v: There is no assumption that linked patient records have mutual links.
requirements:
  v: There are multiple use cases: * Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and * Distribution of patient information across multiple servers.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Patient.link
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: outboundLink
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.link.id
path:
  v: Patient.link.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Patient.link.extension
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value: code
    v: normative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version
  value: code
    v: 4.0.0
path:
  v: Patient.link.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.link.modifierExtension
path:
  v: Patient.link.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Patient.link.other
path:
  v: Patient.link.other
short:
  v: The other patient or related person resource that the link refers to
definition:
  v: The other patient resource that the link refers to.
comment:
  v: Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Patient.link.other
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
    value: boolean
      v: false
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    link: http://hl7.org/fhir/StructureDefinition/RelatedPerson
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: 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, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    link: http://hl7.org/fhir/StructureDefinition/Observation
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: v2
  map:
    v: PID-3, MRG-1
mapping:
  identity:
    v: rim
  map:
    v: id
mapping:
  identity:
    v: cda
  map:
    v: n/a

id:
  v: Patient.link.type
path:
  v: Patient.link.type
short:
  v: replaced-by | replaces | refer | seealso
definition:
  v: The type of link between this patient resource and another patient resource.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Patient.link.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: LinkType
  strength:
    v: required
  description:
    v: The type of link between this patient resource and another patient resource.
  value set:
    v: http://hl7.org/fhir/ValueSet/link-type|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: typeCode
mapping:
  identity:
    v: cda
  map:
    v: n/a

element:
  id:
    v: Patient
  path:
    v: Patient
  constraint:
    key:
      v: mii-pat-1
    severity:
      v: error
    human:
      v: Falls die Geschlechtsangabe 'other' gewählt wird, muss die amtliche Differenzierung per Extension angegeben werden
    expression:
      v: gender.exists() and gender='other' implies gender.extension('http://fhir.de/StructureDefinition/gender-amtlich-de').exists()
    source:
      v: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
      link: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
element:
  id:
    v: Patient.id
  path:
    v: Patient.id
  must support:
    v: true
element:
  id:
    v: Patient.meta
  path:
    v: Patient.meta
  must support:
    v: true
element:
  id:
    v: Patient.meta.profile
  path:
    v: Patient.meta.profile
  must support:
    v: true
element:
  id:
    v: Patient.identifier
  path:
    v: Patient.identifier
  slicing:
    discriminator:
      type:
        v: pattern
      path:
        v: $this
    rules:
      v: open
  short:
    v: Patienten-Identifikator
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
  definition:
    v: Ein Identifikator für den/die Patient*in
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: Patient.identifier:PseudonymisierterIdentifier
  path:
    v: Patient.identifier
  slice name:
    v: PseudonymisierterIdentifier
  short:
    v: Pseudonymisierter Identifikator
  definition:
    v: Ein Pseudonym ersetzt einen Originalwert. Die Verarbeitung ist umkehrbar. Zusätzliche Informationen sind erforderlich, um den Originalwert zu rekonstruieren, bspw. eine Trusted Third Party.
  min:
    v: 0
  max:
    v: *
  pattern: Identifier
  must support:
    v: true
element:
  id:
    v: Patient.identifier:AnonymisierterIdentifier
  path:
    v: Patient.identifier
  slice name:
    v: AnonymisierterIdentifier
  short:
    v: Anonymisierter Identifikator
  definition:
    v: Ein Anonymisierter Identifikator ersetzt einen Originalwert. Die Verarbeitung ist unumkehrbar. Der Originalwert kann nicht oder nur mit unverhältnismäßigem Aufwand rekonstruiert werden.
  min:
    v: 0
  max:
    v: *
  pattern: Identifier
  must support:
    v: true
element:
  id:
    v: Patient.active
  path:
    v: Patient.active
  short:
    v: Aktiv
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
  definition:
    v: Gibt an, ob diese Patient-Ressource aktiv verwendet wird.
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
  must support:
    v: true
element:
  id:
    v: Patient.gender
  path:
    v: Patient.gender
  short:
    v: Administratives Geschlecht
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
  definition:
    v: männlich | weiblich | andere | unbekannt | unbestimmt | divers
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
    extension:
      extension:
        value: code
      extension:
        value: string
      url:
        v: http://hl7.org/fhir/StructureDefinition/translation
  must support:
    v: true

v: lang

code
v: de-DE

v: content

string
v: Identifikator
extension:
  extension:
    value: code
      v: SHALL:display
  extension:
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

v: lang

code
v: en-US

v: content

string
v: Identifier
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:display
  extension:
    url:
      v: actor
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation

v: lang

code
v: de-DE

v: content

string
v: Ein Identifikator für den/die Patient*in
extension:
  extension:
    value: code
      v: SHALL:display
  extension:
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

v: lang

code
v: en-US

v: content

string
v: An identifier for this patient
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:display
  extension:
    url:
      v: actor
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation

v: PSEUDED

v: ANONYED

v: lang

code
v: de-DE

v: content

string
v: Aktiv
extension:
  extension:
    value: code
      v: SHALL:display
  extension:
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

v: lang

code
v: en-US

v: content

string
v: Active
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:display
  extension:
    url:
      v: actor
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation

v: lang

code
v: de-DE

v: content

string
v: Gibt an, ob diese Patient-Ressource aktiv verwendet wird.
extension:
  extension:
    value: code
      v: SHALL:display
  extension:
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

v: lang

code
v: en-US

v: content

string
v: Whether this patient's record is in active use
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:display
  extension:
    url:
      v: actor
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation

v: lang

code
v: de-DE

v: content

string
v: Administratives Geschlecht
extension:
  extension:
    value: code
      v: SHALL:display
  extension:
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

v: lang

code
v: en-US

v: content

string
v: Administrative gender
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:display
  extension:
    url:
      v: actor
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation

v: lang

code
v: de-DE

v: content

string
v: männlich | weiblich | andere | unbekannt | unbestimmt | divers
extension:
  extension:
    value: code
      v: SHALL:display
  extension:
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

v: lang

code
v: en-US

v: content

string
v: male | female | other | unknown | undetermined | diverse
extension:
  extension:
    url:
      v: code
    value: code
      v: SHALL:display
  extension:
    url:
      v: actor
    value: canonical
      v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
      link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.gender.extension:other-amtlich
path:
  v: Patient.gender.extension
slice name:
  v: other-amtlich
short:
  v: Extension Administratives Geschlecht
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Extension Administratives Geschlecht
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Extension administrative gender
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Extension zur genaueren Differenzierung des administrativen Geschlechts
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Extension zur genaueren Differenzierung des administrativen Geschlechts
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Extension for detailed differentiation of administrative gender
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Extension
  profile:
    v: http://fhir.de/StructureDefinition/gender-amtlich-de
    link: http://fhir.de/StructureDefinition/gender-amtlich-de
must support:
  v: true

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.birthDate
path:
  v: Patient.birthDate
short:
  v: Geburtsdatum
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Geburtsdatum
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Date of birth
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Das Geburtsdatum der Patientin oder des Patienten
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Das Geburtsdatum der Patientin oder des Patienten
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: The date of birth for the individual
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
constraint:
  key:
    v: pat-pseuded-1
  severity:
    v: error
  human:
    v: Das Geburtsdatum MUSS auf Quartal und Jahr vergröbert werden. Das Jahr SOLLTE NICHT verändert werden. Wenn vorhanden, MUSS der Monat auf den ersten Monat des Quartals abgerundet werden. Die Angabe des Tags ist OPTIONAL. Wenn vorhanden, MUSS der Tag auf den ersten des Monats abgerundet werden. Die Datumsangabe MUSS entweder vierstellig, siebenstellig oder zehnstellig sein.
  expression:
    v: toString().matches('^\\d{4}(-(01|04|07|10)(-01)?)?$')
  source:
    v: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
    link: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
must support:
  v: true

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.address
path:
  v: Patient.address
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: Adresse
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Adresse
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Address
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Eine Adresse der Patientin oder des Patienten
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Eine Adresse der Patientin oder des Patienten
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: An address for the individual
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
must support:
  v: true

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.address:Strassenanschrift
path:
  v: Patient.address
slice name:
  v: Strassenanschrift
short:
  v: Straßenanschrift
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Straßenanschrift
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: Street address
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
definition:
  v: Eine Straßenanschrift der Patientin oder des Patienten
  extension:
    extension:
      url:
        v: lang
      value: code
        v: de-DE
    extension:
      url:
        v: content
      value: string
        v: Eine Straßenanschrift der Patientin oder des Patienten
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
  extension:
    extension:
      url:
        v: lang
      value: code
        v: en-US
    extension:
      url:
        v: content
      value: string
        v: A street address for the individual
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
min:
  v: 0
max:
  v: *
type:
  code:
    v: Address
  profile:
    v: http://fhir.de/StructureDefinition/address-de-basis
    link: http://fhir.de/StructureDefinition/address-de-basis
pattern: Address
  type:
    v: both
constraint:
  key:
    v: pat-cnt-2or3-char
  severity:
    v: warning
  human:
    v: The content of the country element (if present) SHALL be selected EITHER from ValueSet ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2 OR MAY be selected from ISO Country Alpha-3 Value Set http://hl7.org/fhir/ValueSet/iso3166-1-3, IF the country is not specified in value Set ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2.
  expression:
    v: country.empty() or (country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-2') or country.memberOf('http://hl7.org/fhir/ValueSet/iso3166-1-3'))
  source:
    v: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
    link: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
must support:
  v: true

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

extension:
  value: code
    v: SHALL:display
extension:
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal

extension:
  url:
    v: code
  value: code
    v: SHALL:display
extension:
  url:
    v: actor
  value: canonical
    v: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
    link: https://www.medizininformatik-initiative.de/fhir/ActorDefinition/HealthResearchDataPortal
url:
  v: http://hl7.org/fhir/StructureDefinition/obligation

id:
  v: Patient.address:Strassenanschrift.type
path:
  v: Patient.address.type
min:
  v: 1
must support:
  v: true

id:
  v: Patient.address:Strassenanschrift.city.extension:gemeindeschluessel
path:
  v: Patient.address.city.extension
slice name:
  v: gemeindeschluessel
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Extension
  profile:
    v: http://fhir.de/StructureDefinition/destatis/ags
    link: http://fhir.de/StructureDefinition/destatis/ags
must support:
  v: true

id:
  v: Patient.address:Strassenanschrift.postalCode
path:
  v: Patient.address.postalCode
min:
  v: 1
constraint:
  key:
    v: pat-pseuded-2
  severity:
    v: error
  human:
    v: Die Postleitzahl MUSS auf die ersten beiden Ziffern vergröbert werden.
  expression:
    v: length() = 2
  source:
    v: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
    link: https://www.medizininformatik-initiative.de/fhir/core/modul-person/StructureDefinition/PatientPseudonymisiert
must support:
  v: true

id:
  v: Patient.address:Strassenanschrift.country
path:
  v: Patient.address.country
min:
  v: 1
must support:
  v: true