Mxx_HealthHub_MedicationRequest

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..1Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
identifier0..0Identifier
statusΣ ?!1..1codeBindingFixed Value
statusReason0..0CodeableConcept
intentΣ ?!1..1codeBindingFixed Value
category0..0CodeableConcept
priorityΣ0..0codeBinding
doNotPerformΣ ?!0..0boolean
id0..1string
extensionC0..*Extension
codingΣ0..0Coding
textΣ1..1string
medicationReferenceΣ0..1Reference(Mxx_HealthHub_Medication)
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..0uriBinding
identifierΣ0..1Mxx_HealthHub_IntermediatePatientIdentifier
displayΣ0..0string
encounterC0..0Reference(Encounter)
supportingInformationC0..0Reference(Resource)
authoredOnΣ0..0dateTime
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..0uriBinding
identifierΣ0..0Identifier
displayΣ0..0string
performerC0..0Reference(CareTeam | Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
performerTypeΣ0..0CodeableConcept
recorderC0..0Reference(Practitioner | PractitionerRole)
id0..1string
extensionC0..*Extension
codingΣ0..0Coding
textΣ1..1string
reasonReferenceC0..0Reference(Condition | Observation)
instantiatesCanonicalΣ0..0canonical
instantiatesUriΣ0..0uri
basedOnΣ C0..0Reference(CarePlan | ImmunizationRecommendation | MedicationRequest | ServiceRequest)
groupIdentifierΣ0..1Identifier
courseOfTherapyType0..0CodeableConcept
insuranceC0..0Reference(ClaimResponse | Coverage)
id0..1string
extensionC0..*Extension
timeΣ0..0dateTime
textΣ1..1markdown
dosageInstruction0..0Dosage
priorPrescriptionC0..0Reference(MedicationRequest)
detectedIssueC0..0Reference(DetectedIssue)
eventHistoryC0..0Reference(Provenance)
MedicationRequestC
ShortOrdering of medication for patient or group
Definition

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.

Cardinality0..*
AliasPrescription, Order
Constraints
  • dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
    contained.contained.empty()
  • dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
    contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
  • dom-3: 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
    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()
  • dom-6: A resource should have narrative for robust management
    text.`div`.exists()
  • dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
    contained.meta.security.empty()
  • mr-pzn-required-if-ref: Wenn medicationReference verwendet wird, muss die contained Medication mindestens einen PZN-Coding-Eintrag (system 'http://fhir.de/CodeSystem/ifa/pzn') enthalten.
    (medicationReference.exists() implies contained.ofType(Medication).code.coding.where(system='http://fhir.de/CodeSystem/ifa/pzn').exists())
Mappings
  • rim: Entity. Role, or Act
  • workflow: Request
  • script10.6: Message/Body/NewRx
  • rim: CombinedMedicationRequest
MedicationRequest.idΣ
ShortLogical id of this artifact
Definition

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

Cardinality0..1
Typeid
SummaryTrue
Comments

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

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
MedicationRequest.metaΣ
ShortMetadata about the resource
Definition

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.

Cardinality0..1
TypeMeta
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.implicitRulesΣ ?!
ShortA set of rules under which this content was created
Definition

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.

Cardinality0..1
Typeuri
ModifierTrue
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
MedicationRequest.language
ShortLanguage of the resource content
Definition

The base language in which the resource is written.

Cardinality0..1
Typecode
Binding

A human language.

CommonLanguages (preferred)

Binding extensions
maxValueSetAllLanguages
Comments

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).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
MedicationRequest.text
ShortText summary of the resource, for human interpretation
Definition

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.

Cardinality0..1
TypeNarrative
Aliasnarrative, html, xhtml, display
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
  • rim: Act.text?
MedicationRequest.contained
ShortContained Medication (nur PZN-Pfad)
Definition

Im PZN-Pfad genau eine contained Mxx_HealthHub_Medication, auf die medicationReference.reference per lokaler Fragment-Referenz (#id) zeigt. Im Freitext-Pfad bleibt contained leer.

Cardinality0..1
TypeResource
Aliasinline resources, anonymous resources, contained resources
Comments

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.

Mappings
  • rim: Entity. Role, or Act
  • rim: N/A
MedicationRequest.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.modifierExtension?! C
ShortExtensions that cannot be ignored
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
Aliasextensions, user content
Requirements

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.

Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.identifier
ShortExternal ids for this request
Definition

Identifiers associated with this medication request that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.

Cardinality0..0
TypeIdentifier
Comments

This is a business identifier, not a resource identifier.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: 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]
  • servd: Identifier
  • workflow: Request.identifier
  • script10.6: Message/Header/PrescriberOrderNumber
  • w5: FiveWs.identifier
  • v2: ORC-2-Placer Order Number / ORC-3-Filler Order Number
  • rim: .id
MedicationRequest.statusΣ ?!
Shortactive | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown
Definition

A code specifying the current state of the order. Generally, this will be active or completed state.

Cardinality1..1
Typecode
Binding

A coded concept specifying the state of the prescribing event. Describes the lifecycle of the prescription.

medicationrequest Status (required)

ModifierTrue
SummaryTrue
Comments

This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
active
Mappings
  • rim: n/a
  • workflow: Request.status
  • script10.6: no mapping
  • w5: FiveWs.status
  • rim: .statusCode
MedicationRequest.statusReason
ShortReason for current status
Definition

Captures the reason for the current state of the MedicationRequest.

Cardinality0..0
TypeCodeableConcept
Binding

Identifies the reasons for a given status.

medicationRequest Status Reason Codes (example)

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • workflow: Request.statusReason
  • rim: .inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde
MedicationRequest.intentΣ ?!
Shortproposal | plan | order | original-order | reflex-order | filler-order | instance-order | option
Definition

Whether the request is a proposal, plan, or an original order.

Cardinality1..1
Typecode
Binding

The kind of medication order.

medicationRequest Intent (required)

ModifierTrue
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
proposal
Mappings
  • rim: n/a
  • workflow: Request.intent
  • w5: FiveWs.class
  • rim: .moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)
MedicationRequest.category
ShortType of medication usage
Definition

Indicates the type of medication request (for example, where the medication is expected to be consumed or administered (i.e. inpatient or outpatient)).

Cardinality0..0
TypeCodeableConcept
Binding

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.

medicationRequest Category Codes (example)

Comments

The category can be used to include where the medication is expected to be consumed or other types of requests.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • script10.6: Message/Body/NewRx/MedicationPrescribed/Directions or Message/Body/NewRx/MedicationPrescribed/StructuredSIG
  • w5: FiveWs.class
  • rim: .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value
MedicationRequest.priorityΣ
Shortroutine | urgent | asap | stat
Definition

Indicates how quickly the Medication Request should be addressed with respect to other requests.

Cardinality0..0
Typecode
Binding

Identifies the level of importance to be assigned to actioning the request.

RequestPriority (required)

SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Request.priority
  • w5: FiveWs.grade
  • rim: .priorityCode
MedicationRequest.doNotPerformΣ ?!
ShortTrue if request is prohibiting action
Definition

If true indicates that the provider is asking for the medication request not to occur.

Cardinality0..0
Typeboolean
ModifierTrue
SummaryTrue
Comments

If do not perform is not specified, the request is a positive request e.g. "do perform".

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: SubstanceAdministration.actionNegationInd
MedicationRequest.reported[x]Σ
ShortReported rather than primary record
Definition

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.

Cardinality0..0
Typeboolean | Reference(Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .participation[typeCode=INF].role
MedicationRequest.medication[x]Σ
ShortMedication to be taken
Definition

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.

Cardinality1..1
TypeCodeableConcept | Reference(Mxx_HealthHub_Medication)
Binding

A coded concept identifying substance or product that can be ordered.

SNOMEDCTMedicationCodes (example)

SummaryTrue
Comments

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.

Slicing

Unordered, Closed, by $this(Type)

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Request.code
  • script10.6: 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
  • w5: FiveWs.what[x]
  • v2: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
  • rim: consumable.administrableMedication
MedicationRequest.medication[x]:medicationCodeableConceptΣ
ShortFreitext-Vorschlag (ohne PZN)
Definition

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.

Cardinality0..1
TypeCodeableConcept
Binding

A coded concept identifying substance or product that can be ordered.

SNOMEDCTMedicationCodes (example)

SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Request.code
  • script10.6: 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
  • w5: FiveWs.what[x]
  • v2: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
  • rim: consumable.administrableMedication
MedicationRequest.medication[x]:medicationCodeableConcept.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationRequest.medication[x]:medicationCodeableConcept.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.medication[x]:medicationCodeableConcept.codingΣ
ShortCode defined by a terminology system
Definition

A reference to a code defined by a terminology system.

Cardinality0..0
TypeCoding
SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
  • rim: CV
  • orim: fhir:Coding rdfs:subClassOf dt:CDCoding
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
MedicationRequest.medication[x]:medicationCodeableConcept.textΣ
ShortPlain text representation of the concept
Definition

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.

Cardinality1..1
Typestring
SummaryTrue
Requirements

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.

Comments

Very often the text is the same as a displayName of one of the codings.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.9. But note many systems use C*E.2 for this
  • rim: ./originalText[mediaType/code="text/plain"]/data
  • orim: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText
MedicationRequest.medication[x]:medicationReferenceΣ
ShortPZN-codierter Vorschlag (contained Medication)
Definition

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.

Cardinality0..1
TypeReference(Mxx_HealthHub_Medication)
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Request.code
  • script10.6: 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
  • w5: FiveWs.what[x]
  • v2: RXE-2-Give Code / RXO-1-Requested Give Code / RXC-2-Component Code
  • rim: consumable.administrableMedication
MedicationRequest.subjectΣ C
ShortWho or group medication request is for
Definition

A link to a resource representing the person or set of individuals to whom the medication will be given.

Cardinality1..1
TypeReference(Mxx_HealthHub_Patient)
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.subject
  • script10.6: Message/Body/NewRx/Patient (need detail to link to specific patient … Patient.Identification in SCRIPT)
  • w5: FiveWs.subject[x]
  • v2: PID-3-Patient ID List
  • rim: .participation[typeCode=AUT].role
  • w5: FiveWs.subject
MedicationRequest.subject.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationRequest.subject.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.subject.referenceΣ C
ShortLiteral reference, Relative, internal or absolute URL
Definition

A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.

Cardinality0..1
Typestring
SummaryTrue
Comments

Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, ref-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.subject.typeΣ
ShortType the reference refers to (e.g. "Patient")
Definition

The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.

The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).

Cardinality0..0
Typeuri
Binding

Aa resource (or, for logical models, the URI of the logical model).

ResourceType (extensible)

SummaryTrue
Comments

This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.subject.identifierΣ
ShortAn identifier intended for computation
Definition

An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.

Cardinality0..1
TypeMxx_HealthHub_IntermediatePatientIdentifier
SummaryTrue
Comments

When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy.

When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference

Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.

Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: 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]
  • servd: Identifier
  • rim: .identifier
MedicationRequest.subject.displayΣ
ShortText alternative for the resource
Definition

Plain text narrative that identifies the resource in addition to the resource reference.

Cardinality0..0
Typestring
SummaryTrue
Comments

This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.encounterC
ShortEncounter created as part of encounter/admission/stay
Definition

The Encounter during which this [x] was created or to which the creation of this record is tightly associated.

Cardinality0..0
TypeReference(Encounter)
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.context
  • script10.6: no mapping
  • w5: FiveWs.context
  • v2: PV1-19-Visit Number
  • rim: .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]
MedicationRequest.supportingInformationC
ShortInformation to support ordering of the medication
Definition

Include additional information (for example, patient height and weight) that supports the ordering of the medication.

Cardinality0..0
TypeReference(Resource)
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.supportingInfo
  • w5: FiveWs.context
  • rim: .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)]
MedicationRequest.authoredOnΣ
ShortWhen request was initially authored
Definition

The date (and perhaps time) when the prescription was initially written or authored on.

Cardinality0..0
TypedateTime
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Request.authoredOn
  • script10.6: Message/Body/NewRx/MedicationPrescribed/WrittenDate
  • w5: FiveWs.recorded
  • v2: RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction
  • rim: author.time
MedicationRequest.requesterΣ C
ShortWho/What requested the Request
Definition

The individual, organization, or device that initiated the request and has responsibility for its activation.

Cardinality1..1
TypeReference(Mxx_HealthHub_PartnerSystem)
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.requester
  • w5: FiveWs.author
  • rim: .participation[typeCode=AUT].role
MedicationRequest.requester.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationRequest.requester.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.requester.referenceΣ C
ShortLiteral reference, Relative, internal or absolute URL
Definition

A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.

Cardinality0..1
Typestring
SummaryTrue
Comments

Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, ref-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.requester.typeΣ
ShortType the reference refers to (e.g. "Patient")
Definition

The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.

The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).

Cardinality0..0
Typeuri
Binding

Aa resource (or, for logical models, the URI of the logical model).

ResourceType (extensible)

SummaryTrue
Comments

This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.requester.identifierΣ
ShortLogical reference, when literal reference is not known
Definition

An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.

Cardinality0..0
TypeIdentifier
SummaryTrue
Comments

When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy.

When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference

Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.

Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: 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]
  • servd: Identifier
  • rim: .identifier
MedicationRequest.requester.displayΣ
ShortText alternative for the resource
Definition

Plain text narrative that identifies the resource in addition to the resource reference.

Cardinality0..0
Typestring
SummaryTrue
Comments

This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.performerC
ShortIntended performer of administration
Definition

The specified desired performer of the medication treatment (e.g. the performer of the medication administration).

Cardinality0..0
TypeReference(CareTeam | Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.performer
  • w5: FiveWs.actor
  • rim: .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]
MedicationRequest.performerTypeΣ
ShortDesired kind of performer of the medication administration
Definition

Indicates the type of performer of the administration of the medication.

Cardinality0..0
TypeCodeableConcept
Binding

Identifies the type of individual that is desired to administer the medication.

ProcedurePerformerRoleCodes (example)

SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • workflow: Request.performerType
  • rim: .participation[typeCode=PRF].role[scoper.determinerCode=KIND].code
MedicationRequest.recorderC
ShortPerson who entered the request
Definition

The person who entered the order on behalf of another individual for example in the case of a verbal or a telephone order.

Cardinality0..0
TypeReference(Practitioner | PractitionerRole)
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • w5: FiveWs.who
  • rim: .participation[typeCode=TRANS].role[classCode=ASSIGNED].code (HealthcareProviderType)
MedicationRequest.reasonCode
ShortReason or indication for ordering or not ordering the medication
Definition

The reason or the indication for ordering or not ordering the medication.

Cardinality0..1
TypeCodeableConcept
Binding

A coded concept indicating why the medication was ordered.

Condition/Problem/DiagnosisCodes (example)

Comments

This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonReference.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • workflow: Request.reasonCode
  • script10.6: Message/Body/NewRx/MedicationPrescribed/Diagnosis/Primary/Value
  • w5: FiveWs.why[x]
  • v2: ORC-16-Order Control Code Reason /RXE-27-Give Indication/RXO-20-Indication / RXD-21-Indication / RXG-22-Indication / RXA-19-Indication
  • rim: reason.observation.reasonCode
MedicationRequest.reasonCode.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationRequest.reasonCode.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.reasonCode.codingΣ
ShortCode defined by a terminology system
Definition

A reference to a code defined by a terminology system.

Cardinality0..0
TypeCoding
SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
  • rim: CV
  • orim: fhir:Coding rdfs:subClassOf dt:CDCoding
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
MedicationRequest.reasonCode.textΣ
ShortPlain text representation of the concept
Definition

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.

Cardinality1..1
Typestring
SummaryTrue
Requirements

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.

Comments

Very often the text is the same as a displayName of one of the codings.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.9. But note many systems use C*E.2 for this
  • rim: ./originalText[mediaType/code="text/plain"]/data
  • orim: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText
MedicationRequest.reasonReferenceC
ShortCondition or observation that supports why the prescription is being written
Definition

Condition or observation that supports why the medication was ordered.

Cardinality0..0
TypeReference(Condition | Observation)
Comments

This is a reference to a condition or observation that is the reason for the medication order. If only a code exists, use reasonCode.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.reasonReference
  • script10.6: no mapping
  • w5: FiveWs.why[x]
  • rim: reason.observation[code=ASSERTION].value
MedicationRequest.instantiatesCanonicalΣ
ShortInstantiates FHIR protocol or definition
Definition

The URL pointing to a protocol, guideline, orderset, or other definition that is adhered to in whole or in part by this MedicationRequest.

Cardinality0..0
Typecanonical
SummaryTrue
Comments
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Request.instantiates
  • rim: .outboundRelationship[typeCode=DEFN].target
MedicationRequest.instantiatesUriΣ
ShortInstantiates external protocol or definition
Definition

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.

Cardinality0..0
Typeuri
SummaryTrue
Comments

see http://en.wikipedia.org/wiki/Uniform_resource_identifier

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=DEFN].target
MedicationRequest.basedOnΣ C
ShortWhat request fulfills
Definition

A plan or request that is fulfilled in whole or in part by this medication request.

Cardinality0..0
TypeReference(CarePlan | ImmunizationRecommendation | MedicationRequest | ServiceRequest)
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.basedOn
  • rim: .outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]
MedicationRequest.groupIdentifierΣ
ShortFachliche Rezeptzugehörigkeit (optional)
Definition

Fachliche Rezeptzugehörigkeit (optional). Möchte eine Partnersoftware mehrere Rezepte zu einem Patienten anfordern, so können diese über einen groupIdentifier zusammengefasst werden. Die Praxissoftware KANN die Rezeptanforderungen dann gruppiert anzeigen. Der Wert (groupIdentifier.value) ist eine UUID (z.B. system urn:ietf:rfc:3986 mit Wert urn:uuid:...); nicht konforme Werte werden abgelehnt.

Cardinality0..1
TypeIdentifier
SummaryTrue
Requirements

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: 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]
  • servd: Identifier
  • workflow: Request.groupIdentifier
  • rim: .outboundRelationship(typeCode=COMP].target[classCode=SBADM, moodCode=INT].id
MedicationRequest.courseOfTherapyType
ShortOverall pattern of medication administration
Definition

The description of the overall patte3rn of the administration of the medication to the patient.

Cardinality0..0
TypeCodeableConcept
Binding

Identifies the overall pattern of medication administratio.

medicationRequest Course of Therapy Codes (example)

Comments

This attribute should not be confused with the protocol of the medication.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • rim: Act.code where classCode = LIST and moodCode = EVN
MedicationRequest.insuranceC
ShortAssociated insurance coverage
Definition

Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.

Cardinality0..0
TypeReference(ClaimResponse | Coverage)
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.insurance
  • rim: .outboundRelationship[typeCode=COVBY].target
MedicationRequest.note
ShortInformation about the prescription
Definition

Extra information about the prescription that could not be conveyed by the other attributes.

Cardinality0..1
TypeAnnotation
Comments

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).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: Act
  • workflow: Request.note
  • script10.6: Message/Body/NewRx/MedicationPrescribed/Note
  • rim: .inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value
MedicationRequest.note.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationRequest.note.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.note.author[x]Σ
ShortIndividual responsible for the annotation
Definition

The individual responsible for making the annotation.

Cardinality0..0
TypeReference(Organization | Patient | Practitioner | RelatedPerson) | string
SummaryTrue
Comments

Organization is used when there's no need for specific attribution as to who made the comment.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: Act.participant[typeCode=AUT].role
MedicationRequest.note.timeΣ
ShortWhen the annotation was made
Definition

Indicates when this particular annotation was made.

Cardinality0..0
TypedateTime
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: Act.effectiveTime
MedicationRequest.note.textΣ
ShortThe annotation - text content (as markdown)
Definition

The text of the annotation in markdown format.

Cardinality1..1
Typemarkdown
SummaryTrue
Comments

Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: Act.text
MedicationRequest.dosageInstruction
ShortHow the medication should be taken
Definition

Indicates how the medication is to be used by the patient.

Cardinality0..0
TypeDosage
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]
  • workflow: Request.occurrence[x]
  • rim: see dosageInstruction mapping
MedicationRequest.dispenseRequest
ShortMedication supply authorization
Definition

Indicates the specific details for the dispense or medication supply part of a medication request (also known as a Medication Prescription or Medication Order). Note that this information is not always sent with the order. There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.

Cardinality0..0
TypeBackboneElement
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • script10.6: Message/Body/NewRx/MedicationPrescribed/ExpirationDate
  • rim: component.supplyEvent
MedicationRequest.dispenseRequest.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationRequest.dispenseRequest.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.dispenseRequest.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.dispenseRequest.initialFill
ShortFirst fill details
Definition

Indicates the quantity or duration for the first dispense of the medication.

Cardinality0..1
TypeBackboneElement
Comments

If populating this element, either the quantity or the duration must be included.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: SubstanceAdministration -> ActRelationship[sequenceNumber = '1'] -> Supply
MedicationRequest.dispenseRequest.initialFill.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationRequest.dispenseRequest.initialFill.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.dispenseRequest.initialFill.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.dispenseRequest.initialFill.quantityC
ShortFirst fill quantity
Definition

The amount or quantity to provide as part of the first dispense.

Cardinality0..1
TypeSimpleQuantity
Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
  • sqty-1: The comparator is not used on a SimpleQuantity
    comparator.empty()
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: Supply.quantity[moodCode=RQO]
MedicationRequest.dispenseRequest.initialFill.durationC
ShortFirst fill duration
Definition

The length of time that the first dispense is expected to last.

Cardinality0..1
TypeDuration
Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
  • drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.
    code.exists() implies ((system = %ucum) and value.exists())
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: PQ, IVL<PQ> depending on the values
  • rim: Supply.effectivetime[moodCode=RQO]
MedicationRequest.dispenseRequest.dispenseIntervalC
ShortMinimum period of time between dispenses
Definition

The minimum period of time that must occur between dispenses of the medication.

Cardinality0..1
TypeDuration
Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
  • drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.
    code.exists() implies ((system = %ucum) and value.exists())
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: PQ, IVL<PQ> depending on the values
  • rim: Supply.effectivetime[moodCode=RQO]
MedicationRequest.dispenseRequest.validityPeriodC
ShortTime period supply is authorized for
Definition

This indicates the validity period of a prescription (stale dating the Prescription).

Cardinality0..1
TypePeriod
Requirements

Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.

Comments

It reflects the prescribers' perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • per-1: If present, start SHALL have a lower value than end
    start.hasValue().not() or end.hasValue().not() or (start <= end)
Mappings
  • rim: n/a
  • v2: DR
  • rim: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
  • script10.6: Message/Body/NewRx/MedicationPrescribed/Refills
  • rim: effectiveTime
MedicationRequest.dispenseRequest.numberOfRepeatsAllowed
ShortNumber of refills authorized
Definition

An integer indicating the number of times, in addition to the original dispense, (aka refills or repeats) that the patient can receive the prescribed medication. Usage Notes: This integer does not include the original order dispense. This means that if an order indicates dispense 30 tablets plus "3 repeats", then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets. A prescriber may explicitly say that zero refills are permitted after the initial dispense.

Cardinality0..1
TypeunsignedInt
Comments

If displaying "number of authorized fills", add 1 to this number.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • script10.6: Message/Body/NewRx/MedicationPrescribed/Quantity
  • v2: RXE-12-Number of Refills
  • rim: repeatNumber
MedicationRequest.dispenseRequest.quantityC
ShortAmount of medication to supply per dispense
Definition

The amount that is to be dispensed for one fill.

Cardinality0..1
TypeSimpleQuantity
Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
  • sqty-1: The comparator is not used on a SimpleQuantity
    comparator.empty()
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • script10.6: Message/Body/NewRx/MedicationPrescribed/DaysSupply
  • v2: RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense Units.name of coding system
  • rim: quantity
MedicationRequest.dispenseRequest.expectedSupplyDurationC
ShortNumber of days supply per dispense
Definition

Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last.

Cardinality0..1
TypeDuration
Comments

In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage). When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
  • drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.
    code.exists() implies ((system = %ucum) and value.exists())
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: PQ, IVL<PQ> depending on the values
  • script10.6: Message/Body/NewRx/MedicationPrescribed/Substitutions
  • rim: expectedUseTime
MedicationRequest.dispenseRequest.performerC
ShortIntended dispenser
Definition

Indicates the intended dispensing Organization specified by the prescriber.

Cardinality0..1
TypeReference(Organization)
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • w5: FiveWs.who
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=SPLY, moodCode=RQO] .participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]
MedicationRequest.substitution
ShortAny restrictions on medication substitution
Definition

Indicates whether or not substitution can or should be part of the dispense. In some cases, substitution must happen, in other cases substitution must not happen. This block explains the prescriber's intent. If nothing is specified substitution may be done.

Cardinality0..0
TypeBackboneElement
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • script10.6: specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions
  • rim: subjectOf.substitutionPersmission
MedicationRequest.substitution.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationRequest.substitution.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.substitution.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationRequest.substitution.allowed[x]
ShortWhether substitution is allowed or not
Definition

True if the prescriber allows a different drug to be dispensed from what was prescribed.

Cardinality1..1
Typeboolean | CodeableConcept
Binding

Identifies the type of substitution allowed.

v3.ActSubstanceAdminSubstitutionCode (example)

Comments

This element is labeled as a modifier because whether substitution is allow or not, it cannot be ignored.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • script10.6: specific values within Message/Body/NewRx/MedicationPrescribed/Substitutions
  • v2: RXO-9-Allow Substitutions / RXE-9-Substitution Status
  • rim: code
MedicationRequest.substitution.reason
ShortWhy should (not) substitution be made
Definition

Indicates the reason for the substitution, or why substitution must or must not be performed.

Cardinality0..1
TypeCodeableConcept
Binding

A coded concept describing the reason that a different medication should (or should not) be substituted from what was prescribed.

v3.SubstanceAdminSubstitutionReason (example)

Comments

Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • script10.6: not mapped
  • v2: RXE-9 Substition status
  • rim: reasonCode
MedicationRequest.priorPrescriptionC
ShortAn order/prescription that is being replaced
Definition

A link to a resource representing an earlier order related order or prescription.

Cardinality0..0
TypeReference(MedicationRequest)
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.replaces
  • script10.6: not mapped
  • rim: .outboundRelationship[typeCode=?RPLC or ?SUCC]/target[classCode=SBADM,moodCode=RQO]
MedicationRequest.detectedIssueC
ShortClinical Issue with action
Definition

Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, duplicate therapy, dosage alert etc.

Cardinality0..0
TypeReference(DetectedIssue)
AliasContraindication, Drug Utilization Review (DUR), Alert
Comments

This element can include a detected issue that has been identified either by a decision support system or by a clinician and may include information on the steps that were taken to address the issue.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • rim: .inboundRelationship[typeCode=SUBJ]/source[classCode=ALRT,moodCode=EVN].value
MedicationRequest.eventHistoryC
ShortA list of events of interest in the lifecycle
Definition

Links to Provenance records for past versions of this resource or fulfilling request or event resources that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the resource.

Cardinality0..0
TypeReference(Provenance)
Comments

This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Request.relevantHistory
  • rim: .inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]
<StructureDefinition xmlns="http://hl7.org/fhir">
<url value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationRequest" />
<version value="1.5.0" />
<name value="Mxx_HealthHub_MedicationRequest" />
<status value="active" />
<publisher value="medatixx GmbH & Co. KG" />
<description value="Profile for a medication proposal. Allows either a free-text proposal (medicationCodeableConcept.text) or a PZN-coded proposal via a contained Medication (medicationReference -> Mxx_HealthHub_Medication). When medicationReference is used, the contained Medication must contain at least one PZN coding." />
<copyright value="medatixx GmbH & Co. KG" />
<fhirVersion value="4.0.1" />
<kind value="resource" />
<abstract value="false" />
<type value="MedicationRequest" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
<derivation value="constraint" />
<element id="MedicationRequest">
<path value="MedicationRequest" />
<key value="mr-pzn-required-if-ref" />
<severity value="error" />
<human value="Wenn medicationReference verwendet wird, muss die contained Medication mindestens einen PZN-Coding-Eintrag (system 'http://fhir.de/CodeSystem/ifa/pzn') enthalten." />
<expression value="(medicationReference.exists() implies contained.ofType(Medication).code.coding.where(system='http://fhir.de/CodeSystem/ifa/pzn').exists())" />
</constraint>
</element>
<element id="MedicationRequest.contained">
<path value="MedicationRequest.contained" />
<short value="Contained Medication (nur PZN-Pfad)" />
<definition value="Im PZN-Pfad genau eine contained Mxx_HealthHub_Medication, auf die medicationReference.reference per lokaler Fragment-Referenz (#id) zeigt. Im Freitext-Pfad bleibt contained leer." />
<max value="1" />
</element>
<element id="MedicationRequest.identifier">
<path value="MedicationRequest.identifier" />
<max value="0" />
</element>
<element id="MedicationRequest.status">
<path value="MedicationRequest.status" />
<fixedCode value="active" />
</element>
<element id="MedicationRequest.statusReason">
<path value="MedicationRequest.statusReason" />
<max value="0" />
</element>
<element id="MedicationRequest.intent">
<path value="MedicationRequest.intent" />
<fixedCode value="proposal" />
</element>
<element id="MedicationRequest.category">
<path value="MedicationRequest.category" />
<max value="0" />
</element>
<element id="MedicationRequest.priority">
<path value="MedicationRequest.priority" />
<max value="0" />
</element>
<element id="MedicationRequest.doNotPerform">
<path value="MedicationRequest.doNotPerform" />
<max value="0" />
</element>
<element id="MedicationRequest.reported[x]">
<path value="MedicationRequest.reported[x]" />
<max value="0" />
</element>
<element id="MedicationRequest.medication[x]">
<path value="MedicationRequest.medication[x]" />
<type value="type" />
<path value="$this" />
</discriminator>
<rules value="closed" />
</slicing>
<code value="CodeableConcept" />
</type>
<code value="Reference" />
<targetProfile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Medication" />
</type>
</element>
<element id="MedicationRequest.medication[x]:medicationCodeableConcept">
<path value="MedicationRequest.medication[x]" />
<sliceName value="medicationCodeableConcept" />
<short value="Freitext-Vorschlag (ohne PZN)" />
<code value="CodeableConcept" />
</type>
</element>
<element id="MedicationRequest.medication[x]:medicationCodeableConcept.coding">
<path value="MedicationRequest.medication[x].coding" />
<max value="0" />
</element>
<element id="MedicationRequest.medication[x]:medicationCodeableConcept.text">
<path value="MedicationRequest.medication[x].text" />
<min value="1" />
</element>
<element id="MedicationRequest.medication[x]:medicationReference">
<path value="MedicationRequest.medication[x]" />
<sliceName value="medicationReference" />
<short value="PZN-codierter Vorschlag (contained Medication)" />
<code value="Reference" />
<targetProfile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Medication" />
</type>
</element>
<element id="MedicationRequest.subject">
<path value="MedicationRequest.subject" />
<code value="Reference" />
<targetProfile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Patient" />
</type>
</element>
<element id="MedicationRequest.subject.type">
<path value="MedicationRequest.subject.type" />
<max value="0" />
</element>
<element id="MedicationRequest.subject.identifier">
<path value="MedicationRequest.subject.identifier" />
<short value="An identifier intended for computation" />
<definition value="An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers." />
<code value="Identifier" />
<profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_IntermediatePatientIdentifier" />
</type>
</element>
<element id="MedicationRequest.subject.display">
<path value="MedicationRequest.subject.display" />
<max value="0" />
</element>
<element id="MedicationRequest.encounter">
<path value="MedicationRequest.encounter" />
<max value="0" />
</element>
<element id="MedicationRequest.supportingInformation">
<path value="MedicationRequest.supportingInformation" />
<max value="0" />
</element>
<element id="MedicationRequest.authoredOn">
<path value="MedicationRequest.authoredOn" />
<max value="0" />
</element>
<element id="MedicationRequest.requester">
<path value="MedicationRequest.requester" />
<min value="1" />
<code value="Reference" />
<targetProfile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_PartnerSystem" />
</type>
</element>
<element id="MedicationRequest.requester.type">
<path value="MedicationRequest.requester.type" />
<max value="0" />
</element>
<element id="MedicationRequest.requester.identifier">
<path value="MedicationRequest.requester.identifier" />
<max value="0" />
</element>
<element id="MedicationRequest.requester.display">
<path value="MedicationRequest.requester.display" />
<max value="0" />
</element>
<element id="MedicationRequest.performer">
<path value="MedicationRequest.performer" />
<max value="0" />
</element>
<element id="MedicationRequest.performerType">
<path value="MedicationRequest.performerType" />
<max value="0" />
</element>
<element id="MedicationRequest.recorder">
<path value="MedicationRequest.recorder" />
<max value="0" />
</element>
<element id="MedicationRequest.reasonCode">
<path value="MedicationRequest.reasonCode" />
<max value="1" />
</element>
<element id="MedicationRequest.reasonCode.coding">
<path value="MedicationRequest.reasonCode.coding" />
<max value="0" />
</element>
<element id="MedicationRequest.reasonCode.text">
<path value="MedicationRequest.reasonCode.text" />
<min value="1" />
</element>
<element id="MedicationRequest.reasonReference">
<path value="MedicationRequest.reasonReference" />
<max value="0" />
</element>
<element id="MedicationRequest.instantiatesCanonical">
<path value="MedicationRequest.instantiatesCanonical" />
<max value="0" />
</element>
<element id="MedicationRequest.instantiatesUri">
<path value="MedicationRequest.instantiatesUri" />
<max value="0" />
</element>
<element id="MedicationRequest.basedOn">
<path value="MedicationRequest.basedOn" />
<max value="0" />
</element>
<element id="MedicationRequest.groupIdentifier">
<path value="MedicationRequest.groupIdentifier" />
<short value="Fachliche Rezeptzugehörigkeit (optional)" />
<definition value="Fachliche Rezeptzugehörigkeit (optional). Möchte eine Partnersoftware mehrere Rezepte zu einem Patienten anfordern, so können diese über einen groupIdentifier zusammengefasst werden. Die Praxissoftware KANN die Rezeptanforderungen dann gruppiert anzeigen. Der Wert (groupIdentifier.value) ist eine UUID (z.B. system urn:ietf:rfc:3986 mit Wert urn:uuid:...); nicht konforme Werte werden abgelehnt." />
</element>
<element id="MedicationRequest.courseOfTherapyType">
<path value="MedicationRequest.courseOfTherapyType" />
<max value="0" />
</element>
<element id="MedicationRequest.insurance">
<path value="MedicationRequest.insurance" />
<max value="0" />
</element>
<element id="MedicationRequest.note">
<path value="MedicationRequest.note" />
<max value="1" />
</element>
<element id="MedicationRequest.note.author[x]">
<path value="MedicationRequest.note.author[x]" />
<max value="0" />
</element>
<element id="MedicationRequest.note.time">
<path value="MedicationRequest.note.time" />
<max value="0" />
</element>
<element id="MedicationRequest.dosageInstruction">
<path value="MedicationRequest.dosageInstruction" />
<max value="0" />
</element>
<element id="MedicationRequest.dispenseRequest">
<path value="MedicationRequest.dispenseRequest" />
<max value="0" />
</element>
<element id="MedicationRequest.substitution">
<path value="MedicationRequest.substitution" />
<max value="0" />
</element>
<element id="MedicationRequest.priorPrescription">
<path value="MedicationRequest.priorPrescription" />
<max value="0" />
</element>
<element id="MedicationRequest.detectedIssue">
<path value="MedicationRequest.detectedIssue" />
<max value="0" />
</element>
<element id="MedicationRequest.eventHistory">
<path value="MedicationRequest.eventHistory" />
<max value="0" />
</element>
</differential>
</StructureDefinition>
{
"resourceType": "StructureDefinition",
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationRequest",
"version": "1.5.0",
"name": "Mxx_HealthHub_MedicationRequest",
"status": "active",
"publisher": "medatixx GmbH & Co. KG",
"description": "Profile for a medication proposal. Allows either a free-text proposal (medicationCodeableConcept.text) or a PZN-coded proposal via a contained Medication (medicationReference -> Mxx_HealthHub_Medication). When medicationReference is used, the contained Medication must contain at least one PZN coding.",
"copyright": "medatixx GmbH & Co. KG",
"fhirVersion": "4.0.1",
"kind": "resource",
"abstract": false,
"type": "MedicationRequest",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
"derivation": "constraint",
"element": [
{
"id": "MedicationRequest",
"path": "MedicationRequest",
{
"key": "mr-pzn-required-if-ref",
"severity": "error",
"human": "Wenn medicationReference verwendet wird, muss die contained Medication mindestens einen PZN-Coding-Eintrag (system 'http://fhir.de/CodeSystem/ifa/pzn') enthalten.",
"expression": "(medicationReference.exists() implies contained.ofType(Medication).code.coding.where(system='http://fhir.de/CodeSystem/ifa/pzn').exists())"
}
]
},
{
"id": "MedicationRequest.contained",
"path": "MedicationRequest.contained",
"short": "Contained Medication (nur PZN-Pfad)",
"definition": "Im PZN-Pfad genau eine contained Mxx_HealthHub_Medication, auf die medicationReference.reference per lokaler Fragment-Referenz (#id) zeigt. Im Freitext-Pfad bleibt contained leer.",
"max": "1"
},
{
"id": "MedicationRequest.identifier",
"path": "MedicationRequest.identifier",
"max": "0"
},
{
"id": "MedicationRequest.status",
"path": "MedicationRequest.status",
"fixedCode": "active"
},
{
"id": "MedicationRequest.statusReason",
"path": "MedicationRequest.statusReason",
"max": "0"
},
{
"id": "MedicationRequest.intent",
"path": "MedicationRequest.intent",
"fixedCode": "proposal"
},
{
"id": "MedicationRequest.category",
"path": "MedicationRequest.category",
"max": "0"
},
{
"id": "MedicationRequest.priority",
"path": "MedicationRequest.priority",
"max": "0"
},
{
"id": "MedicationRequest.doNotPerform",
"path": "MedicationRequest.doNotPerform",
"max": "0"
},
{
"id": "MedicationRequest.reported[x]",
"path": "MedicationRequest.reported[x]",
"max": "0"
},
{
"id": "MedicationRequest.medication[x]",
"path": "MedicationRequest.medication[x]",
"slicing": {
{
"type": "type",
"path": "$this"
}
],
"rules": "closed"
},
"type": [
{
"code": "CodeableConcept"
},
{
"code": "Reference",
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Medication"
]
}
]
},
{
"id": "MedicationRequest.medication[x]:medicationCodeableConcept",
"path": "MedicationRequest.medication[x]",
"sliceName": "medicationCodeableConcept",
"short": "Freitext-Vorschlag (ohne PZN)",
"type": [
{
"code": "CodeableConcept"
}
]
},
{
"id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding",
"path": "MedicationRequest.medication[x].coding",
"max": "0"
},
{
"id": "MedicationRequest.medication[x]:medicationCodeableConcept.text",
"path": "MedicationRequest.medication[x].text",
"min": 1
},
{
"id": "MedicationRequest.medication[x]:medicationReference",
"path": "MedicationRequest.medication[x]",
"sliceName": "medicationReference",
"short": "PZN-codierter Vorschlag (contained Medication)",
"type": [
{
"code": "Reference",
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Medication"
]
}
]
},
{
"id": "MedicationRequest.subject",
"path": "MedicationRequest.subject",
"type": [
{
"code": "Reference",
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Patient"
]
}
]
},
{
"id": "MedicationRequest.subject.type",
"path": "MedicationRequest.subject.type",
"max": "0"
},
{
"id": "MedicationRequest.subject.identifier",
"path": "MedicationRequest.subject.identifier",
"short": "An identifier intended for computation",
"definition": "An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.",
"type": [
{
"code": "Identifier",
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_IntermediatePatientIdentifier"
]
}
]
},
{
"id": "MedicationRequest.subject.display",
"path": "MedicationRequest.subject.display",
"max": "0"
},
{
"id": "MedicationRequest.encounter",
"path": "MedicationRequest.encounter",
"max": "0"
},
{
"id": "MedicationRequest.supportingInformation",
"path": "MedicationRequest.supportingInformation",
"max": "0"
},
{
"id": "MedicationRequest.authoredOn",
"path": "MedicationRequest.authoredOn",
"max": "0"
},
{
"id": "MedicationRequest.requester",
"path": "MedicationRequest.requester",
"min": 1,
"type": [
{
"code": "Reference",
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_PartnerSystem"
]
}
]
},
{
"id": "MedicationRequest.requester.type",
"path": "MedicationRequest.requester.type",
"max": "0"
},
{
"id": "MedicationRequest.requester.identifier",
"path": "MedicationRequest.requester.identifier",
"max": "0"
},
{
"id": "MedicationRequest.requester.display",
"path": "MedicationRequest.requester.display",
"max": "0"
},
{
"id": "MedicationRequest.performer",
"path": "MedicationRequest.performer",
"max": "0"
},
{
"id": "MedicationRequest.performerType",
"path": "MedicationRequest.performerType",
"max": "0"
},
{
"id": "MedicationRequest.recorder",
"path": "MedicationRequest.recorder",
"max": "0"
},
{
"id": "MedicationRequest.reasonCode",
"path": "MedicationRequest.reasonCode",
"max": "1"
},
{
"id": "MedicationRequest.reasonCode.coding",
"path": "MedicationRequest.reasonCode.coding",
"max": "0"
},
{
"id": "MedicationRequest.reasonCode.text",
"path": "MedicationRequest.reasonCode.text",
"min": 1
},
{
"id": "MedicationRequest.reasonReference",
"path": "MedicationRequest.reasonReference",
"max": "0"
},
{
"id": "MedicationRequest.instantiatesCanonical",
"path": "MedicationRequest.instantiatesCanonical",
"max": "0"
},
{
"id": "MedicationRequest.instantiatesUri",
"path": "MedicationRequest.instantiatesUri",
"max": "0"
},
{
"id": "MedicationRequest.basedOn",
"path": "MedicationRequest.basedOn",
"max": "0"
},
{
"id": "MedicationRequest.groupIdentifier",
"path": "MedicationRequest.groupIdentifier",
"short": "Fachliche Rezeptzugehörigkeit (optional)",
"definition": "Fachliche Rezeptzugehörigkeit (optional). Möchte eine Partnersoftware mehrere Rezepte zu einem Patienten anfordern, so können diese über einen groupIdentifier zusammengefasst werden. Die Praxissoftware KANN die Rezeptanforderungen dann gruppiert anzeigen. Der Wert (groupIdentifier.value) ist eine UUID (z.B. system urn:ietf:rfc:3986 mit Wert urn:uuid:...); nicht konforme Werte werden abgelehnt."
},
{
"id": "MedicationRequest.courseOfTherapyType",
"path": "MedicationRequest.courseOfTherapyType",
"max": "0"
},
{
"id": "MedicationRequest.insurance",
"path": "MedicationRequest.insurance",
"max": "0"
},
{
"id": "MedicationRequest.note",
"path": "MedicationRequest.note",
"max": "1"
},
{
"id": "MedicationRequest.note.author[x]",
"path": "MedicationRequest.note.author[x]",
"max": "0"
},
{
"id": "MedicationRequest.note.time",
"path": "MedicationRequest.note.time",
"max": "0"
},
{
"id": "MedicationRequest.dosageInstruction",
"path": "MedicationRequest.dosageInstruction",
"max": "0"
},
{
"id": "MedicationRequest.dispenseRequest",
"path": "MedicationRequest.dispenseRequest",
"max": "0"
},
{
"id": "MedicationRequest.substitution",
"path": "MedicationRequest.substitution",
"max": "0"
},
{
"id": "MedicationRequest.priorPrescription",
"path": "MedicationRequest.priorPrescription",
"max": "0"
},
{
"id": "MedicationRequest.detectedIssue",
"path": "MedicationRequest.detectedIssue",
"max": "0"
},
{
"id": "MedicationRequest.eventHistory",
"path": "MedicationRequest.eventHistory",
"max": "0"
}
]
}
}

Medikament angeben

Das Profil erlaubt zwei sich gegenseitig ausschliessende Wege, das Medikament zu benennen:

Weg Felder Hinweis
Freitext medicationCodeableConcept.text Abwärtskompatibel; kein PZN-Lookup im PVS.
PZN-codiert medicationReference -> contained Mxx_HealthHub_Medication Ab v1.5.0; contained.code.coding muss mindestens einen Eintrag mit system = http://fhir.de/CodeSystem/ifa/pzn enthalten.

medicationCodeableConcept.coding ist verboten (max: 0); PZN wird ausschliesslich über medicationReference transportiert.

Invariante mr-pzn-required-if-ref

Wenn medicationReference gesetzt ist, muss die contained Medication mindestens einen PZN-Coding-Eintrag enthalten. FHIRPath-Ausdruck:

medicationReference.exists() implies
  contained.ofType(Medication).code.coding
    .where(system='http://fhir.de/CodeSystem/ifa/pzn').exists()

groupIdentifier - fachliche Rezeptzugehörigkeit

MedicationRequest.groupIdentifier ist optional und gibt an, zu welchem Rezept (fachlich) der Vorschlag gehört. Bei einem Batch-Aufruf kann der groupIdentifier je Eintrag verschieden sein. Er wird nicht automatisch generiert und ist nicht identisch mit Bundle.identifier der Batch-Ubermittlung.

Mxx_HealthHub_ProposeMedicationOperation_In

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1string
valueAddressAddress
valueAgeAge
valueAnnotationAnnotation
valueAttachmentAttachment
valueBase64Binarybase64Binary
valueBooleanboolean
valueCanonicalcanonical
valueCodecode
valueCodeableConceptCodeableConcept
valueCodingCoding
valueContactDetailContactDetail
valueContactPointContactPoint
valueContributorContributor
valueCountCount
valueDataRequirementDataRequirement
valueDatedate
valueDateTimedateTime
valueDecimaldecimal
valueDistanceDistance
valueDosageDosage
valueDurationDuration
valueExpressionExpression
valueHumanNameHumanName
valueIdid
valueIdentifierIdentifier
valueInstantinstant
valueIntegerinteger
valueMarkdownmarkdown
valueMetaMeta
valueMoneyMoney
valueOidoid
valueParameterDefinitionParameterDefinition
valuePeriodPeriod
valuePositiveIntpositiveInt
valueQuantityQuantity
valueRangeRange
valueRatioRatio
valueReferenceReference
valueRelatedArtifactRelatedArtifact
valueSampledDataSampledData
valueSignatureSignature
valueStringstring
valueTimetime
valueTimingTiming
valueTriggerDefinitionTriggerDefinition
valueUnsignedIntunsignedInt
valueUriuri
valueUrlurl
valueUsageContextUsageContext
valueUuiduuid
resourceΣ C0..1Resource
partΣ0..*see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
resourceΣ C1..1Mxx_HealthHub_MedicationRequest
partΣ0..0see (parameter)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
nameΣ1..1stringFixed Value
resourceΣ C1..1Mxx_HealthHub_ProposeMedicationBundle
partΣ0..0see (parameter)
ParametersC
ShortOperation Request or Response
Definition

This resource is a non-persisted resource used to pass information into and back from an operation. It has no other use, and there is no RESTful endpoint associated with it.

Cardinality0..*
Comments

The parameters that may be used are defined by the OperationDefinition resource.

Constraints
  • propose-medication-xor: Genau einer der Parameter 'resource' (Einzelvorschlag) oder 'bundle' (Batch-Vorschlag) muss vorhanden sein.
    parameter.where(name='resource').exists() xor parameter.where(name='bundle').exists()
Mappings
  • rim: Entity. Role, or Act
  • v2: n/a
  • rim: n/a
Parameters.idΣ
ShortLogical id of this artifact
Definition

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

Cardinality0..1
Typeid
SummaryTrue
Comments

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

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Parameters.metaΣ
ShortMetadata about the resource
Definition

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.

Cardinality0..1
TypeMeta
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
Parameters.implicitRulesΣ ?!
ShortA set of rules under which this content was created
Definition

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.

Cardinality0..1
Typeuri
ModifierTrue
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Parameters.language
ShortLanguage of the resource content
Definition

The base language in which the resource is written.

Cardinality0..1
Typecode
Binding

A human language.

CommonLanguages (preferred)

Binding extensions
maxValueSetAllLanguages
Comments

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).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Parameters.parameterΣ C
ShortOperation Parameter
Definition

A parameter passed to or received from the operation.

Cardinality1..1
TypeBackboneElement
SummaryTrue
Slicing

Unordered, Closed, by name(Value)

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • inv-1: A parameter must have one and only one of (value, resource, part)
    (part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))
Mappings
  • rim: n/a
Parameters.parameter.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Parameters.parameter.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Parameters.parameter.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Parameters.parameter.nameΣ
ShortName from the definition
Definition

The name of the parameter (reference to the operation definition).

Cardinality1..1
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Parameters.parameter.value[x]Σ C
ShortIf parameter is a data type
Definition

If the parameter is a data type.

Cardinality0..1
TypeAddress | Age | Annotation | Attachment | base64Binary | boolean | canonical | code | CodeableConcept | Coding | ContactDetail | ContactPoint | Contributor | Count | DataRequirement | date | dateTime | decimal | Distance | Dosage | Duration | Expression | HumanName | id | Identifier | instant | integer | markdown | Meta | Money | oid | ParameterDefinition | Period | positiveInt | Quantity | Range | Ratio | Reference | RelatedArtifact | SampledData | Signature | string | time | Timing | TriggerDefinition | unsignedInt | uri | url | UsageContext | uuid
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, inv-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Parameters.parameter.resourceΣ C
ShortIf parameter is a whole resource
Definition

If the parameter is a whole resource.

Cardinality0..1
TypeResource
SummaryTrue
Comments

When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.

ConditionsThe cardinality or value of this element may be affected by these constraints: inv-1
Mappings
  • rim: Entity. Role, or Act
Parameters.parameter.partΣ
ShortNamed part of a multi-part parameter
Definition

A named part of a multi-part parameter.

Cardinality0..*
Typesee (parameter)
SummaryTrue
Comments

Only one level of nested parameters is allowed.

Parameters.parameter:resourceΣ C
ShortOperation Parameter
Definition

A parameter passed to or received from the operation.

Cardinality0..1
TypeBackboneElement
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • inv-1: A parameter must have one and only one of (value, resource, part)
    (part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))
Mappings
  • rim: n/a
Parameters.parameter:resource.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Parameters.parameter:resource.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Parameters.parameter:resource.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Parameters.parameter:resource.nameΣ
ShortName from the definition
Definition

The name of the parameter (reference to the operation definition).

Cardinality1..1
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
resource
Mappings
  • rim: n/a
Parameters.parameter:resource.value[x]Σ C
ShortIf parameter is a data type
Definition

If the parameter is a data type.

Cardinality0..0
TypeAddress | Age | Annotation | Attachment | base64Binary | boolean | canonical | code | CodeableConcept | Coding | ContactDetail | ContactPoint | Contributor | Count | DataRequirement | date | dateTime | decimal | Distance | Dosage | Duration | Expression | HumanName | id | Identifier | instant | integer | markdown | Meta | Money | oid | ParameterDefinition | Period | positiveInt | Quantity | Range | Ratio | Reference | RelatedArtifact | SampledData | Signature | string | time | Timing | TriggerDefinition | unsignedInt | uri | url | UsageContext | uuid
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, inv-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Parameters.parameter:resource.resourceΣ C
ShortEinzelner Medikationsvorschlag
Definition

Ein einzelner Medikationsvorschlag als MedicationRequest-Instanz, konform zum Profil Mxx_HealthHub_MedicationRequest.

Cardinality1..1
TypeMxx_HealthHub_MedicationRequest
SummaryTrue
AliasPrescription, Order
Comments

When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.

ConditionsThe cardinality or value of this element may be affected by these constraints: inv-1
Constraints
  • dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
    contained.contained.empty()
  • dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
    contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
  • dom-3: 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
    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()
  • dom-6: A resource should have narrative for robust management
    text.`div`.exists()
  • dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
    contained.meta.security.empty()
  • mr-pzn-required-if-ref: Wenn medicationReference verwendet wird, muss die contained Medication mindestens einen PZN-Coding-Eintrag (system 'http://fhir.de/CodeSystem/ifa/pzn') enthalten.
    (medicationReference.exists() implies contained.ofType(Medication).code.coding.where(system='http://fhir.de/CodeSystem/ifa/pzn').exists())
Mappings
  • rim: Entity. Role, or Act
  • workflow: Request
  • script10.6: Message/Body/NewRx
  • rim: CombinedMedicationRequest
Parameters.parameter:resource.partΣ
ShortNamed part of a multi-part parameter
Definition

A named part of a multi-part parameter.

Cardinality0..0
Typesee (parameter)
SummaryTrue
Comments

Only one level of nested parameters is allowed.

Parameters.parameter:bundleΣ C
ShortOperation Parameter
Definition

A parameter passed to or received from the operation.

Cardinality0..1
TypeBackboneElement
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • inv-1: A parameter must have one and only one of (value, resource, part)
    (part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))
Mappings
  • rim: n/a
Parameters.parameter:bundle.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Parameters.parameter:bundle.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Parameters.parameter:bundle.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Parameters.parameter:bundle.nameΣ
ShortName from the definition
Definition

The name of the parameter (reference to the operation definition).

Cardinality1..1
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
bundle
Mappings
  • rim: n/a
Parameters.parameter:bundle.value[x]Σ C
ShortIf parameter is a data type
Definition

If the parameter is a data type.

Cardinality0..0
TypeAddress | Age | Annotation | Attachment | base64Binary | boolean | canonical | code | CodeableConcept | Coding | ContactDetail | ContactPoint | Contributor | Count | DataRequirement | date | dateTime | decimal | Distance | Dosage | Duration | Expression | HumanName | id | Identifier | instant | integer | markdown | Meta | Money | oid | ParameterDefinition | Period | positiveInt | Quantity | Range | Ratio | Reference | RelatedArtifact | SampledData | Signature | string | time | Timing | TriggerDefinition | unsignedInt | uri | url | UsageContext | uuid
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, inv-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Parameters.parameter:bundle.resourceΣ C
ShortBatch-Medikationsvorschlag
Definition

Ein Bundle mit mehreren Medikationsvorschlägen (max. 20 Einträge), konform zum Profil Mxx_HealthHub_ProposeMedicationBundle.

Cardinality1..1
TypeMxx_HealthHub_ProposeMedicationBundle
SummaryTrue
Comments

When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.

ConditionsThe cardinality or value of this element may be affected by these constraints: inv-1
Constraints
  • bdl-7: FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)
    (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()
  • bdl-9: A document must have an identifier with a system and a value
    type = 'document' implies (identifier.system.exists() and identifier.value.exists())
  • bdl-3: entry.request mandatory for batch/transaction/history, otherwise prohibited
    entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
  • bdl-4: entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited
    entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))
  • bdl-12: A message must have a MessageHeader as the first resource
    type = 'message' implies entry.first().resource.is(MessageHeader)
  • bdl-1: total only when a search or history
    total.empty() or (type = 'searchset') or (type = 'history')
  • bdl-2: entry.search only when a search
    entry.search.empty() or (type = 'searchset')
  • bdl-11: A document must have a Composition as the first resource
    type = 'document' implies entry.first().resource.is(Composition)
  • bdl-10: A document must have a date
    type = 'document' implies (timestamp.hasValue())
  • bdl-3a: For collections of type document, message, searchset or collection, all entries must contain resources, and not have request or response elements
    type in ('document' | 'message' | 'searchset' | 'collection') implies entry.all(resource.exists() and request.empty() and response.empty())
  • bdl-3b: For collections of type history, all entries must contain request or response elements, and resources if the method is POST, PUT or PATCH
    type = 'history' implies entry.all(request.exists() and response.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
  • bdl-3c: For collections of type transaction or batch, all entries must contain request elements, and resources if the method is POST, PUT or PATCH
    type in ('transaction' | 'batch') implies entry.all(request.method.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
  • bdl-3d: For collections of type transaction-response or batch-response, all entries must contain response elements
    type in ('transaction-response' | 'batch-response') implies entry.all(response.exists())
  • bdl-15: Bundle resources where type is not transaction, transaction-response, batch, or batch-response or when the request is a POST SHALL have Bundle.entry.fullUrl populated
    type='transaction' or type='transaction-response' or type='batch' or type='batch-response' or entry.all(fullUrl.exists() or request.method='POST')
  • bundle-same-subject-requester: Alle MedicationRequest-Einträge eines Batches müssen denselben subject (Patient) und denselben requester (Partnersystem) haben.
    entry.resource.ofType(MedicationRequest).subject.reference.distinct().count() <= 1 and entry.resource.ofType(MedicationRequest).subject.identifier.value.distinct().count() <= 1 and entry.resource.ofType(MedicationRequest).requester.reference.distinct().count() <= 1
Mappings
  • rim: Entity. Role, or Act
  • v2: N/A
  • rim: N/A
  • cda: ClinicalDocument, if bundle.type = document
Parameters.parameter:bundle.partΣ
ShortNamed part of a multi-part parameter
Definition

A named part of a multi-part parameter.

Cardinality0..0
Typesee (parameter)
SummaryTrue
Comments

Only one level of nested parameters is allowed.

<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="Mxx-HealthHub-ProposeMedicationOperation-In" />
<url value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ProposeMedicationOperation_In" />
<version value="1.5.0" />
<name value="Mxx_HealthHub_ProposeMedicationOperation_In" />
<status value="active" />
<publisher value="medatixx GmbH & Co. KG" />
<description value="Parameters wrapper for the MedicationRequest/$propose operation. Contains either exactly one Mxx_HealthHub_MedicationRequest as a single proposal (slice 'resource', 1..1) or exactly one Mxx_HealthHub_ProposeMedicationBundle as a batch proposal (slice 'bundle', 1..1). Exactly one of the two parameters must be present (XOR)." />
<copyright value="medatixx GmbH & Co. KG" />
<fhirVersion value="4.0.1" />
<kind value="resource" />
<abstract value="false" />
<type value="Parameters" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Parameters" />
<derivation value="constraint" />
<element id="Parameters">
<path value="Parameters" />
<key value="propose-medication-xor" />
<severity value="error" />
<human value="Genau einer der Parameter 'resource' (Einzelvorschlag) oder 'bundle' (Batch-Vorschlag) muss vorhanden sein." />
<expression value="parameter.where(name='resource').exists() xor parameter.where(name='bundle').exists()" />
</constraint>
</element>
<element id="Parameters.parameter">
<path value="Parameters.parameter" />
<type value="value" />
<path value="name" />
</discriminator>
<rules value="closed" />
</slicing>
<min value="1" />
<max value="1" />
</element>
<element id="Parameters.parameter:resource">
<path value="Parameters.parameter" />
<sliceName value="resource" />
<min value="0" />
<max value="1" />
</element>
<element id="Parameters.parameter:resource.name">
<path value="Parameters.parameter.name" />
<fixedString value="resource" />
</element>
<element id="Parameters.parameter:resource.value[x]">
<path value="Parameters.parameter.value[x]" />
<max value="0" />
</element>
<element id="Parameters.parameter:resource.resource">
<path value="Parameters.parameter.resource" />
<short value="Einzelner Medikationsvorschlag" />
<definition value="Ein einzelner Medikationsvorschlag als MedicationRequest-Instanz, konform zum Profil Mxx_HealthHub_MedicationRequest." />
<min value="1" />
<code value="Resource" />
<profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationRequest" />
</type>
</element>
<element id="Parameters.parameter:resource.part">
<path value="Parameters.parameter.part" />
<max value="0" />
</element>
<element id="Parameters.parameter:bundle">
<path value="Parameters.parameter" />
<sliceName value="bundle" />
<min value="0" />
<max value="1" />
</element>
<element id="Parameters.parameter:bundle.name">
<path value="Parameters.parameter.name" />
<fixedString value="bundle" />
</element>
<element id="Parameters.parameter:bundle.value[x]">
<path value="Parameters.parameter.value[x]" />
<max value="0" />
</element>
<element id="Parameters.parameter:bundle.resource">
<path value="Parameters.parameter.resource" />
<short value="Batch-Medikationsvorschlag" />
<definition value="Ein Bundle mit mehreren Medikationsvorschlägen (max. 20 Einträge), konform zum Profil Mxx_HealthHub_ProposeMedicationBundle." />
<min value="1" />
<code value="Resource" />
<profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ProposeMedicationBundle" />
</type>
</element>
<element id="Parameters.parameter:bundle.part">
<path value="Parameters.parameter.part" />
<max value="0" />
</element>
</differential>
</StructureDefinition>
{
"resourceType": "StructureDefinition",
"id": "Mxx-HealthHub-ProposeMedicationOperation-In",
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ProposeMedicationOperation_In",
"version": "1.5.0",
"name": "Mxx_HealthHub_ProposeMedicationOperation_In",
"status": "active",
"publisher": "medatixx GmbH & Co. KG",
"description": "Parameters wrapper for the MedicationRequest/$propose operation. Contains either exactly one Mxx_HealthHub_MedicationRequest as a single proposal (slice 'resource', 1..1) or exactly one Mxx_HealthHub_ProposeMedicationBundle as a batch proposal (slice 'bundle', 1..1). Exactly one of the two parameters must be present (XOR).",
"copyright": "medatixx GmbH & Co. KG",
"fhirVersion": "4.0.1",
"kind": "resource",
"abstract": false,
"type": "Parameters",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Parameters",
"derivation": "constraint",
"element": [
{
"id": "Parameters",
"path": "Parameters",
{
"key": "propose-medication-xor",
"severity": "error",
"human": "Genau einer der Parameter 'resource' (Einzelvorschlag) oder 'bundle' (Batch-Vorschlag) muss vorhanden sein.",
"expression": "parameter.where(name='resource').exists() xor parameter.where(name='bundle').exists()"
}
]
},
{
"id": "Parameters.parameter",
"path": "Parameters.parameter",
"slicing": {
{
"type": "value",
"path": "name"
}
],
"rules": "closed"
},
"min": 1,
"max": "1"
},
{
"id": "Parameters.parameter:resource",
"path": "Parameters.parameter",
"sliceName": "resource",
"min": 0,
"max": "1"
},
{
"id": "Parameters.parameter:resource.name",
"path": "Parameters.parameter.name",
"fixedString": "resource"
},
{
"id": "Parameters.parameter:resource.value[x]",
"path": "Parameters.parameter.value[x]",
"max": "0"
},
{
"id": "Parameters.parameter:resource.resource",
"path": "Parameters.parameter.resource",
"short": "Einzelner Medikationsvorschlag",
"definition": "Ein einzelner Medikationsvorschlag als MedicationRequest-Instanz, konform zum Profil Mxx_HealthHub_MedicationRequest.",
"min": 1,
"type": [
{
"code": "Resource",
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationRequest"
]
}
]
},
{
"id": "Parameters.parameter:resource.part",
"path": "Parameters.parameter.part",
"max": "0"
},
{
"id": "Parameters.parameter:bundle",
"path": "Parameters.parameter",
"sliceName": "bundle",
"min": 0,
"max": "1"
},
{
"id": "Parameters.parameter:bundle.name",
"path": "Parameters.parameter.name",
"fixedString": "bundle"
},
{
"id": "Parameters.parameter:bundle.value[x]",
"path": "Parameters.parameter.value[x]",
"max": "0"
},
{
"id": "Parameters.parameter:bundle.resource",
"path": "Parameters.parameter.resource",
"short": "Batch-Medikationsvorschlag",
"definition": "Ein Bundle mit mehreren Medikationsvorschlägen (max. 20 Einträge), konform zum Profil Mxx_HealthHub_ProposeMedicationBundle.",
"min": 1,
"type": [
{
"code": "Resource",
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ProposeMedicationBundle"
]
}
]
},
{
"id": "Parameters.parameter:bundle.part",
"path": "Parameters.parameter.part",
"max": "0"
}
]
}
}

Parameter-Übersicht

Das Input-Profil enthält ab v1.5.0 zwei Slices auf Parameters.parameter:

Slice Name Kardinalität Ressourcentyp Bedeutung
resource "resource" 0..1 Mxx_HealthHub_MedicationRequest Einzelner Medikationsvorschlag (Freitext oder PZN-codiert).
bundle "bundle" 0..1 Mxx_HealthHub_ProposeMedicationBundle Batch-Vorschlag mit 1-20 MedicationRequest-Einträgen.

XOR-Semantik

Genau einer der beiden Parameter muss pro Aufruf vorhanden sein. Die Invariante propose-medication-xor erzwingt dies auf Profil-Ebene:

parameter.where(name='resource').exists() xor parameter.where(name='bundle').exists()

Ein Aufruf mit keinem oder mit beiden Parametern wird abgelehnt.

Antwort

Bei Erfolg antwortet die Operation mit 204 No Content (kein Output-Profil).

Mxx_HealthHub_ProposeMedicationBundle

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uri
valueΣ1..1string
periodΣ C0..1Period
assignerΣ C0..1Reference(Organization)
typeΣ1..1codeBindingFixed Value
timestampΣ0..1instant
totalΣ C0..1unsignedInt
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
relationΣ1..1string
urlΣ1..1uri
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
fullUrlΣ0..1uri
resourceΣ C1..1Mxx_HealthHub_MedicationRequest
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
modeΣ0..1codeBinding
scoreΣ0..1decimal
signatureΣ0..1Signature
BundleC
ShortContains a collection of resources
Definition

A container for a collection of resources.

Cardinality0..*
Constraints
  • bdl-7: FullUrl must be unique in a bundle, or else entries with the same fullUrl must have different meta.versionId (except in history bundles)
    (type = 'history') or entry.where(fullUrl.exists()).select(fullUrl&resource.meta.versionId).isDistinct()
  • bdl-9: A document must have an identifier with a system and a value
    type = 'document' implies (identifier.system.exists() and identifier.value.exists())
  • bdl-3: entry.request mandatory for batch/transaction/history, otherwise prohibited
    entry.all(request.exists() = (%resource.type = 'batch' or %resource.type = 'transaction' or %resource.type = 'history'))
  • bdl-4: entry.response mandatory for batch-response/transaction-response/history, otherwise prohibited
    entry.all(response.exists() = (%resource.type = 'batch-response' or %resource.type = 'transaction-response' or %resource.type = 'history'))
  • bdl-12: A message must have a MessageHeader as the first resource
    type = 'message' implies entry.first().resource.is(MessageHeader)
  • bdl-1: total only when a search or history
    total.empty() or (type = 'searchset') or (type = 'history')
  • bdl-2: entry.search only when a search
    entry.search.empty() or (type = 'searchset')
  • bdl-11: A document must have a Composition as the first resource
    type = 'document' implies entry.first().resource.is(Composition)
  • bdl-10: A document must have a date
    type = 'document' implies (timestamp.hasValue())
  • bdl-3a: For collections of type document, message, searchset or collection, all entries must contain resources, and not have request or response elements
    type in ('document' | 'message' | 'searchset' | 'collection') implies entry.all(resource.exists() and request.empty() and response.empty())
  • bdl-3b: For collections of type history, all entries must contain request or response elements, and resources if the method is POST, PUT or PATCH
    type = 'history' implies entry.all(request.exists() and response.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
  • bdl-3c: For collections of type transaction or batch, all entries must contain request elements, and resources if the method is POST, PUT or PATCH
    type in ('transaction' | 'batch') implies entry.all(request.method.exists() and ((request.method in ('POST' | 'PATCH' | 'PUT')) = resource.exists()))
  • bdl-3d: For collections of type transaction-response or batch-response, all entries must contain response elements
    type in ('transaction-response' | 'batch-response') implies entry.all(response.exists())
  • bdl-15: Bundle resources where type is not transaction, transaction-response, batch, or batch-response or when the request is a POST SHALL have Bundle.entry.fullUrl populated
    type='transaction' or type='transaction-response' or type='batch' or type='batch-response' or entry.all(fullUrl.exists() or request.method='POST')
  • bundle-same-subject-requester: Alle MedicationRequest-Einträge eines Batches müssen denselben subject (Patient) und denselben requester (Partnersystem) haben.
    entry.resource.ofType(MedicationRequest).subject.reference.distinct().count() <= 1 and entry.resource.ofType(MedicationRequest).subject.identifier.value.distinct().count() <= 1 and entry.resource.ofType(MedicationRequest).requester.reference.distinct().count() <= 1
Mappings
  • rim: Entity. Role, or Act
  • v2: N/A
  • rim: N/A
  • cda: ClinicalDocument, if bundle.type = document
Bundle.idΣ
ShortLogical id of this artifact
Definition

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

Cardinality0..1
Typeid
SummaryTrue
Comments

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

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.metaΣ
ShortMetadata about the resource
Definition

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.

Cardinality0..1
TypeMeta
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
Bundle.implicitRulesΣ ?!
ShortA set of rules under which this content was created
Definition

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.

Cardinality0..1
Typeuri
ModifierTrue
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.language
ShortLanguage of the resource content
Definition

The base language in which the resource is written.

Cardinality0..1
Typecode
Binding

A human language.

CommonLanguages (preferred)

Binding extensions
maxValueSetAllLanguages
Comments

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).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.identifierΣ
ShortÜbertragungs-/Batch-Identifikator
Definition

Identifiziert diese eine Übermittlung/den Batch als Ganzes. Empfohlen wird eine UUID (urn:uuid:...); das Format wird serverseitig nicht erzwungen.

Cardinality1..1
TypeIdentifier
SummaryTrue
Comments

Persistent identity generally only matters for batches of type Document, Message, and Collection. It would not normally be populated for search and history results and servers ignore Bundle.identifier when processing batches and transactions. For Documents the .identifier SHALL be populated such that the .identifier is globally unique.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: 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]
  • servd: Identifier
  • w5: FiveWs.identifier
  • cda: ClinicalDocument.id
Bundle.identifier.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Bundle.identifier.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.identifier.useΣ ?!
Shortusual | official | temp | secondary | old (If known)
Definition

The purpose of this identifier.

Cardinality0..1
Typecode
Binding

Identifies the purpose for this identifier, if known .

IdentifierUse (required)

ModifierTrue
SummaryTrue
Requirements

Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.

Comments

Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: Role.code or implied by context
Bundle.identifier.typeΣ
ShortDescription of identifier
Definition

A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.

Cardinality0..1
TypeCodeableConcept
Binding

A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.

Identifier Type Codes (extensible)

SummaryTrue
Requirements

Allows users to make use of identifiers when the identifier system is not known.

Comments

This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • v2: CX.5
  • rim: Role.code or implied by context
Bundle.identifier.systemΣ
ShortThe namespace for the identifier value
Definition

Establishes the namespace for the value - that is, a URL that describes a set values that are unique.

Cardinality0..1
Typeuri
SummaryTrue
Requirements

There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.

Comments

Identifier.system is always case sensitive.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
ExamplesGeneral
http://www.acme.com/identifiers/patient
Mappings
  • rim: n/a
  • v2: CX.4 / EI-2-4
  • rim: II.root or Role.id.root
  • servd: ./IdentifierType
Bundle.identifier.valueΣ
ShortThe value that is unique
Definition

The portion of the identifier typically relevant to the user and which is unique within the context of the system.

Cardinality1..1
Typestring
SummaryTrue
Comments

If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the Rendered Value extension. Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
ExamplesGeneral
123456
Mappings
  • rim: n/a
  • v2: CX.1 / EI.1
  • rim: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
  • servd: ./Value
Bundle.identifier.periodΣ C
ShortTime period when id is/was valid for use
Definition

Time period during which identifier is/was valid for use.

Cardinality0..1
TypePeriod
SummaryTrue
Comments

A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times").

Period is not used for a duration (a measure of elapsed time). See Duration.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • per-1: If present, start SHALL have a lower value than end
    start.hasValue().not() or end.hasValue().not() or (start <= end)
Mappings
  • rim: n/a
  • v2: DR
  • rim: IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]
  • v2: CX.7 + CX.8
  • rim: Role.effectiveTime or implied by context
  • servd: ./StartDate and ./EndDate
Bundle.identifier.assignerΣ C
ShortOrganization that issued id (may be just text)
Definition

Organization that issued/manages the identifier.

Cardinality0..1
TypeReference(Organization)
SummaryTrue
Comments

The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • v2: CX.4 / (CX.4,CX.9,CX.10)
  • rim: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
  • servd: ./IdentifierIssuingAuthority
Bundle.typeΣ
ShortTyp des Bundles
Definition

Fester Wert 'collection'. Als collection-Bundle hat es keine transaktionale FHIR-Semantik; die Verarbeitung durch die Praxissoftware erfolgt jedoch all-or-nothing (siehe Bundle-Beschreibung).

Cardinality1..1
Typecode
Binding

Indicates the purpose of a bundle - how it is intended to be used.

BundleType (required)

SummaryTrue
Comments

It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
collection
Mappings
  • rim: n/a
  • w5: FiveWs.class
Bundle.timestampΣ
ShortWhen the bundle was assembled
Definition

The date/time that the bundle was assembled - i.e. when the resources were placed in the bundle.

Cardinality0..1
Typeinstant
SummaryTrue
Comments

For many bundles, the timestamp is equal to .meta.lastUpdated, because they are not stored (e.g. search results). When a bundle is placed in a persistent store, .meta.lastUpdated will be usually be changed by the server. When the bundle is a message, a middleware agent altering the message (even if not stored) SHOULD update .meta.lastUpdated. .timestamp is used to track the original time of the Bundle, and SHOULD be populated.

Usage:

  • document : the date the document was created. Note: the composition may predate the document, or be associated with multiple documents. The date of the composition - the authoring time - may be earlier than the document assembly time
  • message : the date that the content of the message was assembled. This date is not changed by middleware engines unless they add additional data that changes the meaning of the time of the message
  • history : the date that the history was assembled. This time would be used as the _since time to ask for subsequent updates
  • searchset : the time that the search set was assembled. Note that different pages MAY have different timestamps but need not. Having different timestamps does not imply that subsequent pages will represent or include changes made since the initial query
  • transaction | transaction-response | batch | batch-response | collection : no particular assigned meaning

The timestamp value should be greater than the lastUpdated and other timestamps in the resources in the bundle, and it should be equal or earlier than the .meta.lastUpdated on the Bundle itself.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • w5: FiveWs.init
  • cda: ClinicalDocument.effectiveTime
Bundle.totalΣ C
ShortIf search, the total number of matches
Definition

If a set of search matches, this is the total number of entries of type 'match' across all pages in the search. It does not include search.mode = 'include' or 'outcome' entries and it does not provide a count of the number of entries in the Bundle.

Cardinality0..1
TypeunsignedInt
SummaryTrue
Comments

Only used if the bundle is a search result set. The total does not include resources such as OperationOutcome and included resources, only the total number of matching resources.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, bdl-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.linkΣ
ShortLinks related to this Bundle
Definition

A series of links that provide context to this bundle.

Cardinality0..*
TypeBackboneElement
SummaryTrue
Comments

Both Bundle.link and Bundle.entry.link are defined to support providing additional context when Bundles are used (e.g. HATEOAS).

Bundle.entry.link corresponds to links found in the HTTP header if the resource in the entry was read directly.

This specification defines some specific uses of Bundle.link for searching and paging, but no specific uses for Bundle.entry.link, and no defined function in a transaction - the meaning is implementation specific.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.link.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Bundle.link.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.link.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.link.relationΣ
ShortSee http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1
Definition

A name which details the functional use for this link - see http://www.iana.org/assignments/link-relations/link-relations.xhtml#link-relations-1.

Cardinality1..1
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.link.urlΣ
ShortReference details for the link
Definition

The reference details for the link.

Cardinality1..1
Typeuri
SummaryTrue
Comments

see http://en.wikipedia.org/wiki/Uniform_resource_identifier

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entryΣ C
ShortMedikationsvorschläge (1-20)
Definition

Liste der einzelnen Medikationsvorschläge. Jeder Eintrag muss konform zum Profil Mxx_HealthHub_MedicationRequest sein.

Cardinality1..20
TypeBackboneElement
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • bdl-8: fullUrl cannot be a version specific reference
    fullUrl.exists() implies fullUrl.contains('/_history/').not()
  • bdl-5: must be a resource unless there's a request or response
    resource.exists() or request.exists() or response.exists()
Mappings
  • rim: n/a
Bundle.entry.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Bundle.entry.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.entry.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.entry.linkΣ
ShortLinks related to this entry
Definition

A series of links that provide context to this entry.

Cardinality0..*
Typesee (link)
SummaryTrue
Bundle.entry.fullUrlΣ
ShortURI for resource (Absolute URL server address or URI for UUID/OID)
Definition

The Absolute URL for the resource. The fullUrl SHALL NOT disagree with the id in the resource - i.e. if the fullUrl is not a urn:uuid, the URL shall be version-independent URL consistent with the Resource.id. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that:

  • fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
  • Results from operations might involve resources that are not identified.
Cardinality0..1
Typeuri
SummaryTrue
Comments

fullUrl might not be unique in the context of a resource. Note that since FHIR resources do not need to be served through the FHIR API, the fullURL might be a URN or an absolute URL that does not end with the logical id of the resource (Resource.id). However, but if the fullUrl does look like a RESTful server URL (e.g. meets the regex, then the 'id' portion of the fullUrl SHALL end with the Resource.id.

Note that the fullUrl is not the same as the canonical URL - it's an absolute url for an endpoint serving the resource (these will happen to have the same value on the canonical server for the resource with the canonical URL).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.resourceΣ C
ShortEinzelner Medikationsvorschlag
Definition

Ein MedicationRequest-Vorschlag, konform zum Profil Mxx_HealthHub_MedicationRequest.

Cardinality1..1
TypeMxx_HealthHub_MedicationRequest
SummaryTrue
AliasPrescription, Order
Constraints
  • dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
    contained.contained.empty()
  • dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
    contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
  • dom-3: 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
    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()
  • dom-6: A resource should have narrative for robust management
    text.`div`.exists()
  • dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
    contained.meta.security.empty()
  • mr-pzn-required-if-ref: Wenn medicationReference verwendet wird, muss die contained Medication mindestens einen PZN-Coding-Eintrag (system 'http://fhir.de/CodeSystem/ifa/pzn') enthalten.
    (medicationReference.exists() implies contained.ofType(Medication).code.coding.where(system='http://fhir.de/CodeSystem/ifa/pzn').exists())
Mappings
  • rim: Entity. Role, or Act
  • workflow: Request
  • script10.6: Message/Body/NewRx
  • rim: CombinedMedicationRequest
Bundle.entry.searchΣ C
ShortSearch related information
Definition

Information about the search process that lead to the creation of this entry.

Cardinality0..1
TypeBackboneElement
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, bdl-2
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.search.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Bundle.entry.search.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.entry.search.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.entry.search.modeΣ
Shortmatch | include | outcome - why this is in the result set
Definition

Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.

Cardinality0..1
Typecode
Binding

Why an entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process.

SearchEntryMode (required)

SummaryTrue
Comments

There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.search.scoreΣ
ShortSearch ranking (between 0 and 1)
Definition

When searching, the server's search ranking score for the entry.

Cardinality0..1
Typedecimal
SummaryTrue
Comments

Servers are not required to return a ranking score. 1 is most relevant, and 0 is least relevant. Often, search results are sorted by score, but the client may specify a different sort order.

See Patient Match for the EMPI search which relates to this element.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.requestΣ C
ShortAdditional execution information (transaction/batch/history)
Definition

Additional information about how this entry should be processed as part of a transaction or batch. For history, it shows how the entry was processed to create the version contained in the entry.

Cardinality0..0
TypeBackboneElement
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, bdl-3
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.request.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Bundle.entry.request.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.entry.request.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.entry.request.methodΣ
ShortGET | HEAD | POST | PUT | DELETE | PATCH
Definition

In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred.

Cardinality1..1
Typecode
Binding

HTTP verbs (in the HTTP command line). See [HTTP rfc](https://tools.ietf.org/html/rfc7231) for details.

HTTPVerb (required)

SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.request.urlΣ
ShortURL for HTTP equivalent of this entry
Definition

The URL for this entry, relative to the root (the address to which the request is posted).

Cardinality1..1
Typeuri
SummaryTrue
Comments

E.g. for a Patient Create, the method would be "POST" and the URL would be "Patient". For a Patient Update, the method would be PUT and the URL would be "Patient/[id]".

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.request.ifNoneMatchΣ
ShortFor managing cache currency
Definition

If the ETag values match, return a 304 Not Modified status. See the API documentation for "Conditional Read".

Cardinality0..1
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.request.ifModifiedSinceΣ
ShortFor managing cache currency
Definition

Only perform the operation if the last updated date matches. See the API documentation for "Conditional Read".

Cardinality0..1
Typeinstant
SummaryTrue
Comments

Note: This is intended for where precisely observed times are required, typically system logs etc., and not human-reported times - for them, see date and dateTime (which can be as precise as instant, but is not required to be) below. Time zone is always required

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.request.ifMatchΣ
ShortFor managing update contention
Definition

Only perform the operation if the Etag value matches. For more information, see the API section "Managing Resource Contention".

Cardinality0..1
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.request.ifNoneExistΣ
ShortFor conditional creates
Definition

Instruct the server not to perform the create if a specified resource already exists. For further information, see the API documentation for "Conditional Create". This is just the query portion of the URL - what follows the "?" (not including the "?").

Cardinality0..1
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.responseΣ C
ShortResults of execution (transaction/batch/history)
Definition

Indicates the results of processing the corresponding 'request' entry in the batch or transaction being responded to or what the results of an operation where when returning history.

Cardinality0..0
TypeBackboneElement
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, bdl-4
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.response.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Bundle.entry.response.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.entry.response.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Bundle.entry.response.statusΣ
ShortStatus response code (text optional)
Definition

The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code.

Cardinality1..1
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.response.locationΣ
ShortThe location (if the operation returns a location)
Definition

The location header created by processing this operation, populated if the operation returns a location.

Cardinality0..1
Typeuri
SummaryTrue
Comments

see http://en.wikipedia.org/wiki/Uniform_resource_identifier

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.response.etagΣ
ShortThe Etag for the resource (if relevant)
Definition

The Etag for the resource, if the operation for the entry produced a versioned resource (see Resource Metadata and Versioning and Managing Resource Contention).

Cardinality0..1
Typestring
SummaryTrue
Comments

Etags match the Resource.meta.versionId. The ETag has to match the version id in the header if a resource is included.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.response.lastModifiedΣ
ShortServer's date time modified
Definition

The date/time that the resource was modified on the server.

Cardinality0..1
Typeinstant
SummaryTrue
Comments

This has to match the same time in the meta header (meta.lastUpdated) if a resource is included.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Bundle.entry.response.outcomeΣ
ShortOperationOutcome with hints and warnings (for batch/transaction)
Definition

An OperationOutcome containing hints and warnings produced as part of processing this entry in a batch or transaction.

Cardinality0..1
TypeResource
SummaryTrue
Comments

For a POST/PUT operation, this is the equivalent outcome that would be returned for prefer = operationoutcome - except that the resource is always returned whether or not the outcome is returned.

This outcome is not used for error responses in batch/transaction, only for hints and warnings. In a batch operation, the error will be in Bundle.entry.response, and for transaction, there will be a single OperationOutcome instead of a bundle in the case of an error.

Mappings
  • rim: Entity. Role, or Act
Bundle.signatureΣ
ShortDigital Signature
Definition

Digital Signature - base64 encoded. XML-DSig or a JWT.

Cardinality0..1
TypeSignature
SummaryTrue
Requirements

A Signature holds an electronic representation of a signature and its supporting context in a FHIR accessible form. The signature may either be a cryptographic type (XML DigSig or a JWS), which is able to provide non-repudiation proof, or it may be a graphical image that represents a signature or a signature process. This element allows capturing signatures on documents, messages, transactions or even search responses, to support content-authentication, non-repudiation or other business cases. This is primarily relevant where the bundle may travel through multiple hops or via other mechanisms where HTTPS non-repudiation is insufficient.

Comments

The signature could be created by the "author" of the bundle or by the originating device. Requirements around inclusion of a signature, verification of signatures and treatment of signed/non-signed bundles is implementation-environment specific.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="Mxx-HealthHub-ProposeMedicationBundle" />
<url value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ProposeMedicationBundle" />
<version value="1.5.0" />
<name value="Mxx_HealthHub_ProposeMedicationBundle" />
<title value="Mxx_HealthHub_ProposeMedicationBundle" />
<status value="active" />
<publisher value="medatixx GmbH & Co. KG" />
<description value="Collection Bundle for the batch medication proposal. Contains 1-20 medication proposals (Mxx_HealthHub_MedicationRequest). Bundle.identifier identifies this single transmission/batch as a whole. The prescription membership of the individual proposals is expressed independently via MedicationRequest.groupIdentifier and may differ per entry. As a FHIR collection Bundle it has no transactional FHIR semantics; processing is nevertheless all-or-nothing: if one entry is rejected (e.g. a PZN is not in the article master data), the entire batch is rejected with 422 and nothing is stored. All entries must refer to the same patient (subject) and the same partner system (requester). Response 204 No Content on success." />
<copyright value="medatixx GmbH & Co. KG" />
<fhirVersion value="4.0.1" />
<kind value="resource" />
<abstract value="false" />
<type value="Bundle" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
<derivation value="constraint" />
<element id="Bundle">
<path value="Bundle" />
<key value="bundle-same-subject-requester" />
<severity value="error" />
<human value="Alle MedicationRequest-Einträge eines Batches müssen denselben subject (Patient) und denselben requester (Partnersystem) haben." />
<expression value="entry.resource.ofType(MedicationRequest).subject.reference.distinct().count() <= 1 and entry.resource.ofType(MedicationRequest).subject.identifier.value.distinct().count() <= 1 and entry.resource.ofType(MedicationRequest).requester.reference.distinct().count() <= 1" />
</constraint>
</element>
<element id="Bundle.identifier">
<path value="Bundle.identifier" />
<short value="Übertragungs-/Batch-Identifikator" />
<definition value="Identifiziert diese eine Übermittlung/den Batch als Ganzes. Empfohlen wird eine UUID (urn:uuid:...); das Format wird serverseitig nicht erzwungen." />
<min value="1" />
<max value="1" />
</element>
<element id="Bundle.identifier.value">
<path value="Bundle.identifier.value" />
<min value="1" />
</element>
<element id="Bundle.type">
<path value="Bundle.type" />
<short value="Typ des Bundles" />
<definition value="Fester Wert 'collection'. Als collection-Bundle hat es keine transaktionale FHIR-Semantik; die Verarbeitung durch die Praxissoftware erfolgt jedoch all-or-nothing (siehe Bundle-Beschreibung)." />
<fixedCode value="collection" />
</element>
<element id="Bundle.entry">
<path value="Bundle.entry" />
<short value="Medikationsvorschläge (1-20)" />
<definition value="Liste der einzelnen Medikationsvorschläge. Jeder Eintrag muss konform zum Profil Mxx_HealthHub_MedicationRequest sein." />
<min value="1" />
<max value="20" />
</element>
<element id="Bundle.entry.resource">
<path value="Bundle.entry.resource" />
<short value="Einzelner Medikationsvorschlag" />
<definition value="Ein MedicationRequest-Vorschlag, konform zum Profil Mxx_HealthHub_MedicationRequest." />
<min value="1" />
<code value="Resource" />
<profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationRequest" />
</type>
</element>
<element id="Bundle.entry.request">
<path value="Bundle.entry.request" />
<max value="0" />
</element>
<element id="Bundle.entry.response">
<path value="Bundle.entry.response" />
<max value="0" />
</element>
</differential>
</StructureDefinition>
{
"resourceType": "StructureDefinition",
"id": "Mxx-HealthHub-ProposeMedicationBundle",
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_ProposeMedicationBundle",
"version": "1.5.0",
"name": "Mxx_HealthHub_ProposeMedicationBundle",
"title": "Mxx_HealthHub_ProposeMedicationBundle",
"status": "active",
"publisher": "medatixx GmbH & Co. KG",
"description": "Collection Bundle for the batch medication proposal. Contains 1-20 medication proposals (Mxx_HealthHub_MedicationRequest). Bundle.identifier identifies this single transmission/batch as a whole. The prescription membership of the individual proposals is expressed independently via MedicationRequest.groupIdentifier and may differ per entry. As a FHIR collection Bundle it has no transactional FHIR semantics; processing is nevertheless all-or-nothing: if one entry is rejected (e.g. a PZN is not in the article master data), the entire batch is rejected with 422 and nothing is stored. All entries must refer to the same patient (subject) and the same partner system (requester). Response 204 No Content on success.",
"copyright": "medatixx GmbH & Co. KG",
"fhirVersion": "4.0.1",
"kind": "resource",
"abstract": false,
"type": "Bundle",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
"derivation": "constraint",
"element": [
{
"id": "Bundle",
"path": "Bundle",
{
"key": "bundle-same-subject-requester",
"severity": "error",
"human": "Alle MedicationRequest-Einträge eines Batches müssen denselben subject (Patient) und denselben requester (Partnersystem) haben.",
"expression": "entry.resource.ofType(MedicationRequest).subject.reference.distinct().count() <= 1 and entry.resource.ofType(MedicationRequest).subject.identifier.value.distinct().count() <= 1 and entry.resource.ofType(MedicationRequest).requester.reference.distinct().count() <= 1"
}
]
},
{
"id": "Bundle.identifier",
"path": "Bundle.identifier",
"short": "Übertragungs-/Batch-Identifikator",
"definition": "Identifiziert diese eine Übermittlung/den Batch als Ganzes. Empfohlen wird eine UUID (urn:uuid:...); das Format wird serverseitig nicht erzwungen.",
"min": 1,
"max": "1"
},
{
"id": "Bundle.identifier.value",
"path": "Bundle.identifier.value",
"min": 1
},
{
"id": "Bundle.type",
"path": "Bundle.type",
"short": "Typ des Bundles",
"definition": "Fester Wert 'collection'. Als collection-Bundle hat es keine transaktionale FHIR-Semantik; die Verarbeitung durch die Praxissoftware erfolgt jedoch all-or-nothing (siehe Bundle-Beschreibung).",
"fixedCode": "collection"
},
{
"id": "Bundle.entry",
"path": "Bundle.entry",
"short": "Medikationsvorschläge (1-20)",
"definition": "Liste der einzelnen Medikationsvorschläge. Jeder Eintrag muss konform zum Profil Mxx_HealthHub_MedicationRequest sein.",
"min": 1,
"max": "20"
},
{
"id": "Bundle.entry.resource",
"path": "Bundle.entry.resource",
"short": "Einzelner Medikationsvorschlag",
"definition": "Ein MedicationRequest-Vorschlag, konform zum Profil Mxx_HealthHub_MedicationRequest.",
"min": 1,
"type": [
{
"code": "Resource",
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationRequest"
]
}
]
},
{
"id": "Bundle.entry.request",
"path": "Bundle.entry.request",
"max": "0"
},
{
"id": "Bundle.entry.response",
"path": "Bundle.entry.response",
"max": "0"
}
]
}
}

Zweck

Mxx_HealthHub_ProposeMedicationBundle ist ein collection-Bundle für den Batch-Medikationsvorschlag (MedicationRequest/$propose). Es fasst 1 bis 20 einzelne Mxx_HealthHub_MedicationRequest-Instanzen zu einer Übermittlung zusammen.

Schlüsselelemente

Element Kardinalität Beschreibung
Bundle.type 1..1 Fester Wert collection. Keine transaktionale FHIR-Semantik; die Verarbeitung erfolgt jedoch all-or-nothing (siehe unten).
Bundle.identifier 1..1 Pflicht. Identifiziert diese eine Übertragung/den Batch als Ganzes (empfohlen: UUID im Format urn:uuid:...).
Bundle.entry 1..20 Mindestens ein, höchstens 20 Einträge.
Bundle.entry.resource 1..1 Muss konform zu Mxx_HealthHub_MedicationRequest sein.
Bundle.entry.request 0..0 Verboten (kein Transaktions-Bundle).
Bundle.entry.response 0..0 Verboten.

Bundle.identifier vs. groupIdentifier

Bundle.identifier und MedicationRequest.groupIdentifier haben unterschiedliche Bedeutungen und dürfen nicht verwechselt werden:

  • Bundle.identifier: technischer Übertragungsidentifikator für den gesamten Batch (eine Übermittlung). Wird von der Partnersoftware vergeben und dient der Nachverfolgung der Übertragung in den Logs. Der IHS reicht ihn nicht an das PVS weiter; eine Deduplizierung findet darüber nicht statt. Empfohlen wird eine UUID (urn:uuid:...), das Format wird serverseitig nicht erzwungen.
  • MedicationRequest.groupIdentifier: fachliche Rezeptzugehörigkeit eines einzelnen Vorschlags. Optional, kann je Eintrag verschieden sein und wird nicht automatisch generiert.

Verarbeitungsverhalten (all-or-nothing)

Die Verarbeitung erfolgt all-or-nothing. Wird eine im Batch enthaltene PZN im PVS-Artikelstamm nicht gefunden, wird der gesamte Batch abgelehnt (HTTP 422 im PVS-Kontrakt) und nichts gespeichert. Ein reiner Freitext-Vorschlag ohne PZN innerhalb des Batches bleibt gültig. Alle Einträge eines Batches müssen denselben Patienten (subject) und dasselbe Partnersystem (requester) betreffen, sonst wird der Batch abgelehnt.

Bei erfolgreicher Verarbeitung antwortet die Operation mit 204 No Content.

Mxx_HealthHub_MedicationStatement

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
identifierΣ0..0Identifier
basedOnΣ C0..0Reference(CarePlan | MedicationRequest | ServiceRequest)
partOfΣ C0..0Reference(MedicationAdministration | MedicationDispense | MedicationStatement | Observation | Procedure)
statusΣ ?!1..1codeBinding
statusReason0..0CodeableConcept
categoryΣ0..0CodeableConceptBinding
medicationCodeableConceptCodeableConcept
medicationReferenceReference(Mxx_HealthHub_Medication)
subjectΣ C1..1Reference(Mxx_HealthHub_Patient)
contextΣ C0..0Reference(Encounter | EpisodeOfCare)
effectivePeriodPeriod
dateAssertedΣ0..0dateTime
informationSourceC0..0Reference(Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
derivedFromC0..0Reference(Resource)
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ0..1uriFixed Value
versionΣ0..1string
codeΣ0..1code
displayΣ0..1string
userSelectedΣ0..1boolean
textΣ0..1string
reasonReferenceC0..0Reference(Condition | DiagnosticReport | Observation)
note0..*Annotation
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
sequenceΣ0..1integer
textΣ0..1string
additionalInstructionΣ0..*CodeableConcept
patientInstructionΣ0..1string
timingΣ0..1Timing
asNeededBooleanboolean
asNeededCodeableConceptCodeableConcept
siteΣ0..1CodeableConcept
routeΣ0..1CodeableConcept
methodΣ0..1CodeableConcept
id0..1string
extensionC0..*Extension
typeΣ0..1CodeableConcept
doseQuantitySimpleQuantity
doseRangeRange
rateQuantitySimpleQuantity
rateRangeRange
rateRatioRatio
maxDosePerPeriodΣ C0..1Ratio
maxDosePerAdministrationΣ C0..1SimpleQuantity
maxDosePerLifetimeΣ C0..1SimpleQuantity
MedicationStatementC
ShortPatient medication data
Definition

Represents medications from the patient's medication plan (Medikationsplan) as recorded in the practice management system. Includes both active and historical medications with PZN and ATC coding where available.

Cardinality0..*
Comments

When interpreting a medicationStatement, the value of the status and NotTaken needed to be considered: MedicationStatement.status + MedicationStatement.wasNotTaken Status=Active + NotTaken=T = Not currently taking Status=Completed + NotTaken=T = Not taken in the past Status=Intended + NotTaken=T = No intention of taking Status=Active + NotTaken=F = Taking, but not as prescribed Status=Active + NotTaken=F = Taking Status=Intended +NotTaken= F = Will be taking (not started) Status=Completed + NotTaken=F = Taken in past Status=In Error + NotTaken=N/A = In Error.

Constraints
  • dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
    contained.contained.empty()
  • dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
    contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
  • dom-3: 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
    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()
  • dom-6: A resource should have narrative for robust management
    text.`div`.exists()
  • dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
    contained.meta.security.empty()
Mappings
  • rim: Entity. Role, or Act
  • workflow: Event
  • rim: SubstanceAdministration
MedicationStatement.idΣ
ShortLogical id of this artifact
Definition

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

Cardinality0..1
Typeid
SummaryTrue
Comments

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

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
MedicationStatement.metaΣ
ShortMetadata about the resource
Definition

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.

Cardinality0..1
TypeMeta
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
MedicationStatement.implicitRulesΣ ?!
ShortA set of rules under which this content was created
Definition

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.

Cardinality0..1
Typeuri
ModifierTrue
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
MedicationStatement.language
ShortLanguage of the resource content
Definition

The base language in which the resource is written.

Cardinality0..1
Typecode
Binding

A human language.

CommonLanguages (preferred)

Binding extensions
maxValueSetAllLanguages
Comments

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).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
MedicationStatement.text
ShortText summary of the resource, for human interpretation
Definition

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.

Cardinality0..1
TypeNarrative
Aliasnarrative, html, xhtml, display
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
  • rim: Act.text?
MedicationStatement.contained
ShortContained, inline Resources
Definition

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.

Cardinality0..*
TypeResource
Aliasinline resources, anonymous resources, contained resources
Comments

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.

Mappings
  • rim: Entity. Role, or Act
  • rim: N/A
MedicationStatement.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationStatement.modifierExtension?! C
ShortExtensions that cannot be ignored
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
Aliasextensions, user content
Requirements

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.

Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationStatement.identifierΣ
ShortExternal identifier
Definition

Identifiers associated with this Medication Statement that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.

Cardinality0..0
TypeIdentifier
SummaryTrue
Comments

This is a business identifier, not a resource identifier.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: 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]
  • servd: Identifier
  • workflow: Event.identifier
  • w5: FiveWs.identifier
  • rim: .id
MedicationStatement.basedOnΣ C
ShortFulfils plan, proposal or order
Definition

A plan, proposal or order that is fulfilled in whole or in part by this event.

Cardinality0..0
TypeReference(CarePlan | MedicationRequest | ServiceRequest)
SummaryTrue
Requirements

Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.basedOn
  • rim: .outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]
MedicationStatement.partOfΣ C
ShortPart of referenced event
Definition

A larger event of which this particular event is a component or step.

Cardinality0..0
TypeReference(MedicationAdministration | MedicationDispense | MedicationStatement | Observation | Procedure)
SummaryTrue
Requirements

This should not be used when indicating which resource a MedicationStatement has been derived from. If that is the use case, then MedicationStatement.derivedFrom should be used.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.partOf
  • rim: .outboundRelationship[typeCode=COMP]/target[classCode=SPLY or SBADM or PROC or OBS,moodCode=EVN]
MedicationStatement.statusΣ ?!
Shortactive | completed | stopped
Definition

The medication intake status. Restricted to the three states the PVS status mapping produces: aktiv -> active, beendet -> completed, abgesetzt -> stopped.

Cardinality1..1
Typecode
Binding

A coded concept indicating the current status of a MedicationStatement.

Mxx_HealthHub_VS_MedicationStatementStatus (required)

ModifierTrue
SummaryTrue
Comments

MedicationStatement is a statement at a point in time. The status is only representative at the point when it was asserted. The value set for MedicationStatement.status contains codes that assert the status of the use of the medication by the patient (for example, stopped or on hold) as well as codes that assert the status of the medication statement itself (for example, entered in error).

This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Event.status
  • w5: FiveWs.status
  • rim: .statusCode
MedicationStatement.statusReason
ShortReason for current status
Definition

Captures the reason for the current state of the MedicationStatement.

Cardinality0..0
TypeCodeableConcept
Binding

A coded concept indicating the reason for the status of the statement.

SNOMEDCTDrugTherapyStatusCodes (example)

Comments

This is generally only used for "exception" statuses such as "not-taken", "on-hold", "cancelled" or "entered-in-error". The reason for performing the event at all is captured in reasonCode, not here.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • workflow: Event.statusReason
  • rim: .inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde
MedicationStatement.categoryΣ
ShortType of medication usage
Definition

Indicates where the medication is expected to be consumed or administered.

Cardinality0..0
TypeCodeableConcept
Binding

A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered.

Medication usage category codes (preferred)

SummaryTrue
Comments

Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • w5: FiveWs.class
  • rim: .inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value
MedicationStatement.medication[x]Σ C
ShortMedication as inline code (PZN/ATC) or reference to Mxx_HealthHub_Medication
Definition

Identifies the medication. A CodeableConcept MAY be used inline when only PZN/ATC codes and the trade name are available. A Reference to a (typically contained) Mxx_HealthHub_Medication SHOULD be used when dosage form, package size, active ingredient or strength are available. The PZN/ATC coding slices and the trade name are defined on Mxx_HealthHub_Medication.code; for the inline CodeableConcept the same systems (http://fhir.de/CodeSystem/ifa/pzn, http://fhir.de/CodeSystem/bfarm/atc) apply by convention.

Cardinality1..1
TypeCodeableConcept | Reference(Mxx_HealthHub_Medication)
Binding

A coded concept identifying the substance or product being taken.

SNOMEDCTMedicationCodes (example)

SummaryTrue
Comments

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, then you must reference the Medication resource.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • mxx-medstmt-med-1: An inline medication (CodeableConcept) must identify the medication with at least a coding or a text.
    $this is Reference or coding.exists() or text.exists()
Mappings
  • rim: n/a
  • workflow: Event.code
  • w5: FiveWs.what[x]
  • rim: .participation[typeCode=CSM].role[classCode=ADMM or MANU]
MedicationStatement.subjectΣ C
ShortWho is/was taking the medication
Definition

The person, animal or group who is/was taking the medication.

Cardinality1..1
TypeReference(Mxx_HealthHub_Patient)
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.subject
  • w5: FiveWs.subject[x]
  • v2: PID-3-Patient ID List
  • rim: .participation[typeCode=SBJ].role[classCode=PAT]
  • w5: FiveWs.subject
MedicationStatement.contextΣ C
ShortEncounter / Episode associated with MedicationStatement
Definition

The encounter or episode of care that establishes the context for this MedicationStatement.

Cardinality0..0
TypeReference(Encounter | EpisodeOfCare)
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.context
  • rim: .inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]
MedicationStatement.effective[x]Σ
ShortWhen the medication is/was taken
Definition

The period when the medication was prescribed or is being taken. effectivePeriod.start indicates the prescription date (prescribedDate), effectivePeriod.end indicates when the medication was stopped (discontinuedDate, if applicable). Constrained to Period so that the prescription/stop dates map unambiguously and the search result can be sorted by effectivePeriod.start.

Cardinality0..1
TypePeriod
SummaryTrue
Comments

This attribute reflects the period over which the patient consumed the medication and is expected to be populated on the majority of Medication Statements. If the medication is still being taken at the time the statement is recorded, the "end" date will be omitted. The date/time attribute supports a variety of dates - year, year/month and exact date. If something more than this is required, this should be conveyed as text.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • workflow: Event.occurrence[x]
  • w5: FiveWs.done[x]
  • rim: .effectiveTime
MedicationStatement.dateAssertedΣ
ShortNot exposed by this profile
Definition

Not populated: the practice management system provides no documentation/assertion date, only the prescription and discontinuation dates. The search result is therefore sorted by effectivePeriod.start, not dateAsserted.

Cardinality0..0
TypedateTime
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • w5: FiveWs.recorded
  • rim: .participation[typeCode=AUT].time
MedicationStatement.informationSourceC
ShortPerson or organization that provided the information about the taking of this medication
Definition

The person or organization that provided the information about the taking of this medication. Note: Use derivedFrom when a MedicationStatement is derived from other resources, e.g. Claim or MedicationRequest.

Cardinality0..0
TypeReference(Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • w5: FiveWs.source
  • rim: .participation[typeCode=INF].role[classCode=PAT, or codes for Practioner or Related Person (if PAT is the informer, then syntax for self-reported =true)
MedicationStatement.derivedFromC
ShortAdditional supporting information
Definition

Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.

Cardinality0..0
TypeReference(Resource)
Comments

Likely references would be to MedicationRequest, MedicationDispense, Claim, Observation or QuestionnaireAnswers. The most common use cases for deriving a MedicationStatement comes from creating a MedicationStatement from a MedicationRequest or from a lab observation or a claim. it should be noted that the amount of information that is available varies from the type resource that you derive the MedicationStatement from.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • rim: .outboundRelationship[typeCode=SPRT]/target[classCode=ACT,moodCode=EVN]
MedicationStatement.reasonCode
ShortIndication (ICD-10-GM when available)
Definition

The clinical reason (indication) for the medication. When structured, coded as ICD-10-GM. Often only available as free text.

Cardinality0..1
TypeCodeableConcept
Binding

A coded concept identifying why the medication is being taken.

Condition/Problem/DiagnosisCodes (example)

Comments

This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonForUseReference.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • workflow: Event.reasonCode
  • w5: FiveWs.why[x]
  • rim: .reasonCode
MedicationStatement.reasonCode.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationStatement.reasonCode.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationStatement.reasonCode.codingΣ
ShortCode defined by a terminology system
Definition

A reference to a code defined by a terminology system.

Cardinality0..1
TypeCoding
SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
  • rim: CV
  • orim: fhir:Coding rdfs:subClassOf dt:CDCoding
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
MedicationStatement.reasonCode.coding.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationStatement.reasonCode.coding.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationStatement.reasonCode.coding.systemΣ
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality0..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
http://fhir.de/CodeSystem/bfarm/icd-10-gm
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
MedicationStatement.reasonCode.coding.versionΣ
ShortVersion of the system - if relevant
Definition

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.

Cardinality0..1
Typestring
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
MedicationStatement.reasonCode.coding.codeΣ
ShortSymbol in syntax defined by the system
Definition

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).

Cardinality0..1
Typecode
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
MedicationStatement.reasonCode.coding.displayΣ
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
MedicationStatement.reasonCode.coding.userSelectedΣ
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: 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 ]
MedicationStatement.reasonCode.textΣ
ShortPlain text representation of the concept
Definition

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.

Cardinality0..1
Typestring
SummaryTrue
Requirements

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.

Comments

Very often the text is the same as a displayName of one of the codings.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.9. But note many systems use C*E.2 for this
  • rim: ./originalText[mediaType/code="text/plain"]/data
  • orim: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText
MedicationStatement.reasonReferenceC
ShortCondition or observation that supports why the medication is being/was taken
Definition

Condition or observation that supports why the medication is being/was taken.

Cardinality0..0
TypeReference(Condition | DiagnosticReport | Observation)
Comments

This is a reference to a condition that is the reason why the medication is being/was taken. If only a code exists, use reasonForUseCode.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • workflow: Event.reasonReference
  • w5: FiveWs.why[x]
  • rim: .outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="reason for use"].value
MedicationStatement.note
ShortFurther information about the statement
Definition

Provides extra information about the medication statement that is not conveyed by the other attributes.

Cardinality0..*
TypeAnnotation
Comments

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).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: Act
  • workflow: Event.note
  • rim: .inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value
MedicationStatement.dosage
ShortDosage instructions
Definition

Dosage instructions for the medication. The text element contains the German dosage notation (e.g., '1-0-1-0' for morning-noon-evening-night). Structured timing and dose may be provided when available.

Cardinality0..*
TypeDosage
Comments

The dates included in the dosage on a Medication Statement reflect the dates for a given dose. For example, "from November 1, 2016 to November 3, 2016, take one tablet daily and from November 4, 2016 to November 7, 2016, take two tablets daily." It is expected that this specificity may only be populated where the patient brings in their labeled container or where the Medication Statement is derived from a MedicationRequest.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]
  • rim: refer dosageInstruction mapping
MedicationStatement.dosage.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationStatement.dosage.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationStatement.dosage.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationStatement.dosage.sequenceΣ
ShortThe order of the dosage instructions
Definition

Indicates the order in which the dosage instructions should be applied or interpreted.

Cardinality0..1
Typeinteger
SummaryTrue
Requirements

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.

Comments

32 bit number; for values larger than this, use decimal

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: TQ1-1
  • rim: .text
MedicationStatement.dosage.textΣ
ShortGerman dosage notation (e.g., '1-0-1-0')
Definition

Free-text dosage instructions, typically in German schema notation: Morning-Noon-Evening-Night (e.g., '1-0-1-0' = 1 tablet morning, none at noon, 1 tablet evening, none at night).

Cardinality0..1
Typestring
SummaryTrue
Requirements

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.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: RXO-6; RXE-21
  • rim: .text
MedicationStatement.dosage.additionalInstructionΣ
ShortSupplemental instruction or warnings to the patient - e.g. "with meals", "may cause drowsiness"
Definition

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").

Cardinality0..*
TypeCodeableConcept
Binding

A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery".

SNOMEDCTAdditionalDosageInstructions (example)

SummaryTrue
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • v2: RXO-7
  • rim: .text
MedicationStatement.dosage.patientInstructionΣ
ShortPatient or consumer oriented instructions
Definition

Instructions in terms that are understood by the patient or consumer.

Cardinality0..1
Typestring
SummaryTrue
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: RXO-7
  • rim: .text
MedicationStatement.dosage.timingΣ
ShortWhen medication should be administered
Definition

When medication should be administered.

Cardinality0..1
TypeTiming
SummaryTrue
Requirements

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.

Comments

This attribute might not always be populated while the Dosage.text is expected to be populated. If both are populated, then the Dosage.text should reflect the content of the Dosage.timing.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: QSET<TS> (GTS)
  • rim: .effectiveTime
MedicationStatement.dosage.asNeeded[x]Σ
ShortTake "as needed" (for x)
Definition

Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).

Cardinality0..1
Typeboolean | CodeableConcept
Binding

A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose. For example "pain", "30 minutes prior to sexual intercourse", "on flare-up" etc.

SNOMEDCTMedicationAsNeededReasonCodes (example)

SummaryTrue
Comments

Can express "as needed" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express "as needed" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not "prn" or "as needed".

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: TQ1-9
  • rim: .outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code="as needed"].value=boolean or codable concept
MedicationStatement.dosage.siteΣ
ShortBody site to administer to
Definition

Body site to administer to.

Cardinality0..1
TypeCodeableConcept
Binding

A coded concept describing the site location the medicine enters into or onto the body.

SNOMEDCTAnatomicalStructureForAdministrationSiteCodes (example)

SummaryTrue
Requirements

A coded specification of the anatomic site where the medication first enters the body.

Comments

If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension bodySite. May be a summary code, or a reference to a very precise definition of the location, or both.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • v2: RXR-2
  • rim: .approachSiteCode
MedicationStatement.dosage.routeΣ
ShortHow drug should enter body
Definition

How drug should enter body.

Cardinality0..1
TypeCodeableConcept
Binding

A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.

SNOMEDCTRouteCodes (example)

SummaryTrue
Requirements

A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.

Comments

Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • v2: RXR-1
  • rim: .routeCode
MedicationStatement.dosage.methodΣ
ShortTechnique for administering medication
Definition

Technique for administering medication.

Cardinality0..1
TypeCodeableConcept
Binding

A coded concept describing the technique by which the medicine is administered.

SNOMEDCTAdministrationMethodCodes (example)

SummaryTrue
Requirements

A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. For examples, Slow Push; Deep IV.

Comments

Terminologies used often pre-coordinate this term with the route and or form of administration.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • v2: RXR-4
  • rim: .doseQuantity
MedicationStatement.dosage.doseAndRateΣ
ShortAmount of medication administered
Definition

The amount of medication administered.

Cardinality0..*
TypeElement
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: TQ1-2
MedicationStatement.dosage.doseAndRate.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
MedicationStatement.dosage.doseAndRate.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
MedicationStatement.dosage.doseAndRate.typeΣ
ShortThe kind of dose or rate specified
Definition

The kind of dose or rate specified, for example, ordered or calculated.

Cardinality0..1
TypeCodeableConcept
Binding

The kind of dose or rate specified.

DoseAndRateType (example)

SummaryTrue
Requirements

If the type is not populated, assume to be "ordered".

Comments

Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • v2: RXO-21; RXE-23
MedicationStatement.dosage.doseAndRate.dose[x]Σ
ShortAmount of medication per dose
Definition

Amount of medication per dose.

Cardinality0..1
TypeSimpleQuantity | Range
SummaryTrue
Requirements

The amount of therapeutic or other substance given at one administration event.

Comments

Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: RXO-2, RXE-3
  • rim: .doseQuantity
MedicationStatement.dosage.doseAndRate.rate[x]Σ
ShortAmount of medication per unit of time
Definition

Amount of medication per unit of time.

Cardinality0..1
TypeSimpleQuantity | Range | Ratio
SummaryTrue
Requirements

Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours. 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.

Comments

It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate.

It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: RXE22, RXE23, RXE-24
  • rim: .rateQuantity
MedicationStatement.dosage.maxDosePerPeriodΣ C
ShortUpper limit on medication per unit of time
Definition

Upper limit on medication per unit of time.

Cardinality0..1
TypeRatio
SummaryTrue
Requirements

The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. For example, 1000mg in 24 hours.

Comments

This is intended for use as an adjunct to the dosage when there is an upper cap. For example "2 tablets every 4 hours to a maximum of 8/day".

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • rat-1: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
    (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: RTO
  • v2: RXO-23, RXE-19
  • rim: .maxDoseQuantity
MedicationStatement.dosage.maxDosePerAdministrationΣ C
ShortUpper limit on medication per administration
Definition

Upper limit on medication per administration.

Cardinality0..1
TypeSimpleQuantity
SummaryTrue
Requirements

The maximum total quantity of a therapeutic substance that may be administered to a subject per administration.

Comments

This is intended for use as an adjunct to the dosage when there is an upper cap. For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
  • sqty-1: The comparator is not used on a SimpleQuantity
    comparator.empty()
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: not supported
MedicationStatement.dosage.maxDosePerLifetimeΣ C
ShortUpper limit on medication per lifetime of the patient
Definition

Upper limit on medication per lifetime of the patient.

Cardinality0..1
TypeSimpleQuantity
SummaryTrue
Requirements

The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject.

Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
  • sqty-1: The comparator is not used on a SimpleQuantity
    comparator.empty()
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: not supported
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="Mxx-HealthHub-MedicationStatement" />
<url value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationStatement" />
<version value="1.5.0" />
<name value="Mxx_HealthHub_MedicationStatement" />
<status value="active" />
<publisher value="medatixx GmbH & Co. KG" />
<description value="Medication data from the patient's medication plan as recorded in the PVS. Includes PZN and ATC coding, dosage instructions, and medication status. ATC codes may not be available for all PVS systems (notably x.isynet)." />
<copyright value="medatixx GmbH & Co. KG" />
<fhirVersion value="4.0.1" />
<kind value="resource" />
<abstract value="false" />
<type value="MedicationStatement" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
<derivation value="constraint" />
<element id="MedicationStatement">
<path value="MedicationStatement" />
<short value="Patient medication data" />
<definition value="Represents medications from the patient's medication plan (Medikationsplan) as recorded in the practice management system. Includes both active and historical medications with PZN and ATC coding where available." />
</element>
<element id="MedicationStatement.identifier">
<path value="MedicationStatement.identifier" />
<max value="0" />
</element>
<element id="MedicationStatement.basedOn">
<path value="MedicationStatement.basedOn" />
<max value="0" />
</element>
<element id="MedicationStatement.partOf">
<path value="MedicationStatement.partOf" />
<max value="0" />
</element>
<element id="MedicationStatement.status">
<path value="MedicationStatement.status" />
<short value="active | completed | stopped" />
<definition value="The medication intake status. Restricted to the three states the PVS status mapping produces: aktiv -> active, beendet -> completed, abgesetzt -> stopped." />
<min value="1" />
<strength value="required" />
<valueSet value="https://fhir.medatixx.de/HealthHub/ValueSet/Mxx_HealthHub_VS_MedicationStatementStatus" />
</binding>
</element>
<element id="MedicationStatement.statusReason">
<path value="MedicationStatement.statusReason" />
<max value="0" />
</element>
<element id="MedicationStatement.category">
<path value="MedicationStatement.category" />
<max value="0" />
</element>
<element id="MedicationStatement.medication[x]">
<path value="MedicationStatement.medication[x]" />
<short value="Medication as inline code (PZN/ATC) or reference to Mxx_HealthHub_Medication" />
<definition value="Identifies the medication. A CodeableConcept MAY be used inline when only PZN/ATC codes and the trade name are available. A Reference to a (typically contained) Mxx_HealthHub_Medication SHOULD be used when dosage form, package size, active ingredient or strength are available. The PZN/ATC coding slices and the trade name are defined on Mxx_HealthHub_Medication.code; for the inline CodeableConcept the same systems (http://fhir.de/CodeSystem/ifa/pzn, http://fhir.de/CodeSystem/bfarm/atc) apply by convention." />
<code value="CodeableConcept" />
</type>
<code value="Reference" />
<targetProfile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Medication" />
</type>
<key value="mxx-medstmt-med-1" />
<severity value="error" />
<human value="An inline medication (CodeableConcept) must identify the medication with at least a coding or a text." />
<expression value="$this is Reference or coding.exists() or text.exists()" />
</constraint>
</element>
<element id="MedicationStatement.subject">
<path value="MedicationStatement.subject" />
<code value="Reference" />
<targetProfile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Patient" />
</type>
</element>
<element id="MedicationStatement.context">
<path value="MedicationStatement.context" />
<max value="0" />
</element>
<element id="MedicationStatement.effective[x]">
<path value="MedicationStatement.effective[x]" />
<short value="When the medication is/was taken" />
<definition value="The period when the medication was prescribed or is being taken. effectivePeriod.start indicates the prescription date (prescribedDate), effectivePeriod.end indicates when the medication was stopped (discontinuedDate, if applicable). Constrained to Period so that the prescription/stop dates map unambiguously and the search result can be sorted by effectivePeriod.start." />
<code value="Period" />
</type>
</element>
<element id="MedicationStatement.dateAsserted">
<path value="MedicationStatement.dateAsserted" />
<short value="Not exposed by this profile" />
<definition value="Not populated: the practice management system provides no documentation/assertion date, only the prescription and discontinuation dates. The search result is therefore sorted by effectivePeriod.start, not dateAsserted." />
<max value="0" />
</element>
<element id="MedicationStatement.informationSource">
<path value="MedicationStatement.informationSource" />
<max value="0" />
</element>
<element id="MedicationStatement.derivedFrom">
<path value="MedicationStatement.derivedFrom" />
<max value="0" />
</element>
<element id="MedicationStatement.reasonCode">
<path value="MedicationStatement.reasonCode" />
<short value="Indication (ICD-10-GM when available)" />
<definition value="The clinical reason (indication) for the medication. When structured, coded as ICD-10-GM. Often only available as free text." />
<max value="1" />
</element>
<element id="MedicationStatement.reasonCode.coding">
<path value="MedicationStatement.reasonCode.coding" />
<max value="1" />
</element>
<element id="MedicationStatement.reasonCode.coding.system">
<path value="MedicationStatement.reasonCode.coding.system" />
<fixedUri value="http://fhir.de/CodeSystem/bfarm/icd-10-gm" />
</element>
<element id="MedicationStatement.reasonReference">
<path value="MedicationStatement.reasonReference" />
<max value="0" />
</element>
<element id="MedicationStatement.dosage">
<path value="MedicationStatement.dosage" />
<short value="Dosage instructions" />
<definition value="Dosage instructions for the medication. The text element contains the German dosage notation (e.g., '1-0-1-0' for morning-noon-evening-night). Structured timing and dose may be provided when available." />
</element>
<element id="MedicationStatement.dosage.text">
<path value="MedicationStatement.dosage.text" />
<short value="German dosage notation (e.g., '1-0-1-0')" />
<definition value="Free-text dosage instructions, typically in German schema notation: Morning-Noon-Evening-Night (e.g., '1-0-1-0' = 1 tablet morning, none at noon, 1 tablet evening, none at night)." />
</element>
</differential>
</StructureDefinition>
{
"resourceType": "StructureDefinition",
"id": "Mxx-HealthHub-MedicationStatement",
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationStatement",
"version": "1.5.0",
"name": "Mxx_HealthHub_MedicationStatement",
"status": "active",
"publisher": "medatixx GmbH & Co. KG",
"description": "Medication data from the patient's medication plan as recorded in the PVS. Includes PZN and ATC coding, dosage instructions, and medication status. ATC codes may not be available for all PVS systems (notably x.isynet).",
"copyright": "medatixx GmbH & Co. KG",
"fhirVersion": "4.0.1",
"kind": "resource",
"abstract": false,
"type": "MedicationStatement",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
"derivation": "constraint",
"element": [
{
"id": "MedicationStatement",
"path": "MedicationStatement",
"short": "Patient medication data",
"definition": "Represents medications from the patient's medication plan (Medikationsplan) as recorded in the practice management system. Includes both active and historical medications with PZN and ATC coding where available."
},
{
"id": "MedicationStatement.identifier",
"path": "MedicationStatement.identifier",
"max": "0"
},
{
"id": "MedicationStatement.basedOn",
"path": "MedicationStatement.basedOn",
"max": "0"
},
{
"id": "MedicationStatement.partOf",
"path": "MedicationStatement.partOf",
"max": "0"
},
{
"id": "MedicationStatement.status",
"path": "MedicationStatement.status",
"short": "active | completed | stopped",
"definition": "The medication intake status. Restricted to the three states the PVS status mapping produces: aktiv -> active, beendet -> completed, abgesetzt -> stopped.",
"min": 1,
"binding": {
"strength": "required",
"valueSet": "https://fhir.medatixx.de/HealthHub/ValueSet/Mxx_HealthHub_VS_MedicationStatementStatus"
}
},
{
"id": "MedicationStatement.statusReason",
"path": "MedicationStatement.statusReason",
"max": "0"
},
{
"id": "MedicationStatement.category",
"path": "MedicationStatement.category",
"max": "0"
},
{
"id": "MedicationStatement.medication[x]",
"path": "MedicationStatement.medication[x]",
"short": "Medication as inline code (PZN/ATC) or reference to Mxx_HealthHub_Medication",
"definition": "Identifies the medication. A CodeableConcept MAY be used inline when only PZN/ATC codes and the trade name are available. A Reference to a (typically contained) Mxx_HealthHub_Medication SHOULD be used when dosage form, package size, active ingredient or strength are available. The PZN/ATC coding slices and the trade name are defined on Mxx_HealthHub_Medication.code; for the inline CodeableConcept the same systems (http://fhir.de/CodeSystem/ifa/pzn, http://fhir.de/CodeSystem/bfarm/atc) apply by convention.",
"type": [
{
"code": "CodeableConcept"
},
{
"code": "Reference",
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Medication"
]
}
],
{
"key": "mxx-medstmt-med-1",
"severity": "error",
"human": "An inline medication (CodeableConcept) must identify the medication with at least a coding or a text.",
"expression": "$this is Reference or coding.exists() or text.exists()"
}
]
},
{
"id": "MedicationStatement.subject",
"path": "MedicationStatement.subject",
"type": [
{
"code": "Reference",
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Patient"
]
}
]
},
{
"id": "MedicationStatement.context",
"path": "MedicationStatement.context",
"max": "0"
},
{
"id": "MedicationStatement.effective[x]",
"path": "MedicationStatement.effective[x]",
"short": "When the medication is/was taken",
"definition": "The period when the medication was prescribed or is being taken. effectivePeriod.start indicates the prescription date (prescribedDate), effectivePeriod.end indicates when the medication was stopped (discontinuedDate, if applicable). Constrained to Period so that the prescription/stop dates map unambiguously and the search result can be sorted by effectivePeriod.start.",
"type": [
{
"code": "Period"
}
]
},
{
"id": "MedicationStatement.dateAsserted",
"path": "MedicationStatement.dateAsserted",
"short": "Not exposed by this profile",
"definition": "Not populated: the practice management system provides no documentation/assertion date, only the prescription and discontinuation dates. The search result is therefore sorted by effectivePeriod.start, not dateAsserted.",
"max": "0"
},
{
"id": "MedicationStatement.informationSource",
"path": "MedicationStatement.informationSource",
"max": "0"
},
{
"id": "MedicationStatement.derivedFrom",
"path": "MedicationStatement.derivedFrom",
"max": "0"
},
{
"id": "MedicationStatement.reasonCode",
"path": "MedicationStatement.reasonCode",
"short": "Indication (ICD-10-GM when available)",
"definition": "The clinical reason (indication) for the medication. When structured, coded as ICD-10-GM. Often only available as free text.",
"max": "1"
},
{
"id": "MedicationStatement.reasonCode.coding",
"path": "MedicationStatement.reasonCode.coding",
"max": "1"
},
{
"id": "MedicationStatement.reasonCode.coding.system",
"path": "MedicationStatement.reasonCode.coding.system",
"fixedUri": "http://fhir.de/CodeSystem/bfarm/icd-10-gm"
},
{
"id": "MedicationStatement.reasonReference",
"path": "MedicationStatement.reasonReference",
"max": "0"
},
{
"id": "MedicationStatement.dosage",
"path": "MedicationStatement.dosage",
"short": "Dosage instructions",
"definition": "Dosage instructions for the medication. The text element contains the German dosage notation (e.g., '1-0-1-0' for morning-noon-evening-night). Structured timing and dose may be provided when available."
},
{
"id": "MedicationStatement.dosage.text",
"path": "MedicationStatement.dosage.text",
"short": "German dosage notation (e.g., '1-0-1-0')",
"definition": "Free-text dosage instructions, typically in German schema notation: Morning-Noon-Evening-Night (e.g., '1-0-1-0' = 1 tablet morning, none at noon, 1 tablet evening, none at night)."
}
]
}
}

Mxx_HealthHub_Medication

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
normgroesseC0..1Extension(code)
modifierExtension?! C0..*Extension
identifierΣ0..0Identifier
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ1..1code
displayΣ0..1string
userSelectedΣ0..1boolean
id0..1string
extensionC0..*Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ1..1code
displayΣ0..1string
userSelectedΣ0..1boolean
textΣ1..1string
statusΣ ?!0..0codeBinding
manufacturerΣ C0..0Reference(Organization)
form0..1CodeableConcept
id0..1string
extensionC0..*Extension
id0..1string
packagingSizeC0..1Extension(string)
valueΣ0..1decimal
comparatorΣ ?!0..1codeBinding
unitΣ0..1string
systemΣ C0..1uri
codeΣ0..1code
denominatorΣ C0..1Quantity
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
itemCodeableConceptCodeableConcept
isActive0..1boolean
id0..1string
strengthTextC0..1Extension(string)
numeratorΣ C0..1Quantity
denominatorΣ C0..1Quantity
MedicationC
ShortMedication product as recorded in the PVS
Definition

Represents a medication product (Arzneimittel) referenced by a Mxx_HealthHub_MedicationStatement. Bundles the medication identification (PZN/ATC, trade name) with product details (dosage form, package size, active ingredient and strength) if provided.

Cardinality0..*
Constraints
  • dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
    contained.contained.empty()
  • dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
    contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
  • dom-3: 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
    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()
  • dom-6: A resource should have narrative for robust management
    text.`div`.exists()
  • dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
    contained.meta.security.empty()
Mappings
  • rim: Entity. Role, or Act
  • script10.6: NewRx/MedicationPrescribed -or- RxFill/MedicationDispensed -or- RxHistoryResponse/MedicationDispensed -or- RxHistoryResponse/MedicationPrescribed
  • rim: ManufacturedProduct[classCode=ADMM]
Medication.idΣ
ShortLogical id of this artifact
Definition

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

Cardinality0..1
Typeid
SummaryTrue
Comments

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

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Medication.metaΣ
ShortMetadata about the resource
Definition

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.

Cardinality0..1
TypeMeta
SummaryTrue
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
Medication.implicitRulesΣ ?!
ShortA set of rules under which this content was created
Definition

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.

Cardinality0..1
Typeuri
ModifierTrue
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Medication.language
ShortLanguage of the resource content
Definition

The base language in which the resource is written.

Cardinality0..1
Typecode
Binding

A human language.

CommonLanguages (preferred)

Binding extensions
maxValueSetAllLanguages
Comments

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).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
Medication.text
ShortText summary of the resource, for human interpretation
Definition

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.

Cardinality0..1
TypeNarrative
Aliasnarrative, html, xhtml, display
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: N/A
  • rim: Act.text?
Medication.contained
ShortContained, inline Resources
Definition

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.

Cardinality0..*
TypeResource
Aliasinline resources, anonymous resources, contained resources
Comments

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.

Mappings
  • rim: Entity. Role, or Act
  • rim: N/A
Medication.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.extension:normgroesseC
ShortNormgroesse (N1/N2/N3)
Definition

The standardised package size category (Normpackungsgroesse) such as N1, N2 or N3. Uses the German base profile extension http://fhir.de/StructureDefinition/normgroesse (valueCode bound to http://fhir.de/ValueSet/normgroesse). This is the category, not a numeric package content; the numeric content and its free-text description are carried on Medication.amount.

Cardinality0..1
TypeExtension(code)
Aliasextensions, user content
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.modifierExtension?! C
ShortExtensions that cannot be ignored
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
Aliasextensions, user content
Requirements

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.

Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.identifierΣ
ShortBusiness identifier for this medication
Definition

Business identifier for this medication.

Cardinality0..0
TypeIdentifier
SummaryTrue
Comments

The serial number could be included as an identifier.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CX / EI (occasionally, more often EI maps to a resource id or a URL)
  • rim: 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]
  • servd: Identifier
  • w5: FiveWs.identifier
  • rim: .id
Medication.codeΣ
ShortMedication identification via PZN and/or ATC
Definition

Identifies the medication using PZN (Pharmazentralnummer) as primary code and ATC (Anatomical Therapeutic Chemical) as secondary classification. The text element contains the trade name (Handelsname).

Cardinality1..1
TypeCodeableConcept
Binding

A coded concept that defines the type of a medication.

SNOMEDCTMedicationCodes (example)

SummaryTrue
Comments

Depending on the context of use, the code that was actually selected by the user (prescriber, dispenser, etc.) will have the coding.userSelected set to true. As described in the coding datatype: "A coding may be marked as a "userSelected" if a user selected the particular coded value in a user interface (e.g. the user selects an item in a pick-list). If a user selected coding exists, it is the preferred choice for performing translations etc. Other codes can only be literal translations to alternative code systems, or codes at a lower level of granularity (e.g. a generic code for a vendor-specific primary one).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • script10.6: coding.code = //element(*,MedicationType)/DrugCoded/ProductCode coding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier coding.display = //element(*,MedicationType)/DrugDescription
  • w5: FiveWs.class
  • v2: RXO-1.1-Requested Give Code.code / RXE-2.1-Give Code.code / RXD-2.1-Dispense/Give Code.code / RXG-4.1-Give Code.code /RXA-5.1-Administered Code.code / RXC-2.1 Component Code
  • rim: .code
Medication.code.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Medication.code.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.code.codingΣ
ShortCode defined by a terminology system
Definition

A reference to a code defined by a terminology system.

Cardinality0..*
TypeCoding
SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

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.

Slicing

Unordered, Open, by system(Value)

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
  • rim: CV
  • orim: fhir:Coding rdfs:subClassOf dt:CDCoding
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
Medication.code.coding:pznΣ
ShortPZN (Pharmazentralnummer)
Definition

The 8-digit Pharmazentralnummer identifying the specific drug product on the German market. Maintained by IFA (Informationsstelle fuer Arzneispezialitaeten).

Cardinality0..1
TypeCoding
Binding

PZN (required)

SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
  • rim: CV
  • orim: fhir:Coding rdfs:subClassOf dt:CDCoding
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
Medication.code.coding:pzn.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Medication.code.coding:pzn.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.code.coding:pzn.systemΣ
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality1..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
http://fhir.de/CodeSystem/ifa/pzn
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Medication.code.coding:pzn.versionΣ
ShortVersion of the system - if relevant
Definition

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.

Cardinality0..1
Typestring
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Medication.code.coding:pzn.codeΣ
ShortSymbol in syntax defined by the system
Definition

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).

Cardinality1..1
Typecode
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Medication.code.coding:pzn.displayΣ
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Medication.code.coding:pzn.userSelectedΣ
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: 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 ]
Medication.code.coding:atcΣ
ShortATC classification code
Definition

The ATC (Anatomical Therapeutic Chemical) classification code. Maintained by WHO/BfArM. May not always be available.

Cardinality0..1
TypeCoding
Binding

ATC (required)

SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE subset one of the sets of component 1-3 or 4-6
  • rim: CV
  • orim: fhir:Coding rdfs:subClassOf dt:CDCoding
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
Medication.code.coding:atc.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Medication.code.coding:atc.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.code.coding:atc.systemΣ
ShortIdentity of the terminology system
Definition

The identification of the code system that defines the meaning of the symbol in the code.

Cardinality1..1
Typeuri
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value
http://fhir.de/CodeSystem/bfarm/atc
Mappings
  • rim: n/a
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Medication.code.coding:atc.versionΣ
ShortVersion of the system - if relevant
Definition

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.

Cardinality0..1
Typestring
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Medication.code.coding:atc.codeΣ
ShortSymbol in syntax defined by the system
Definition

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).

Cardinality1..1
Typecode
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Medication.code.coding:atc.displayΣ
ShortRepresentation defined by the system
Definition

A representation of the meaning of the code in the system, following the rules of the system.

Cardinality0..1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Medication.code.coding:atc.userSelectedΣ
ShortIf this coding was chosen directly by the user
Definition

Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).

Cardinality0..1
Typeboolean
SummaryTrue
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: 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 ]
Medication.code.textΣ
ShortTrade name (Handelsname)
Definition

The trade name of the medication. Always provided as a human-readable fallback.

Cardinality1..1
Typestring
SummaryTrue
Requirements

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.

Comments

Very often the text is the same as a displayName of one of the codings.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: C*E.9. But note many systems use C*E.2 for this
  • rim: ./originalText[mediaType/code="text/plain"]/data
  • orim: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText
Medication.statusΣ ?!
Shortactive | inactive | entered-in-error
Definition

A code to indicate if the medication is in active use.

Cardinality0..0
Typecode
Binding

A coded concept defining if the medication is in active use.

Medication Status Codes (required)

ModifierTrue
SummaryTrue
Comments

Not used. The intake status (aktiv/beendet/abgesetzt) is carried by MedicationStatement.status, not by the Medication resource.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .statusCode
Medication.manufacturerΣ C
ShortManufacturer of the item
Definition

Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.

Cardinality0..0
TypeReference(Organization)
SummaryTrue
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ref-1: SHALL have a contained resource if a local reference is provided
    reference.exists() implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))
Mappings
  • rim: n/a
  • rim: The target of a resource reference is a RIM entry point (Act, Role, or Entity)
  • script10.6: no mapping
  • w5: FiveWs.actor
  • v2: RXD-20-Substance Manufacturer Name / RXG-21-Substance Manufacturer Name / RXA-17-Substance Manufacturer Name
  • rim: .player.scopingRole[typeCode=MANU].scoper
Medication.form
ShortDosage form (Darreichungsform)
Definition

The dosage form of the medication (e.g. film-coated tablet, capsule). From the PVS field dosageForm. Often only free text is available (form.text); a coded value (e.g. EDQM Standard Terms or KBV Darreichungsform) requires an additional lookup that the PVS does not provide.

Cardinality0..1
TypeCodeableConcept
Binding

A coded concept defining the form of a medication.

SNOMEDCTFormCodes (example)

Comments

When Medication is referenced from MedicationRequest, this is the ordered form. When Medication is referenced within MedicationDispense, this is the dispensed form. When Medication is referenced within MedicationAdministration, this is administered form.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: CE/CNE/CWE
  • rim: CD
  • orim: fhir:CodeableConcept rdfs:subClassOf dt:CD
  • script10.6: coding.code = //element(*,DrugCodedType)/FormCode coding.system = //element(*,DrugCodedType)/FormSourceCode
  • v2: RXO-5-Requested Dosage Form / RXE-6-Give Dosage Form / RXD-6-Actual Dosage Form / RXG-8-Give Dosage Form / RXA-8-Administered Dosage Form
  • rim: .formCode
Medication.amountΣ C
ShortPackage content (Packungsinhalt)
Definition

The amount of medication in the package as a ratio (content per package). numerator carries the numeric package content (value + unit) when available and, via the packagingSize extension, the free-text package size. denominator is typically 1 (per package). The standardised package size category (N1/N2/N3) is not carried here but in the normgroesse extension on the Medication root. From the PVS field packSize often only the Normgroesse category is available, in which case amount stays empty and only the normgroesse extension is set.

Cardinality0..1
TypeRatio
SummaryTrue
Comments

The Ratio datatype should only be used to express a relationship of two numbers if the relationship cannot be suitably expressed using a Quantity and a common unit. Where the denominator value is known to be fixed to "1", Quantity should be used instead of Ratio.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • rat-1: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
    (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: RTO
  • rim: .quantity
Medication.amount.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Medication.amount.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.amount.numeratorΣ C
ShortPackage content (numerator)
Definition

The numeric package content (e.g. 20 tablets, 100 ml). value + unit are only set when the PVS delivers a numeric content. The free-text package size is carried in the packagingSize extension.

Cardinality0..1
TypeQuantity
SummaryTrue
Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: .numerator
Medication.amount.numerator.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Medication.amount.numerator.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.amount.numerator.extension:packagingSizeC
ShortPackage size as free text (Packungsgroesse)
Definition

The package size as human-readable free text (e.g. '20 Filmtabletten'). Carries the packSize information when it is not a plain numeric content.

Cardinality0..1
TypeExtension(string)
Aliasextensions, user content
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.amount.numerator.valueΣ
ShortNumerical value (with implicit precision)
Definition

The value of the measured amount. The value includes an implicit precision in the presentation of the value.

Cardinality0..1
Typedecimal
SummaryTrue
Requirements

Precision is handled implicitly in almost all cases of measurement.

Comments

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).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: SN.2 / CQ - N/A
  • rim: PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value
Medication.amount.numerator.comparatorΣ ?!
Short< | <= | >= | > - how to understand the value
Definition

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.

Cardinality0..1
Typecode
Binding

How the Quantity should be understood and represented.

QuantityComparator (required)

ModifierTrue
SummaryTrue
Requirements

Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

Meaning when missing

If there is no comparator, then there is no modification of the value

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: SN.1 / CQ.1
  • rim: IVL properties
Medication.amount.numerator.unitΣ
ShortUnit representation
Definition

A human-readable form of the unit.

Cardinality0..1
Typestring
SummaryTrue
Requirements

There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.

Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: (see OBX.6 etc.) / CQ.2
  • rim: PQ.unit
Medication.amount.numerator.systemΣ C
ShortSystem that defines coded unit form
Definition

The identification of the system that provides the coded form of the unit.

Cardinality0..1
Typeuri
SummaryTrue
Requirements

Need to know the system that defines the coded form of the unit.

Comments

see http://en.wikipedia.org/wiki/Uniform_resource_identifier

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1, qty-3
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: (see OBX.6 etc.) / CQ.2
  • rim: CO.codeSystem, PQ.translation.codeSystem
Medication.amount.numerator.codeΣ
ShortCoded form of the unit
Definition

A computer processable form of the unit in some unit representation system.

Cardinality0..1
Typecode
SummaryTrue
Requirements

Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.

Comments

The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • v2: (see OBX.6 etc.) / CQ.2
  • rim: PQ.code, MO.currency, PQ.translation.code
Medication.amount.denominatorΣ C
ShortReference amount (denominator)
Definition

The reference amount the numerator relates to. Typically 1 (per package).

Cardinality0..1
TypeQuantity
SummaryTrue
Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: .denominator
Medication.ingredient
ShortActive ingredient(s) (Wirkstoff)
Definition

Identifies a particular constituent of interest in the product.

Cardinality0..*
TypeBackboneElement
Comments

The ingredients need not be a complete list. If an ingredient is not specified, this does not indicate whether an ingredient is present or absent. If an ingredient is specified it does not mean that all ingredients are specified. It is possible to specify both inactive and active ingredients.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: .scopesRole[typeCode=INGR]
Medication.ingredient.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Medication.ingredient.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.ingredient.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.ingredient.item[x]
ShortActive ingredient substance
Definition

The active ingredient (Wirkstoff). Often only free text is available (itemCodeableConcept.text); a coded substance (e.g. ASK or UNII) requires a substance lookup that is not always provided. Multiple ingredients may be delivered as a single concatenated string and then need to be split into repeating ingredient entries.

Cardinality1..1
TypeCodeableConcept
Requirements

The ingredient may reference a substance (for example, amoxicillin) or another medication (for example in the case of a compounded product, Glaxal Base).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • script10.6: coding.code = //element(*,MedicationType)/DrugCoded/ProductCode coding.system = //element(*,MedicationType)/DrugCoded/ProductCodeQualifier coding.display = //element(*,MedicationType)/DrugDescription
  • v2: RXC-2-Component Code if medication: RXO-1-Requested Give Code / RXE-2-Give Code / RXD-2-Dispense/Give Code / RXG-4-Give Code / RXA-5-Administered Code
  • rim: .player
Medication.ingredient.isActive
ShortTrue for active ingredients
Definition

Indicates that the listed substance is an active ingredient (Wirkstoff).

Cardinality0..1
Typeboolean
Requirements

True indicates that the ingredient affects the therapeutic action of the drug (i.e. active). False indicates that the ingredient does not affect the therapeutic action of the drug (i.e. inactive).

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • rim: NA
Medication.ingredient.strengthC
ShortStrength (Wirkstaerke)
Definition

The amount of active ingredient as a ratio (e.g. 400 mg per 1 tablet). Where the strength cannot be expressed as a structured ratio, it is provided as free text via the strengthText extension instead.

Cardinality0..1
TypeRatio
Comments

The Ratio datatype should only be used to express a relationship of two numbers if the relationship cannot be suitably expressed using a Quantity and a common unit. Where the denominator value is known to be fixed to "1", Quantity should be used instead of Ratio.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • rat-1: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present
    (numerator.empty() xor denominator.exists()) and (numerator.exists() or extension.exists())
Mappings
  • rim: n/a
  • v2: N/A
  • rim: RTO
  • script10.6: //element(*,DrugCodedType)/Strength
  • v2: RXC-3-Component Amount & RXC-4-Component Units if medication: RXO-2-Requested Give Amount - Minimum & RXO-4-Requested Give Units / RXO-3-Requested Give Amount - Maximum & RXO-4-Requested Give Units / RXO-11-Requested Dispense Amount & RXO-12-Requested Dispense Units / RXE-3-Give Amount - Minimum & RXE-5-Give Units / RXE-4-Give Amount - Maximum & RXE-5-Give Units / RXE-10-Dispense Amount & RXE-10-Dispense Units
  • rim: .quantity
Medication.ingredient.strength.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Medication.ingredient.strength.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.ingredient.strength.extension:strengthTextC
ShortStrength as free text (Wirkstaerke)
Definition

The strength as free text, used when a structured ratio (numerator value + unit) is not available.

Cardinality0..1
TypeExtension(string)
Aliasextensions, user content
Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.ingredient.strength.numeratorΣ C
ShortNumerator value
Definition

The value of the numerator.

Cardinality0..1
TypeQuantity
SummaryTrue
Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: .numerator
Medication.ingredient.strength.denominatorΣ C
ShortDenominator value
Definition

The value of the denominator.

Cardinality0..1
TypeQuantity
SummaryTrue
Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • qty-3: If a code for the unit is present, the system SHALL also be present
    code.empty() or system.exists()
Mappings
  • rim: n/a
  • v2: SN (see also Range) or CQ
  • rim: PQ, IVL<PQ>, MO, CO, depending on the values
  • rim: .denominator
Medication.batch
ShortDetails about packaged medications
Definition

Information that only applies to packages (not products).

Cardinality0..0
TypeBackboneElement
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • script10.6: no mapping
  • rim: .player[classCode=CONT]
Medication.batch.id
ShortUnique id for inter-element referencing
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Cardinality0..1
Typestring
Mappings
  • rim: n/a
Medication.batch.extensionC
ShortAdditional content defined by implementations
Definition

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.

Cardinality0..*
TypeExtension
Aliasextensions, user content
Comments

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.

Slicing

Unordered, Open, by url(Value)

Extensions are always sliced by (at least) url

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.batch.modifierExtensionΣ ?! C
ShortExtensions that cannot be ignored even if unrecognized
Definition

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).

Cardinality0..*
TypeExtension
ModifierTrue
SummaryTrue
Aliasextensions, user content, modifiers
Requirements

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.

Comments

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.

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
  • rim: N/A
Medication.batch.lotNumber
ShortIdentifier assigned to batch
Definition

The assigned lot number of a batch of the specified product.

Cardinality0..1
Typestring
Comments

Note that FHIR strings SHALL NOT exceed 1MB in size

ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • script10.6: no mapping
  • v2: RXA-15 Substance Lot Number / RXG-19 Substance Lot Number
  • rim: .id
Medication.batch.expirationDate
ShortWhen batch will expire
Definition

When this specific batch of product will expire.

Cardinality0..1
TypedateTime
ConditionsThe cardinality or value of this element may be affected by these constraints: ele-1
Constraints
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: n/a
  • script10.6: no mapping
  • v2: RXA-16 Substance Expiration Date / RXG-20 Substance Expiration Date
  • rim: participation[typeCode=CSM].role[classCode=INST].scopedRole.scoper[classCode=MMAT].expirationTime
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="Mxx-HealthHub-Medication" />
<url value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Medication" />
<version value="1.5.0" />
<name value="Mxx_HealthHub_Medication" />
<status value="active" />
<publisher value="medatixx GmbH & Co. KG" />
<description value="Medication product details for the Medication module. Carries PZN and ATC coding, trade name, dosage form, standardised package size (Normgroesse), package content with free-text package size, and active ingredient(s) with strength. Coded values for form, ingredient and strength depend on data availability; in many cases only free text is available and the coding element stays empty." />
<copyright value="medatixx GmbH & Co. KG" />
<fhirVersion value="4.0.1" />
<kind value="resource" />
<abstract value="false" />
<type value="Medication" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Medication" />
<derivation value="constraint" />
<element id="Medication">
<path value="Medication" />
<short value="Medication product as recorded in the PVS" />
<definition value="Represents a medication product (Arzneimittel) referenced by a Mxx_HealthHub_MedicationStatement. Bundles the medication identification (PZN/ATC, trade name) with product details (dosage form, package size, active ingredient and strength) if provided." />
</element>
<element id="Medication.extension">
<path value="Medication.extension" />
<type value="value" />
<path value="url" />
</discriminator>
<rules value="open" />
</slicing>
</element>
<element id="Medication.extension:normgroesse">
<path value="Medication.extension" />
<sliceName value="normgroesse" />
<short value="Normgroesse (N1/N2/N3)" />
<definition value="The standardised package size category (Normpackungsgroesse) such as N1, N2 or N3. Uses the German base profile extension http://fhir.de/StructureDefinition/normgroesse (valueCode bound to http://fhir.de/ValueSet/normgroesse). This is the category, not a numeric package content; the numeric content and its free-text description are carried on Medication.amount." />
<min value="0" />
<max value="1" />
<code value="Extension" />
<profile value="http://fhir.de/StructureDefinition/normgroesse" />
</type>
</element>
<element id="Medication.identifier">
<path value="Medication.identifier" />
<max value="0" />
</element>
<element id="Medication.code">
<path value="Medication.code" />
<short value="Medication identification via PZN and/or ATC" />
<definition value="Identifies the medication using PZN (Pharmazentralnummer) as primary code and ATC (Anatomical Therapeutic Chemical) as secondary classification. The text element contains the trade name (Handelsname)." />
<min value="1" />
</element>
<element id="Medication.code.coding">
<path value="Medication.code.coding" />
<type value="value" />
<path value="system" />
</discriminator>
<rules value="open" />
</slicing>
</element>
<element id="Medication.code.coding:pzn">
<path value="Medication.code.coding" />
<sliceName value="pzn" />
<short value="PZN (Pharmazentralnummer)" />
<definition value="The 8-digit Pharmazentralnummer identifying the specific drug product on the German market. Maintained by IFA (Informationsstelle fuer Arzneispezialitaeten)." />
<max value="1" />
<strength value="required" />
<valueSet value="http://fhir.de/ValueSet/ifa/pzn" />
</binding>
</element>
<element id="Medication.code.coding:pzn.system">
<path value="Medication.code.coding.system" />
<min value="1" />
<fixedUri value="http://fhir.de/CodeSystem/ifa/pzn" />
</element>
<element id="Medication.code.coding:pzn.code">
<path value="Medication.code.coding.code" />
<min value="1" />
</element>
<element id="Medication.code.coding:atc">
<path value="Medication.code.coding" />
<sliceName value="atc" />
<short value="ATC classification code" />
<definition value="The ATC (Anatomical Therapeutic Chemical) classification code. Maintained by WHO/BfArM. May not always be available." />
<max value="1" />
<strength value="required" />
<valueSet value="http://fhir.de/ValueSet/bfarm/atc" />
</binding>
</element>
<element id="Medication.code.coding:atc.system">
<path value="Medication.code.coding.system" />
<min value="1" />
<fixedUri value="http://fhir.de/CodeSystem/bfarm/atc" />
</element>
<element id="Medication.code.coding:atc.code">
<path value="Medication.code.coding.code" />
<min value="1" />
</element>
<element id="Medication.code.text">
<path value="Medication.code.text" />
<short value="Trade name (Handelsname)" />
<definition value="The trade name of the medication. Always provided as a human-readable fallback." />
<min value="1" />
</element>
<element id="Medication.status">
<path value="Medication.status" />
<comment value="Not used. The intake status (aktiv/beendet/abgesetzt) is carried by MedicationStatement.status, not by the Medication resource." />
<max value="0" />
</element>
<element id="Medication.manufacturer">
<path value="Medication.manufacturer" />
<max value="0" />
</element>
<element id="Medication.form">
<path value="Medication.form" />
<short value="Dosage form (Darreichungsform)" />
<definition value="The dosage form of the medication (e.g. film-coated tablet, capsule). From the PVS field dosageForm. Often only free text is available (form.text); a coded value (e.g. EDQM Standard Terms or KBV Darreichungsform) requires an additional lookup that the PVS does not provide." />
</element>
<element id="Medication.amount">
<path value="Medication.amount" />
<short value="Package content (Packungsinhalt)" />
<definition value="The amount of medication in the package as a ratio (content per package). numerator carries the numeric package content (value + unit) when available and, via the packagingSize extension, the free-text package size. denominator is typically 1 (per package). The standardised package size category (N1/N2/N3) is not carried here but in the normgroesse extension on the Medication root. From the PVS field packSize often only the Normgroesse category is available, in which case amount stays empty and only the normgroesse extension is set." />
</element>
<element id="Medication.amount.numerator">
<path value="Medication.amount.numerator" />
<short value="Package content (numerator)" />
<definition value="The numeric package content (e.g. 20 tablets, 100 ml). value + unit are only set when the PVS delivers a numeric content. The free-text package size is carried in the packagingSize extension." />
</element>
<element id="Medication.amount.numerator.extension">
<path value="Medication.amount.numerator.extension" />
<type value="value" />
<path value="url" />
</discriminator>
<rules value="open" />
</slicing>
</element>
<element id="Medication.amount.numerator.extension:packagingSize">
<path value="Medication.amount.numerator.extension" />
<sliceName value="packagingSize" />
<short value="Package size as free text (Packungsgroesse)" />
<definition value="The package size as human-readable free text (e.g. '20 Filmtabletten'). Carries the packSize information when it is not a plain numeric content." />
<min value="0" />
<max value="1" />
<code value="Extension" />
<profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationPackagingSize" />
</type>
</element>
<element id="Medication.amount.denominator">
<path value="Medication.amount.denominator" />
<short value="Reference amount (denominator)" />
<definition value="The reference amount the numerator relates to. Typically 1 (per package)." />
</element>
<element id="Medication.ingredient">
<path value="Medication.ingredient" />
<short value="Active ingredient(s) (Wirkstoff)" />
</element>
<element id="Medication.ingredient.item[x]">
<path value="Medication.ingredient.item[x]" />
<short value="Active ingredient substance" />
<definition value="The active ingredient (Wirkstoff). Often only free text is available (itemCodeableConcept.text); a coded substance (e.g. ASK or UNII) requires a substance lookup that is not always provided. Multiple ingredients may be delivered as a single concatenated string and then need to be split into repeating ingredient entries." />
<code value="CodeableConcept" />
</type>
</element>
<element id="Medication.ingredient.isActive">
<path value="Medication.ingredient.isActive" />
<short value="True for active ingredients" />
<definition value="Indicates that the listed substance is an active ingredient (Wirkstoff)." />
</element>
<element id="Medication.ingredient.strength">
<path value="Medication.ingredient.strength" />
<short value="Strength (Wirkstaerke)" />
<definition value="The amount of active ingredient as a ratio (e.g. 400 mg per 1 tablet). Where the strength cannot be expressed as a structured ratio, it is provided as free text via the strengthText extension instead." />
</element>
<element id="Medication.ingredient.strength.extension">
<path value="Medication.ingredient.strength.extension" />
<type value="value" />
<path value="url" />
</discriminator>
<rules value="open" />
</slicing>
</element>
<element id="Medication.ingredient.strength.extension:strengthText">
<path value="Medication.ingredient.strength.extension" />
<sliceName value="strengthText" />
<short value="Strength as free text (Wirkstaerke)" />
<definition value="The strength as free text, used when a structured ratio (numerator value + unit) is not available." />
<min value="0" />
<max value="1" />
<code value="Extension" />
<profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationStrengthText" />
</type>
</element>
<element id="Medication.batch">
<path value="Medication.batch" />
<max value="0" />
</element>
</differential>
</StructureDefinition>
{
"resourceType": "StructureDefinition",
"id": "Mxx-HealthHub-Medication",
"url": "https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Medication",
"version": "1.5.0",
"name": "Mxx_HealthHub_Medication",
"status": "active",
"publisher": "medatixx GmbH & Co. KG",
"description": "Medication product details for the Medication module. Carries PZN and ATC coding, trade name, dosage form, standardised package size (Normgroesse), package content with free-text package size, and active ingredient(s) with strength. Coded values for form, ingredient and strength depend on data availability; in many cases only free text is available and the coding element stays empty.",
"copyright": "medatixx GmbH & Co. KG",
"fhirVersion": "4.0.1",
"kind": "resource",
"abstract": false,
"type": "Medication",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication",
"derivation": "constraint",
"element": [
{
"id": "Medication",
"path": "Medication",
"short": "Medication product as recorded in the PVS",
"definition": "Represents a medication product (Arzneimittel) referenced by a Mxx_HealthHub_MedicationStatement. Bundles the medication identification (PZN/ATC, trade name) with product details (dosage form, package size, active ingredient and strength) if provided."
},
{
"id": "Medication.extension",
"path": "Medication.extension",
"slicing": {
{
"type": "value",
"path": "url"
}
],
"rules": "open"
}
},
{
"id": "Medication.extension:normgroesse",
"path": "Medication.extension",
"sliceName": "normgroesse",
"short": "Normgroesse (N1/N2/N3)",
"definition": "The standardised package size category (Normpackungsgroesse) such as N1, N2 or N3. Uses the German base profile extension http://fhir.de/StructureDefinition/normgroesse (valueCode bound to http://fhir.de/ValueSet/normgroesse). This is the category, not a numeric package content; the numeric content and its free-text description are carried on Medication.amount.",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"http://fhir.de/StructureDefinition/normgroesse"
]
}
]
},
{
"id": "Medication.identifier",
"path": "Medication.identifier",
"max": "0"
},
{
"id": "Medication.code",
"path": "Medication.code",
"short": "Medication identification via PZN and/or ATC",
"definition": "Identifies the medication using PZN (Pharmazentralnummer) as primary code and ATC (Anatomical Therapeutic Chemical) as secondary classification. The text element contains the trade name (Handelsname).",
"min": 1
},
{
"id": "Medication.code.coding",
"path": "Medication.code.coding",
"slicing": {
{
"type": "value",
"path": "system"
}
],
"rules": "open"
}
},
{
"id": "Medication.code.coding:pzn",
"path": "Medication.code.coding",
"sliceName": "pzn",
"short": "PZN (Pharmazentralnummer)",
"definition": "The 8-digit Pharmazentralnummer identifying the specific drug product on the German market. Maintained by IFA (Informationsstelle fuer Arzneispezialitaeten).",
"max": "1",
"binding": {
"strength": "required",
"valueSet": "http://fhir.de/ValueSet/ifa/pzn"
}
},
{
"id": "Medication.code.coding:pzn.system",
"path": "Medication.code.coding.system",
"min": 1,
"fixedUri": "http://fhir.de/CodeSystem/ifa/pzn"
},
{
"id": "Medication.code.coding:pzn.code",
"path": "Medication.code.coding.code",
"min": 1
},
{
"id": "Medication.code.coding:atc",
"path": "Medication.code.coding",
"sliceName": "atc",
"short": "ATC classification code",
"definition": "The ATC (Anatomical Therapeutic Chemical) classification code. Maintained by WHO/BfArM. May not always be available.",
"max": "1",
"binding": {
"strength": "required",
"valueSet": "http://fhir.de/ValueSet/bfarm/atc"
}
},
{
"id": "Medication.code.coding:atc.system",
"path": "Medication.code.coding.system",
"min": 1,
"fixedUri": "http://fhir.de/CodeSystem/bfarm/atc"
},
{
"id": "Medication.code.coding:atc.code",
"path": "Medication.code.coding.code",
"min": 1
},
{
"id": "Medication.code.text",
"path": "Medication.code.text",
"short": "Trade name (Handelsname)",
"definition": "The trade name of the medication. Always provided as a human-readable fallback.",
"min": 1
},
{
"id": "Medication.status",
"path": "Medication.status",
"comment": "Not used. The intake status (aktiv/beendet/abgesetzt) is carried by MedicationStatement.status, not by the Medication resource.",
"max": "0"
},
{
"id": "Medication.manufacturer",
"path": "Medication.manufacturer",
"max": "0"
},
{
"id": "Medication.form",
"path": "Medication.form",
"short": "Dosage form (Darreichungsform)",
"definition": "The dosage form of the medication (e.g. film-coated tablet, capsule). From the PVS field dosageForm. Often only free text is available (form.text); a coded value (e.g. EDQM Standard Terms or KBV Darreichungsform) requires an additional lookup that the PVS does not provide."
},
{
"id": "Medication.amount",
"path": "Medication.amount",
"short": "Package content (Packungsinhalt)",
"definition": "The amount of medication in the package as a ratio (content per package). numerator carries the numeric package content (value + unit) when available and, via the packagingSize extension, the free-text package size. denominator is typically 1 (per package). The standardised package size category (N1/N2/N3) is not carried here but in the normgroesse extension on the Medication root. From the PVS field packSize often only the Normgroesse category is available, in which case amount stays empty and only the normgroesse extension is set."
},
{
"id": "Medication.amount.numerator",
"path": "Medication.amount.numerator",
"short": "Package content (numerator)",
"definition": "The numeric package content (e.g. 20 tablets, 100 ml). value + unit are only set when the PVS delivers a numeric content. The free-text package size is carried in the packagingSize extension."
},
{
"id": "Medication.amount.numerator.extension",
"path": "Medication.amount.numerator.extension",
"slicing": {
{
"type": "value",
"path": "url"
}
],
"rules": "open"
}
},
{
"id": "Medication.amount.numerator.extension:packagingSize",
"path": "Medication.amount.numerator.extension",
"sliceName": "packagingSize",
"short": "Package size as free text (Packungsgroesse)",
"definition": "The package size as human-readable free text (e.g. '20 Filmtabletten'). Carries the packSize information when it is not a plain numeric content.",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationPackagingSize"
]
}
]
},
{
"id": "Medication.amount.denominator",
"path": "Medication.amount.denominator",
"short": "Reference amount (denominator)",
"definition": "The reference amount the numerator relates to. Typically 1 (per package)."
},
{
"id": "Medication.ingredient",
"path": "Medication.ingredient",
"short": "Active ingredient(s) (Wirkstoff)"
},
{
"id": "Medication.ingredient.item[x]",
"path": "Medication.ingredient.item[x]",
"short": "Active ingredient substance",
"definition": "The active ingredient (Wirkstoff). Often only free text is available (itemCodeableConcept.text); a coded substance (e.g. ASK or UNII) requires a substance lookup that is not always provided. Multiple ingredients may be delivered as a single concatenated string and then need to be split into repeating ingredient entries.",
"type": [
{
"code": "CodeableConcept"
}
]
},
{
"id": "Medication.ingredient.isActive",
"path": "Medication.ingredient.isActive",
"short": "True for active ingredients",
"definition": "Indicates that the listed substance is an active ingredient (Wirkstoff)."
},
{
"id": "Medication.ingredient.strength",
"path": "Medication.ingredient.strength",
"short": "Strength (Wirkstaerke)",
"definition": "The amount of active ingredient as a ratio (e.g. 400 mg per 1 tablet). Where the strength cannot be expressed as a structured ratio, it is provided as free text via the strengthText extension instead."
},
{
"id": "Medication.ingredient.strength.extension",
"path": "Medication.ingredient.strength.extension",
"slicing": {
{
"type": "value",
"path": "url"
}
],
"rules": "open"
}
},
{
"id": "Medication.ingredient.strength.extension:strengthText",
"path": "Medication.ingredient.strength.extension",
"sliceName": "strengthText",
"short": "Strength as free text (Wirkstaerke)",
"definition": "The strength as free text, used when a structured ratio (numerator value + unit) is not available.",
"min": 0,
"max": "1",
"type": [
{
"code": "Extension",
"profile": [
"https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MedicationStrengthText"
]
}
]
},
{
"id": "Medication.batch",
"path": "Medication.batch",
"max": "0"
}
]
}
}

SearchMedicationStatements

Invocations

URL: [base]/MedicationStatement/$searchMedicationStatements

This operation does NOT change content

Parameters (In)

NameCardinalityTypeBindingDocumentation
subject1..1Reference(Mxx_HealthHub_Patient)

Patient whose medication statements are searched, as a reference in the form Patient/{id} (the PVS-internal patient identifier).

startDate0..1date

Lower bound (inclusive) on MedicationStatement.effectivePeriod.start (ISO 8601, YYYY-MM-DD).

endDate0..1date

Upper bound (inclusive) on MedicationStatement.effectivePeriod.start (ISO 8601, YYYY-MM-DD).

status0..*codeMxx_HealthHub_VS_MedicationStatementStatus (required)

Filter by medication status. Repeating parameter; multiple values use OR logic. Valid values: active, completed, stopped. As the operation is invoked with a FHIR Parameters resource, each value MUST be supplied as its own Parameters.parameter entry named 'status' (e.g. one entry with valueCode = completed and one entry with valueCode = stopped); a single comma-separated value would not match the required ValueSet. When omitted, only current medications ('active') are returned; historical medications are requested explicitly by supplying status entries for 'completed' and 'stopped'.

pzn0..1string

Filter by PZN (Pharmazentralnummer). Exact match, 8-digit code with leading zeros.

atc0..1string

Filter by ATC code. Prefix match allows searching by therapeutic class (e.g., 'B01' for all antithrombotics). Case-insensitive.

_count0..1integer

Results per page. Default: 100, maximum: 500.

_offset0..1integer

Starting result index (0-based) for pagination.

Return Values (Out)

NameCardinalityTypeDocumentation
return1..1Bundle

A FHIR Bundle of type searchset containing matching Mxx_HealthHub_MedicationStatement resources. Sorted by effectivePeriod.start (prescription date) descending, most recent first; entries without a start date are ordered last.