{ "description": null, "_filename": "74_PR_AW_Dauermedikation.json", "package_name": "aws.dummy", "date": "2019-05-27", "derivation": "constraint", "publisher": "Kassenärztliche Bundesvereinigung (KBV)", "fhirVersion": "3.0.1", "name": "74_PR_AW_Dauermedikation", "mapping": [ { "uri": "http://hl7.org/fhir/workflow", "name": "Workflow Mapping", "identity": "workflow" }, { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" }, { "uri": "http://hl7.org/fhir/w5", "name": "W5 Mapping", "identity": "w5" }, { "uri": "http://hl7.org/v2", "name": "HL7 v2 Mapping", "identity": "v2" } ], "abstract": false, "copyright": "Copyright © [2018], Kassenärztliche Bundesvereinigung (KBV). All rights reserved.", "type": "MedicationStatement", "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "0.0.2", "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)", "severity": "error", "expression": "contained.contained.empty()" }, { "key": "dom-1", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "xpath": "not(parent::f:contained and f:text)", "severity": "error", "expression": "contained.text.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))", "severity": "error", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" }, { "key": "dom-3", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "severity": "error", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()" }, { "key": "mst-1", "human": "Reason not taken is only permitted if Taken is No", "xpath": "not(exists(f:reasonNotTaken)) or f:taken/@value='n'", "severity": "error", "expression": "reasonNotTaken.exists().not() or (taken = 'n')" } ], "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 \r\rThe 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.", "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" }, { "map": "clinical.medication", "identity": "w5" } ], "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": "Resource" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.id", "min": 1, "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "short": "Logical id of this artifact", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "id" } ], "max": "1", "id": "MedicationStatement.id", "condition": [ "ele-1" ], "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta", "min": 1, "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.", "short": "Metadata about the resource", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Meta" } ], "max": "1", "id": "MedicationStatement.meta", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Resource.meta" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "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.", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.meta.id", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "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. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta.versionId", "min": 1, "definition": "The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted.", "short": "Version specific identifier", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "id" } ], "max": "1", "id": "MedicationStatement.meta.versionId", "condition": [ "ele-1" ], "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta.lastUpdated", "min": 1, "definition": "When the resource last changed - e.g. when the version changed.", "short": "When the resource version last changed", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "instant" } ], "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.", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.meta.profile", "min": 1, "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url]().", "short": "Profiles this resource claims to conform to", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "uri" } ], "max": "1", "id": "MedicationStatement.meta.profile", "condition": [ "ele-1" ], "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", "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.", "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", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "SecurityLabels" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean": true } ], "description": "Security Labels from the Healthcare Privacy and Security Classification System.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/security-labels" } }, "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", "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.", "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", "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\"", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/common-tags" } }, "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", "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.", "isModifier": true, "short": "A set of rules under which this content was created", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "uri" } ], "max": "1", "id": "MedicationStatement.implicitRules", "condition": [ "ele-1" ], "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. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.", "base": { "max": "1", "min": 0, "path": "Resource.implicitRules" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.language", "min": 0, "definition": "The base language in which the resource is written.", "short": "Language of the resource content", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "extensible", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "Language" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding", "valueBoolean": true } ], "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } }, "max": "1", "id": "MedicationStatement.language", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.text", "min": 1, "definition": "A human-readable narrative that contains a summary of the resource, and may 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.", "short": "Text summary of the resource, for human interpretation", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" }, { "map": "Act.text?", "identity": "rim" } ], "type": [ { "code": "Narrative" } ], "alias": [ "narrative", "html", "xhtml", "display" ], "max": "1", "id": "MedicationStatement.text", "condition": [ "ele-1", "dom-1" ], "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 in formation is added later.", "base": { "max": "1", "min": 0, "path": "DomainResource.text" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.text.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.", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.text.id", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.text.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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.text.extension", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.text.status", "fixedCode": "extensions", "min": 1, "definition": "The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.", "short": "extensions", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "NarrativeStatus" } ], "description": "The status of a resource narrative", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/narrative-status" } }, "max": "1", "id": "MedicationStatement.text.status", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 1, "path": "Narrative.status" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "txt-1", "human": "The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, elements (either name or href), images and internally contained style attributes", "xpath": "not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])", "severity": "error", "expression": "htmlchecks()" }, { "key": "txt-2", "human": "The narrative SHALL have some non-whitespace content", "xpath": "descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]", "severity": "error", "expression": "htmlchecks()" } ], "path": "MedicationStatement.text.div", "min": 1, "definition": "The actual narrative content, a stripped down version of XHTML.", "short": "Limited xhtml content", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "xhtml" } ], "max": "1", "id": "MedicationStatement.text.div", "condition": [ "ele-1" ], "comment": "The contents of the html element are an XHTML fragment containing only the basic html formatting elements described in chapters 7-11 and 15 of the HTML 4.0 standard, elements (either name or href), images and internally contained stylesheets. The XHTML content may not contain a head, a body, external stylesheet references, scripts, forms, base/link/xlink, frames, iframes and objects.", "base": { "max": "1", "min": 1, "path": "Narrative.div" } }, { "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.", "short": "Contained, inline Resources", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" }, { "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.", "base": { "max": "*", "min": 0, "path": "DomainResource.contained" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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.extension", "condition": [ "ele-1" ], "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.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.extension", "min": 0, "definition": "Beschreibung der Verordnung", "short": "Beschreibung der Verordnung", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" }, { "map": "Dauermedikation: Beschreibung der Verordnung", "identity": "KBV" } ], "type": [ { "code": "Extension", "profile": "https://fhir.kbv.de/StructureDefinition/74_EX_AW_Dauermedikation_Beschreibung_der_Verordnung" } ], "mustSupport": true, "sliceName": "beschreibung_der_Verordnung", "alias": [ "extensions", "user content" ], "max": "1", "id": "MedicationStatement.extension:beschreibung_der_Verordnung", "condition": [ "ele-1" ], "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.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.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. Usually modifier elements provide negation or qualification. In order 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.", "isModifier": true, "short": "Extensions that cannot be ignored", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.identifier", "min": 0, "definition": "External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated.", "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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": "…identifer", "identity": "workflow" }, { "map": ".id", "identity": "rim" }, { "map": "id", "identity": "w5" } ], "type": [ { "code": "Identifier" } ], "max": "0", "id": "MedicationStatement.identifier", "condition": [ "ele-1" ], "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", "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, '#')])", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.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.", "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": "…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" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest" } ], "max": "0", "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 }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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, '#')])", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.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.", "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": "…part of", "identity": "workflow" }, { "map": ".outboundRelationship[typeCode=COMP]/target[classCode=SPLY or SBADM or PROC or OBS,moodCode=EVN]", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": "https://fhir.kbv.de/StructureDefinition/74_PR_AW_Patient" } ], "max": "0", "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", "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, '#')])", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.context", "min": 0, "definition": "The encounter or episode of care that establishes the context for this MedicationStatement.", "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": "…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" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" } ], "max": "0", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "activeOrCompleted", "human": "Der Status darf nur active oder completed sein", "severity": "error", "expression": "status='active' xor status='completed'" } ], "path": "MedicationStatement.status", "min": 1, "definition": "Der Status dieses Elementes kann mit active oder completed angegeben werden.", "isModifier": true, "short": "Status", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "…status", "identity": "workflow" }, { "map": ".statusCode", "identity": "rim" }, { "map": "status", "identity": "w5" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationStatementStatus" } ], "description": "A coded concept indicating the current status of a MedicationStatement.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/medication-statement-status" } }, "max": "1", "id": "MedicationStatement.status", "condition": [ "ele-1" ], "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).\n\nThis 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" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category", "min": 1, "definition": "Dieses Element ist zur Angabe der Arzneimittelart vorgesehen z.B. Arzneimittel, Impfstoff.", "short": "Arzneimittelart", "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": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value", "identity": "rim" }, { "map": "class", "identity": "w5" }, { "map": "Dauermedikation: Arzneimittelart", "identity": "KBV" } ], "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "required", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationStatementCategory" } ], "description": "Arzneimittelart", "valueSetUri": "https://fhir.kbv.de/ValueSet/74_VS_AW_Arzneimittelart" }, "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category.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.", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.category.id", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.category.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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.category.extension", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category.coding", "requirements": "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min": 1, "definition": "A reference to a code defined by a terminology system.", "short": "Code defined by a terminology system", "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" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "max": "1", "id": "MedicationStatement.category.coding", "condition": [ "ele-1" ], "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category.coding.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.", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.category.coding.id", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.category.coding.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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.category.coding.extension", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category.coding.system", "requirements": "Need to be unambiguous about the source of the definition of the symbol.", "min": 1, "definition": "The identification of the code system that defines the meaning of the symbol in the code.", "short": "Identity of the terminology system", "fixedUri": "https://fhir.kbv.de/CodeSystem/74_CS_AW_Arzneimittelart", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.3", "identity": "v2" }, { "map": "./codeSystem", "identity": "rim" }, { "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem", "identity": "orim" } ], "type": [ { "code": "uri" } ], "max": "1", "id": "MedicationStatement.category.coding.system", "condition": [ "ele-1" ], "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously.", "base": { "max": "1", "min": 0, "path": "Coding.system" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category.coding.version", "min": 0, "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.", "short": "Version of the system - if relevant", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.7", "identity": "v2" }, { "map": "./codeSystemVersion", "identity": "rim" }, { "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion", "identity": "orim" } ], "type": [ { "code": "string" } ], "max": "0", "id": "MedicationStatement.category.coding.version", "condition": [ "ele-1" ], "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.", "base": { "max": "1", "min": 0, "path": "Coding.version" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category.coding.code", "requirements": "Need to refer to a particular code in the system.", "min": 1, "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).", "short": "Symbol in syntax defined by the system", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.1", "identity": "v2" }, { "map": "./code", "identity": "rim" }, { "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code", "identity": "orim" } ], "type": [ { "code": "code" } ], "max": "1", "id": "MedicationStatement.category.coding.code", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Coding.code" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category.coding.display", "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.", "min": 0, "definition": "A representation of the meaning of the code in the system, following the rules of the system.", "short": "Representation defined by the system", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.2 - but note this is not well followed", "identity": "v2" }, { "map": "CV.displayName", "identity": "rim" }, { "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName", "identity": "orim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "0", "id": "MedicationStatement.category.coding.display", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Coding.display" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category.coding.userSelected", "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.", "min": 0, "definition": "Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).", "short": "If this coding was chosen directly by the user", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "Sometimes implied by being first", "identity": "v2" }, { "map": "CD.codingRationale", "identity": "rim" }, { "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]", "identity": "orim" } ], "type": [ { "code": "boolean" } ], "max": "0", "id": "MedicationStatement.category.coding.userSelected", "condition": [ "ele-1" ], "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.", "base": { "max": "1", "min": 0, "path": "Coding.userSelected" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.category.text", "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min": 0, "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "short": "Plain text representation of the concept", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.9. But note many systems use C*E.2 for this", "identity": "v2" }, { "map": "./originalText[mediaType/code=\"text/plain\"]/data", "identity": "rim" }, { "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText", "identity": "orim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "0", "id": "MedicationStatement.category.text", "condition": [ "ele-1" ], "comment": "Very often the text is the same as a displayName of one of the codings.", "base": { "max": "1", "min": 0, "path": "CodeableConcept.text" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.medicationReference", "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.", "short": "What medication 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": "…code", "identity": "workflow" }, { "map": ".participation[typeCode=CSM].role[classCode=ADMM or MANU]", "identity": "rim" }, { "map": "what", "identity": "w5" }, { "map": "Dauermedikation: DT_Arzneimittel", "identity": "KBV" } ], "type": [ { "code": "Reference", "targetProfile": "https://fhir.kbv.de/StructureDefinition/74_PR_AW_Medikament" } ], "mustSupport": true, "sliceName": "medicationReference", "binding": { "strength": "example", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationCode" } ], "description": "A coded concept identifying the substance or product being taken.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/medication-codes" } }, "max": "1", "id": "MedicationStatement.medication[x]:medicationReference", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.medicationReference.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.", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.medication[x]:medicationReference.id", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.medicationReference.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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.medication[x]:medicationReference.extension", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.medicationReference.reference", "min": 1, "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.", "short": "Literal reference, Relative, internal or absolute URL", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "MedicationStatement.medication[x]:medicationReference.reference", "condition": [ "ele-1", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.medicationReference.identifier", "min": 0, "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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": "0", "id": "MedicationStatement.medication[x]:medicationReference.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.", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.medicationReference.display", "min": 0, "definition": "Plain text narrative that identifies the resource in addition to the resource reference.", "short": "Text alternative for the resource", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "0", "id": "MedicationStatement.medication[x]:medicationReference.display", "condition": [ "ele-1" ], "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.effectivePeriod", "min": 0, "definition": "In diesem Element ist der Zeitraum der Dauermedikation anzugeben.", "short": "Zeitraum der Dauermedikation", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "…occurrence[x]", "identity": "workflow" }, { "map": ".effectiveTime", "identity": "rim" }, { "map": "when.done", "identity": "w5" } ], "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.", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.effectivePeriod.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.", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.effective[x]:effectivePeriod.id", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.effectivePeriod.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.effectivePeriod.start", "min": 1, "definition": "The start of the period. The boundary is inclusive.", "short": "Starting time with inclusive boundary", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "DR.1", "identity": "v2" }, { "map": "./low", "identity": "rim" }, { "map": "Dauermedikation: Beginn der Dauermedikation", "identity": "KBV" } ], "type": [ { "code": "dateTime" } ], "max": "1", "id": "MedicationStatement.effective[x]:effectivePeriod.start", "condition": [ "ele-1", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.effectivePeriod.end", "min": 0, "definition": "The end of the period. If the end of the period is missing, it means that the period is ongoing. 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.", "short": "End time with inclusive boundary, if not ongoing", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "DR.2", "identity": "v2" }, { "map": "./high", "identity": "rim" }, { "map": "Dauermedikation: Ende der Dauermedikation", "identity": "KBV" } ], "type": [ { "code": "dateTime" } ], "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": [ "ele-1", "per-1" ], "comment": "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a 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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.dateAsserted", "min": 0, "definition": "The date when the medication statement was asserted by the information source.", "short": "When the statement was asserted?", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": ".participation[typeCode=AUT].time", "identity": "rim" }, { "map": "when.recorded", "identity": "w5" } ], "type": [ { "code": "dateTime" } ], "max": "0", "id": "MedicationStatement.dateAsserted", "condition": [ "ele-1" ], "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", "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, '#')])", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.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.", "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": ".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" }, { "map": "who.source", "identity": "w5" } ], "type": [ { "code": "Reference", "targetProfile": "https://fhir.kbv.de/StructureDefinition/74_PR_AW_Patient" } ], "max": "0", "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", "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, '#')])", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.subject", "min": 1, "definition": "The person, animal or group who is/was taking the medication.", "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": "…subject", "identity": "workflow" }, { "map": "PID-3-Patient ID List", "identity": "v2" }, { "map": ".participation[typeCode=SBJ].role[classCode=PAT]", "identity": "rim" }, { "map": "who", "identity": "w5" } ], "type": [ { "code": "Reference", "targetProfile": "https://fhir.kbv.de/StructureDefinition/74_PR_AW_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 }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "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.", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.subject.id", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "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. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.subject.reference", "min": 1, "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.", "short": "Literal reference, Relative, internal or absolute URL", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "max": "1", "id": "MedicationStatement.subject.reference", "condition": [ "ele-1", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.subject.identifier", "min": 0, "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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": "0", "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.", "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", "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.", "short": "Text alternative for the resource", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "0", "id": "MedicationStatement.subject.display", "condition": [ "ele-1" ], "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", "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, '#')])", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.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.", "short": "Additional supporting information", "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": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "max": "0", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.taken", "fixedCode": "na", "min": 1, "definition": "Dies ist ein technisches Attribut.", "isModifier": true, "short": "y | n | unk | na", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "…notDone", "identity": "workflow" }, { "map": ".actionNegationInd", "identity": "rim" } ], "type": [ { "code": "code" } ], "binding": { "strength": "required", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationStatementTaken" } ], "description": "A coded concept identifying level of certainty if patient has taken or has not taken the medication", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/medication-statement-taken" } }, "max": "1", "id": "MedicationStatement.taken", "condition": [ "ele-1" ], "comment": "This element is labeled as a modifier because it indicates that the medication was not taken.", "base": { "max": "1", "min": 1, "path": "MedicationStatement.taken" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.reasonNotTaken", "min": 0, "definition": "A code indicating why the medication was not taken.", "short": "True if asserting medication was not given", "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": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"reason not taken\"].value", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationStatementNotTakenReason" } ], "description": "A coded concept indicating the reason why the medication was not taken", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/reason-medication-not-taken-codes" } }, "max": "0", "id": "MedicationStatement.reasonNotTaken", "condition": [ "ele-1", "mst-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": "*", "min": 0, "path": "MedicationStatement.reasonNotTaken" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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.", "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": "…reasoneCodeableConcept", "identity": "workflow" }, { "map": ".reasonCode", "identity": "rim" }, { "map": "why", "identity": "w5" } ], "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationReason" } ], "description": "A coded concept identifying why the medication is being taken.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/condition-code" } }, "max": "0", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.reasonCode.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.", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.reasonCode.id", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.reasonCode.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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.reasonCode.extension", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.reasonCode.coding", "requirements": "Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", "min": 0, "definition": "A reference to a code defined by a terminology system.", "short": "Code defined by a terminology system", "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" }, { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "max": "0", "id": "MedicationStatement.reasonCode.coding", "condition": [ "ele-1" ], "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.reasonCode.text", "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min": 0, "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "short": "Plain text representation of the concept", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "C*E.9. But note many systems use C*E.2 for this", "identity": "v2" }, { "map": "./originalText[mediaType/code=\"text/plain\"]/data", "identity": "rim" }, { "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText", "identity": "orim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "MedicationStatement.reasonCode.text", "condition": [ "ele-1" ], "comment": "Very often the text is the same as a displayName of one of the codings.", "base": { "max": "1", "min": 0, "path": "CodeableConcept.text" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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, '#')])", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.reasonReference", "min": 0, "definition": "Condition or observation that supports why the medication is being/was taken.", "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": "…reasonReference", "identity": "workflow" }, { "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"reason for use\"].value", "identity": "rim" }, { "map": "why", "identity": "w5" } ], "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Condition" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" } ], "max": "0", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.note", "min": 0, "definition": "In diesem Element können weitere Angaben zur Verordnung eingetragen werden", "short": "weitere Angaben zur Verordnung", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "v2" }, { "map": "Act", "identity": "rim" }, { "map": "…note", "identity": "workflow" }, { "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"annotation\"].value", "identity": "rim" } ], "type": [ { "code": "Annotation" } ], "mustSupport": true, "max": "1", "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", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.note.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.", "short": "xml:id (or equivalent in JSON)", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "MedicationStatement.note.id", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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')])", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "MedicationStatement.note.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order 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.", "short": "Additional Content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" }, { "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.note.extension", "condition": [ "ele-1" ], "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" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "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, '#')])", "severity": "error", "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" } ], "path": "MedicationStatement.note.author[x]", "min": 0, "definition": "The individual responsible for making the annotation.", "short": "Individual responsible for the annotation", "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": "N/A", "identity": "v2" }, { "map": "Act.participant[typeCode=AUT].role", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" }, { "code": "string" } ], "max": "0", "id": "MedicationStatement.note.author[x]", "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": "Annotation.author[x]" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.note.time", "min": 0, "definition": "Indicates when this particular annotation was made.", "short": "When the annotation was made", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "v2" }, { "map": "Act.effectiveTime", "identity": "rim" } ], "type": [ { "code": "dateTime" } ], "max": "0", "id": "MedicationStatement.note.time", "condition": [ "ele-1" ], "base": { "max": "1", "min": 0, "path": "Annotation.time" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.note.text", "min": 1, "definition": "The text of the annotation.", "short": "The annotation - text content", "mapping": [ { "map": "n/a", "identity": "rim" }, { "map": "N/A", "identity": "v2" }, { "map": "Act.text", "identity": "rim" }, { "map": "Dauermedikation: Weitere Angaben zur Verordnung", "identity": "KBV" } ], "type": [ { "code": "string" } ], "max": "1", "id": "MedicationStatement.note.text", "condition": [ "ele-1" ], "comment": "Note that FHIR strings may not exceed 1MB in size", "base": { "max": "1", "min": 1, "path": "Annotation.text" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "MedicationStatement.dosage", "min": 0, "definition": "Indicates how the medication is/was or should be taken by the patient.", "short": "Details of how medication is/was taken or should be taken", "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" } ], "max": "0", "id": "MedicationStatement.dosage", "condition": [ "ele-1" ], "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" } } ] }, "status": "active", "id": "5d7ab59b-3593-4e73-8582-a9cbef3cbe04", "kind": "resource", "url": "https://fhir.kbv.de/StructureDefinition/74_PR_AW_Dauermedikation", "version": "1.10.001", "differential": { "element": [ { "id": "MedicationStatement.id", "min": 1, "path": "MedicationStatement.id" }, { "id": "MedicationStatement.meta", "min": 1, "path": "MedicationStatement.meta" }, { "id": "MedicationStatement.meta.versionId", "min": 1, "path": "MedicationStatement.meta.versionId" }, { "id": "MedicationStatement.meta.lastUpdated", "min": 1, "path": "MedicationStatement.meta.lastUpdated" }, { "id": "MedicationStatement.meta.profile", "max": "1", "min": 1, "path": "MedicationStatement.meta.profile" }, { "id": "MedicationStatement.text", "min": 1, "path": "MedicationStatement.text" }, { "id": "MedicationStatement.text.status", "path": "MedicationStatement.text.status", "short": "extensions", "fixedCode": "extensions" }, { "id": "MedicationStatement.extension", "path": "MedicationStatement.extension", "slicing": { "rules": "open", "discriminator": [ { "path": "url", "type": "value" } ] } }, { "id": "MedicationStatement.extension:beschreibung_der_Verordnung", "max": "1", "path": "MedicationStatement.extension", "type": [ { "code": "Extension", "profile": "https://fhir.kbv.de/StructureDefinition/74_EX_AW_Dauermedikation_Beschreibung_der_Verordnung" } ], "mapping": [ { "map": "Dauermedikation: Beschreibung der Verordnung", "identity": "KBV" } ], "sliceName": "beschreibung_der_Verordnung", "mustSupport": true }, { "id": "MedicationStatement.identifier", "max": "0", "path": "MedicationStatement.identifier" }, { "id": "MedicationStatement.basedOn", "max": "0", "path": "MedicationStatement.basedOn" }, { "id": "MedicationStatement.partOf", "max": "0", "path": "MedicationStatement.partOf", "type": [ { "code": "Reference", "targetProfile": "https://fhir.kbv.de/StructureDefinition/74_PR_AW_Patient" } ] }, { "id": "MedicationStatement.context", "max": "0", "path": "MedicationStatement.context" }, { "id": "MedicationStatement.status", "path": "MedicationStatement.status", "short": "Status", "constraint": [ { "key": "activeOrCompleted", "human": "Der Status darf nur active oder completed sein", "severity": "error", "expression": "status='active' xor status='completed'" } ], "definition": "Der Status dieses Elementes kann mit active oder completed angegeben werden." }, { "id": "MedicationStatement.category", "min": 1, "path": "MedicationStatement.category", "short": "Arzneimittelart", "binding": { "strength": "required", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "MedicationStatementCategory" } ], "description": "Arzneimittelart", "valueSetUri": "https://fhir.kbv.de/ValueSet/74_VS_AW_Arzneimittelart" }, "mapping": [ { "map": "Dauermedikation: Arzneimittelart", "identity": "KBV" } ], "definition": "Dieses Element ist zur Angabe der Arzneimittelart vorgesehen z.B. Arzneimittel, Impfstoff.", "mustSupport": true }, { "id": "MedicationStatement.category.coding", "max": "1", "min": 1, "path": "MedicationStatement.category.coding" }, { "id": "MedicationStatement.category.coding.system", "min": 1, "path": "MedicationStatement.category.coding.system", "fixedUri": "https://fhir.kbv.de/CodeSystem/74_CS_AW_Arzneimittelart" }, { "id": "MedicationStatement.category.coding.version", "max": "0", "path": "MedicationStatement.category.coding.version" }, { "id": "MedicationStatement.category.coding.code", "min": 1, "path": "MedicationStatement.category.coding.code" }, { "id": "MedicationStatement.category.coding.display", "max": "0", "path": "MedicationStatement.category.coding.display", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ] }, { "id": "MedicationStatement.category.coding.userSelected", "max": "0", "path": "MedicationStatement.category.coding.userSelected" }, { "id": "MedicationStatement.category.text", "max": "0", "path": "MedicationStatement.category.text", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ] }, { "id": "MedicationStatement.medication[x]:medicationReference", "path": "MedicationStatement.medicationReference", "type": [ { "code": "Reference", "targetProfile": "https://fhir.kbv.de/StructureDefinition/74_PR_AW_Medikament" } ], "mapping": [ { "map": "Dauermedikation: DT_Arzneimittel", "identity": "KBV" } ], "sliceName": "medicationReference", "mustSupport": true }, { "id": "MedicationStatement.medication[x]:medicationReference.reference", "min": 1, "path": "MedicationStatement.medicationReference.reference" }, { "id": "MedicationStatement.medication[x]:medicationReference.identifier", "max": "0", "path": "MedicationStatement.medicationReference.identifier" }, { "id": "MedicationStatement.medication[x]:medicationReference.display", "max": "0", "path": "MedicationStatement.medicationReference.display", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ] }, { "id": "MedicationStatement.effective[x]:effectivePeriod", "path": "MedicationStatement.effectivePeriod", "type": [ { "code": "Period" } ], "short": "Zeitraum der Dauermedikation", "sliceName": "effectivePeriod", "definition": "In diesem Element ist der Zeitraum der Dauermedikation anzugeben.", "mustSupport": true }, { "id": "MedicationStatement.effective[x]:effectivePeriod.start", "min": 1, "path": "MedicationStatement.effectivePeriod.start", "mapping": [ { "map": "Dauermedikation: Beginn der Dauermedikation", "identity": "KBV" } ] }, { "id": "MedicationStatement.effective[x]:effectivePeriod.end", "path": "MedicationStatement.effectivePeriod.end", "mapping": [ { "map": "Dauermedikation: Ende der Dauermedikation", "identity": "KBV" } ] }, { "id": "MedicationStatement.dateAsserted", "max": "0", "path": "MedicationStatement.dateAsserted" }, { "id": "MedicationStatement.informationSource", "max": "0", "path": "MedicationStatement.informationSource", "type": [ { "code": "Reference", "targetProfile": "https://fhir.kbv.de/StructureDefinition/74_PR_AW_Patient" } ] }, { "id": "MedicationStatement.subject", "path": "MedicationStatement.subject", "type": [ { "code": "Reference", "targetProfile": "https://fhir.kbv.de/StructureDefinition/74_PR_AW_Patient" } ], "mustSupport": true }, { "id": "MedicationStatement.subject.reference", "min": 1, "path": "MedicationStatement.subject.reference" }, { "id": "MedicationStatement.subject.identifier", "max": "0", "path": "MedicationStatement.subject.identifier" }, { "id": "MedicationStatement.subject.display", "max": "0", "path": "MedicationStatement.subject.display", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ] }, { "id": "MedicationStatement.derivedFrom", "max": "0", "path": "MedicationStatement.derivedFrom" }, { "id": "MedicationStatement.taken", "path": "MedicationStatement.taken", "fixedCode": "na", "definition": "Dies ist ein technisches Attribut." }, { "id": "MedicationStatement.reasonNotTaken", "max": "0", "path": "MedicationStatement.reasonNotTaken" }, { "id": "MedicationStatement.reasonCode", "max": "0", "path": "MedicationStatement.reasonCode" }, { "id": "MedicationStatement.reasonCode.coding", "max": "0", "path": "MedicationStatement.reasonCode.coding" }, { "id": "MedicationStatement.reasonReference", "max": "0", "path": "MedicationStatement.reasonReference" }, { "id": "MedicationStatement.note", "max": "1", "path": "MedicationStatement.note", "short": "weitere Angaben zur Verordnung", "definition": "In diesem Element können weitere Angaben zur Verordnung eingetragen werden", "mustSupport": true }, { "id": "MedicationStatement.note.author[x]", "max": "0", "path": "MedicationStatement.note.author[x]" }, { "id": "MedicationStatement.note.time", "max": "0", "path": "MedicationStatement.note.time" }, { "id": "MedicationStatement.note.text", "path": "MedicationStatement.note.text", "mapping": [ { "map": "Dauermedikation: Weitere Angaben zur Verordnung", "identity": "KBV" } ] }, { "id": "MedicationStatement.dosage", "max": "0", "path": "MedicationStatement.dosage" } ] }, "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement" }