mii-pr-mtb-therapieempfehlung
type: StructureDefinition
node role: treeRoot
id:
  v: mii-pr-mtb-therapieempfehlung
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition mii-pr-mtb-therapieempfehlung Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> MedicationRequest 0..* MII_PR_Onko_Therapieempfehlung_Medikation Ordering of medication for patient or group #xD; Slices for extension Content/Rules for all slices #xD; extension:Prioritaet S 0..1 decimal MII EX MTB Empfehlung Priorität URL: https://www.medizininformatik-initiative.de/fhir/ext/modul-mtb/StructureDefinition/mii-ex-mtb-empfehlung-prioritaet #xD; extension:Evidenzgraduierung S 0..1 CodeableConcept MII EX MTB Empfehlung Evidenzgraduierung URL: https://www.medizininformatik-initiative.de/fhir/ext/modul-mtb/StructureDefinition/mii-ex-mtb-empfehlung-evidenzgraduierung #xD; extension:Publikation S 0..* Identifier MII EX MTB Empfehlung Publikation URL: https://www.medizininformatik-initiative.de/fhir/ext/modul-mtb/StructureDefinition/mii-ex-mtb-empfehlung-publikation #xD; status 1..1 code active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown #xD; intent 1..1 code proposal | option #xD; Slices for reasonReference 1..* Reference(MII PR Onkologie Diagnose Primärtumor | Condition | Observation) Grund Referenz Slice: Unordered, Open by profile:$this.resolve() #xD; reasonReference:StuetzendeMolekulareAlteration S 0..* Reference(MII PR Patho Finding | MII PR MolGen Variante | MII PR Onkologie Genetische Variante | Observation) Stützende molekulare Alterationen #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
extension:
  url:
    v: https://www.medizininformatik-initiative.de/fhir/modul-meta/StructureDefinition/mii-ex-meta-license-codeable
    l: mii-ex-meta-license-codeable
  value: CodeableConcept
    coding:
      system:
        v: http://hl7.org/fhir/spdx-license
        l: spdx-license
      code:
        v: CC-BY-4.0
      display:
        v: Creative Commons Attribution 4.0 International
url:
  v: https://www.medizininformatik-initiative.de/fhir/ext/modul-mtb/StructureDefinition/mii-pr-mtb-therapieempfehlung
  l: mii-pr-mtb-therapieempfehlung
version:
  v: 2026.0.1
name:
  v: MII_PR_MTB_Therapieempfehlung
title:
  v: MII PR MTB Therapieempfehlung Systemische Therapie
status:
  v: active
date:
  v: 2026-03-30T07:35:49+00:00
publisher:
  v: Medizininformatik-Initiative
contact:
  name:
    v: Medizininformatik-Initiative
  telecom:
    system:
      v: url
    value:
      v: https://www.medizininformatik-initiative.de
description:
  v: Therapieempfehlung für eine medikamentöse Systemische Therapie
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 276
fhir version:
  v: 4.0.1
kind:
  v: resource
abstract:
  v: false
type:
  v: MedicationRequest
  l: MedicationRequest
base definition:
  v: https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-therapieempfehlung-medikation
  l: mii-pr-onko-therapieempfehlung-medikation
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 2026.0.3
  element:
    id:
      v: MedicationRequest
    path:
      v: MedicationRequest
    short:
      v: Ordering of medication for patient or group
    definition:
      v: An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns.
    comment:
      v: MI-I Medikamentenverordnung
    alias:
      v: Prescription
    alias:
      v: Order
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: MedicationRequest
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        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()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      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()
      xpath:
        v: exists(f:text/h:div)
      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()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act
    mapping:
      identity:
        v: workflow
      map:
        v: Request
    mapping:
      identity:
        v: script10.6
      map:
        v: Message/Body/NewRx
    mapping:
      identity:
        v: rim
      map:
        v: CombinedMedicationRequest
  element:
    id:
      v: MedicationRequest.id
    path:
      v: MedicationRequest.id
    short:
      v: Logical id of this artifact

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.

v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.

v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.

v: 0

v: 1

path:
  v: Resource.id
min:
  v: 0
max:
  v: 1

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

v: true

v: true

id:
  v: MedicationRequest.meta
path:
  v: MedicationRequest.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
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: N/A

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

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

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

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

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

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

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

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

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

id:
  v: MedicationRequest.language
path:
  v: MedicationRequest.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
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      l: all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    l: languages
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

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

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

id:
  v: MedicationRequest.extension:Prioritaet
path:
  v: MedicationRequest.extension
slice name:
  v: Prioritaet
short:
  v: MII EX MTB Empfehlung Priorität
definition:
  v: Priorität der (einzelnen) Empfehlung
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: https://www.medizininformatik-initiative.de/fhir/ext/modul-mtb/StructureDefinition/mii-ex-mtb-empfehlung-prioritaet
    l: mii-ex-mtb-empfehlung-prioritaet
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: true

id:
  v: MedicationRequest.extension:Evidenzgraduierung
path:
  v: MedicationRequest.extension
slice name:
  v: Evidenzgraduierung
short:
  v: MII EX MTB Empfehlung Evidenzgraduierung
definition:
  v: Evidenzgraduierung der (einzelnen) Empfehlung
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: https://www.medizininformatik-initiative.de/fhir/ext/modul-mtb/StructureDefinition/mii-ex-mtb-empfehlung-evidenzgraduierung
    l: mii-ex-mtb-empfehlung-evidenzgraduierung
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: true

id:
  v: MedicationRequest.extension:Publikation
path:
  v: MedicationRequest.extension
slice name:
  v: Publikation
short:
  v: MII EX MTB Empfehlung Publikation
definition:
  v: Verweis auf Publikation der (einzelnen) Empfehlung
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: https://www.medizininformatik-initiative.de/fhir/ext/modul-mtb/StructureDefinition/mii-ex-mtb-empfehlung-publikation
    l: mii-ex-mtb-empfehlung-publikation
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: true

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

id:
  v: MedicationRequest.identifier
path:
  v: MedicationRequest.identifier
short:
  v: Identifikator
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Identifikator
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Identifier
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Ein Identifikator für die Medikationsverordnung
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Ein Identifikator für die Medikationsverordnung
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: An identifier for this medication request
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: This is a business identifier, not a resource identifier.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CX / EI (occasionally, more often EI maps to a resource id or a URL)
mapping:
  identity:
    v: rim
  map:
    v: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
mapping:
  identity:
    v: servd
  map:
    v: Identifier
mapping:
  identity:
    v: workflow
  map:
    v: Request.identifier
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Header/PrescriberOrderNumber
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: v2
  map:
    v: ORC-2-Placer Order Number / ORC-3-Filler Order Number
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: MedicationRequest.status
path:
  v: MedicationRequest.status
short:
  v: active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en
    extension:
      url:
        v: content
        l: content
      value: String
        v: active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Status der Umsetzung der Therapieempfehlung
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Status der Umsetzung der Therapieempfehlung
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en
    extension:
      url:
        v: content
        l: content
      value: String
        v: Status of therapy recommendation implementation
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: draft: Nicht umgesetzt, active: In Umsetzung, completed: Abgeschlossen oder abgebrochen (Patient verstorben)
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
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: MedicationRequestStatus
  strength:
    v: required
  description:
    v: A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-status|4.0.1
    l: http://hl7.org/fhir/ValueSet/medicationrequest-status
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: workflow
  map:
    v: Request.status
mapping:
  identity:
    v: script10.6
  map:
    v: no mapping
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: rim
  map:
    v: .statusCode

id:
  v: MedicationRequest.statusReason
path:
  v: MedicationRequest.statusReason
short:
  v: Reason for current status
definition:
  v: Captures the reason for the current state of the MedicationRequest.
comment:
  v: This is generally only used for "exception" statuses such as "suspended" or "cancelled". The reason why the MedicationRequest was created at all is captured in reasonCode, not here.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.statusReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestStatusReason
  strength:
    v: example
  description:
    v: Identifies the reasons for a given status.
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-status-reason
    l: medicationrequest-status-reason
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: workflow
  map:
    v: Request.statusReason
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde

id:
  v: MedicationRequest.intent
path:
  v: MedicationRequest.intent
short:
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: proposal | option
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en
    extension:
      url:
        v: content
        l: content
      value: String
        v: proposal | option
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Da das MTB nur Empfehlungen abgibt, wird hier typischerweise 'proposal' stehen. Es sei denn, diese Therapieempfehlung ist Teil einer RequestGroup (z.B. Kombinationstherapie). In dem Fall muss hier 'option' stehen.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Da das MTB nur Empfehlungen abgibt wird hier typischerweise proposal stehen. Es sei denn diese Therapieempfehlung ist Teil einer RequestGroup - z.B. Kombinationstherapie. In dem Fall muss hier option stehen.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en
    extension:
      url:
        v: content
        l: content
      value: String
        v: Since the MTB only provides recommendations this will typically be proposal. Unless this therapy recommendation is part of a RequestGroup - e.g. combination therapy. In that case option must be used.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: It is expected that the type of requester will be restricted for different stages of a MedicationRequest. For example, Proposals can be created by a patient, relatedPerson, Practitioner or Device. Plans can be created by Practitioners, Patients, RelatedPersons and Devices. Original orders can be created by a Practitioner only. An instance-order is an instantiation of a request or order and may be used to populate Medication Administration Record. This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.intent
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element changes the interpretation of all descriptive attributes. For example "the time the request is recommended to occur" vs. "the time the request is authorized to occur" or "who is recommended to perform the request" vs. "who is authorized to perform the request
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestIntent
  strength:
    v: required
  description:
    v: The kind of medication order.
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-intent|4.0.1
    l: http://hl7.org/fhir/ValueSet/medicationrequest-intent
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: workflow
  map:
    v: Request.intent
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)

id:
  v: MedicationRequest.category
path:
  v: MedicationRequest.category
short:
  v: Type of medication usage
definition:
  v: Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).
comment:
  v: The category can be used to include where the medication is expected to be consumed or other types of requests.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestCategory
  strength:
    v: example
  description:
    v: A coded concept identifying the category of medication request. For example, where the medication is to be consumed or administered, or the type of medication treatment.
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-category
    l: medicationrequest-category
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/Directions or Message/Body/NewRx/MedicationPrescribed/StructuredSIG
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value

id:
  v: MedicationRequest.priority
path:
  v: MedicationRequest.priority
short:
  v: routine | urgent | asap | stat
definition:
  v: Indicates how quickly the Medication Request should be addressed with respect to other requests.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.priority
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestPriority
  strength:
    v: required
  description:
    v: Identifies the level of importance to be assigned to actioning the request.
  value set:
    v: http://hl7.org/fhir/ValueSet/request-priority|4.0.1
    l: http://hl7.org/fhir/ValueSet/request-priority
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: workflow
  map:
    v: Request.priority
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.grade
mapping:
  identity:
    v: rim
  map:
    v: .priorityCode

id:
  v: MedicationRequest.doNotPerform
path:
  v: MedicationRequest.doNotPerform
short:
  v: True if request is prohibiting action
definition:
  v: If true indicates that the provider is asking for the medication request not to occur.
comment:
  v: If do not perform is not specified, the request is a positive request e.g. "do perform".
min:
  v: 0
max:
  v: 0
base:
  path:
    v: MedicationRequest.doNotPerform
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because this element negates the request to occur (ie, this is a request for the medication not to be ordered or prescribed, etc)
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: SubstanceAdministration.actionNegationInd

id:
  v: MedicationRequest.reported[x]
path:
  v: MedicationRequest.reported[x]
short:
  v: Reported rather than primary record
definition:
  v: Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.reported[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    l: PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=INF].role

id:
  v: MedicationRequest.medication[x]
path:
  v: MedicationRequest.medication[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  rules:
    v: open
short:
  v: Medikation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Medikation
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Medication
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Das Medikament, das verordnet wurde. Code oder Referenz auf Medication-Objekt.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Medikation, die verordnet wurde. Code oder Referenz auf Medication-Objekt.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: The medication that was requested. Code or a reference to a Medication resource.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.medication[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Medication
    l: Medication
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationCode
  strength:
    v: example
  description:
    v: A coded concept identifying substance or product that can be ordered.
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes
    l: medication-codes
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: workflow
  map:
    v: Request.code
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed Medication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode Medication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier Medication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: v2
  map:
    v: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
mapping:
  identity:
    v: rim
  map:
    v: consumable.administrableMedication

id:
  v: MedicationRequest.medication[x]:medicationReference
path:
  v: MedicationRequest.medication[x]
slice name:
  v: medicationReference
short:
  v: Medication to be taken
definition:
  v: Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.
comment:
  v: If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.medication[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/Medication
    l: Medication
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: workflow
  map:
    v: Request.code
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed Medication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode Medication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier Medication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: v2
  map:
    v: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
mapping:
  identity:
    v: rim
  map:
    v: consumable.administrableMedication

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept
path:
  v: MedicationRequest.medication[x]
slice name:
  v: medicationCodeableConcept
short:
  v: Medication to be taken
definition:
  v: Identifies the medication being requested. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.
comment:
  v: If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the Medication resource is recommended. For example, if you require form or lot number or if the medication is compounded or extemporaneously prepared, then you must reference the Medication resource.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.medication[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationCode
  strength:
    v: example
  description:
    v: A coded concept identifying substance or product that can be ordered.
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-codes
    l: medication-codes
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: workflow
  map:
    v: Request.code
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed Medication.code.coding.code = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCode Medication.code.coding.system = Message/Body/NewRx/MedicationPrescribed/DrugCoded/ProductCodeQualifier Medication.code.coding.display = Message/Body/NewRx/MedicationPrescribed/DrugDescription
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.what[x]
mapping:
  identity:
    v: v2
  map:
    v: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
mapping:
  identity:
    v: rim
  map:
    v: consumable.administrableMedication

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.id
path:
  v: MedicationRequest.medication[x].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
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding
path:
  v: MedicationRequest.medication[x].coding
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: $this
  rules:
    v: open
short:
  v: Code defined by a terminology system
definition:
  v: A reference to a code defined by a terminology system.
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 1
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:Pharmazentralnummer
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: Pharmazentralnummer
short:
  v: PZN Code
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: PZN Code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: PZN code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Ein Verweis auf einen von der Pharmazentralnummer (PZN) definierten Code
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Ein Verweis auf einen von der Pharmazentralnummer definierten Code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: A reference to a code defined by Pharmazentralnummer
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
pattern: Coding
  system:
    v: http://fhir.de/CodeSystem/ifa/pzn
    l: pzn
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:Pharmazentralnummer.id
path:
  v: MedicationRequest.medication[x].coding.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
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:Pharmazentralnummer.system
path:
  v: MedicationRequest.medication[x].coding.system
short:
  v: Identity of the terminology system
definition:
  v: The identification of the code system that defines the meaning of the symbol in the code.
comment:
  v: The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
requirements:
  v: Need to be unambiguous about the source of the definition of the symbol.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.3
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystem
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:Pharmazentralnummer.version
path:
  v: MedicationRequest.medication[x].coding.version
short:
  v: Version of the system - if relevant
definition:
  v: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
comment:
  v: Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.7
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystemVersion
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:Pharmazentralnummer.code
path:
  v: MedicationRequest.medication[x].coding.code
short:
  v: Symbol in syntax defined by the system
definition:
  v: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Need to refer to a particular code in the system.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.1
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:Pharmazentralnummer.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: MedicationRequest.medication[x].coding.display
short:
  v: Representation defined by the system
definition:
  v: A representation of the meaning of the code in the system, following the rules of the system.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Need to be able to carry a human-readable meaning of the code for readers that do not know the system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.2 - but note this is not well followed
mapping:
  identity:
    v: rim
  map:
    v: CV.displayName
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:Pharmazentralnummer.userSelected
path:
  v: MedicationRequest.medication[x].coding.userSelected
short:
  v: If this coding was chosen directly by the user
definition:
  v: Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
comment:
  v: Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
requirements:
  v: This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.userSelected
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: Sometimes implied by being first
mapping:
  identity:
    v: rim
  map:
    v: CD.codingRationale
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassDe
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: atcClassDe
short:
  v: ATC Klassifikation deutsche Version
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: ATC Code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: ATC code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: ATC-Codes für Fertigarzneimittel bspw. von Kombiprodukten
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Ein Verweis auf einen von der deutschen Fassung der Anatomisch-Therapeutisch-Chemischen Klassifikation definierten Code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: A reference to a code defined by the German edition of the Anatomical Therapeutic Chemical classification system
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
pattern: Coding
  system:
    v: http://fhir.de/CodeSystem/bfarm/atc
    l: atc
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/ValueSet/mii-vs-medikation-atc
    l: mii-vs-medikation-atc
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassDe.id
path:
  v: MedicationRequest.medication[x].coding.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
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassDe.system
path:
  v: MedicationRequest.medication[x].coding.system
short:
  v: Identity of the terminology system
definition:
  v: The identification of the code system that defines the meaning of the symbol in the code.
comment:
  v: The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
requirements:
  v: Need to be unambiguous about the source of the definition of the symbol.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.3
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystem
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassDe.version
path:
  v: MedicationRequest.medication[x].coding.version
short:
  v: Version of the system - if relevant
definition:
  v: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
comment:
  v: Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.7
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystemVersion
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassDe.code
path:
  v: MedicationRequest.medication[x].coding.code
short:
  v: Symbol in syntax defined by the system
definition:
  v: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Need to refer to a particular code in the system.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.1
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassDe.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: MedicationRequest.medication[x].coding.display
short:
  v: Representation defined by the system
definition:
  v: A representation of the meaning of the code in the system, following the rules of the system.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Need to be able to carry a human-readable meaning of the code for readers that do not know the system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.2 - but note this is not well followed
mapping:
  identity:
    v: rim
  map:
    v: CV.displayName
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassDe.userSelected
path:
  v: MedicationRequest.medication[x].coding.userSelected
short:
  v: If this coding was chosen directly by the user
definition:
  v: Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
comment:
  v: Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
requirements:
  v: This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.userSelected
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: Sometimes implied by being first
mapping:
  identity:
    v: rim
  map:
    v: CD.codingRationale
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassEn
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: atcClassEn
short:
  v: Anatomical Therapeutic Chemical Classification System
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: ATC WHO Code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: ATC WHO code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: ATC Classification International WHO Version
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Ein Verweis auf einen von der WHO Anatomisch-Therapeutisch-Chemischen Klassifikation definierten Code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: A reference to a code defined by the WHO edition of the Anatomical Therapeutic Chemical classification system
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
pattern: Coding
  system:
    v: http://www.whocc.no/atc
    l: atc
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassEn.id
path:
  v: MedicationRequest.medication[x].coding.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
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassEn.system
path:
  v: MedicationRequest.medication[x].coding.system
short:
  v: Identity of the terminology system
definition:
  v: The identification of the code system that defines the meaning of the symbol in the code.
comment:
  v: The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
requirements:
  v: Need to be unambiguous about the source of the definition of the symbol.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.3
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystem
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassEn.version
path:
  v: MedicationRequest.medication[x].coding.version
short:
  v: Version of the system - if relevant
definition:
  v: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
comment:
  v: Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.7
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystemVersion
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassEn.code
path:
  v: MedicationRequest.medication[x].coding.code
short:
  v: Symbol in syntax defined by the system
definition:
  v: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Need to refer to a particular code in the system.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.1
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassEn.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: MedicationRequest.medication[x].coding.display
short:
  v: Representation defined by the system
definition:
  v: A representation of the meaning of the code in the system, following the rules of the system.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Need to be able to carry a human-readable meaning of the code for readers that do not know the system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.2 - but note this is not well followed
mapping:
  identity:
    v: rim
  map:
    v: CV.displayName
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:atcClassEn.userSelected
path:
  v: MedicationRequest.medication[x].coding.userSelected
short:
  v: If this coding was chosen directly by the user
definition:
  v: Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
comment:
  v: Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
requirements:
  v: This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.userSelected
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: Sometimes implied by being first
mapping:
  identity:
    v: rim
  map:
    v: CD.codingRationale
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:UNII
path:
  v: MedicationRequest.medication[x].coding
slice name:
  v: UNII
short:
  v: Unique Ingredient Identifier
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Unique Ingredient Identifier
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Unique Ingredient Identifier
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Global Susbstance Registration System Unique Ingredient Identifier. Soll nur eingesetzt werden, wenn weder ATC-Code noch PZN existiert, z.B. bei experimentellen Krebsmedikamenten.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Ein Unique Ingredient Identifier (UNII) aus dem Global Substance Registration System der amerikanischen Food & Drug Administration
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: A Unique Ingredient Identifier (UNII) from the american Food & Drug Administration's Global Substance Registration System
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
    l: Coding
pattern: Coding
  system:
    v: http://fdasis.nlm.nih.gov
    l: fdasis.nlm.nih.gov
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
mapping:
  identity:
    v: rim
  map:
    v: CV
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding rdfs:subClassOf dt:CDCoding
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:UNII.id
path:
  v: MedicationRequest.medication[x].coding.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
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:UNII.system
path:
  v: MedicationRequest.medication[x].coding.system
short:
  v: Identity of the terminology system
definition:
  v: The identification of the code system that defines the meaning of the symbol in the code.
comment:
  v: The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
requirements:
  v: Need to be unambiguous about the source of the definition of the symbol.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.3
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystem
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:UNII.version
path:
  v: MedicationRequest.medication[x].coding.version
short:
  v: Version of the system - if relevant
definition:
  v: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
comment:
  v: Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.7
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystemVersion
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:UNII.code
path:
  v: MedicationRequest.medication[x].coding.code
short:
  v: Symbol in syntax defined by the system
definition:
  v: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Need to refer to a particular code in the system.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.1
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:UNII.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: MedicationRequest.medication[x].coding.display
short:
  v: Representation defined by the system
definition:
  v: A representation of the meaning of the code in the system, following the rules of the system.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Need to be able to carry a human-readable meaning of the code for readers that do not know the system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.2 - but note this is not well followed
mapping:
  identity:
    v: rim
  map:
    v: CV.displayName
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.coding:UNII.userSelected
path:
  v: MedicationRequest.medication[x].coding.userSelected
short:
  v: If this coding was chosen directly by the user
definition:
  v: Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
comment:
  v: Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
requirements:
  v: This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.userSelected
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: Sometimes implied by being first
mapping:
  identity:
    v: rim
  map:
    v: CD.codingRationale
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]

id:
  v: MedicationRequest.medication[x]:medicationCodeableConcept.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: MedicationRequest.medication[x].text
short:
  v: Plain text representation of the concept
definition:
  v: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
comment:
  v: Very often the text is the same as a displayName of one of the codings.
requirements:
  v: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: MedicationRequest.subject
path:
  v: MedicationRequest.subject
short:
  v: Who or group medication request is for
definition:
  v: A link to a resource representing the person or set of individuals to whom the medication will be given.
comment:
  v: The subject on a medication request is mandatory. For the secondary use case where the actual subject is not provided, there still must be an anonymized subject specified.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.subject
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.subject
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/Patient (need detail to link to specific patient … Patient.Identification in SCRIPT)
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: v2
  map:
    v: PID-3-Patient ID List
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].role
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: MedicationRequest.encounter
path:
  v: MedicationRequest.encounter
short:
  v: Fall oder Kontakt
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Fall / Kontakt
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Encounter
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Fall oder Kontakt, bei dem die Medikation verordnet wurde.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Fall oder Kontakt, bei dem die Medikation verordnet wurde.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Encounter or episode of care during which the medication was requested.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter." If there is a need to link to episodes of care they will be handled with an extension.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.encounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.context
mapping:
  identity:
    v: script10.6
  map:
    v: no mapping
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: v2
  map:
    v: PV1-19-Visit Number
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]

id:
  v: MedicationRequest.supportingInformation
path:
  v: MedicationRequest.supportingInformation
short:
  v: Information to support ordering of the medication
definition:
  v: Include additional information (for example, patient height and weight) that supports the ordering of the medication.
comment:
  v: References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.supportingInformation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    l: Resource
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.supportingInfo
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.context
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]

id:
  v: MedicationRequest.authoredOn
path:
  v: MedicationRequest.authoredOn
short:
  v: Datum der Verordnung
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Datum der Verordnung
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Authored on
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Das Datum und vielleicht die Uhrzeit, an dem die Verordnung ursprünglich verfasst wurde.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Das Datum, an dem die Verordnung ursprünglich verfasst wurde.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: The date and perhaps time when the prescription was initially written or authored on.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.authoredOn
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: workflow
  map:
    v: Request.authoredOn
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/WrittenDate
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: v2
  map:
    v: RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction
mapping:
  identity:
    v: rim
  map:
    v: author.time

id:
  v: MedicationRequest.requester
path:
  v: MedicationRequest.requester
short:
  v: Anforderer
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Anforderer
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Requester
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Die Person, Organisation oder das Gerät, die die Verordnung initiiert hat und für deren Aktivierung verantwortlich ist.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Die Person, Organisation oder das Gerät, die die Verordnung initiiert hat und für deren Aktivierung verantwortlich ist.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: The individual, organization, or device that initiated the request and has responsibility for its activation.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.requester
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    l: PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.requester
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.author
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=AUT].role

id:
  v: MedicationRequest.performer
path:
  v: MedicationRequest.performer
short:
  v: Intended performer of administration
definition:
  v: The specified desired performer of the medication treatment (e.g. the performer of the medication administration).
comment:
  v: References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.performer
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    l: PractitionerRole
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    l: Organization
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device
    l: Device
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CareTeam
    l: CareTeam
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.performer
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.actor
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]

id:
  v: MedicationRequest.performerType
path:
  v: MedicationRequest.performerType
short:
  v: Desired kind of performer of the medication administration
definition:
  v: Indicates the type of performer of the administration of the medication.
comment:
  v: If specified without indicating a performer, this indicates that the performer must be of the specified type. If specified with a performer then it indicates the requirements of the performer if the designated performer is not available.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.performerType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestPerformerType
  strength:
    v: example
  description:
    v: Identifies the type of individual that is desired to administer the medication.
  value set:
    v: http://hl7.org/fhir/ValueSet/performer-role
    l: performer-role
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: workflow
  map:
    v: Request.performerType
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRF].role[scoper.determinerCode=KIND].code

id:
  v: MedicationRequest.recorder
path:
  v: MedicationRequest.recorder
short:
  v: Auftragserfasser
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Auftragserfasser
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Recorder
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Die Person, die den Auftrag im Namen einer anderen Person eingegeben hat, zum Beispiel im Fall eines mündlichen oder telefonischen Auftrags.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Die Person, die den Auftrag im Namen einer anderen Person eingegeben hat, zum Beispiel im Fall eines mündlichen oder telefonischen Auftrags.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.recorder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    l: PractitionerRole
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.who
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=TRANS].role[classCode=ASSIGNED].code (HealthcareProviderType)

id:
  v: MedicationRequest.reasonCode
path:
  v: MedicationRequest.reasonCode
short:
  v: Grund Code
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Grund Code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Reason code
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Grund für die Medikationsverordnung als Code.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Grund für die Medikationverordnung als Code.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Reason for the medication request as a code.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.reasonCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestReason
  strength:
    v: example
  description:
    v: A coded concept indicating why the medication was ordered.
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-code
    l: condition-code
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: workflow
  map:
    v: Request.reasonCode
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: v2
  map:
    v: ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication
mapping:
  identity:
    v: rim
  map:
    v: reason.observation.reasonCode

id:
  v: MedicationRequest.reasonReference
path:
  v: MedicationRequest.reasonReference
slicing:
  discriminator:
    type:
      v: profile
    path:
      v: $this.resolve()
  ordered:
    v: false
  rules:
    v: open
short:
  v: Grund Referenz
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Grund Referenz
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Reason reference
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Grund für die Medikationsverordnung als Referenz auf Condition- oder Observation-Objekt.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Grund für die Medikationsverordnung als Referenz auf Condition- oder Observation-Objekt.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Condition or observation that supports why the medication was administered.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: This is a reference to a condition or observation that is the reason for the medication order. If only a code exists, use reasonCode.
min:
  v: 1
max:
  v: *
base:
  path:
    v: MedicationRequest.reasonReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-diagnose-primaertumor
    l: mii-pr-onko-diagnose-primaertumor
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Condition
    l: Condition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    l: Observation
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.reasonReference
mapping:
  identity:
    v: script10.6
  map:
    v: no mapping
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: reason.observation[code=ASSERTION].value

id:
  v: MedicationRequest.reasonReference:Primaertumor
path:
  v: MedicationRequest.reasonReference
slice name:
  v: Primaertumor
short:
  v: Tumorerkrankung (Pflicht)
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Grund Referenz
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Reason reference
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Referenz auf die Primärtumor-Diagnose, auf die sich diese Therapieempfehlung bezieht.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Grund für die Medikationsverordnung als Referenz auf Condition- oder Observation-Objekt.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Condition or observation that supports why the medication was administered.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: This is a reference to a condition or observation that is the reason for the medication order. If only a code exists, use reasonCode.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationRequest.reasonReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-diagnose-primaertumor
    l: mii-pr-onko-diagnose-primaertumor
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.reasonReference
mapping:
  identity:
    v: script10.6
  map:
    v: no mapping
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: reason.observation[code=ASSERTION].value

id:
  v: MedicationRequest.reasonReference:StuetzendeMolekulareAlteration
path:
  v: MedicationRequest.reasonReference
slice name:
  v: StuetzendeMolekulareAlteration
short:
  v: Stützende molekulare Alteration(en)
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Stützende molekulare Alterationen
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en
    extension:
      url:
        v: content
        l: content
      value: String
        v: Supporting Molecular Alterations
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Verweis auf entsprechendes Feld in NGS Bericht und/oder IHC (Verweis auf KDS Molekular-Pathologischer Befundbericht)
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Verweis auf entsprechendes Feld in NGS Bericht und/oder IHC - Verweis auf KDS Molekular-Pathologischer Befundbericht
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en
    extension:
      url:
        v: content
        l: content
      value: String
        v: Reference to corresponding field in NGS report and/or IHC - reference to KDS Molecular Pathology Report
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Condition or observation that supports why the medication was administered.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: This is a reference to a condition or observation that is the reason for the medication order. If only a code exists, use reasonCode.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.reasonReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://www.medizininformatik-initiative.de/fhir/ext/modul-patho/StructureDefinition/mii-pr-patho-finding
    l: mii-pr-patho-finding
  target profile:
    v: https://www.medizininformatik-initiative.de/fhir/ext/modul-molgen/StructureDefinition/variante
    l: variante
  target profile:
    v: https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-genetische-variante
    l: mii-pr-onko-genetische-variante
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Observation
    l: Observation
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.reasonReference
mapping:
  identity:
    v: script10.6
  map:
    v: no mapping
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: reason.observation[code=ASSERTION].value

id:
  v: MedicationRequest.instantiatesCanonical
path:
  v: MedicationRequest.instantiatesCanonical
short:
  v: Instantiates FHIR protocol or definition
definition:
  v: The URL pointing to a protocol, guideline, orderset, or other definition that is adhered to in whole or in part by this MedicationRequest.
comment:
  v: see [Canonical References](http://hl7.org/fhir/R4/references.html#canonical)
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.instantiatesCanonical
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
    l: canonical
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: workflow
  map:
    v: Request.instantiates
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: MedicationRequest.instantiatesUri
path:
  v: MedicationRequest.instantiatesUri
short:
  v: Instantiates external protocol or definition
definition:
  v: The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this MedicationRequest.
comment:
  v: see http://en.wikipedia.org/wiki/Uniform_resource_identifier
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.instantiatesUri
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
    l: uri
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: MedicationRequest.basedOn
path:
  v: MedicationRequest.basedOn
short:
  v: Basiert auf
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Basiert auf
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Based on
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Ein Plan oder eine Anforderung, die ganz oder teilweise durch diese Medikationsverordnung erfüllt wird.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Ein Plan oder eine Anforderung, die ganz oder teilweise durch diese Medikationsverordnung erfüllt wird.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: A plan or request that is fulfilled in whole or in part by this medication request.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.basedOn
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CarePlan
    l: CarePlan
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    l: MedicationRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ServiceRequest
    l: ServiceRequest
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation
    l: ImmunizationRecommendation
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.basedOn
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]

id:
  v: MedicationRequest.groupIdentifier
path:
  v: MedicationRequest.groupIdentifier
short:
  v: Composite request this is part of
definition:
  v: A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition or prescription.
requirements:
  v: Requests are linked either by a "basedOn" relationship (i.e. one request is fulfilling another) or by having a common requisition. Requests that are part of the same requisition are generally treated independently from the perspective of changing their state or maintaining them after initial creation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.groupIdentifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CX / EI (occasionally, more often EI maps to a resource id or a URL)
mapping:
  identity:
    v: rim
  map:
    v: II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]
mapping:
  identity:
    v: servd
  map:
    v: Identifier
mapping:
  identity:
    v: workflow
  map:
    v: Request.groupIdentifier
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id

id:
  v: MedicationRequest.courseOfTherapyType
path:
  v: MedicationRequest.courseOfTherapyType
short:
  v: Overall pattern of medication administration
definition:
  v: The description of the overall patte3rn of the administration of the medication to the patient.
comment:
  v: This attribute should not be confused with the protocol of the medication.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationRequest.courseOfTherapyType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationRequestCourseOfTherapy
  strength:
    v: example
  description:
    v: Identifies the overall pattern of medication administratio.
  value set:
    v: http://hl7.org/fhir/ValueSet/medicationrequest-course-of-therapy
    l: medicationrequest-course-of-therapy
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: rim
  map:
    v: Act.code where classCode = LIST and moodCode = EVN

id:
  v: MedicationRequest.insurance
path:
  v: MedicationRequest.insurance
short:
  v: Associated insurance coverage
definition:
  v: Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.
comment:
  v: References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.insurance
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Coverage
    l: Coverage
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ClaimResponse
    l: ClaimResponse
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ref-1
  severity:
    v: error
  human:
    v: SHALL have a contained resource if a local reference is provided
  expression:
    v: reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))
  xpath:
    v: not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Reference
    l: Reference
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
mapping:
  identity:
    v: workflow
  map:
    v: Request.insurance
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COVBY].target

id:
  v: MedicationRequest.note
path:
  v: MedicationRequest.note
short:
  v: Hinweis
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Hinweis
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Note
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Zusätzliche Informationen zur Medikationsverordnung als Freitext.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Zusätzliche Informationen zur Medikationsverordnung als Freitext.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Additional information about the medication request as free text.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time. This element may need to be included in narrative because of the potential for modifying information. *Annotations SHOULD NOT* be used to communicate "modifying" information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible).
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Act
mapping:
  identity:
    v: workflow
  map:
    v: Request.note
mapping:
  identity:
    v: script10.6
  map:
    v: Message/Body/NewRx/MedicationPrescribed/Note
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value

id:
  v: MedicationRequest.dosageInstruction
path:
  v: MedicationRequest.dosageInstruction
short:
  v: Dosierungsanweisung
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Dosierungsanweisung
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Dosage instruction
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
definition:
  v: Gibt an, wie das Medikament vom Patienten zu verwenden ist.
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: de-DE
    extension:
      url:
        v: content
        l: content
      value: String
        v: Gibt an, wie das Medikament vom Patienten zu verwenden ist.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
  extension:
    extension:
      url:
        v: lang
        l: lang
      value: Code
        v: en-US
    extension:
      url:
        v: content
        l: content
      value: String
        v: Indicates how the medication is to be used by the patient.
    url:
      v: http://hl7.org/fhir/StructureDefinition/translation
      l: translation
comment:
  v: There are examples where a medication request may include the option of an oral dose or an Intravenous or Intramuscular dose. For example, "Ondansetron 8mg orally or IV twice a day as needed for nausea" or "Compazine® (prochlorperazine) 5-10mg PO or 25mg PR bid prn nausea or vomiting". In these cases, two medication requests would be created that could be grouped together. The decision on which dose and route of administration to use is based on the patient's condition at the time the dose is needed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationRequest.dosageInstruction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Dosage
    l: Dosage
  profile:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    l: DosageDE
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: DosageStructuredOrFreeTextWarning
  severity:
    v: warning
  human:
    v: Die Dosierungsangabe darf entweder nur als Freitext oder nur als vollständige strukturierte Information erfolgen — eine Mischung ist nicht erlaubt.
  expression:
    v: (%resource.ofType(MedicationRequest).dosageInstruction | ofType(MedicationDispense).dosageInstruction | ofType(MedicationStatement).dosage).all( (text.exists() and timing.empty() and doseAndRate.empty()) or (text.empty() and (timing.exists() or doseAndRate.exists())) )
  source:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    l: DosageDE
constraint:
  key:
    v: DosageStructuredRequiresBoth
  severity:
    v: error
  human:
    v: Wenn eine strukturierte Dosierungsangabe erfolgt, müssen sowohl timing als auch doseAndRate angegeben werden.
  expression:
    v: (%resource.ofType(MedicationRequest).dosageInstruction | ofType(MedicationDispense).dosageInstruction | ofType(MedicationStatement).dosage).all( (timing.exists() implies doseAndRate.exists()) and (doseAndRate.exists() implies timing.exists()) )
  source:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    l: DosageDE
constraint:
  key:
    v: DosageDoseUnitSameCode
  severity:
    v: error
  human:
    v: Die Dosiereinheit muss über alle Dosierungen gleich sein.
  expression:
    v: (%resource.ofType(MedicationRequest).dosageInstruction | ofType(MedicationDispense).dosageInstruction | ofType(MedicationStatement).dosage).all( doseAndRate.exists() implies ( %resource.dosageInstruction.doseAndRate.dose.ofType(Quantity).code | %resource.dosageInstruction.doseAndRate.dose.ofType(Range).low.code | %resource.dosageInstruction.doseAndRate.dose.ofType(Range).high.code ).distinct().count() = 1 )
  source:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    l: DosageDE
constraint:
  key:
    v: DosageWarnungViererschemaInText
  severity:
    v: warning
  human:
    v: Hinweis: In Dosage.text wurde ein Viererschema (z. B. 1-1-1-1) erkannt. Bitte prüfen, ob dies strukturiert abgebildet werden kann.
  expression:
    v: text.exists() implies text.matches('.*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\s*\\d+\\s*[-–]\\d+.*').not()
  source:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    l: DosageDE
constraint:
  key:
    v: FreeTextSingleDosageOnlyWarning
  severity:
    v: warning
  human:
    v: Wenn eine Dosierung als reiner Freitext angegeben ist, soll nur genau ein Dosage-Element existieren.
  expression:
    v: ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).exists(text.exists() and timing.empty() and doseAndRate.empty()) ) implies ( (%resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).count() = 1 )
  source:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/DosageDE
    l: DosageDE
constraint:
  key:
    v: dsg-1
  severity:
    v: error
  human:
    v: If present, dosage must include free text or structured data
  expression:
    v: text.exists() or doseAndRate.exists()
  source:
    v: https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/MedicationRequest
    l: MedicationRequest
must support:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]
mapping:
  identity:
    v: workflow
  map:
    v: Request.occurrence[x]
mapping:
  identity:
    v: rim
  map:
    v: see dosageInstruction mapping

id:
  v: MedicationRequest.dosageInstruction.id
path:
  v: MedicationRequest.dosageInstruction.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
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

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

id:
  v: MedicationRequest.dosageInstruction.sequence
path:
  v: MedicationRequest.dosageInstruction.sequence
short:
  v: The order of the dosage instructions
definition:
  v: Indicates the order in which the dosage instructions should be applied or interpreted.
comment:
  v: 32 bit number; for values larger than this, use decimal
requirements:
  v: If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent. If the sequence number is different, then the Dosages are intended to be sequential.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.sequence
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: TQ1-1
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: MedicationRequest.dosageInstruction.text
path:
  v: MedicationRequest.dosageInstruction.text
short:
  v: Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'
definition:
  v: Freitext-Dosierungsanweisungen, z. B. 'Maximal 3x täglich 1 Stück bei Bedarf'. Als Quelle dient hier ausschließlich der Arzt oder Apotheker
comment:
  v: Die Freitextdosierung sollte nur angegeben werden, wenn aufgrund der Komplexität keine strukturierte Dosierung möglich ist, um widersprüchliche Anweisungen zu vermeiden.
requirements:
  v: Free text dosage instructions can be used for cases where the instructions are too complex to code. The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated. If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing. Additional information about administration or preparation of the medication should be included as text.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: RXO-6; RXE-21
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: MedicationRequest.dosageInstruction.additionalInstruction
path:
  v: MedicationRequest.dosageInstruction.additionalInstruction
short:
  v: Supplemental instruction or warnings to the patient - e.g. "with meals", "may cause drowsiness"
definition:
  v: Supplemental instructions to the patient on how to take the medication (e.g. "with meals" or"take half to one hour before food") or warnings for the patient about the medication (e.g. "may cause drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps").
comment:
  v: Information about administration or preparation of the medication (e.g. "infuse as rapidly as possibly via intraperitoneal port" or "immediately following drug x") should be populated in dosage.text.
requirements:
  v: Additional instruction is intended to be coded, but where no code exists, the element could include text. For example, "Swallow with plenty of water" which might or might not be coded.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Dosage.additionalInstruction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AdditionalInstruction
  strength:
    v: example
  description:
    v: A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery".
  value set:
    v: http://hl7.org/fhir/ValueSet/additional-instruction-codes
    l: additional-instruction-codes
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: CE/CNE/CWE
mapping:
  identity:
    v: rim
  map:
    v: CD
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept rdfs:subClassOf dt:CD
mapping:
  identity:
    v: v2
  map:
    v: RXO-7
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: MedicationRequest.dosageInstruction.patientInstruction
path:
  v: MedicationRequest.dosageInstruction.patientInstruction
short:
  v: Patient or consumer oriented instructions
definition:
  v: Instructions in terms that are understood by the patient or consumer.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.patientInstruction
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: RXO-7
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: MedicationRequest.dosageInstruction.timing
path:
  v: MedicationRequest.dosageInstruction.timing
short:
  v: Wann das Medikament verabreicht werden soll
definition:
  v: Wann das Medikament verabreicht werden soll.
comment:
  v: Um widersprüchliche Anweisungen zu vermeiden, ist entweder Dosage.timing oder Dosage.text zu befüllen. Falls eine strukturierte Dosierung als Text abgebildet werden soll ist dafür die GeneratedDosageInstructionsMeta Extension zu verwenden.
requirements:
  v: The timing schedule for giving the medication to the patient. This data type allows many different expressions. For example: "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013". Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.timing
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Timing
    l: Timing
  profile:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE
    l: TimingDE
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: QSET<TS> (GTS)
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: MedicationRequest.dosageInstruction.timing.id
path:
  v: MedicationRequest.dosageInstruction.timing.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
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

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

id:
  v: MedicationRequest.dosageInstruction.timing.event
path:
  v: MedicationRequest.dosageInstruction.timing.event
short:
  v: When the event occurs
definition:
  v: Identifies specific times when the event occurs.
requirements:
  v: In a Medication Administration Record, for instance, you need to take a general specification, and turn it into a precise specification.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Timing.event
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: dateTime
    l: dateTime
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: QLIST<TS>

id:
  v: MedicationRequest.dosageInstruction.timing.repeat
path:
  v: MedicationRequest.dosageInstruction.timing.repeat
short:
  v: Wann das Ereignis stattfinden soll
definition:
  v: Eine Menge von Regeln, die beschreiben, wann das Ereignis geplant ist.
requirements:
  v: Many timing schedules are determined by regular repetitions.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Element
    l: Element
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: tim-9
  severity:
    v: error
  human:
    v: If there's an offset, there must be a when (and not C, CM, CD, CV)
  expression:
    v: offset.empty() or (when.exists() and ((when in ('C' | 'CM' | 'CD' | 'CV')).not()))
  xpath:
    v: not(exists(f:offset)) or exists(f:when)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Timing
    l: Timing
constraint:
  key:
    v: tim-5
  severity:
    v: error
  human:
    v: period SHALL be a non-negative value
  expression:
    v: period.exists() implies period >= 0
  xpath:
    v: f:period/@value >= 0 or not(f:period/@value)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Timing
    l: Timing
constraint:
  key:
    v: tim-6
  severity:
    v: error
  human:
    v: If there's a periodMax, there must be a period
  expression:
    v: periodMax.empty() or period.exists()
  xpath:
    v: not(exists(f:periodMax)) or exists(f:period)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Timing
    l: Timing
constraint:
  key:
    v: tim-7
  severity:
    v: error
  human:
    v: If there's a durationMax, there must be a duration
  expression:
    v: durationMax.empty() or duration.exists()
  xpath:
    v: not(exists(f:durationMax)) or exists(f:duration)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Timing
    l: Timing
constraint:
  key:
    v: tim-8
  severity:
    v: error
  human:
    v: If there's a countMax, there must be a count
  expression:
    v: countMax.empty() or count.exists()
  xpath:
    v: not(exists(f:countMax)) or exists(f:count)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Timing
    l: Timing
constraint:
  key:
    v: tim-1
  severity:
    v: error
  human:
    v: if there's a duration, there needs to be duration units
  expression:
    v: duration.empty() or durationUnit.exists()
  xpath:
    v: not(exists(f:duration)) or exists(f:durationUnit)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Timing
    l: Timing
constraint:
  key:
    v: tim-10
  severity:
    v: error
  human:
    v: If there's a timeOfDay, there cannot be a when, or vice versa
  expression:
    v: timeOfDay.empty() or when.empty()
  xpath:
    v: not(exists(f:timeOfDay)) or not(exists(f:when))
  source:
    v: http://hl7.org/fhir/StructureDefinition/Timing
    l: Timing
constraint:
  key:
    v: tim-2
  severity:
    v: error
  human:
    v: if there's a period, there needs to be period units
  expression:
    v: period.empty() or periodUnit.exists()
  xpath:
    v: not(exists(f:period)) or exists(f:periodUnit)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Timing
    l: Timing
constraint:
  key:
    v: tim-4
  severity:
    v: error
  human:
    v: duration SHALL be a non-negative value
  expression:
    v: duration.exists() implies duration >= 0
  xpath:
    v: f:duration/@value >= 0 or not(f:duration/@value)
  source:
    v: http://hl7.org/fhir/StructureDefinition/Timing
    l: Timing
constraint:
  key:
    v: TimingSingleDosageForTimeOfDay
  severity:
    v: error
  human:
    v: Wenn nur timeOfDay verwendet wird und täglich dosiert wird, ist die Angabe in einem einzigen Dosage-Element zu modellieren. Mehrere Dosage-Elemente sind nur zulässig, wenn sich die Dosis (Wert) unterscheidet.
  expression:
    v: ( %resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).all( ( timing.repeat.dayOfWeek.empty() and timing.repeat.timeOfDay.exists() and timing.repeat.when.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd') ) implies ( ( ( %resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).where( timing.repeat.dayOfWeek.empty() and timing.repeat.timeOfDay.exists() and timing.repeat.when.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd') ).count() = 1 ) or ( ( %resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).where( timing.repeat.dayOfWeek.empty() and timing.repeat.timeOfDay.exists() and timing.repeat.when.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd') ).doseAndRate.dose.ofType(Quantity).value.distinct().count() > 1 ) ) )
  source:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE
    l: TimingDE
constraint:
  key:
    v: TimingSingleDosageForWhen
  severity:
    v: error
  human:
    v: Wenn nur when verwendet wird und täglich dosiert wird, ist die Angabe in einem einzigen Dosage-Element zu modellieren. Mehrere Dosage-Elemente sind nur zulässig, wenn sich die Dosis (Wert) unterscheidet.
  expression:
    v: ( %resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).all( ( timing.repeat.dayOfWeek.empty() and timing.repeat.when.exists() and timing.repeat.timeOfDay.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd') ) implies ( ( ( %resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).where( timing.repeat.dayOfWeek.empty() and timing.repeat.when.exists() and timing.repeat.timeOfDay.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd') ).count() = 1 ) or ( ( %resource.ofType(MedicationRequest).dosageInstruction | %resource.ofType(MedicationDispense).dosageInstruction | %resource.ofType(MedicationStatement).dosage ).where( timing.repeat.dayOfWeek.empty() and timing.repeat.when.exists() and timing.repeat.timeOfDay.empty() and (timing.repeat.period.exists() and timing.repeat.period = 1) and (timing.repeat.periodUnit.exists() and timing.repeat.periodUnit = 'd') ).doseAndRate.dose.ofType(Quantity).value.distinct().count() > 1 ) ) )
  source:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE
    l: TimingDE
constraint:
  key:
    v: TimingBoundsUnitMatchesCode
  severity:
    v: error
  human:
    v: boundsDuration.unit muss zur UCUM boundsDuration.code passen (z. B. 'Woche(n)' nur mit code='wk').
  expression:
    v: bounds.ofType(Duration).exists().not() or ( ( bounds.ofType(Duration).code = 'd' implies ( bounds.ofType(Duration).unit = 'Tag(e)' or bounds.ofType(Duration).unit = 'Tag' or bounds.ofType(Duration).unit = 'Tage' ) ) and ( bounds.ofType(Duration).code = 'wk' implies ( bounds.ofType(Duration).unit = 'Woche(n)' or bounds.ofType(Duration).unit = 'Woche' or bounds.ofType(Duration).unit = 'Wochen' ) ) and ( bounds.ofType(Duration).code = 'mo' implies ( bounds.ofType(Duration).unit = 'Monat(e)' or bounds.ofType(Duration).unit = 'Monat' or bounds.ofType(Duration).unit = 'Monate' ) ) and ( bounds.ofType(Duration).code = 'a' implies ( bounds.ofType(Duration).unit = 'Jahr(e)' or bounds.ofType(Duration).unit = 'Jahr' or bounds.ofType(Duration).unit = 'Jahre' ) ) )
  source:
    v: http://ig.fhir.de/igs/medication/StructureDefinition/TimingDE
    l: TimingDE

v: true

v: true

identity:
  v: rim
map:
  v: n/a

identity:
  v: rim
map:
  v: Implies PIVL or EIVL

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.id
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.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
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
short:
  v: Länge/Bereich der Längen oder (Start- und/oder End-)Grenzen
definition:
  v: Entweder eine Dauer für die Länge des Zeitplans, ein Bereich möglicher Längen oder äußere Begrenzungen für Start- und/oder Endgrenzen des Zeitplans.
comment:
  v: tbd
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.bounds[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Duration
    l: Duration
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Period
    l: Period
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: IVL(TS) used in a QSI

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]:boundsDuration
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]
slice name:
  v: boundsDuration
short:
  v: Dauer der Dosieranweisung ausgedrückt in UCUM-Einheiten
definition:
  v: Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Timing.repeat.bounds[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Duration
    l: Duration
pattern: Duration
  system:
    v: http://unitsofmeasure.org
    l: unitsofmeasure.org
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: IVL(TS) used in a QSI

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]:boundsDuration.id
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x].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
mapping:
  identity:
    v: rim
  map:
    v: n/a

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

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]:boundsDuration.value
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x].value
short:
  v: Numerical value (with implicit precision)
definition:
  v: The value of the measured amount. The value includes an implicit precision in the presentation of the value.
comment:
  v: The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).
requirements:
  v: Precision is handled implicitly in almost all cases of measurement.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Quantity.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
    l: decimal
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: SN.2 / CQ - N/A
mapping:
  identity:
    v: rim
  map:
    v: PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]:boundsDuration.comparator
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x].comparator
short:
  v: < | <= | >= | > - how to understand the value
definition:
  v: How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is "<" , then the real value is < stated value.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Quantity.comparator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If there is no comparator, then there is no modification of the value
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: QuantityComparator
  strength:
    v: required
  description:
    v: How the Quantity should be understood and represented.
  value set:
    v: http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1
    l: http://hl7.org/fhir/ValueSet/quantity-comparator
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: SN.1 / CQ.1
mapping:
  identity:
    v: rim
  map:
    v: IVL properties

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]:boundsDuration.unit
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x].unit
short:
  v: Unit representation
definition:
  v: A human-readable form of the unit.
comment:
  v: Note that FHIR strings SHALL NOT exceed 1MB in size
requirements:
  v: There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Quantity.unit
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: (see OBX.6 etc.) / CQ.2
mapping:
  identity:
    v: rim
  map:
    v: PQ.unit

id:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x]:boundsDuration.system
path:
  v: MedicationRequest.dosageInstruction.timing.repeat.bounds[x].system
short:
  v: UCUM-Einheit für die Dauer
definition:
  v: The identification of the system that provides the coded form of the unit.
comment:
  v: Die UCUM-Einheit für die Dauer, z. B. d für Tag, h für Stunde, min für Minute.
requirements:
  v: Need to know the system that defines the coded form of the unit.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Quantity.system
  min:
    v: 0