{ "description": "Hält die Medikationsinformationen eines Eintrags in der elektronischen Medikationsliste (eML) vor und stellt das zentrale Element dar. Es wird zu Verschreibungs- und Dispensierinformationen als auch Nachträgen in der eML genutzt.", "_filename": "StructureDefinition-epa-medication-statement.json", "package_name": "de.gematik.epa.medication", "date": "2025-09-12", "derivation": "constraint", "publisher": "gematik GmbH", "fhirVersion": "4.0.1", "jurisdiction": [ { "coding": [ { "code": "DE", "system": "urn:iso:std:iso:3166" } ] } ], "name": "EPAMedicationStatement", "mapping": [ { "uri": "http://hl7.org/fhir/workflow", "name": "Workflow Pattern", "identity": "workflow" }, { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" }, { "uri": "http://hl7.org/fhir/fivews", "name": "FiveWs Pattern Mapping", "identity": "w5" }, { "uri": "http://hl7.org/v2", "name": "HL7 v2 Mapping", "identity": "v2" } ], "abstract": false, "copyright": "gematik GmbH", "type": "MedicationStatement", "experimental": "false", "resourceType": "StructureDefinition", "title": "EPA MedicationStatement", "package_version": "1.2.0", "snapshot": { "element": [ { "constraint": [ { "key": "dom-2", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "xpath": "not(parent::f:contained and f:contained)", "source": "http://hl7.org/fhir/StructureDefinition/MedicationStatement", "severity": "error", "expression": "contained.contained.empty()" }, { "key": "dom-3", "human": "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", "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", "source": "http://hl7.org/fhir/StructureDefinition/MedicationStatement", "severity": "error", "expression": "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()" }, { "key": "dom-4", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "http://hl7.org/fhir/StructureDefinition/MedicationStatement", "severity": "error", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" }, { "key": "dom-5", "human": "If a resource is contained in another resource, it SHALL NOT have a security label", "xpath": "not(exists(f:contained/*/f:meta/f:security))", "source": "http://hl7.org/fhir/StructureDefinition/MedicationStatement", "severity": "error", "expression": "contained.meta.security.empty()" }, { "key": "dom-6", "human": "A resource should have narrative for robust management", "xpath": "exists(f:text/h:div)", "source": "http://hl7.org/fhir/StructureDefinition/MedicationStatement", "severity": "warning", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", "valueBoolean": true }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." } ], "expression": "text.`div`.exists()" }, { "key": "epa-med-statement-status", "human": "Ein MedicationStatement im Kontext 'Nachtrag' darf nicht den Status 'intended' haben", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "extension('https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension').exists(value != 'MANUAL') or status != 'intended'" } ], "path": "MedicationStatement", "min": 0, "definition": "A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medication statement and a medication administration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medication statement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the medication statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.", "isModifier": false, "short": "Record of medication being taken by a patient", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "Event", "identity": "workflow" }, { "map": "SubstanceAdministration", "identity": "rim" } ], "max": "*", "id": "MedicationStatement", "comment": "When interpreting a medicationStatement, the value of the status and NotTaken needed to be considered:\rMedicationStatement.status + MedicationStatement.wasNotTaken\rStatus=Active + NotTaken=T = Not currently taking\rStatus=Completed + NotTaken=T = Not taken in the past\rStatus=Intended + NotTaken=T = No intention of taking\rStatus=Active + NotTaken=F = Taking, but not as prescribed\rStatus=Active + NotTaken=F = Taking\rStatus=Intended +NotTaken= F = Will be taking (not started)\rStatus=Completed + NotTaken=F = Taken in past\rStatus=In Error + NotTaken=N/A = In Error.", "base": { "max": "*", "min": 0, "path": "MedicationStatement" }, "isSummary": false }, { "path": "MedicationStatement.id", "min": 0, "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "isModifier": false, "short": "Logical id of this artifact", "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "id" } ] } ], "max": "1", "id": "MedicationStatement.id", "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", "base": { "max": "1", "min": 0, "path": "Resource.id" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta", "min": 0, "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.", "isModifier": false, "short": "Metadata about the resource", "type": [ { "code": "Meta" } ], "mustSupport": true, "max": "1", "id": "MedicationStatement.meta", "base": { "max": "1", "min": 0, "path": "Resource.meta" }, "isSummary": true }, { "path": "MedicationStatement.meta.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.meta.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.meta.extension", "min": 0, "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.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "MedicationStatement.meta.extension", "comment": "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.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta.versionId", "min": 0, "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.", "isModifier": false, "short": "Version specific identifier", "type": [ { "code": "id" } ], "mustSupport": true, "max": "1", "id": "MedicationStatement.meta.versionId", "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.", "base": { "max": "1", "min": 0, "path": "Meta.versionId" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta.lastUpdated", "min": 0, "definition": "When the resource last changed - e.g. when the version changed.", "isModifier": false, "short": "When the resource version last changed", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "instant" } ], "mustSupport": true, "max": "1", "id": "MedicationStatement.meta.lastUpdated", "condition": [ "ele-1" ], "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction.", "base": { "max": "1", "min": 0, "path": "Meta.lastUpdated" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta.source", "min": 0, "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.", "isModifier": false, "short": "Identifies where the resource comes from", "type": [ { "code": "uri" } ], "max": "1", "id": "MedicationStatement.meta.source", "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.", "base": { "max": "1", "min": 0, "path": "Meta.source" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta.profile", "min": 0, "definition": "A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url).", "isModifier": false, "short": "Profiles this resource claims to conform to", "type": [ { "code": "canonical", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/StructureDefinition|4.0.1" ] } ], "max": "*", "id": "MedicationStatement.meta.profile", "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.", "base": { "max": "*", "min": 0, "path": "Meta.profile" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta.security", "min": 0, "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.", "isModifier": false, "short": "Security Labels applied to this resource", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "binding": { "strength": "extensible", "valueSet": "http://hl7.org/fhir/ValueSet/security-labels|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "SecurityLabels" } ], "description": "Security Labels from the Healthcare Privacy and Security Classification System." }, "max": "*", "id": "MedicationStatement.meta.security", "condition": [ "ele-1" ], "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.", "base": { "max": "*", "min": 0, "path": "Meta.security" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta.tag", "min": 0, "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.", "isModifier": false, "short": "Tags applied to this resource", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6", "identity": "v2" }, { "map": "CV", "identity": "rim" }, { "map": "fhir:Coding rdfs:subClassOf dt:CDCoding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/common-tags|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "Tags" } ], "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\"." }, "max": "*", "id": "MedicationStatement.meta.tag", "condition": [ "ele-1" ], "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.", "base": { "max": "*", "min": 0, "path": "Meta.tag" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.implicitRules", "min": 0, "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.", "isModifier": true, "short": "A set of rules under which this content was created", "type": [ { "code": "uri" } ], "max": "1", "id": "MedicationStatement.implicitRules", "comment": "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.", "base": { "max": "1", "min": 0, "path": "Resource.implicitRules" }, "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.language", "min": 0, "definition": "The base language in which the resource is written.", "isModifier": false, "short": "Language of the resource content", "type": [ { "code": "code" } ], "binding": { "strength": "preferred", "valueSet": "http://hl7.org/fhir/ValueSet/languages|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "Language" } ], "description": "A human language." }, "max": "1", "id": "MedicationStatement.language", "comment": "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).", "base": { "max": "1", "min": 0, "path": "Resource.language" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.text", "min": 0, "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.", "isModifier": false, "short": "Text summary of the resource, for human interpretation", "mapping": [ { "map": "Act.text?", "identity": "rim" } ], "type": [ { "code": "Narrative" } ], "alias": [ "narrative", "html", "xhtml", "display" ], "max": "1", "id": "MedicationStatement.text", "comment": "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.", "base": { "max": "1", "min": 0, "path": "DomainResource.text" }, "isSummary": false }, { "path": "MedicationStatement.contained", "min": 0, "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.", "isModifier": false, "short": "Contained, inline Resources", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Resource" } ], "alias": [ "inline resources", "anonymous resources", "contained resources" ], "max": "*", "id": "MedicationStatement.contained", "comment": "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.", "base": { "max": "*", "min": 0, "path": "DomainResource.contained" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.extension", "min": 1, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "MedicationStatement.extension", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.extension", "min": 1, "definition": "Extension for indicating the context.", "isModifier": false, "short": "Extension", "type": [ { "code": "Extension", "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension" ] } ], "mustSupport": true, "sliceName": "context", "max": "1", "id": "MedicationStatement.extension:context", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "isSummary": false }, { "path": "MedicationStatement.extension.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.extension:context.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.extension.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "0", "id": "MedicationStatement.extension:context.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "MedicationStatement.extension.url", "min": 1, "definition": "Source of the definition for the extension code - a logical name or a URL.", "short": "identifies the meaning of the extension", "fixedUri": "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "uri" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.extension:context.url", "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", "base": { "max": "1", "min": 1, "path": "Extension.url" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.extension.value[x]", "min": 1, "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", "isModifier": false, "short": "Context of the resource", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "valueSet": "https://gematik.de/fhir/epa-medication/ValueSet/epa-medicationstatement-context-code" }, "max": "1", "id": "MedicationStatement.extension:context.value[x]", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Extension.value[x]" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.extension", "min": 0, "definition": "This extension is used to track medication prescription transactions between the E-Rezept-Fachdienst and the ePA. The RxPrescriptionProcessIdentifier is generated by the ePA Medication Service and consists of the PrescriptionId and the authoredOn date of the operation parameters request. It ensures consistent referencing and management of medication-related resources across different systems.", "isModifier": false, "short": "Extension", "type": [ { "code": "Extension", "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension" ] } ], "sliceName": "rxPrescriptionProcessIdentifier", "max": "1", "id": "MedicationStatement.extension:rxPrescriptionProcessIdentifier", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.extension", "min": 0, "definition": "Bildet ein Ereignis ab, das wärend der Verarbeitung auftritt.", "isModifier": false, "short": "Ein Ereignis, welches während eines Prozessschritts auftritt.", "type": [ { "code": "Extension", "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension" ] } ], "mustSupport": true, "sliceName": "processingEvent", "max": "*", "id": "MedicationStatement.extension:processingEvent", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.extension", "min": 0, "definition": "Ein menschenlesbarer, vollständiger Text der Dosierungsanweisungen. Der Text wird aus den strukturierten Dosage-Elementen generiert und dient der patientensicheren Darstellung der Dosierung. Er soll die maschinenlesbaren Angaben konsistent wiedergeben und in einer für Patient:innen verständlichen Form bereitstellen.", "isModifier": false, "short": "Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen).", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction" ] } ], "mustSupport": true, "sliceName": "renderedDosageInstruction", "max": "1", "id": "MedicationStatement.extension:renderedDosageInstruction", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.extension", "min": 0, "definition": "Diese Extension enthält zusätzliche Metadaten zu den automatisch generierten Dosierungsanweisungen, wie z.B. Informationen zur Generierung oder zum Ursprung der Daten.", "isModifier": false, "short": "Metadaten zu den generierten Dosierungsanweisungen", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta" ] } ], "mustSupport": true, "sliceName": "generatedDosageInstructionsMeta", "max": "1", "id": "MedicationStatement.extension:generatedDosageInstructionsMeta", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.modifierExtension", "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", "min": 0, "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored", "mapping": [ { "map": "N/A", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "MedicationStatement.modifierExtension", "comment": "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.", "base": { "max": "*", "min": 0, "path": "DomainResource.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.identifier", "min": 0, "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.", "isModifier": false, "short": "External identifier", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)", "identity": "v2" }, { "map": "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]", "identity": "rim" }, { "map": "Identifier", "identity": "servd" }, { "map": "Event.identifier", "identity": "workflow" }, { "map": "FiveWs.identifier", "identity": "w5" }, { "map": ".id", "identity": "rim" } ], "type": [ { "code": "Identifier" } ], "max": "*", "id": "MedicationStatement.identifier", "condition": [ "ele-1" ], "comment": "This is a business identifier, not a resource identifier.", "base": { "max": "*", "min": 0, "path": "MedicationStatement.identifier" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.basedOn", "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.", "min": 0, "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event.", "isModifier": false, "short": "Fulfils plan, proposal or order", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "Event.basedOn", "identity": "workflow" }, { "map": ".outboundRelationship[typeCode=FLFS].target[classCode=SBADM or PROC or PCPR or OBS, moodCode=RQO orPLAN or PRP]", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1", "http://hl7.org/fhir/StructureDefinition/CarePlan|4.0.1", "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1" ] } ], "max": "*", "id": "MedicationStatement.basedOn", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "*", "min": 0, "path": "MedicationStatement.basedOn" }, "isSummary": true }, { "path": "MedicationStatement.basedOn.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.basedOn.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.basedOn.extension", "min": 0, "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.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "MedicationStatement.basedOn.extension", "comment": "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.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.basedOn.extension", "min": 0, "definition": "Definiert ob etwas einen Bezug zum eMP hat", "isModifier": false, "short": "Extension", "type": [ { "code": "Extension", "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension" ] } ], "sliceName": "isEMP", "max": "1", "id": "MedicationStatement.basedOn.extension:isEMP", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.basedOn.reference", "min": 0, "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.", "isModifier": false, "short": "Literal reference, Relative, internal or absolute URL", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "MedicationStatement.basedOn.reference", "condition": [ "ref-1" ], "comment": "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.", "base": { "max": "1", "min": 0, "path": "Reference.reference" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.basedOn.type", "min": 0, "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.\n\nThe 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).", "isModifier": false, "short": "Type the reference refers to (e.g. \"Patient\")", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "uri" } ], "binding": { "strength": "extensible", "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "FHIRResourceTypeExt" } ], "description": "Aa resource (or, for logical models, the URI of the logical model)." }, "max": "1", "id": "MedicationStatement.basedOn.type", "comment": "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.", "base": { "max": "1", "min": 0, "path": "Reference.type" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.basedOn.identifier", "min": 0, "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.", "isModifier": false, "short": "Logical reference, when literal reference is not known", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)", "identity": "v2" }, { "map": "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]", "identity": "rim" }, { "map": "Identifier", "identity": "servd" }, { "map": ".identifier", "identity": "rim" } ], "type": [ { "code": "Identifier" } ], "max": "1", "id": "MedicationStatement.basedOn.identifier", "condition": [ "ele-1" ], "comment": "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. \n\nWhen 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\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference 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).", "base": { "max": "1", "min": 0, "path": "Reference.identifier" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.basedOn.display", "min": 0, "definition": "Plain text narrative that identifies the resource in addition to the resource reference.", "isModifier": false, "short": "Text alternative for the resource", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "MedicationStatement.basedOn.display", "comment": "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.", "base": { "max": "1", "min": 0, "path": "Reference.display" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.partOf", "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.", "min": 0, "definition": "A larger event of which this particular event is a component or step.", "isModifier": false, "short": "Part of referenced event", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "Event.partOf", "identity": "workflow" }, { "map": ".outboundRelationship[typeCode=COMP]/target[classCode=SPLY or SBADM or PROC or OBS,moodCode=EVN]", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration|4.0.1", "http://hl7.org/fhir/StructureDefinition/MedicationDispense|4.0.1", "http://hl7.org/fhir/StructureDefinition/MedicationStatement|4.0.1", "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1", "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1" ] } ], "max": "*", "id": "MedicationStatement.partOf", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "*", "min": 0, "path": "MedicationStatement.partOf" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.status", "min": 1, "definition": "A code representing the patient or other source's judgment about the state of the medication used that this statement is about. Generally, this will be active or completed.", "isModifier": true, "short": "unknown | entered-in-error | intended", "mapping": [ { "map": "Event.status", "identity": "workflow" }, { "map": "FiveWs.status", "identity": "w5" }, { "map": ".statusCode", "identity": "rim" } ], "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "valueSet": "https://gematik.de/fhir/epa-medication/ValueSet/epa-medication-statement-status-vs" }, "max": "1", "id": "MedicationStatement.status", "comment": "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).\r\rThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", "base": { "max": "1", "min": 1, "path": "MedicationStatement.status" }, "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.statusReason", "min": 0, "definition": "Captures the reason for the current state of the MedicationStatement.", "isModifier": false, "short": "Reason for current status", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE", "identity": "v2" }, { "map": "CD", "identity": "rim" }, { "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD", "identity": "orim" }, { "map": "Event.statusReason", "identity": "workflow" }, { "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN].reasonCOde", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-status-codes|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationStatementStatusReason" } ], "description": "A coded concept indicating the reason for the status of the statement." }, "max": "*", "id": "MedicationStatement.statusReason", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "*", "min": 0, "path": "MedicationStatement.statusReason" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category", "min": 0, "definition": "Indicates where the medication is expected to be consumed or administered.", "isModifier": false, "short": "Type of medication usage", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE", "identity": "v2" }, { "map": "CD", "identity": "rim" }, { "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD", "identity": "orim" }, { "map": "FiveWs.class", "identity": "w5" }, { "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "preferred", "valueSet": "http://hl7.org/fhir/ValueSet/medication-statement-category|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationStatementCategory" } ], "description": "A coded concept identifying where the medication included in the MedicationStatement is expected to be consumed or administered." }, "max": "1", "id": "MedicationStatement.category", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "1", "min": 0, "path": "MedicationStatement.category" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.medication[x]", "min": 1, "definition": "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.", "isModifier": false, "short": "Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "Event.code", "identity": "workflow" }, { "map": "FiveWs.what[x]", "identity": "w5" }, { "map": ".participation[typeCode=CSM].role[classCode=ADMM or MANU]", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] } ], "mustSupport": true, "max": "1", "id": "MedicationStatement.medication[x]", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "1", "min": 1, "path": "MedicationStatement.medication[x]" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.subject", "min": 1, "definition": "The person, animal or group who is/was taking the medication.", "isModifier": false, "short": "Who is/was taking the medication", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "Event.subject", "identity": "workflow" }, { "map": "FiveWs.subject[x]", "identity": "w5" }, { "map": "PID-3-Patient ID List", "identity": "v2" }, { "map": ".participation[typeCode=SBJ].role[classCode=PAT]", "identity": "rim" }, { "map": "FiveWs.subject", "identity": "w5" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient" ] } ], "mustSupport": true, "max": "1", "id": "MedicationStatement.subject", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "1", "min": 1, "path": "MedicationStatement.subject" }, "isSummary": true }, { "path": "MedicationStatement.subject.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.subject.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.subject.extension", "min": 0, "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.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "MedicationStatement.subject.extension", "comment": "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.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.subject.reference", "min": 0, "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.", "isModifier": false, "short": "Literal reference, Relative, internal or absolute URL", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "MedicationStatement.subject.reference", "condition": [ "ref-1" ], "comment": "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.", "base": { "max": "1", "min": 0, "path": "Reference.reference" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.subject.type", "min": 0, "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.\n\nThe 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).", "isModifier": false, "short": "Type the reference refers to (e.g. \"Patient\")", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "uri" } ], "binding": { "strength": "extensible", "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "FHIRResourceTypeExt" } ], "description": "Aa resource (or, for logical models, the URI of the logical model)." }, "max": "1", "id": "MedicationStatement.subject.type", "comment": "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.", "base": { "max": "1", "min": 0, "path": "Reference.type" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.subject.identifier", "min": 1, "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.", "isModifier": false, "short": "Logical reference, when literal reference is not known", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)", "identity": "v2" }, { "map": "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]", "identity": "rim" }, { "map": "Identifier", "identity": "servd" }, { "map": ".identifier", "identity": "rim" } ], "type": [ { "code": "Identifier", "profile": [ "http://fhir.de/StructureDefinition/identifier-kvid-10" ] } ], "mustSupport": true, "max": "1", "id": "MedicationStatement.subject.identifier", "condition": [ "ele-1" ], "comment": "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. \n\nWhen 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\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference 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).", "base": { "max": "1", "min": 0, "path": "Reference.identifier" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.subject.display", "min": 0, "definition": "Plain text narrative that identifies the resource in addition to the resource reference.", "isModifier": false, "short": "Text alternative for the resource", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "MedicationStatement.subject.display", "comment": "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.", "base": { "max": "1", "min": 0, "path": "Reference.display" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.context", "min": 0, "definition": "The encounter or episode of care that establishes the context for this MedicationStatement.", "isModifier": false, "short": "Encounter / Episode associated with MedicationStatement", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "Event.context", "identity": "workflow" }, { "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1", "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare|4.0.1" ] } ], "max": "1", "id": "MedicationStatement.context", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "1", "min": 0, "path": "MedicationStatement.context" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.effective[x]", "min": 0, "definition": "Das Element effective[x] gibt den Zeitraum an, in dem die Angaben zur Medikation gültig sind. Je nach Situation kann hierfür ein einzelner Zeitpunkt (effectiveDateTime) oder ein Zeitraum (effectivePeriod mit Start und ggf. Enddatum) angegeben werden", "isModifier": false, "short": "effective[x] gibt den Zeitpunkt oder Zeitraum der Gültigkeit der Medikation an", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "Event.occurrence[x]", "identity": "workflow" }, { "map": "FiveWs.done[x]", "identity": "w5" }, { "map": ".effectiveTime", "identity": "rim" } ], "slicing": { "rules": "closed", "ordered": false, "discriminator": [ { "path": "$this", "type": "type" } ] }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "mustSupport": true, "max": "1", "id": "MedicationStatement.effective[x]", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "1", "min": 0, "path": "MedicationStatement.effective[x]" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "epa-datetime", "human": "dateTime muss mindestens aus Tag, Monat und Jahr bestehen", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')" } ], "path": "MedicationStatement.effective[x]", "min": 0, "definition": "The interval of time during which it is being asserted that the patient is/was/will be taking the medication (or was not taking, when the MedicationStatement.taken element is No).", "isModifier": false, "short": "The date/time or interval when the medication is/was/will be taken", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "Event.occurrence[x]", "identity": "workflow" }, { "map": "FiveWs.done[x]", "identity": "w5" }, { "map": ".effectiveTime", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "mustSupport": true, "sliceName": "effectiveDateTime", "max": "1", "id": "MedicationStatement.effective[x]:effectiveDateTime", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "1", "min": 0, "path": "MedicationStatement.effective[x]" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.effective[x]", "min": 0, "definition": "The interval of time during which it is being asserted that the patient is/was/will be taking the medication (or was not taking, when the MedicationStatement.taken element is No).", "isModifier": false, "short": "The date/time or interval when the medication is/was/will be taken", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "Event.occurrence[x]", "identity": "workflow" }, { "map": "FiveWs.done[x]", "identity": "w5" }, { "map": ".effectiveTime", "identity": "rim" } ], "type": [ { "code": "Period" } ], "mustSupport": true, "sliceName": "effectivePeriod", "max": "1", "id": "MedicationStatement.effective[x]:effectivePeriod", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "1", "min": 0, "path": "MedicationStatement.effective[x]" }, "isSummary": true }, { "path": "MedicationStatement.effective[x].id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.effective[x]:effectivePeriod.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.effective[x].extension", "min": 0, "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.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "MedicationStatement.effective[x]:effectivePeriod.extension", "comment": "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.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "epa-datetime", "human": "dateTime muss mindestens aus Tag, Monat und Jahr bestehen", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')" } ], "path": "MedicationStatement.effective[x].start", "min": 0, "definition": "The start of the period. The boundary is inclusive.", "isModifier": false, "short": "Starting time with inclusive boundary", "mapping": [ { "map": "DR.1", "identity": "v2" }, { "map": "./low", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "mustSupport": true, "max": "1", "id": "MedicationStatement.effective[x]:effectivePeriod.start", "condition": [ "per-1" ], "comment": "If the low element is missing, the meaning is that the low boundary is not known.", "base": { "max": "1", "min": 0, "path": "Period.start" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "epa-datetime", "human": "dateTime muss mindestens aus Tag, Monat und Jahr bestehen", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')" } ], "path": "MedicationStatement.effective[x].end", "min": 0, "definition": "The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.", "isModifier": false, "short": "End time with inclusive boundary, if not ongoing", "mapping": [ { "map": "DR.2", "identity": "v2" }, { "map": "./high", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "mustSupport": true, "meaningWhenMissing": "If the end of the period is missing, it means that the period is ongoing", "max": "1", "id": "MedicationStatement.effective[x]:effectivePeriod.end", "condition": [ "per-1" ], "comment": "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03.", "base": { "max": "1", "min": 0, "path": "Period.end" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "epa-datetime", "human": "dateTime muss mindestens aus Tag, Monat und Jahr bestehen", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')" } ], "path": "MedicationStatement.dateAsserted", "min": 0, "definition": "The date when the medication statement was asserted by the information source.", "isModifier": false, "short": "When the statement was asserted?", "mapping": [ { "map": "FiveWs.recorded", "identity": "w5" }, { "map": ".participation[typeCode=AUT].time", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "mustSupport": true, "max": "1", "id": "MedicationStatement.dateAsserted", "base": { "max": "1", "min": 0, "path": "MedicationStatement.dateAsserted" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.informationSource", "min": 0, "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.", "isModifier": false, "short": "Person or organization that provided the information about the taking of this medication", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "FiveWs.source", "identity": "w5" }, { "map": ".participation[typeCode=INF].role[classCode=PAT, or codes for Practioner or Related Person (if PAT is the informer, then syntax for self-reported =true)", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1", "http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1", "http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1", "http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1", "http://hl7.org/fhir/StructureDefinition/Organization|4.0.1" ] } ], "max": "1", "id": "MedicationStatement.informationSource", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "1", "min": 0, "path": "MedicationStatement.informationSource" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.derivedFrom", "min": 0, "definition": "Allows linking the MedicationStatement to the underlying MedicationRequest, or to other information that supports or is used to derive the MedicationStatement.", "isModifier": false, "short": "Information des Verschreibungs- und Dispensierprozesses", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": ".outboundRelationship[typeCode=SPRT]/target[classCode=ACT,moodCode=EVN]", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request", "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] } ], "mustSupport": true, "max": "*", "id": "MedicationStatement.derivedFrom", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "*", "min": 0, "path": "MedicationStatement.derivedFrom" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.reasonCode", "min": 0, "definition": "A reason for why the medication is being/was taken.", "isModifier": false, "short": "Reason for why the medication is being/was taken", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "CE/CNE/CWE", "identity": "v2" }, { "map": "CD", "identity": "rim" }, { "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD", "identity": "orim" }, { "map": "Event.reasonCode", "identity": "workflow" }, { "map": "FiveWs.why[x]", "identity": "w5" }, { "map": ".reasonCode", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/condition-code|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationReason" } ], "description": "A coded concept identifying why the medication is being taken." }, "max": "*", "id": "MedicationStatement.reasonCode", "condition": [ "ele-1" ], "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonForUseReference.", "base": { "max": "*", "min": 0, "path": "MedicationStatement.reasonCode" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ref-1", "human": "SHALL have a contained resource if a local reference is provided", "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])", "source": "http://hl7.org/fhir/StructureDefinition/Reference", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.reasonReference", "min": 0, "definition": "Condition or observation that supports why the medication is being/was taken.", "isModifier": false, "short": "Condition or observation that supports why the medication is being/was taken", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)", "identity": "rim" }, { "map": "Event.reasonReference", "identity": "workflow" }, { "map": "FiveWs.why[x]", "identity": "w5" }, { "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"reason for use\"].value", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Condition|4.0.1", "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1", "http://hl7.org/fhir/StructureDefinition/DiagnosticReport|4.0.1" ] } ], "max": "*", "id": "MedicationStatement.reasonReference", "condition": [ "ele-1" ], "comment": "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.", "base": { "max": "*", "min": 0, "path": "MedicationStatement.reasonReference" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.note", "min": 0, "definition": "Provides extra information about the medication statement that is not conveyed by the other attributes.", "isModifier": false, "short": "Further information about the statement", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "v2" }, { "map": "Act", "identity": "rim" }, { "map": "Event.note", "identity": "workflow" }, { "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"annotation\"].value", "identity": "rim" } ], "type": [ { "code": "Annotation" } ], "max": "*", "id": "MedicationStatement.note", "condition": [ "ele-1" ], "comment": "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).", "base": { "max": "*", "min": 0, "path": "MedicationStatement.note" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.dosage", "min": 0, "definition": "Hier werden strukturierte Informationen zur Dosierung/Gebrauchsanweisung zur Arzneimitteleinnahme gemäß Vorgabe von HL7 Deutschland e.V. angegeben.", "isModifier": false, "short": "Strukturierte Dosierung/Gebrauchsanweisung", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=INT]", "identity": "rim" }, { "map": "refer dosageInstruction mapping", "identity": "rim" } ], "type": [ { "code": "Dosage", "profile": [ "http://ig.fhir.de/igs/medication/StructureDefinition/DosageDgMP" ] } ], "mustSupport": true, "max": "*", "id": "MedicationStatement.dosage", "comment": "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.", "base": { "max": "*", "min": 0, "path": "MedicationStatement.dosage" } } ], "extension": [ { "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version", "valueString": "4.0.1" } ] }, "status": "active", "id": "bad69440-477c-4c1a-b934-719e3a5f4247", "kind": "resource", "url": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "version": "1.2.0", "differential": { "element": [ { "id": "MedicationStatement", "path": "MedicationStatement", "constraint": [ { "key": "epa-med-statement-status", "human": "Ein MedicationStatement im Kontext 'Nachtrag' darf nicht den Status 'intended' haben", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "extension('https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension').exists(value != 'MANUAL') or status != 'intended'" } ] }, { "id": "MedicationStatement.meta", "path": "MedicationStatement.meta", "mustSupport": true }, { "id": "MedicationStatement.meta.versionId", "path": "MedicationStatement.meta.versionId", "mustSupport": true }, { "id": "MedicationStatement.meta.lastUpdated", "path": "MedicationStatement.meta.lastUpdated", "mustSupport": true }, { "id": "MedicationStatement.extension", "min": 1, "path": "MedicationStatement.extension" }, { "id": "MedicationStatement.extension:context", "max": "1", "min": 1, "path": "MedicationStatement.extension", "type": [ { "code": "Extension", "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension" ] } ], "sliceName": "context", "mustSupport": true }, { "id": "MedicationStatement.extension:context.value[x]", "path": "MedicationStatement.extension.value[x]", "binding": { "strength": "required", "valueSet": "https://gematik.de/fhir/epa-medication/ValueSet/epa-medicationstatement-context-code" } }, { "id": "MedicationStatement.extension:rxPrescriptionProcessIdentifier", "max": "1", "min": 0, "path": "MedicationStatement.extension", "type": [ { "code": "Extension", "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension" ] } ], "sliceName": "rxPrescriptionProcessIdentifier" }, { "id": "MedicationStatement.extension:processingEvent", "max": "*", "min": 0, "path": "MedicationStatement.extension", "type": [ { "code": "Extension", "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension" ] } ], "short": "Ein Ereignis, welches während eines Prozessschritts auftritt.", "sliceName": "processingEvent", "mustSupport": true }, { "path": "MedicationStatement.extension", "min": 0, "definition": "Ein menschenlesbarer, vollständiger Text der Dosierungsanweisungen. Der Text wird aus den strukturierten Dosage-Elementen generiert und dient der patientensicheren Darstellung der Dosierung. Er soll die maschinenlesbaren Angaben konsistent wiedergeben und in einer für Patient:innen verständlichen Form bereitstellen.", "short": "Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen).", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction" ] } ], "mustSupport": true, "sliceName": "renderedDosageInstruction", "max": "1", "id": "MedicationStatement.extension:renderedDosageInstruction" }, { "path": "MedicationStatement.extension", "min": 0, "definition": "Diese Extension enthält zusätzliche Metadaten zu den automatisch generierten Dosierungsanweisungen, wie z.B. Informationen zur Generierung oder zum Ursprung der Daten.", "short": "Metadaten zu den generierten Dosierungsanweisungen", "type": [ { "code": "Extension", "profile": [ "http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta" ] } ], "mustSupport": true, "sliceName": "generatedDosageInstructionsMeta", "max": "1", "id": "MedicationStatement.extension:generatedDosageInstructionsMeta" }, { "id": "MedicationStatement.basedOn.extension:isEMP", "max": "1", "min": 0, "path": "MedicationStatement.basedOn.extension", "type": [ { "code": "Extension", "profile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension" ] } ], "sliceName": "isEMP" }, { "id": "MedicationStatement.status", "path": "MedicationStatement.status", "short": "unknown | entered-in-error | intended", "binding": { "strength": "required", "valueSet": "https://gematik.de/fhir/epa-medication/ValueSet/epa-medication-statement-status-vs" }, "mustSupport": true }, { "id": "MedicationStatement.medication[x]", "path": "MedicationStatement.medication[x]", "type": [ { "code": "Reference", "targetProfile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication" ] } ], "short": "Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt", "mustSupport": true }, { "id": "MedicationStatement.subject", "path": "MedicationStatement.subject", "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient" ] } ], "mustSupport": true }, { "id": "MedicationStatement.subject.identifier", "min": 1, "path": "MedicationStatement.subject.identifier", "type": [ { "code": "Identifier", "profile": [ "http://fhir.de/StructureDefinition/identifier-kvid-10" ] } ], "mustSupport": true }, { "id": "MedicationStatement.effective[x]", "path": "MedicationStatement.effective[x]", "short": "effective[x] gibt den Zeitpunkt oder Zeitraum der Gültigkeit der Medikation an", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "$this", "type": "type" } ] }, "definition": "Das Element effective[x] gibt den Zeitraum an, in dem die Angaben zur Medikation gültig sind. Je nach Situation kann hierfür ein einzelner Zeitpunkt (effectiveDateTime) oder ein Zeitraum (effectivePeriod mit Start und ggf. Enddatum) angegeben werden", "mustSupport": true }, { "id": "MedicationStatement.effective[x]:effectiveDateTime", "max": "1", "min": 0, "path": "MedicationStatement.effective[x]", "type": [ { "code": "dateTime" } ], "sliceName": "effectiveDateTime", "constraint": [ { "key": "epa-datetime", "human": "dateTime muss mindestens aus Tag, Monat und Jahr bestehen", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')" } ], "mustSupport": true }, { "id": "MedicationStatement.effective[x]:effectivePeriod", "max": "1", "min": 0, "path": "MedicationStatement.effective[x]", "type": [ { "code": "Period" } ], "sliceName": "effectivePeriod", "mustSupport": true }, { "id": "MedicationStatement.effective[x]:effectivePeriod.start", "path": "MedicationStatement.effective[x].start", "constraint": [ { "key": "epa-datetime", "human": "dateTime muss mindestens aus Tag, Monat und Jahr bestehen", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')" } ], "mustSupport": true }, { "id": "MedicationStatement.effective[x]:effectivePeriod.end", "path": "MedicationStatement.effective[x].end", "constraint": [ { "key": "epa-datetime", "human": "dateTime muss mindestens aus Tag, Monat und Jahr bestehen", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')" } ], "mustSupport": true }, { "id": "MedicationStatement.dateAsserted", "path": "MedicationStatement.dateAsserted", "constraint": [ { "key": "epa-datetime", "human": "dateTime muss mindestens aus Tag, Monat und Jahr bestehen", "source": "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement", "severity": "error", "expression": "toString().matches('^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\\\.[0-9]+)?(Z|(\\\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$')" } ], "mustSupport": true }, { "id": "MedicationStatement.derivedFrom", "path": "MedicationStatement.derivedFrom", "type": [ { "code": "Reference", "targetProfile": [ "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request", "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense" ] } ], "short": "Information des Verschreibungs- und Dispensierprozesses", "mustSupport": true }, { "id": "MedicationStatement.dosage", "path": "MedicationStatement.dosage", "type": [ { "code": "Dosage", "profile": [ "http://ig.fhir.de/igs/medication/StructureDefinition/DosageDgMP" ] } ], "short": "Strukturierte Dosierung/Gebrauchsanweisung", "definition": "Hier werden strukturierte Informationen zur Dosierung/Gebrauchsanweisung zur Arzneimitteleinnahme gemäß Vorgabe von HL7 Deutschland e.V. angegeben.", "mustSupport": true } ] }, "contact": [ { "name": "gematik GmbH", "telecom": [ { "value": "https://www.gematik.de", "system": "url" }, { "value": "patientteam [ at ] gematik.de", "system": "email" } ] } ], "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement" }