MopedTransferEncounter
type: StructureDefinition
node role: treeRoot
id:
  v: MopedTransferEncounter
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition MopedTransferEncounter Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Encounter Encounter #xD; status O 1..1 code planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown Obligations Actor SHALL:populate Moped KH Actor SHALL:handle Moped Device Actor #xD; type O 1..* CodeableConcept Specific type of encounter (e.g. e-mail consultation, surgical day-care, ...) Required Pattern: At least the following Obligations Actor SHALL:populate Moped KH Actor #xD; coding 1..* Coding Code defined by a terminology system Fixed Value: (Complex) #xD; system 1..1 uri Identity of the terminology system Fixed Value: https://elga.moped.at/CodeSystem/MopedEncounterTypesCS #xD; code 1..1 code Symbol in syntax defined by the system Fixed Value: TENC #xD; Slices for serviceType 1..* CodeableReference(HealthcareService) Specific type of service Slice: Unordered, Open by profile:reference.resolve() #xD; serviceType:MopedServiceType 1..1 CodeableReference(MOPED KH Organisationseinheiten) LKF: Hauptkostenstelle – Funktionscode/Fachgebiet; KaOrg: Funktionscode der Abteilung lt. LKF; KaOrg: Funktionssubcode der Abteilung lt. LKF; KaOrg: Abteilung - Funktionscode der Ambulanz; KaOrg: Abteilung - Funktionssubcode der Ambulanz #xD; reference O 0..1 Reference() Reference to a resource (by instance) Obligations Actor SHALL:populate Moped KH Actor #xD; subject O 1..1 Reference(MOPED Patient) The patient or group related to this encounter Obligations Actor SHALL:handle Moped Device Actor #xD; subjectStatus O 0..1 CodeableConcept LKF: Physische Anwesenheit Obligations Actor SHALL:populate Moped KH Actor #xD; partOf O 1..1 Reference(MOPED Encounter) Another Encounter this encounter is part of Obligations Actor SHALL:handle Moped Device Actor #xD; Slices for participant 0..* BackboneElement List of participants involved in the encounter Slice: U…
url:
  v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  l: MopedTransferEncounter
version:
  v: 0.1.0
name:
  v: MopedTransferEncounter
title:
  v: MOPED TransferEncounter
status:
  v: draft
date:
  v: 2026-04-07T18:58:54+00:00
publisher:
  v: ELGA GmbH
contact:
  name:
    v: ELGA GmbH
  telecom:
    system:
      v: url
    value:
      v: https://elga.gv.at
description:
  v: MOPED Profil der Encounter Ressource für die Verlegung innerhalb oder zwischen Krankenanstalten
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: LKF
  uri:
    v: https://elga.moped.at/mapping/LKF
    l: LKF
  name:
    v: LKF
mapping:
  identity:
    v: KaOrg
  uri:
    v: https://elga.moped.at/mapping/KaOrg
    l: KaOrg
  name:
    v: KaOrg
kind:
  v: resource
abstract:
  v: false
type:
  v: Encounter
  l: Encounter
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 5.0.0
  element:
    id:
      v: Encounter
    path:
      v: Encounter
    short:
      v: An interaction during which services are provided to the patient
    definition:
      v: An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. Encounter is primarily used to record information about the actual activities that occurred, where Appointment is used to record planned activities.
    alias:
      v: Visit
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Encounter
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      extension:
        value: Boolean
      extension:
        value: Markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity, Role, or Act,PatientEncounter[@moodCode='EVN']
    mapping:
      identity:
        v: workflow
      map:
        v: Event
    mapping:
      identity:
        v: w5
      map:
        v: workflow.encounter
  element:
    id:
      v: Encounter.id
    path:
      v: Encounter.id
    short:
      v: Logical id of this artifact
    definition:
      v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
    comment:
      v: Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Resource.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: Url

Boolean
v: true

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.

Url
v: id
l: id

v: false

v: false

v: true

id:
  v: Encounter.meta
path:
  v: Encounter.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
    l: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

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

id:
  v: Encounter.language
path:
  v: Encounter.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
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    l: http://hl7.org/fhir/ValueSet/all-languages
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages|5.0.0
      l: http://hl7.org/fhir/ValueSet/languages

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

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

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

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

id:
  v: Encounter.identifier
path:
  v: Encounter.identifier
short:
  v: Identifier(s) by which this encounter is known
definition:
  v: Identifier(s) by which this encounter is known.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: PV1-19
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: Encounter.status
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedDeviceActor
      l: MopedDeviceActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.status
short:
  v: planned | in-progress | on-hold | discharged | completed | cancelled | discontinued | entered-in-error | unknown
definition:
  v: The current state of the encounter (not the state of the patient within the encounter - that is subjectState).
comment:
  v: Note that internal business rules will determine the appropriate transitions that may occur between statuses (and also classes).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Encounter.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EncounterStatus
  strength:
    v: required
  description:
    v: Current state of the encounter.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-status|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-status
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: v2
  map:
    v: No clear equivalent in HL7 V2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16
mapping:
  identity:
    v: rim
  map:
    v: .statusCode

id:
  v: Encounter.class
path:
  v: Encounter.class
short:
  v: Classification of patient encounter context - e.g. Inpatient, outpatient
definition:
  v: Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.class
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EncounterClass
  strength:
    v: preferred
  description:
    v: Classification of the encounter.
  value set:
    v: http://terminology.hl7.org/ValueSet/encounter-class
    l: encounter-class
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: v2
  map:
    v: PV1-2
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code

id:
  v: Encounter.priority
path:
  v: Encounter.priority
short:
  v: Indicates the urgency of the encounter
definition:
  v: Indicates the urgency of the encounter.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.priority
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Priority
  strength:
    v: example
  description:
    v: Indicates the urgency of the encounter.
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ActPriority
    l: v3-ActPriority
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.grade
mapping:
  identity:
    v: v2
  map:
    v: PV2-25
mapping:
  identity:
    v: rim
  map:
    v: .priorityCode

id:
  v: Encounter.type
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.type
short:
  v: Specific type of encounter (e.g. e-mail consultation, surgical day-care, ...)
definition:
  v: Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).
comment:
  v: Since there are many ways to further classify encounters, this element is 0..*.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Encounter.type
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
pattern: CodeableConcept
  coding:
    system:
      v: https://elga.moped.at/CodeSystem/MopedEncounterTypesCS
      l: MopedEncounterTypesCS
    code:
      v: TENC
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EncounterType
  strength:
    v: example
  description:
    v: A specific code indicating type of service provided
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-type|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-type
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: v2
  map:
    v: PV1-4 / PV1-18
mapping:
  identity:
    v: rim
  map:
    v: .code

id:
  v: Encounter.serviceType
path:
  v: Encounter.serviceType
slicing:
  discriminator:
    type:
      v: profile
    path:
      v: reference.resolve()
  ordered:
    v: false
  rules:
    v: open
short:
  v: Specific type of service
definition:
  v: Broad categorization of the service that is to be provided (e.g. cardiology).
min:
  v: 1
max:
  v: *
base:
  path:
    v: Encounter.serviceType
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableReference
    l: CodeableReference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/HealthcareService|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/HealthcareService
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EncounterServiceType
  strength:
    v: example
  description:
    v: Broad categorization of the service that is to be provided.
  value set:
    v: http://hl7.org/fhir/ValueSet/service-type|5.0.0
    l: http://hl7.org/fhir/ValueSet/service-type
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: v2
  map:
    v: PV1-10
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.serviceType:MopedServiceType
path:
  v: Encounter.serviceType
slice name:
  v: MopedServiceType
short:
  v: LKF: Hauptkostenstelle – Funktionscode/Fachgebiet; KaOrg: Funktionscode der Abteilung lt. LKF; KaOrg: Funktionssubcode der Abteilung lt. LKF; KaOrg: Abteilung - Funktionscode der Ambulanz; KaOrg: Abteilung - Funktionssubcode der Ambulanz
definition:
  v: Broad categorization of the service that is to be provided (e.g. cardiology).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Encounter.serviceType
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableReference
    l: CodeableReference
  target profile:
    v: https://elga.moped.at/StructureDefinition/MopedKHOrganisationseinheit
    l: MopedKHOrganisationseinheit
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EncounterServiceType
  strength:
    v: example
  description:
    v: Broad categorization of the service that is to be provided.
  value set:
    v: http://hl7.org/fhir/ValueSet/service-type|5.0.0
    l: http://hl7.org/fhir/ValueSet/service-type
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: v2
  map:
    v: PV1-10
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.serviceType:MopedServiceType.id
path:
  v: Encounter.serviceType.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.serviceType:MopedServiceType.extension
path:
  v: Encounter.serviceType.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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.serviceType:MopedServiceType.concept
path:
  v: Encounter.serviceType.concept
short:
  v: Reference to a concept (by class)
definition:
  v: A reference to a concept - e.g. the information is identified by its general class to the degree of precision found in the terminology.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableReference.concept
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.serviceType:MopedServiceType.reference
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.serviceType.reference
short:
  v: Reference to a resource (by instance)
definition:
  v: A reference to a resource the provides exact details about the information being referenced.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableReference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Funktionscode/Fachgebiet
mapping:
  identity:
    v: KaOrg
  map:
    v: Funktionscode der Abteilung lt. LKF,Funktionssubcode der Abteilung lt. LKF,Abteilung - Funktionscode der Ambulanz,Abteilung - Subcode,Abteilung - Funktionssubcode der Ambulanz
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.subject
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedDeviceActor
      l: MopedDeviceActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.subject
short:
  v: The patient or group related to this encounter
definition:
  v: The patient or group related to this encounter. In some use-cases the patient MAY not be present, such as a case meeting about a patient between several practitioners or a careteam.
comment:
  v: While the encounter is always about the patient, the patient might not actually be known in all contexts of use, and there may be a group of patients that could be anonymous (such as in a group therapy for Alcoholics Anonymous - where the recording of the encounter could be used for billing on the number of people/staff and not important to the context of the specific patients) or alternately in veterinary care a herd of sheep receiving treatment (where the animals are not individually tracked).
alias:
  v: patient
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Encounter.subject
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://elga.moped.at/StructureDefinition/MopedPatient
    l: MopedPatient
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: v2
  map:
    v: PID-3
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ]/role[classCode=PAT]

id:
  v: Encounter.subjectStatus
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.subjectStatus
short:
  v: LKF: Physische Anwesenheit
definition:
  v: The subjectStatus value can be used to track the patient's status within the encounter. It details whether the patient has arrived or departed, has been triaged or is currently in a waiting status.
comment:
  v: Different use-cases are likely to have different permitted transitions between states, such as an Emergency department could use `arrived` when the patient first presents, then `triaged` once has been assessed by a nurse, then `receiving-care` once treatment begins, however other sectors may use a different set of these values, or their own custom set in place of this example valueset provided.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.subjectStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: SubjectStatus
  strength:
    v: example
  description:
    v: Current status of the subject within the encounter.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-subject-status|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-subject-status
mapping:
  identity:
    v: LKF
  map:
    v: Physische Anwesenheit

id:
  v: Encounter.episodeOfCare
path:
  v: Encounter.episodeOfCare
short:
  v: Episode(s) of care that this encounter should be recorded against
definition:
  v: Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem. The association is recorded on the encounter as these are typically created after the episode of care and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.episodeOfCare
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: v2
  map:
    v: PV1-54, PV1-53
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.basedOn
path:
  v: Encounter.basedOn
short:
  v: The request that initiated this encounter
definition:
  v: The request this encounter satisfies (e.g. incoming referral or procedure request).
alias:
  v: incomingReferral
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.basedOn
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CarePlan|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/CarePlan
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DeviceRequest|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/DeviceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/ServiceRequest
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.basedOn
mapping:
  identity:
    v: rim
  map:
    v: .reason.ClinicalDocument

id:
  v: Encounter.careTeam
path:
  v: Encounter.careTeam
short:
  v: The group(s) that are allocated to participate in this encounter
definition:
  v: The group(s) of individuals, organizations that are allocated to participate in this encounter. The participants backbone will record the actuals of when these individuals participated during the encounter.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.careTeam
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CareTeam|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/CareTeam
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.partOf
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedDeviceActor
      l: MopedDeviceActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.partOf
short:
  v: Another Encounter this encounter is part of
definition:
  v: Another Encounter of which this encounter is a part of (administratively or in time).
comment:
  v: This is also used for associating a child's encounter back to the mother's encounter. Refer to the Notes section in the Patient resource for further details.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Encounter.partOf
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
      l: structuredefinition-hierarchy
    value: Boolean
      v: true
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://elga.moped.at/StructureDefinition/MopedEncounter
    l: MopedEncounter
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.partOf
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]

id:
  v: Encounter.serviceProvider
path:
  v: Encounter.serviceProvider
short:
  v: The organization (facility) responsible for this encounter
definition:
  v: The organization that is primarily responsible for this Encounter's services. This MAY be the same as the organization on the Patient record, however it could be different, such as if the actor performing the services was from an external organization (which may be billed seperately) for an external consultation. Refer to the colonoscopy example on the Encounter examples tab.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.serviceProvider
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: v2
  map:
    v: PL.6 & PL.1
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF].role

id:
  v: Encounter.participant
path:
  v: Encounter.participant
slicing:
  discriminator:
    type:
      v: value
    path:
      v: type
  ordered:
    v: false
  rules:
    v: open
short:
  v: List of participants involved in the encounter
definition:
  v: The list of people responsible for providing the service.
comment:
  v: Any Patient or Group present in the participation.actor must also be the subject, though the subject may be absent from the participation.actor for cases where the patient (or group) is not present, such as during a case review conference.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.participant
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: enc-1
  severity:
    v: error
  human:
    v: A type must be provided when no explicit actor is specified
  expression:
    v: actor.exists() or type.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
constraint:
  key:
    v: enc-2
  severity:
    v: error
  human:
    v: A type cannot be provided for a patient or group participant
  expression:
    v: actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer
mapping:
  identity:
    v: v2
  map:
    v: ROL
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF]

id:
  v: Encounter.participant.id
path:
  v: Encounter.participant.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.participant.extension
path:
  v: Encounter.participant.extension
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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.participant.modifierExtension
path:
  v: Encounter.participant.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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
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

id:
  v: Encounter.participant.type
path:
  v: Encounter.participant.type
short:
  v: Role of participant in encounter
definition:
  v: Role of participant in encounter.
comment:
  v: The participant type indicates how an individual actor participates in an encounter. It includes non-practitioner participants, and for practitioners this is to describe the action type in the context of this encounter (e.g. Admitting Dr, Attending Dr, Translator, Consulting Dr). This is different to the practitioner roles which are functional roles, derived from terms of employment, education, licensing, etc.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.participant.type
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: enc-1
condition:
  v: enc-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ParticipantType
  strength:
    v: extensible
  description:
    v: Role of participant in encounter.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-participant-type|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-participant-type
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.function
mapping:
  identity:
    v: v2
  map:
    v: ROL-3 (or maybe PRT-4)
mapping:
  identity:
    v: rim
  map:
    v: .functionCode

id:
  v: Encounter.participant.period
path:
  v: Encounter.participant.period
short:
  v: Period of time during the encounter that the participant participated
definition:
  v: The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.participant.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: ROL-5, ROL-6 (or maybe PRT-5)
mapping:
  identity:
    v: rim
  map:
    v: .time

id:
  v: Encounter.participant.actor
path:
  v: Encounter.participant.actor
short:
  v: The individual, device, or service participating in the encounter
definition:
  v: Person involved in the encounter, the patient/group is also included here to indicate that the patient was actually participating in the encounter. Not including the patient here covers use cases such as a case meeting between practitioners about a patient - non contact times.
comment:
  v: For planning purposes, Appointments may include a CareTeam participant to indicate that one specific person from the CareTeam will be assigned, but that assignment might not happen until the Encounter begins. Hence CareTeam is not included in Encounter.participant, as the specific individual should be assigned and represented as a Practitioner or other person resource. Similarly, Location can be included in Appointment.participant to assist with planning. However, the patient location is tracked on the Encounter in the Encounter.location property to allow for additional metadata and history to be recorded. The role of the participant can be used to declare what the actor will be doing in the scope of this encounter participation. If the individual is not specified during planning, then it is expected that the individual will be filled in at a later stage prior to the encounter commencing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.participant.actor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Group|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Group
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/HealthcareService|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/HealthcareService
condition:
  v: enc-1
condition:
  v: enc-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: v2
  map:
    v: ROL-4
mapping:
  identity:
    v: rim
  map:
    v: .role

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit
path:
  v: Encounter.participant
slice name:
  v: FachlichZustaendigeOrganisationseinheit
short:
  v: LKF: Hauptkostenstelle – Fachlicher Funktionscode
definition:
  v: The list of people responsible for providing the service.
comment:
  v: Any Patient or Group present in the participation.actor must also be the subject, though the subject may be absent from the participation.actor for cases where the patient (or group) is not present, such as during a case review conference.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.participant
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: enc-1
  severity:
    v: error
  human:
    v: A type must be provided when no explicit actor is specified
  expression:
    v: actor.exists() or type.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
constraint:
  key:
    v: enc-2
  severity:
    v: error
  human:
    v: A type cannot be provided for a patient or group participant
  expression:
    v: actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer
mapping:
  identity:
    v: v2
  map:
    v: ROL
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF]

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit.id
path:
  v: Encounter.participant.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit.extension
path:
  v: Encounter.participant.extension
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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit.modifierExtension
path:
  v: Encounter.participant.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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
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

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit.type
path:
  v: Encounter.participant.type
short:
  v: Role of participant in encounter
definition:
  v: Role of participant in encounter.
comment:
  v: The participant type indicates how an individual actor participates in an encounter. It includes non-practitioner participants, and for practitioners this is to describe the action type in the context of this encounter (e.g. Admitting Dr, Attending Dr, Translator, Consulting Dr). This is different to the practitioner roles which are functional roles, derived from terms of employment, education, licensing, etc.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Encounter.participant.type
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
pattern: CodeableConcept
  coding:
    system:
      v: https://elga.moped.at/CodeSystem/MopedEncounterParticipantTypesCS
      l: MopedEncounterParticipantTypesCS
    code:
      v: fachlich
condition:
  v: enc-1
condition:
  v: enc-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ParticipantType
  strength:
    v: extensible
  description:
    v: Role of participant in encounter.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-participant-type|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-participant-type
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.function
mapping:
  identity:
    v: v2
  map:
    v: ROL-3 (or maybe PRT-4)
mapping:
  identity:
    v: rim
  map:
    v: .functionCode

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit.period
path:
  v: Encounter.participant.period
short:
  v: Period of time during the encounter that the participant participated
definition:
  v: The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.participant.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: ROL-5, ROL-6 (or maybe PRT-5)
mapping:
  identity:
    v: rim
  map:
    v: .time

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit.actor
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.participant.actor
short:
  v: The individual, device, or service participating in the encounter
definition:
  v: Person involved in the encounter, the patient/group is also included here to indicate that the patient was actually participating in the encounter. Not including the patient here covers use cases such as a case meeting between practitioners about a patient - non contact times.
comment:
  v: For planning purposes, Appointments may include a CareTeam participant to indicate that one specific person from the CareTeam will be assigned, but that assignment might not happen until the Encounter begins. Hence CareTeam is not included in Encounter.participant, as the specific individual should be assigned and represented as a Practitioner or other person resource. Similarly, Location can be included in Appointment.participant to assist with planning. However, the patient location is tracked on the Encounter in the Encounter.location property to allow for additional metadata and history to be recorded. The role of the participant can be used to declare what the actor will be doing in the scope of this encounter participation. If the individual is not specified during planning, then it is expected that the individual will be filled in at a later stage prior to the encounter commencing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.participant.actor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://elga.moped.at/StructureDefinition/MopedKHOrganisationseinheit
    l: MopedKHOrganisationseinheit
condition:
  v: enc-1
condition:
  v: enc-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Fachlicher Funktionscode
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: v2
  map:
    v: ROL-4
mapping:
  identity:
    v: rim
  map:
    v: .role

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit
path:
  v: Encounter.participant
slice name:
  v: PflegerischZustaendigeOrganisationseinheit
short:
  v: LKF: Hauptkostenstelle – Pflegerischer Funktionscode
definition:
  v: The list of people responsible for providing the service.
comment:
  v: Any Patient or Group present in the participation.actor must also be the subject, though the subject may be absent from the participation.actor for cases where the patient (or group) is not present, such as during a case review conference.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.participant
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: enc-1
  severity:
    v: error
  human:
    v: A type must be provided when no explicit actor is specified
  expression:
    v: actor.exists() or type.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
constraint:
  key:
    v: enc-2
  severity:
    v: error
  human:
    v: A type cannot be provided for a patient or group participant
  expression:
    v: actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer
mapping:
  identity:
    v: v2
  map:
    v: ROL
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF]

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit.id
path:
  v: Encounter.participant.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit.extension
path:
  v: Encounter.participant.extension
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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit.modifierExtension
path:
  v: Encounter.participant.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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
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

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit.type
path:
  v: Encounter.participant.type
short:
  v: Role of participant in encounter
definition:
  v: Role of participant in encounter.
comment:
  v: The participant type indicates how an individual actor participates in an encounter. It includes non-practitioner participants, and for practitioners this is to describe the action type in the context of this encounter (e.g. Admitting Dr, Attending Dr, Translator, Consulting Dr). This is different to the practitioner roles which are functional roles, derived from terms of employment, education, licensing, etc.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Encounter.participant.type
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
pattern: CodeableConcept
  coding:
    system:
      v: https://elga.moped.at/CodeSystem/MopedEncounterParticipantTypesCS
      l: MopedEncounterParticipantTypesCS
    code:
      v: pflegerisch
condition:
  v: enc-1
condition:
  v: enc-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ParticipantType
  strength:
    v: extensible
  description:
    v: Role of participant in encounter.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-participant-type|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-participant-type
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.function
mapping:
  identity:
    v: v2
  map:
    v: ROL-3 (or maybe PRT-4)
mapping:
  identity:
    v: rim
  map:
    v: .functionCode

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit.period
path:
  v: Encounter.participant.period
short:
  v: Period of time during the encounter that the participant participated
definition:
  v: The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.participant.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: ROL-5, ROL-6 (or maybe PRT-5)
mapping:
  identity:
    v: rim
  map:
    v: .time

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit.actor
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.participant.actor
short:
  v: The individual, device, or service participating in the encounter
definition:
  v: Person involved in the encounter, the patient/group is also included here to indicate that the patient was actually participating in the encounter. Not including the patient here covers use cases such as a case meeting between practitioners about a patient - non contact times.
comment:
  v: For planning purposes, Appointments may include a CareTeam participant to indicate that one specific person from the CareTeam will be assigned, but that assignment might not happen until the Encounter begins. Hence CareTeam is not included in Encounter.participant, as the specific individual should be assigned and represented as a Practitioner or other person resource. Similarly, Location can be included in Appointment.participant to assist with planning. However, the patient location is tracked on the Encounter in the Encounter.location property to allow for additional metadata and history to be recorded. The role of the participant can be used to declare what the actor will be doing in the scope of this encounter participation. If the individual is not specified during planning, then it is expected that the individual will be filled in at a later stage prior to the encounter commencing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.participant.actor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://elga.moped.at/StructureDefinition/MopedKHOrganisationseinheit
    l: MopedKHOrganisationseinheit
condition:
  v: enc-1
condition:
  v: enc-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Pflegerischer Funktionscode
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer.actor
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: v2
  map:
    v: ROL-4
mapping:
  identity:
    v: rim
  map:
    v: .role

id:
  v: Encounter.appointment
path:
  v: Encounter.appointment
short:
  v: The appointment that scheduled this encounter
definition:
  v: The appointment that scheduled this encounter.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.appointment
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Appointment|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Appointment
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.basedOn
mapping:
  identity:
    v: v2
  map:
    v: SCH-1 / SCH-2
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]

id:
  v: Encounter.virtualService
path:
  v: Encounter.virtualService
short:
  v: Connection details of a virtual service (e.g. conference call)
definition:
  v: Connection details of a virtual service (e.g. conference call).
comment:
  v: There are two types of virtual meetings that often exist: * a persistent, virtual meeting room that can only be used for a single purpose at a time, * and a dynamic virtual meeting room that is generated on demand for a specific purpose. Implementers may consider using Location.virtualService for persistent meeting rooms. If each participant would have a different meeting link, an extension using the VirtualServiceContactDetail can be applied to the Encounter.participant BackboneElement.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.virtualService
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: VirtualServiceDetail
    l: VirtualServiceDetail
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.actualPeriod
path:
  v: Encounter.actualPeriod
short:
  v: LKF: Zugangs- und Abgangsdatum
definition:
  v: The actual start and end time of the encounter.
comment:
  v: If not (yet) known, the end of the Period may be omitted.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.actualPeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.done[x]
mapping:
  identity:
    v: v2
  map:
    v: PV1-44, PV1-45
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime (low & high)

id:
  v: Encounter.actualPeriod.id
path:
  v: Encounter.actualPeriod.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.actualPeriod.extension
path:
  v: Encounter.actualPeriod.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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.actualPeriod.start
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.actualPeriod.start
short:
  v: LKF: Hauptkostenstelle/Fachgebiet – Zugangsdatum/Kontaktdatum; LKF: Hauptkostenstelle/Fachgebiet – Zugangsuhrzeit/Kontaktuhrzeit
definition:
  v: The start of the period. The boundary is inclusive.
comment:
  v: If the low element is missing, the meaning is that the low boundary is not known.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Period.start
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
condition:
  v: per-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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle/Fachgebiet – Zugangsdatum/Kontaktdatum,Hauptkostenstelle/Fachgebiet – Zugangsuhrzeit/Kontaktuhrzeit
mapping:
  identity:
    v: v2
  map:
    v: DR.1
mapping:
  identity:
    v: rim
  map:
    v: ./low

id:
  v: Encounter.actualPeriod.end
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.actualPeriod.end
short:
  v: LKF: Hauptkostenstelle – Abgangsdatum; LKF: Hauptkostenstelle – Abgangsuhrzeit
definition:
  v: The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
comment:
  v: The end value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Period.end
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
meaning when missing:
  v: If the end of the period is missing, it means that the period is ongoing
condition:
  v: per-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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Abgangsdatum,Hauptkostenstelle – Abgangsuhrzeit
mapping:
  identity:
    v: v2
  map:
    v: DR.2
mapping:
  identity:
    v: rim
  map:
    v: ./high

id:
  v: Encounter.plannedStartDate
path:
  v: Encounter.plannedStartDate
short:
  v: The planned start date/time (or admission date) of the encounter
definition:
  v: The planned start date/time (or admission date) of the encounter.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.plannedStartDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: PV2-8

id:
  v: Encounter.plannedEndDate
path:
  v: Encounter.plannedEndDate
short:
  v: The planned end date/time (or discharge date) of the encounter
definition:
  v: The planned end date/time (or discharge date) of the encounter.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.plannedEndDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: PV2-9

id:
  v: Encounter.length
path:
  v: Encounter.length
short:
  v: Actual quantity of time the encounter lasted (less time absent)
definition:
  v: Actual quantity of time the encounter lasted. This excludes the time during leaves of absence. When missing it is the time in between the start and end values.
comment:
  v: If the precision on these values is low (e.g. to the day only) then this may be considered was an all day (or multi-day) encounter, unless the duration is included, where that amount of time occurred sometime during the interval. May differ from the time in `Encounter.period` due to leave of absence(s).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.length
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Duration
    l: Duration
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: v2
  map:
    v: (PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes or PV2-11 (which is actual length in days)
mapping:
  identity:
    v: rim
  map:
    v: .lengthOfStayQuantity

id:
  v: Encounter.reason
path:
  v: Encounter.reason
short:
  v: The list of medical reasons that are expected to be addressed during the episode of care
definition:
  v: The list of medical reasons that are expected to be addressed during the episode of care.
comment:
  v: The reason communicates what medical problem the patient has that should be addressed during the episode of care. This reason could be patient reported complaint, a clinical indication that was determined in a previous encounter or episode of care, or some planned care such as an immunization recommendation. In the case where you have a primary reason, but are expecting to also address other problems, you can list the primary reason with a use code of 'Chief Complaint', while the other problems being addressed would have a use code of 'Reason for Visit'. Examples: * pregnancy would use HealthcareService or a coding as the reason * patient home monitoring could use Condition as the reason
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.reason
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: Encounter.reason.id
path:
  v: Encounter.reason.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.reason.extension
path:
  v: Encounter.reason.extension
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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.reason.modifierExtension
path:
  v: Encounter.reason.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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
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

id:
  v: Encounter.reason.use
path:
  v: Encounter.reason.use
short:
  v: What the reason value should be used for/as
definition:
  v: What the reason value should be used as e.g. Chief Complaint, Health Concern, Health Maintenance (including screening).
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.reason.use
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: reason-use
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-reason-use|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-reason-use

id:
  v: Encounter.reason.value
path:
  v: Encounter.reason.value
short:
  v: Reason the encounter takes place (core or reference)
definition:
  v: Reason the encounter takes place, expressed as a code or a reference to another resource. For admissions, this can be used for a coded admission diagnosis.
alias:
  v: Indication
alias:
  v: Admission diagnosis
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.reason.value
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableReference
    l: CodeableReference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Condition|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Condition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/DiagnosticReport
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Observation
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Procedure|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Procedure
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EncounterReason
  strength:
    v: preferred
  description:
    v: Reason why the encounter takes place.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-reason|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-reason
mapping:
  identity:
    v: workflow
  map:
    v: Event.reason
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: v2
  map:
    v: EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 V2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )
mapping:
  identity:
    v: rim
  map:
    v: .reasonCode

id:
  v: Encounter.diagnosis
path:
  v: Encounter.diagnosis
short:
  v: The list of diagnosis relevant to this encounter
definition:
  v: The list of diagnosis relevant to this encounter.
comment:
  v: Also note that for the purpose of billing, the diagnoses are recorded in the account where they can be ranked appropriately for how the invoicing/claiming documentation needs to be prepared.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.diagnosis
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=RSON]

id:
  v: Encounter.diagnosis.id
path:
  v: Encounter.diagnosis.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.diagnosis.extension
path:
  v: Encounter.diagnosis.extension
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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.diagnosis.modifierExtension
path:
  v: Encounter.diagnosis.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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
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

id:
  v: Encounter.diagnosis.condition
path:
  v: Encounter.diagnosis.condition
short:
  v: The diagnosis relevant to the encounter
definition:
  v: The coded diagnosis or a reference to a Condition (with other resources referenced in the evidence.detail), the use property will indicate the purpose of this specific diagnosis.
alias:
  v: Admission diagnosis
alias:
  v: discharge diagnosis
alias:
  v: indication
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.diagnosis.condition
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableReference
    l: CodeableReference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Condition|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Condition
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: condition-code
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-code|5.0.0
    l: http://hl7.org/fhir/ValueSet/condition-code
mapping:
  identity:
    v: workflow
  map:
    v: Event.reason
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: v2
  map:
    v: Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively.
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=RSON].target

id:
  v: Encounter.diagnosis.use
path:
  v: Encounter.diagnosis.use
short:
  v: Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …)
definition:
  v: Role that this diagnosis has within the encounter (e.g. admission, billing, discharge …).
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.diagnosis.use
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DiagnosisUse
  strength:
    v: preferred
  description:
    v: The type of diagnosis this condition represents.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-diagnosis-use|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-diagnosis-use
mapping:
  identity:
    v: v2
  map:
    v: DG1-6 (Diagnosis Type)
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.account
path:
  v: Encounter.account
short:
  v: The set of accounts that may be used for billing for this Encounter
definition:
  v: The set of accounts that may be used for billing for this Encounter.
comment:
  v: The billing system may choose to allocate billable items associated with the Encounter to different referenced Accounts based on internal business rules.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.account
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Account|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Account
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .pertains.A_Account

id:
  v: Encounter.dietPreference
path:
  v: Encounter.dietPreference
short:
  v: Diet preferences reported by the patient
definition:
  v: Diet preferences reported by the patient.
comment:
  v: For example, a patient may request both a dairy-free and nut-free diet preference (not mutually exclusive).
requirements:
  v: Used to track patient's diet restrictions and/or preference. For a complete description of the nutrition needs of a patient during their stay, one should use the nutritionOrder resource which links to Encounter.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.dietPreference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: PatientDiet
  strength:
    v: example
  description:
    v: Medical, cultural or ethical food preferences to help with catering requirements.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-diet|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-diet
mapping:
  identity:
    v: v2
  map:
    v: PV1-38
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=EVN, code="diet"]

id:
  v: Encounter.specialArrangement
path:
  v: Encounter.specialArrangement
short:
  v: Wheelchair, translator, stretcher, etc
definition:
  v: Any special requests that have been made for this encounter, such as the provision of specific equipment or other things.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.specialArrangement
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Arrangements
  strength:
    v: preferred
  description:
    v: Special arrangements.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-special-arrangements|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-special-arrangements
mapping:
  identity:
    v: v2
  map:
    v: PV1-15 / OBR-30 / OBR-43
mapping:
  identity:
    v: rim
  map:
    v: .specialArrangementCode

id:
  v: Encounter.specialCourtesy
path:
  v: Encounter.specialCourtesy
short:
  v: Special courtesies (VIP, board member)
definition:
  v: Special courtesies that may be provided to the patient during the encounter (VIP, board member, professional courtesy).
comment:
  v: Although the specialCourtesy property can contain values like VIP, the purpose of this field is intended to be used for flagging additional `benefits` that might occur for the patient during the encounter. It could include things like the patient is to have a private room, special room features, receive a friendly visit from hospital adminisitration, or should be briefed on treatment by senior staff during the stay. It is not specifically intended to be used for securing the specific record - that is the purpose of the security meta tag, and where appropriate, both fields could be used.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.specialCourtesy
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Courtesies
  strength:
    v: preferred
  description:
    v: Special courtesies.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-special-courtesy|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-special-courtesy
mapping:
  identity:
    v: v2
  map:
    v: PV1-16
mapping:
  identity:
    v: rim
  map:
    v: .specialCourtesiesCode

id:
  v: Encounter.admission
path:
  v: Encounter.admission
short:
  v: Details about the admission to a healthcare service
definition:
  v: Details about the stay during which a healthcare service is provided. This does not describe the event of admitting the patient, but rather any information that is relevant from the time of admittance until the time of discharge.
comment:
  v: An Encounter may cover more than just the inpatient stay. Contexts such as outpatients, community clinics, and aged care facilities are also included. The duration recorded in the period of this encounter covers the entire scope of this admission record.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.admission
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]

id:
  v: Encounter.admission.id
path:
  v: Encounter.admission.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.admission.extension
path:
  v: Encounter.admission.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 1
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Encounter.admission.extension:Altersgruppe
path:
  v: Encounter.admission.extension
slice name:
  v: Altersgruppe
short:
  v: Altersgruppe
definition:
  v: In Gruppen eingeteilt, wobei vollendete Lebensjahre ausschlaggebend sind.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: https://elga.moped.at/StructureDefinition/moped-ext-altersgruppe
    l: moped-ext-altersgruppe
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
constraint:
  key:
    v: moped-inv-Altersgruppe-1
  severity:
    v: error
  human:
    v: If 'neugeborenes' is true then 'beiZugang' must be age group 0.
  expression:
    v: (extension.where(url = 'neugeborenes').exists() and extension.where(url = 'neugeborenes').value = true) implies (extension.where(url = 'beiZugang').value = '0')
  source:
    v: https://elga.moped.at/StructureDefinition/moped-ext-altersgruppe
    l: moped-ext-altersgruppe
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: Encounter.admission.extension:Altersgruppe.id
path:
  v: Encounter.admission.extension.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.admission.extension:Altersgruppe.extension
path:
  v: Encounter.admission.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 1
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiZugang
path:
  v: Encounter.admission.extension.extension
slice name:
  v: beiZugang
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiZugang.id
path:
  v: Encounter.admission.extension.extension.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiZugang.extension
path:
  v: Encounter.admission.extension.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiZugang.url
path:
  v: Encounter.admission.extension.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: beiZugang
  l: beiZugang
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiZugang.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.admission.extension.extension.value[x]
short:
  v: LKF: Altersgruppe bei Zugang/Kontakt
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ext-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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: required
  value set:
    v: https://elga.moped.at/ValueSet/AltersgruppeVS
    l: AltersgruppeVS
mapping:
  identity:
    v: LKF
  map:
    v: Altersgruppe bei Zugang/Kontakt
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiEntlassung
path:
  v: Encounter.admission.extension.extension
slice name:
  v: beiEntlassung
short:
  v: Altersgruppe bei Entlassung/Kontakt
definition:
  v: Nach dem Alter in Gruppen eingeteilt, wobei vollendete Lebensjahre ausschlaggebend sind.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiEntlassung.id
path:
  v: Encounter.admission.extension.extension.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiEntlassung.extension
path:
  v: Encounter.admission.extension.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiEntlassung.url
path:
  v: Encounter.admission.extension.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: beiEntlassung
  l: beiEntlassung
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiEntlassung.value[x]
path:
  v: Encounter.admission.extension.extension.value[x]
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ext-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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  strength:
    v: required
  value set:
    v: https://elga.moped.at/ValueSet/AltersgruppeVS
    l: AltersgruppeVS
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.admission.extension:Altersgruppe.extension:neugeborenes
path:
  v: Encounter.admission.extension.extension
slice name:
  v: neugeborenes
short:
  v: Neugeborenes
definition:
  v: Ein Patient wird als Neugeborenes bezeichnet, wenn das Alter zum Zugangszeitpunkt auf die Abteilung <28 Tage ist.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false

id:
  v: Encounter.admission.extension:Altersgruppe.extension:neugeborenes.id
path:
  v: Encounter.admission.extension.extension.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
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.admission.extension:Altersgruppe.extension:neugeborenes.extension
path:
  v: Encounter.admission.extension.extension.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Encounter.admission.extension:Altersgruppe.extension:neugeborenes.url
path:
  v: Encounter.admission.extension.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: neugeborenes
  l: neugeborenes
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.admission.extension:Altersgruppe.extension:neugeborenes.value[x]
path:
  v: Encounter.admission.extension.extension.value[x]
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
condition:
  v: ext-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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.admission.extension:Altersgruppe.url
path:
  v: Encounter.admission.extension.url
representation:
  v: xmlAttr
short:
  v: identifies the meaning of the extension
definition:
  v: Source of the definition for the extension code - a logical name or a URL.
comment:
  v: The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Extension.url
  min:
    v: 1
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: uri
      l: uri
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
fixed: Uri
  v: https://elga.moped.at/StructureDefinition/moped-ext-altersgruppe
  l: moped-ext-altersgruppe
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Encounter.admission.extension:Altersgruppe.value[x]
path:
  v: Encounter.admission.extension.value[x]
short:
  v: Value of extension
definition:
  v: Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R5/extensibility.html) for a list).
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Extension.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: base64Binary
    l: base64Binary
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: canonical
    l: canonical
type:
  code:
    v: code
    l: code
type:
  code:
    v: date
    l: date
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: decimal
    l: decimal
type:
  code:
    v: id
    l: id
type:
  code:
    v: instant
    l: instant
type:
  code:
    v: integer
    l: integer
type:
  code:
    v: integer64
    l: integer64
type:
  code:
    v: markdown
    l: markdown
type:
  code:
    v: oid
    l: oid
type:
  code:
    v: positiveInt
    l: positiveInt
type:
  code:
    v: string
    l: string
type:
  code:
    v: time
    l: time
type:
  code:
    v: unsignedInt
    l: unsignedInt
type:
  code:
    v: uri
    l: uri
type:
  code:
    v: url
    l: url
type:
  code:
    v: uuid
    l: uuid
type:
  code:
    v: Address
    l: Address
type:
  code:
    v: Age
    l: Age
type:
  code:
    v: Annotation
    l: Annotation
type:
  code:
    v: Attachment
    l: Attachment
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
type:
  code:
    v: CodeableReference
    l: CodeableReference
type:
  code:
    v: Coding
    l: Coding
type:
  code:
    v: ContactPoint
    l: ContactPoint
type:
  code:
    v: Count
    l: Count
type:
  code:
    v: Distance
    l: Distance
type:
  code:
    v: Duration
    l: Duration
type:
  code:
    v: HumanName
    l: HumanName
type:
  code:
    v: Identifier
    l: Identifier
type:
  code:
    v: Money
    l: Money
type:
  code:
    v: Period
    l: Period
type:
  code:
    v: Quantity
    l: Quantity
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Ratio
    l: Ratio
type:
  code:
    v: RatioRange
    l: RatioRange
type:
  code:
    v: Reference
    l: Reference
type:
  code:
    v: SampledData
    l: SampledData
type:
  code:
    v: Signature
    l: Signature
type:
  code:
    v: Timing
    l: Timing
type:
  code:
    v: ContactDetail
    l: ContactDetail
type:
  code:
    v: DataRequirement
    l: DataRequirement
type:
  code:
    v: Expression
    l: Expression

code:
  v: ParameterDefinition
  l: ParameterDefinition

code:
  v: RelatedArtifact
  l: RelatedArtifact

code:
  v: TriggerDefinition
  l: TriggerDefinition

code:
  v: UsageContext
  l: UsageContext

code:
  v: Availability
  l: Availability

code:
  v: ExtendedContactDetail
  l: ExtendedContactDetail

code:
  v: Dosage
  l: Dosage

code:
  v: Meta
  l: Meta

v: ext-1

key:
  v: ele-1
severity:
  v: error
human:
  v: All FHIR elements must have a @value or children
expression:
  v: hasValue() or (children().count() > id.count())
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  l: Element

v: false

v: false

identity:
  v: rim
map:
  v: N/A

id:
  v: Encounter.admission.modifierExtension
path:
  v: Encounter.admission.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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
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

id:
  v: Encounter.admission.preAdmissionIdentifier
path:
  v: Encounter.admission.preAdmissionIdentifier
short:
  v: Pre-admission identifier
definition:
  v: Pre-admission identifier.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.admission.preAdmissionIdentifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: PV1-5
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: Encounter.admission.origin
path:
  v: Encounter.admission.origin
short:
  v: The location/organization from which the patient came before admission
definition:
  v: The location/organization from which the patient came before admission.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.admission.origin
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Location
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=ORG].role

id:
  v: Encounter.admission.admitSource
path:
  v: Encounter.admission.admitSource
short:
  v: From where patient was admitted (physician referral, transfer)
definition:
  v: From where patient was admitted (physician referral, transfer).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.admission.admitSource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AdmitSource
  strength:
    v: preferred
  description:
    v: From where the patient was admitted.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-admit-source|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-admit-source
mapping:
  identity:
    v: v2
  map:
    v: PV1-14
mapping:
  identity:
    v: rim
  map:
    v: .admissionReferralSourceCode

id:
  v: Encounter.admission.reAdmission
path:
  v: Encounter.admission.reAdmission
short:
  v: Indicates that the patient is being re-admitted
definition:
  v: Indicates that this encounter is directly related to a prior admission, often because the conditions addressed in the prior admission were not fully addressed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.admission.reAdmission
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ReAdmissionType
  strength:
    v: example
  description:
    v: The reason for re-admission of this admission encounter.
  value set:
    v: http://terminology.hl7.org/ValueSet/v2-0092
    l: v2-0092
mapping:
  identity:
    v: v2
  map:
    v: PV1-13
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.admission.destination
path:
  v: Encounter.admission.destination
short:
  v: Location/organization to which the patient is discharged
definition:
  v: Location/organization to which the patient is discharged.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.admission.destination
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Location
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: v2
  map:
    v: PV1-37
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=DST]

id:
  v: Encounter.admission.dischargeDisposition
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://elga.moped.at/StructureDefinition/MopedTransferEncounter|0.1.0
      l: https://elga.moped.at/StructureDefinition/MopedTransferEncounter
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.admission.dischargeDisposition
short:
  v: LKF: Hauptkostenstelle – Abgangsart
definition:
  v: Category or kind of location after discharge.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.admission.dischargeDisposition
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DischargeDisp
  strength:
    v: example
  description:
    v: Discharge Disposition.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-discharge-disposition|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-discharge-disposition
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Abgangsart
mapping:
  identity:
    v: v2
  map:
    v: PV1-36
mapping:
  identity:
    v: rim
  map:
    v: .dischargeDispositionCode

id:
  v: Encounter.location
path:
  v: Encounter.location
short:
  v: List of locations where the patient has been
definition:
  v: List of locations where the patient has been during this encounter.
comment:
  v: Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type "kind" such as "client's home" and an encounter.class = "virtual".
min:
  v: 0
max:
  v: *
base:
  path:
    v: Encounter.location
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=LOC]

id:
  v: Encounter.location.id
path:
  v: Encounter.location.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.location.extension
path:
  v: Encounter.location.extension
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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Encounter.location.modifierExtension
path:
  v: Encounter.location.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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
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

id:
  v: Encounter.location.location
path:
  v: Encounter.location.location
short:
  v: Location the encounter takes place
definition:
  v: The location where the encounter takes place.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Encounter.location.location
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location|5.0.0
    l: http://hl7.org/fhir/StructureDefinition/Location
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.location
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.where[x]
mapping:
  identity:
    v: v2
  map:
    v: PV1-3 / PV1-6 / PV1-11 / PV1-42 / PV1-43
mapping:
  identity:
    v: rim
  map:
    v: .role

id:
  v: Encounter.location.status
path:
  v: Encounter.location.status
short:
  v: planned | active | reserved | completed
definition:
  v: The status of the participants' presence at the specified location during the period specified. If the participant is no longer at the location, then the period will have an end date/time.
comment:
  v: When the patient is no longer active at a location, then the period end date is entered, and the status may be changed to completed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.location.status
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: EncounterLocationStatus
  strength:
    v: required
  description:
    v: The status of the location.
  value set:
    v: http://hl7.org/fhir/ValueSet/encounter-location-status|5.0.0
    l: http://hl7.org/fhir/ValueSet/encounter-location-status
mapping:
  identity:
    v: rim
  map:
    v: .role.statusCode

id:
  v: Encounter.location.form
path:
  v: Encounter.location.form
short:
  v: The physical type of the location (usually the level in the location hierarchy - bed, room, ward, virtual etc.)
definition:
  v: This will be used to specify the required levels (bed/ward/room/etc.) desired to be recorded to simplify either messaging or query.
comment:
  v: This information is de-normalized from the Location resource to support the easier understanding of the encounter resource and processing in messaging or query. There may be many levels in the hierachy, and this may only pic specific levels that are required for a specific usage scenario.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.location.form
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: LocationForm
  strength:
    v: example
  description:
    v: Physical form of the location.
  value set:
    v: http://hl7.org/fhir/ValueSet/location-form|5.0.0
    l: http://hl7.org/fhir/ValueSet/location-form

id:
  v: Encounter.location.period
path:
  v: Encounter.location.period
short:
  v: Time period during which the patient was present at the location
definition:
  v: Time period during which the patient was present at the location.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Encounter.location.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
    l: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .time

element:
  id:
    v: Encounter.status
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:populate
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://elga.moped.at/ActorDefinition/MopedKHActor
        l: MopedKHActor
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:handle
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://elga.moped.at/ActorDefinition/MopedDeviceActor
        l: MopedDeviceActor
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  path:
    v: Encounter.status
element:
  id:
    v: Encounter.type
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:populate
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://elga.moped.at/ActorDefinition/MopedKHActor
        l: MopedKHActor
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  path:
    v: Encounter.type
  min:
    v: 1
  pattern: CodeableConcept
    coding:
      system:
        v: https://elga.moped.at/CodeSystem/MopedEncounterTypesCS
        l: MopedEncounterTypesCS
      code:
        v: TENC
element:
  id:
    v: Encounter.serviceType
  path:
    v: Encounter.serviceType
  slicing:
    discriminator:
      type:
        v: profile
      path:
        v: reference.resolve()
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 1
element:
  id:
    v: Encounter.serviceType:MopedServiceType
  path:
    v: Encounter.serviceType
  slice name:
    v: MopedServiceType
  short:
    v: LKF: Hauptkostenstelle – Funktionscode/Fachgebiet; KaOrg: Funktionscode der Abteilung lt. LKF; KaOrg: Funktionssubcode der Abteilung lt. LKF; KaOrg: Abteilung - Funktionscode der Ambulanz; KaOrg: Abteilung - Funktionssubcode der Ambulanz
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableReference
      l: CodeableReference
    target profile:
      v: https://elga.moped.at/StructureDefinition/MopedKHOrganisationseinheit
      l: MopedKHOrganisationseinheit
element:
  id:
    v: Encounter.serviceType:MopedServiceType.reference
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:populate
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://elga.moped.at/ActorDefinition/MopedKHActor
        l: MopedKHActor
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  path:
    v: Encounter.serviceType.reference
  mapping:
    identity:
      v: LKF
    map:
      v: Hauptkostenstelle – Funktionscode/Fachgebiet
  mapping:
    identity:
      v: KaOrg
    map:
      v: Funktionscode der Abteilung lt. LKF
  mapping:
    identity:
      v: KaOrg
    map:
      v: Funktionssubcode der Abteilung lt. LKF
  mapping:
    identity:
      v: KaOrg
    map:
      v: Abteilung - Funktionscode der Ambulanz
  mapping:
    identity:
      v: KaOrg
    map:
      v: Abteilung - Subcode
  mapping:
    identity:
      v: KaOrg
    map:
      v: Abteilung - Funktionssubcode der Ambulanz
element:
  id:
    v: Encounter.subject
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:handle
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://elga.moped.at/ActorDefinition/MopedDeviceActor
        l: MopedDeviceActor
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  path:
    v: Encounter.subject
  min:
    v: 1
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://elga.moped.at/StructureDefinition/MopedPatient
      l: MopedPatient
element:
  id:
    v: Encounter.subjectStatus
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:populate
    extension:
      url:
        v: actor
        l: actor
      value: Canonical

v: Encounter.subjectStatus

v: LKF: Physische Anwesenheit

identity:
  v: LKF
map:
  v: Physische Anwesenheit

id:
  v: Encounter.partOf
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:handle
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedDeviceActor
      l: MopedDeviceActor
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.partOf
min:
  v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
      l: structuredefinition-hierarchy
    value: Boolean
      v: true
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://elga.moped.at/StructureDefinition/MopedEncounter
    l: MopedEncounter

id:
  v: Encounter.participant
path:
  v: Encounter.participant
slicing:
  discriminator:
    type:
      v: value
    path:
      v: type
  ordered:
    v: false
  rules:
    v: open

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit
path:
  v: Encounter.participant
slice name:
  v: FachlichZustaendigeOrganisationseinheit
short:
  v: LKF: Hauptkostenstelle – Fachlicher Funktionscode
min:
  v: 0
max:
  v: 1

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit.type
path:
  v: Encounter.participant.type
min:
  v: 1
pattern: CodeableConcept
  coding:
    system:
      v: https://elga.moped.at/CodeSystem/MopedEncounterParticipantTypesCS
      l: MopedEncounterParticipantTypesCS
    code:
      v: fachlich

id:
  v: Encounter.participant:FachlichZustaendigeOrganisationseinheit.actor
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.participant.actor
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://elga.moped.at/StructureDefinition/MopedKHOrganisationseinheit
    l: MopedKHOrganisationseinheit
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Fachlicher Funktionscode

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit
path:
  v: Encounter.participant
slice name:
  v: PflegerischZustaendigeOrganisationseinheit
short:
  v: LKF: Hauptkostenstelle – Pflegerischer Funktionscode
min:
  v: 0
max:
  v: 1

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit.type
path:
  v: Encounter.participant.type
min:
  v: 1
pattern: CodeableConcept
  coding:
    system:
      v: https://elga.moped.at/CodeSystem/MopedEncounterParticipantTypesCS
      l: MopedEncounterParticipantTypesCS
    code:
      v: pflegerisch

id:
  v: Encounter.participant:PflegerischZustaendigeOrganisationseinheit.actor
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.participant.actor
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://elga.moped.at/StructureDefinition/MopedKHOrganisationseinheit
    l: MopedKHOrganisationseinheit
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Pflegerischer Funktionscode

id:
  v: Encounter.actualPeriod
path:
  v: Encounter.actualPeriod
short:
  v: LKF: Zugangs- und Abgangsdatum

id:
  v: Encounter.actualPeriod.start
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.actualPeriod.start
short:
  v: LKF: Hauptkostenstelle/Fachgebiet – Zugangsdatum/Kontaktdatum; LKF: Hauptkostenstelle/Fachgebiet – Zugangsuhrzeit/Kontaktuhrzeit
min:
  v: 1
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle/Fachgebiet – Zugangsdatum/Kontaktdatum
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle/Fachgebiet – Zugangsuhrzeit/Kontaktuhrzeit

id:
  v: Encounter.actualPeriod.end
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.actualPeriod.end
short:
  v: LKF: Hauptkostenstelle – Abgangsdatum; LKF: Hauptkostenstelle – Abgangsuhrzeit
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Abgangsdatum
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Abgangsuhrzeit

id:
  v: Encounter.admission.extension
path:
  v: Encounter.admission.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 1

id:
  v: Encounter.admission.extension:Altersgruppe
path:
  v: Encounter.admission.extension
slice name:
  v: Altersgruppe
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: https://elga.moped.at/StructureDefinition/moped-ext-altersgruppe
    l: moped-ext-altersgruppe
must support:
  v: true

id:
  v: Encounter.admission.extension:Altersgruppe.extension
path:
  v: Encounter.admission.extension.extension
min:
  v: 1

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiZugang
path:
  v: Encounter.admission.extension.extension
slice name:
  v: beiZugang
min:
  v: 1

id:
  v: Encounter.admission.extension:Altersgruppe.extension:beiZugang.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.admission.extension.extension.value[x]
short:
  v: LKF: Altersgruppe bei Zugang/Kontakt
min:
  v: 1
mapping:
  identity:
    v: LKF
  map:
    v: Altersgruppe bei Zugang/Kontakt

id:
  v: Encounter.admission.dischargeDisposition
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://elga.moped.at/ActorDefinition/MopedKHActor
      l: MopedKHActor
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Encounter.admission.dischargeDisposition
short:
  v: LKF: Hauptkostenstelle – Abgangsart
mapping:
  identity:
    v: LKF
  map:
    v: Hauptkostenstelle – Abgangsart