XML
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="5396ef88-2977-4b49-b8c9-7a8fffebf4db" />
<meta>
<versionId value="10" />
<lastUpdated value="2019-02-07T16:40:59.443+00:00" />
</meta>
<url value="http://roche.com/fhir/rdc/StructureDefinition/medication-administration" />
<version value="1" />
<name value="medication-administration" />
<status value="active" />
<date value="2019-02-07T16:40:56.0030881+00:00" />
<fhirVersion value="3.0.2" />
<mapping>
<identity value="ACSPIX2FHIR" />
<name value="ACSPIX" />
</mapping>
<kind value="resource" />
<abstract value="false" />
<type value="MedicationAdministration" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
<derivation value="constraint" />
<snapshot>
<element id="MedicationAdministration">
<path value="MedicationAdministration" />
<short value="Administration of medication to a patient" />
<definition value="Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner." />
<comment value="The WG will be updating the MedicationAdministration resource to adjust each affected resource to align with the workflow pattern (see workflow.html)." />
<min value="0" />
<max value="*" />
<base>
<path value="Resource" />
<min value="0" />
<max value="*" />
</base>
<constraint>
<key value="dom-2" />
<severity value="error" />
<human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources" />
<expression value="contained.contained.empty()" />
<xpath value="not(parent::f:contained and f:contained)" />
</constraint>
<constraint>
<key value="dom-1" />
<severity value="error" />
<human value="If the resource is contained in another resource, it SHALL NOT contain any narrative" />
<expression value="contained.text.empty()" />
<xpath value="not(parent::f:contained and f:text)" />
</constraint>
<constraint>
<key value="dom-4" />
<severity value="error" />
<human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" />
<expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" />
<xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" />
</constraint>
<constraint>
<key value="dom-3" />
<severity value="error" />
<human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource" />
<expression value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()" />
<xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" />
</constraint>
<constraint>
<key value="mad-2" />
<severity value="error" />
<human value="Reason not given is only permitted if NotGiven is true" />
<expression value="reasonNotGiven.empty() or notGiven = true" />
<xpath value="not(exists(f:reasonNotGiven) and f:notGiven/@value=false())" />
</constraint>
<constraint>
<key value="mad-3" />
<severity value="error" />
<human value="Reason given is only permitted if NotGiven is false" />
<expression value="reasonCode.empty() or notGiven.empty() or notGiven = 'false'" />
<xpath value="not(exists(f:reasonCode) and f:notGiven/@value=true())" />
</constraint>
<mapping>
<identity value="rim" />
<map value="Entity. Role, or Act" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="..Event" />
</mapping>
<mapping>
<identity value="rim" />
<map value="SubstanceAdministration" />
</mapping>
<mapping>
<identity value="w5" />
<map value="clinical.medication" />
</mapping>
</element>
<element id="MedicationAdministration.id">
<path value="MedicationAdministration.id" />
<short value="Logical id of this artifact" />
<definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." />
<comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation." />
<min value="0" />
<max value="1" />
<base>
<path value="Resource.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="id" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.meta">
<path value="MedicationAdministration.meta" />
<short value="Metadata about the resource" />
<definition value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Resource.meta" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Meta" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.implicitRules">
<path value="MedicationAdministration.implicitRules" />
<short value="A set of rules under which this content was created" />
<definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Resource.implicitRules" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isModifier value="true" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.language">
<path value="MedicationAdministration.language" />
<short value="Language of the resource content" />
<definition value="The base language in which the resource is written." />
<comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." />
<min value="0" />
<max value="1" />
<base>
<path value="Resource.language" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
<valueReference>
<reference value="http://hl7.org/fhir/ValueSet/all-languages" />
</valueReference>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="Language" />
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true" />
</extension>
<strength value="extensible" />
<description value="A human language." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/languages" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.text">
<path value="MedicationAdministration.text" />
<short value="Text summary of the resource, for human interpretation" />
<definition value="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." />
<comment value="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." />
<alias value="narrative" />
<alias value="html" />
<alias value="xhtml" />
<alias value="display" />
<min value="0" />
<max value="1" />
<base>
<path value="DomainResource.text" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Narrative" />
</type>
<condition value="ele-1" />
<condition value="dom-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Act.text?" />
</mapping>
</element>
<element id="MedicationAdministration.contained">
<path value="MedicationAdministration.contained" />
<short value="Contained, inline Resources" />
<definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." />
<comment value="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." />
<alias value="inline resources" />
<alias value="anonymous resources" />
<alias value="contained resources" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.contained" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Resource" />
</type>
<mapping>
<identity value="rim" />
<map value="Entity. Role, or Act" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension">
<path value="MedicationAdministration.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional Content defined by implementations" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="1" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension:parentDeviceMetric">
<path value="MedicationAdministration.extension" />
<sliceName value="parentDeviceMetric" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="1" />
<max value="1" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/parent-device-metric" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension:slotId">
<path value="MedicationAdministration.extension" />
<sliceName value="slotId" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/slot-id" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension:tsb">
<path value="MedicationAdministration.extension" />
<sliceName value="tsb" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/tsb" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension:observationEventTiming">
<path value="MedicationAdministration.extension" />
<sliceName value="observationEventTiming" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/observation-event-timing" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension:registeredTimeStamp">
<path value="MedicationAdministration.extension" />
<sliceName value="registeredTimeStamp" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension:gdpr-controller">
<path value="MedicationAdministration.extension" />
<sliceName value="gdpr-controller" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension:timezone">
<path value="MedicationAdministration.extension" />
<sliceName value="timezone" />
<short value="Optional Extension Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/patient-timezone" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension:source">
<path value="MedicationAdministration.extension" />
<sliceName value="source" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/provenance-source" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.extension:channel">
<path value="MedicationAdministration.extension" />
<sliceName value="channel" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/provenance-channel" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.modifierExtension">
<path value="MedicationAdministration.modifierExtension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Extensions that cannot be ignored" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="DomainResource.modifierExtension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<isModifier value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.identifier">
<path value="MedicationAdministration.identifier" />
<short value="External identifier" />
<definition value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.identifier" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Identifier" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
</mapping>
<mapping>
<identity value="rim" />
<map value="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]" />
</mapping>
<mapping>
<identity value="servd" />
<map value="Identifier" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…identifier" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".id" />
</mapping>
<mapping>
<identity value="w5" />
<map value="id" />
</mapping>
</element>
<element id="MedicationAdministration.identifier.id">
<path value="MedicationAdministration.identifier.id" />
<representation value="xmlAttr" />
<short value="xml:id (or equivalent in JSON)" />
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.identifier.extension">
<path value="MedicationAdministration.identifier.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional Content defined by implementations" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.identifier.use">
<path value="MedicationAdministration.identifier.use" />
<short value="usual | official | temp | secondary (If known)" />
<definition value="The purpose of this identifier." />
<comment value="This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary." />
<requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.use" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isModifier value="true" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierUse" />
</extension>
<strength value="required" />
<description value="Identifies the purpose for this identifier, if known ." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/identifier-use" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.code or implied by context" />
</mapping>
</element>
<element id="MedicationAdministration.identifier.type">
<path value="MedicationAdministration.identifier.type" />
<short value="Description of identifier" />
<definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." />
<comment value="This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. \n\nWhere the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type." />
<requirements value="Allows users to make use of identifiers when the identifier system is not known." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.type" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierType" />
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true" />
</extension>
<strength value="extensible" />
<description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/identifier-type" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX.5" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.code or implied by context" />
</mapping>
</element>
<element id="MedicationAdministration.identifier.system">
<path value="MedicationAdministration.identifier.system" />
<short value="The namespace for the identifier value" />
<definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
<comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" />
<requirements value="There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.system" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<example>
<label value="General" />
<valueUri value="http://www.acme.com/identifiers/patient" />
</example>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<binding>
<strength value="required" />
<valueSetUri value="http://roche.com/fhir/rdc/ValueSet/identifiers" />
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX.4 / EI-2-4" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.root or Role.id.root" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./IdentifierType" />
</mapping>
</element>
<element id="MedicationAdministration.identifier.value">
<path value="MedicationAdministration.identifier.value" />
<short value="The value that is unique" />
<definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system." />
<comment value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html)." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.value" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<example>
<label value="General" />
<valueString value="123456" />
</example>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX.1 / EI.1" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./Value" />
</mapping>
</element>
<element id="MedicationAdministration.identifier.period">
<path value="MedicationAdministration.identifier.period" />
<short value="Time period when id is/was valid for use" />
<definition value="Time period during which identifier is/was valid for use." />
<comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.period" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Period" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="per-1" />
<severity value="error" />
<human value="If present, start SHALL have a lower value than end" />
<expression value="start.empty() or end.empty() or (start <= end)" />
<xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="DR" />
</mapping>
<mapping>
<identity value="rim" />
<map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX.7 + CX.8" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Role.effectiveTime or implied by context" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./StartDate and ./EndDate" />
</mapping>
</element>
<element id="MedicationAdministration.identifier.assigner">
<path value="MedicationAdministration.identifier.assigner" />
<short value="Organization that issued id (may be just text)" />
<definition value="Organization that issued/manages the identifier." />
<comment value="The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization." />
<min value="0" />
<max value="1" />
<base>
<path value="Identifier.assigner" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ref-1" />
<severity value="error" />
<human value="SHALL have a contained resource if a local reference is provided" />
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
<xpath value="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, '#')])" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX.4 / (CX.4,CX.9,CX.10)" />
</mapping>
<mapping>
<identity value="rim" />
<map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" />
</mapping>
<mapping>
<identity value="servd" />
<map value="./IdentifierIssuingAuthority" />
</mapping>
</element>
<element id="MedicationAdministration.definition">
<path value="MedicationAdministration.definition" />
<short value="Instantiates protocol or definition" />
<definition value="A protocol, guideline, orderset or other definition that was adhered to in whole or in part by this event." />
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
<min value="0" />
<max value="*" />
<base>
<path value="MedicationAdministration.definition" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…definition" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=DEFN].target[classCode=unspecified]" />
</mapping>
</element>
<element id="MedicationAdministration.partOf">
<path value="MedicationAdministration.partOf" />
<short value="Part of referenced event" />
<definition value="A larger event of which this particular event is a component or step." />
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
<min value="0" />
<max value="*" />
<base>
<path value="MedicationAdministration.partOf" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/medication-administration" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…part of" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=COMP]/target[classCode=SBADM or PROC,moodCode=EVN]" />
</mapping>
</element>
<element id="MedicationAdministration.status">
<path value="MedicationAdministration.status" />
<short value="in-progress | on-hold | completed | entered-in-error | stopped | unknown" />
<definition value="in MedicationAdministration we use status="completed"" />
<comment value="in MedicationAdministration we use status="completed"" />
<min value="1" />
<max value="1" />
<base>
<path value="MedicationAdministration.status" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isModifier value="true" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationAdministrationStatus" />
</extension>
<strength value="required" />
<description value="A set of codes indicating the current status of a MedicationAdministration." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/medication-admin-status" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…status" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-20-Completion Status" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".statusCode" />
</mapping>
<mapping>
<identity value="w5" />
<map value="status" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="completed" />
<comment value="Fixed value" />
</mapping>
</element>
<element id="MedicationAdministration.category">
<path value="MedicationAdministration.category" />
<short value="Type of medication usage" />
<definition value="Indicates the type of medication administration and where the medication is expected to be consumed or administered." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.category" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationAdministrationCategory" />
</extension>
<strength value="preferred" />
<description value="A coded concept describing where the medication administered is expected to occur" />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/medication-admin-category" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code="type of medication usage"].value" />
</mapping>
</element>
<element id="MedicationAdministration.medication[x]">
<path value="MedicationAdministration.medication[x]" />
<slicing>
<discriminator>
<type value="type" />
<path value="$this" />
</discriminator>
<rules value="open" />
</slicing>
<short value="What was administered" />
<definition value="Identifies the medication that was 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." />
<comment value="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. ." />
<min value="1" />
<max value="1" />
<base>
<path value="MedicationAdministration.medication[x]" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/Medication" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationCode" />
</extension>
<strength value="example" />
<description value="Codes identifying substance or product that can be administered." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/medication-codes" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…code" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-5-Administered Code" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".participation[typeCode=CSM].role[classCode=ADMM]" />
</mapping>
<mapping>
<identity value="w5" />
<map value="what" />
</mapping>
</element>
<element id="MedicationAdministration.medication[x]:CodeableConcept">
<path value="MedicationAdministration.medication[x]" />
<sliceName value="CodeableConcept" />
<short value="What was administered" />
<definition value="Identifies the medication that was 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." />
<comment value="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. ." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.medication[x]" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationCode" />
</extension>
<strength value="required" />
<description value="Codes identifying substance or product that can be administered." />
<valueSetUri value="http://roche.com/fhir/rdc/ValueSet/insulin-codes" />
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…code" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-5-Administered Code" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".participation[typeCode=CSM].role[classCode=ADMM]" />
</mapping>
<mapping>
<identity value="w5" />
<map value="what" />
</mapping>
</element>
<element id="MedicationAdministration.medication[x]:Reference">
<path value="MedicationAdministration.medication[x]" />
<sliceName value="Reference" />
<short value="What was administered" />
<definition value="Identifies the medication that was 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." />
<comment value="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. ." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.medication[x]" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/Medication" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationCode" />
</extension>
<strength value="example" />
<description value="Codes identifying substance or product that can be administered." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/medication-codes" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…code" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-5-Administered Code" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".participation[typeCode=CSM].role[classCode=ADMM]" />
</mapping>
<mapping>
<identity value="w5" />
<map value="what" />
</mapping>
</element>
<element id="MedicationAdministration.subject">
<path value="MedicationAdministration.subject" />
<short value="Who received medication" />
<definition value="The person or animal or group receiving the medication." />
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
<min value="1" />
<max value="1" />
<base>
<path value="MedicationAdministration.subject" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/patient" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…subject" />
</mapping>
<mapping>
<identity value="v2" />
<map value="PID-3-Patient ID List" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".participation[typeCode=SBJ].role[classCode=PAT]" />
</mapping>
<mapping>
<identity value="w5" />
<map value="who.focus" />
</mapping>
</element>
<element id="MedicationAdministration.subject.id">
<path value="MedicationAdministration.subject.id" />
<representation value="xmlAttr" />
<short value="xml:id (or equivalent in JSON)" />
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.subject.extension">
<path value="MedicationAdministration.subject.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional Content defined by implementations" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.subject.reference">
<path value="MedicationAdministration.subject.reference" />
<short value="Literal reference, Relative, internal or absolute URL" />
<definition value="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." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.reference" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<condition value="ref-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="Patient/${patientId}" />
</mapping>
</element>
<element id="MedicationAdministration.subject.identifier">
<path value="MedicationAdministration.subject.identifier" />
<short value="Logical reference, when literal reference is not known" />
<definition value="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." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.identifier" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Identifier" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
</mapping>
<mapping>
<identity value="rim" />
<map value="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]" />
</mapping>
<mapping>
<identity value="servd" />
<map value="Identifier" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".identifier" />
</mapping>
</element>
<element id="MedicationAdministration.subject.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true" />
</extension>
<path value="MedicationAdministration.subject.display" />
<short value="Text alternative for the resource" />
<definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.display" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.context">
<path value="MedicationAdministration.context" />
<short value="Encounter or Episode of Care administered as part of" />
<definition value="The visit, admission or other contact between patient and health care provider the medication administration was performed as part of." />
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.context" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…context" />
</mapping>
<mapping>
<identity value="v2" />
<map value="PV1-19-Visit Number" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code="type of encounter or episode"]" />
</mapping>
<mapping>
<identity value="w5" />
<map value="context" />
</mapping>
</element>
<element id="MedicationAdministration.supportingInformation">
<path value="MedicationAdministration.supportingInformation" />
<short value="Additional information to support administration" />
<definition value="Additional information (for example, patient height and weight) that supports the administration of the medication." />
<comment value="This field will be used to reference to:\na) A Observation EWM related with the actual MedAdministration\nb) A Basal Careplan (IPPROFILE ACSPIX ) related with the actual MedAdministration (Ex. BASAL Dt="2018-10-16" Tm="17:00" cbrf="0.70" profile="3" /> --> In this case it will reference the Basal Careplan asociated to profile=3)" />
<min value="0" />
<max value="*" />
<base>
<path value="MedicationAdministration.supportingInformation" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/observation-EWM" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/careplan-basal" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ref-1" />
<severity value="error" />
<human value="SHALL have a contained resource if a local reference is provided" />
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
<xpath value="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, '#')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]" />
</mapping>
<mapping>
<identity value="w5" />
<map value="context" />
</mapping>
</element>
<element id="MedicationAdministration.supportingInformation.id">
<path value="MedicationAdministration.supportingInformation.id" />
<representation value="xmlAttr" />
<short value="xml:id (or equivalent in JSON)" />
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.supportingInformation.extension">
<path value="MedicationAdministration.supportingInformation.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional Content defined by implementations" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.supportingInformation.reference">
<path value="MedicationAdministration.supportingInformation.reference" />
<short value="Literal reference, Relative, internal or absolute URL" />
<definition value="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." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.reference" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<condition value="ref-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="Observation/${relatedObservationId} : CarePlan/${cpId}" />
<comment value="If input.relatedObservationId || input.profile then ObsRef else CarePlanRef" />
</mapping>
</element>
<element id="MedicationAdministration.supportingInformation.identifier">
<path value="MedicationAdministration.supportingInformation.identifier" />
<short value="Logical reference, when literal reference is not known" />
<definition value="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." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.identifier" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Identifier" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
</mapping>
<mapping>
<identity value="rim" />
<map value="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]" />
</mapping>
<mapping>
<identity value="servd" />
<map value="Identifier" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".identifier" />
</mapping>
</element>
<element id="MedicationAdministration.supportingInformation.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true" />
</extension>
<path value="MedicationAdministration.supportingInformation.display" />
<short value="Text alternative for the resource" />
<definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.display" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.effective[x]">
<path value="MedicationAdministration.effective[x]" />
<short value="Start and end time of administration" />
<definition value="A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate." />
<min value="1" />
<max value="1" />
<base>
<path value="MedicationAdministration.effective[x]" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="dateTime" />
</type>
<type>
<code value="Period" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…occurrence[x]" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-3-Date/Time Start of Administration / RXA-4-Date/Time End of Administration" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".effectiveTime" />
</mapping>
<mapping>
<identity value="w5" />
<map value="when.done" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="${Dt}T${Tm}:00+02:00" />
<comment value="From BG tag or IP BOLUS tag with effectivedatetime / For BASAL start & end -> period type" />
</mapping>
</element>
<element id="MedicationAdministration.performer">
<path value="MedicationAdministration.performer" />
<short value="Who administered substance" />
<definition value="The individual who was responsible for giving the medication to the patient." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.performer" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="BackboneElement" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…performer" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-10-Administering Provider / PRT-5-Participation Person: PRT-4-Participation='AP' (RXA-10 is deprecated)" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".participation[typeCode=PRF]" />
</mapping>
<mapping>
<identity value="w5" />
<map value="who.actor" />
</mapping>
</element>
<element id="MedicationAdministration.performer.id">
<path value="MedicationAdministration.performer.id" />
<representation value="xmlAttr" />
<short value="xml:id (or equivalent in JSON)" />
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.performer.extension">
<path value="MedicationAdministration.performer.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional Content defined by implementations" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.performer.modifierExtension">
<path value="MedicationAdministration.performer.modifierExtension" />
<short value="Extensions that cannot be ignored" />
<definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element 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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<alias value="modifiers" />
<min value="0" />
<max value="*" />
<base>
<path value="BackboneElement.modifierExtension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<isModifier value="true" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.performer.actor">
<path value="MedicationAdministration.performer.actor" />
<short value="Individual who was performing" />
<definition value="The device, practitioner, etc. who performed the action." />
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
<min value="1" />
<max value="1" />
<base>
<path value="MedicationAdministration.performer.actor" />
<min value="1" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/practitioner" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/patient" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/phg-device" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="….actor" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".role" />
</mapping>
</element>
<element id="MedicationAdministration.performer.actor.id">
<path value="MedicationAdministration.performer.actor.id" />
<representation value="xmlAttr" />
<short value="xml:id (or equivalent in JSON)" />
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.performer.actor.extension">
<path value="MedicationAdministration.performer.actor.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional Content defined by implementations" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.performer.actor.reference">
<path value="MedicationAdministration.performer.actor.reference" />
<short value="Literal reference, Relative, internal or absolute URL" />
<definition value="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." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.reference" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<condition value="ref-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="Patient/${patientId}" />
</mapping>
</element>
<element id="MedicationAdministration.performer.actor.identifier">
<path value="MedicationAdministration.performer.actor.identifier" />
<short value="Logical reference, when literal reference is not known" />
<definition value="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." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.identifier" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Identifier" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
</mapping>
<mapping>
<identity value="rim" />
<map value="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]" />
</mapping>
<mapping>
<identity value="servd" />
<map value="Identifier" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".identifier" />
</mapping>
</element>
<element id="MedicationAdministration.performer.actor.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true" />
</extension>
<path value="MedicationAdministration.performer.actor.display" />
<short value="Text alternative for the resource" />
<definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.display" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.performer.onBehalfOf">
<path value="MedicationAdministration.performer.onBehalfOf" />
<short value="Organization organization was acting for" />
<definition value="The organization the device or practitioner was acting on behalf of." />
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.performer.onBehalfOf" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/organization" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ref-1" />
<severity value="error" />
<human value="SHALL have a contained resource if a local reference is provided" />
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
<xpath value="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, '#')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="….onBehalfOf" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".role.scopingOrganization" />
</mapping>
</element>
<element id="MedicationAdministration.notGiven">
<path value="MedicationAdministration.notGiven" />
<short value="True if medication not administered" />
<definition value="Set this to true if the record is saying that the medication was NOT administered." />
<comment value="This element is labeled as a modifier because it indicates that a administration didn't happen." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.notGiven" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="boolean" />
</type>
<meaningWhenMissing value="If this is missing, then the medication was administered" />
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isModifier value="true" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…notDone" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-20-Completion Status='NA'" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".actionNegationInd" />
</mapping>
</element>
<element id="MedicationAdministration.reasonNotGiven">
<path value="MedicationAdministration.reasonNotGiven" />
<short value="Reason administration not performed" />
<definition value="A code indicating why the administration was not performed." />
<comment value="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." />
<min value="0" />
<max value="*" />
<base>
<path value="MedicationAdministration.reasonNotGiven" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<condition value="ele-1" />
<condition value="mad-2" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationAdministrationNegationReason" />
</extension>
<strength value="required" />
<description value="A set of codes indicating the reason why the MedicationAdministration is negated." />
<valueSetReference>
<reference value="http://roche.com/fhir/rdc/ValueSet/reason-medication-not-given-codes" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…notDoneReason" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-9-Administration Notes / RXA-18 Substance/Treatment Refusal Reason" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="reason not given"].value" />
</mapping>
</element>
<element id="MedicationAdministration.reasonCode">
<path value="MedicationAdministration.reasonCode" />
<short value="Reason administration performed" />
<definition value="A code indicating why the medication was given." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.reasonCode" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<condition value="ele-1" />
<condition value="mad-3" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationAdministrationReason" />
</extension>
<strength value="example" />
<description value="A set of codes indicating the reason why the MedicationAdministration was made." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/reason-medication-given-codes" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…reasonGivenCodeableConcept" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXE-27 Give Indication" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".reasonCode" />
</mapping>
</element>
<element id="MedicationAdministration.reasonReference">
<path value="MedicationAdministration.reasonReference" />
<short value="Condition or Observation that supports why the medication was administered" />
<definition value="Condition or observation that supports why the medication was administered." />
<comment value="This is a reference to a condition that is the reason for the medication request. If only a code exists, use reasonCode." />
<min value="0" />
<max value="*" />
<base>
<path value="MedicationAdministration.reasonReference" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/observation-EWM" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…reasonReference" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code="reason for use ASSERTION"].value" />
</mapping>
<mapping>
<identity value="w3c.prov" />
<map value="no mapping" />
</mapping>
<mapping>
<identity value="w5" />
<map value="why" />
</mapping>
</element>
<element id="MedicationAdministration.prescription">
<path value="MedicationAdministration.prescription" />
<short value="Request administration performed against" />
<definition value="The original request, instruction or authority to perform the administration." />
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.prescription" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ref-1" />
<severity value="error" />
<human value="SHALL have a contained resource if a local reference is provided" />
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
<xpath value="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, '#')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…basedOn" />
</mapping>
<mapping>
<identity value="v2" />
<map value="ORC-2-Placer Order Number / ORC-3-Filler Order Number" />
</mapping>
<mapping>
<identity value="rim" />
<map value="InFullfillmentOf->SubstanceAdministration" />
</mapping>
</element>
<element id="MedicationAdministration.prescription.id">
<path value="MedicationAdministration.prescription.id" />
<representation value="xmlAttr" />
<short value="xml:id (or equivalent in JSON)" />
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.prescription.extension">
<path value="MedicationAdministration.prescription.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional Content defined by implementations" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.prescription.reference">
<path value="MedicationAdministration.prescription.reference" />
<short value="Literal reference, Relative, internal or absolute URL" />
<definition value="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." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.reference" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<condition value="ref-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="MedicationRequest/${input.medRequestId" />
</mapping>
</element>
<element id="MedicationAdministration.prescription.identifier">
<path value="MedicationAdministration.prescription.identifier" />
<short value="Logical reference, when literal reference is not known" />
<definition value="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." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.identifier" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Identifier" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
</mapping>
<mapping>
<identity value="rim" />
<map value="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]" />
</mapping>
<mapping>
<identity value="servd" />
<map value="Identifier" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".identifier" />
</mapping>
</element>
<element id="MedicationAdministration.prescription.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true" />
</extension>
<path value="MedicationAdministration.prescription.display" />
<short value="Text alternative for the resource" />
<definition value="Plain text narrative that identifies the resource in addition to the resource reference." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="Reference.display" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.device">
<path value="MedicationAdministration.device" />
<short value="Device used to administer" />
<definition value="The device used in administering the medication to the patient. For example, a particular infusion pump." />
<comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
<min value="0" />
<max value="*" />
<base>
<path value="MedicationAdministration.device" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/phg-device" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ref-1" />
<severity value="error" />
<human value="SHALL have a contained resource if a local reference is provided" />
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
<xpath value="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, '#')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="v2" />
<map value="PRT-10 Participation Device / RXR-3 Administrative Device" />
</mapping>
<mapping>
<identity value="rim" />
<map value="device->Access OR device->AssignedDevice" />
</mapping>
</element>
<element id="MedicationAdministration.note">
<path value="MedicationAdministration.note" />
<short value="Information about the administration" />
<definition value="Extra information about the medication administration that is not conveyed by the other attributes." />
<comment value="For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time. This element may need to be included in narrative because of the potential for modifying information. *Annotations SHOULD NOT* be used to communicate "modifying" information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible)." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.note" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Annotation" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="rim" />
<map value="Act" />
</mapping>
<mapping>
<identity value="workflow" />
<map value="…note" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value" />
</mapping>
</element>
<element id="MedicationAdministration.dosage">
<path value="MedicationAdministration.dosage" />
<short value="Details of how medication was taken" />
<definition value="Describes the medication dosage information details e.g. dose, rate, site, route, etc." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.dosage" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="BackboneElement" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="mad-1" />
<severity value="error" />
<human value="SHALL have at least one of dosage.dose or dosage.rate[x]" />
<expression value="dose.exists() or rate.exists()" />
<xpath value="exists(f:dose) or exists(f:*[starts-with(local-name(.), 'rate')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="component->SubstanceAdministrationEvent" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.id">
<path value="MedicationAdministration.dosage.id" />
<representation value="xmlAttr" />
<short value="xml:id (or equivalent in JSON)" />
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.extension">
<path value="MedicationAdministration.dosage.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional Content defined by implementations" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.extension:adminType">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="adminType" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/medication-administration-dosage/admin-type" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.extension:tbr">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="tbr" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/tbr" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.extension:bolusCorrectionInsulinUnits">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="bolusCorrectionInsulinUnits" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/bolus-correction-insulin-units" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.extension:bolusFoodInsulinUnits">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="bolusFoodInsulinUnits" />
<short value="Optional Extension Element" />
<definition value="Optional Extension Element - found in all resources" />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/bolus-food-insulin-units" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.extension:extendedBolusDuration">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="extendedBolusDuration" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/extended-bolus-duration" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.extension:extendedBolusInsulinAmount">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="extendedBolusInsulinAmount" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/extended-bolus-insulin-amount" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.extension:immediateBolusInsulinAmount">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="immediateBolusInsulinAmount" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/immediate-bolus-insulin-amount" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.extension:bolusActivationType">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="bolusActivationType" />
<short value="Optional Extensions Element" />
<definition value="Optional Extension Element - found in all resources." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/bolus-activation-type" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.modifierExtension">
<path value="MedicationAdministration.dosage.modifierExtension" />
<short value="Extensions that cannot be ignored" />
<definition value="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element 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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<alias value="modifiers" />
<min value="0" />
<max value="*" />
<base>
<path value="BackboneElement.modifierExtension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<isModifier value="true" />
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.text">
<path value="MedicationAdministration.dosage.text" />
<short value="Free text dosage instructions e.g. SIG" />
<definition value="Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.\n\nThe dosage instructions should reflect the dosage of the medication that was administered." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.dosage.text" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".text" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.site">
<path value="MedicationAdministration.dosage.site" />
<short value="Body site administered to" />
<definition value="A coded specification of the anatomic site where the medication first entered the body. For example, "left arm"." />
<comment value="If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [body-site-instance](extension-body-site-instance.html). May be a summary code, or a reference to a very precise definition of the location, or both." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.dosage.site" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationAdministrationSite" />
</extension>
<strength value="example" />
<description value="A coded concept describing the site location the medicine enters into or onto the body." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/approach-site-codes" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXR-2 Administration Site / RXR-6 Administration Site Modifier" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".approachSiteCode" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.route">
<path value="MedicationAdministration.dosage.route" />
<short value="Path of substance into body" />
<definition value="A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient. For example, topical, intravenous, etc." />
<comment value="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." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.dosage.route" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="RouteOfAdministration" />
</extension>
<strength value="example" />
<description value="A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/route-codes" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXR-1-Route" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".routeCode" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.method">
<path value="MedicationAdministration.dosage.method" />
<short value="How drug was administered" />
<definition value="A coded value indicating the method by which the medication is intended to be or was introduced into or on the body. This attribute will most often NOT be populated. It is most commonly used for injections. For example, Slow Push, Deep IV." />
<comment value="One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration. This means the codes used in route or form may pre-coordinate the method in the route code or the form code. The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may be used frequently." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.dosage.method" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="CodeableConcept" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="MedicationAdministrationMethod" />
</extension>
<strength value="example" />
<description value="A coded concept describing the technique by which the medicine is administered." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/administration-method-codes" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="CE/CNE/CWE" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CD" />
</mapping>
<mapping>
<identity value="orim" />
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXR-4-Administration Method" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".methodCode" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose">
<path value="MedicationAdministration.dosage.dose" />
<short value="Amount of medication per dose" />
<definition value="The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection." />
<comment value="If the administration is not instantaneous (rate is present), this can be specified to convey the total amount administered over period of time of a single administration." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.dosage.dose" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Quantity" />
<profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="qty-3" />
<severity value="error" />
<human value="If a code for the unit is present, the system SHALL also be present" />
<expression value="code.empty() or system.exists()" />
<xpath value="not(exists(f:code)) or exists(f:system)" />
</constraint>
<constraint>
<key value="sqty-1" />
<severity value="error" />
<human value="The comparator is not used on a SimpleQuantity" />
<expression value="comparator.empty()" />
<xpath value="not(exists(f:comparator))" />
</constraint>
<isModifier value="false" />
<binding>
<strength value="required" />
<valueSetUri value="http://roche.com/fhir/rdc/ValueSet/devicemetric-metric-unit" />
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="SN (see also Range) or CQ" />
</mapping>
<mapping>
<identity value="rim" />
<map value="PQ, IVL<PQ>, MO, CO, depending on the values" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-6 Administered Amount / RXA-7 Administered Units" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".doseQuantity" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.id">
<path value="MedicationAdministration.dosage.dose.id" />
<representation value="xmlAttr" />
<short value="xml:id (or equivalent in JSON)" />
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<min value="0" />
<max value="1" />
<base>
<path value="Element.id" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.extension">
<path value="MedicationAdministration.dosage.dose.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<description value="Extensions are always sliced by (at least) url" />
<rules value="open" />
</slicing>
<short value="Additional Content defined by implementations" />
<definition value="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." />
<comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
<alias value="extensions" />
<alias value="user content" />
<min value="0" />
<max value="*" />
<base>
<path value="Element.extension" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Extension" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ext-1" />
<severity value="error" />
<human value="Must have either extensions or value[x], not both" />
<expression value="extension.exists() != value.exists()" />
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="N/A" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.value">
<path value="MedicationAdministration.dosage.dose.value" />
<short value="Numerical value (with implicit precision)" />
<definition value="The value of the measured amount. The value includes an implicit precision in the presentation of the value." />
<comment value="The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)." />
<requirements value="Precision is handled implicitly in almost all cases of measurement." />
<min value="0" />
<max value="1" />
<base>
<path value="Quantity.value" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="decimal" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="SN.2 / CQ - N/A" />
</mapping>
<mapping>
<identity value="rim" />
<map value="PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="BG.Ins1 : BG.Ins2 : IPDATA.BOLUS.amount" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.comparator">
<path value="MedicationAdministration.dosage.dose.comparator" />
<short value="< | <= | >= | > - how to understand the value" />
<definition value="Not allowed to be used in this context" />
<comment value="This is labeled as "Is Modifier" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value." />
<requirements value="Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology." />
<min value="0" />
<max value="0" />
<base>
<path value="Quantity.comparator" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<meaningWhenMissing value="If there is no comparator, then there is no modification of the value" />
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isModifier value="true" />
<isSummary value="true" />
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="QuantityComparator" />
</extension>
<strength value="required" />
<description value="How the Quantity should be understood and represented." />
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/quantity-comparator" />
</valueSetReference>
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="SN.1 / CQ.1" />
</mapping>
<mapping>
<identity value="rim" />
<map value="IVL properties" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.unit">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true" />
</extension>
<path value="MedicationAdministration.dosage.dose.unit" />
<short value="Unit representation" />
<definition value="A human-readable form of the unit." />
<comment value="Note that FHIR strings may not exceed 1MB in size" />
<requirements value="There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms." />
<min value="0" />
<max value="1" />
<base>
<path value="Quantity.unit" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="string" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="(see OBX.6 etc.) / CQ.2" />
</mapping>
<mapping>
<identity value="rim" />
<map value="PQ.unit" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="[iU]" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.system">
<path value="MedicationAdministration.dosage.dose.system" />
<short value="System that defines coded unit form" />
<definition value="The identification of the system that provides the coded form of the unit." />
<comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" />
<requirements value="Need to know the system that defines the coded form of the unit." />
<min value="0" />
<max value="1" />
<base>
<path value="Quantity.system" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="uri" />
</type>
<condition value="ele-1" />
<condition value="qty-3" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="(see OBX.6 etc.) / CQ.2" />
</mapping>
<mapping>
<identity value="rim" />
<map value="CO.codeSystem, PQ.translation.codeSystem" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="http://unitsofmeasure.org" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.code">
<path value="MedicationAdministration.dosage.dose.code" />
<short value="Coded form of the unit" />
<definition value="A computer processable form of the unit in some unit representation system." />
<comment value="The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system." />
<requirements value="Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest." />
<min value="0" />
<max value="1" />
<base>
<path value="Quantity.code" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="code" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<isSummary value="true" />
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="(see OBX.6 etc.) / CQ.2" />
</mapping>
<mapping>
<identity value="rim" />
<map value="PQ.code, MO.currency, PQ.translation.code" />
</mapping>
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="[iU]" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.rate[x]">
<path value="MedicationAdministration.dosage.rate[x]" />
<short value="Dose quantity per unit of time" />
<definition value="Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours." />
<comment value="If the rate changes over time, and you want to capture this in MedicationAdministration, then each change should be captured as a distinct MedicationAdministration, with a specific MedicationAdministration.dosage.rate, and the date time when the rate change occurred. Typically, the MedicationAdministration.dosage.rate element is not used to convey an average rate." />
<min value="0" />
<max value="1" />
<base>
<path value="MedicationAdministration.dosage.rate[x]" />
<min value="0" />
<max value="1" />
</base>
<type>
<code value="Ratio" />
</type>
<type>
<code value="Quantity" />
<profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<binding>
<strength value="required" />
<valueSetUri value="http://roche.com/fhir/rdc/ValueSet/devicemetric-metric-unit" />
</binding>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="v2" />
<map value="N/A" />
</mapping>
<mapping>
<identity value="rim" />
<map value="RTO" />
</mapping>
<mapping>
<identity value="v2" />
<map value="RXA-12-Administered Per (Time Unit)" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".rateQuantity" />
</mapping>
</element>
<element id="MedicationAdministration.eventHistory">
<path value="MedicationAdministration.eventHistory" />
<short value="A list of events of interest in the lifecycle" />
<definition value="A summary of the events of interest that have occurred, such as when the administration was verified." />
<comment value="This may not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject." />
<min value="0" />
<max value="*" />
<base>
<path value="MedicationAdministration.eventHistory" />
<min value="0" />
<max value="*" />
</base>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Provenance" />
</type>
<condition value="ele-1" />
<constraint>
<key value="ele-1" />
<severity value="error" />
<human value="All FHIR elements must have a @value or children" />
<expression value="hasValue() | (children().count() > id.count())" />
<xpath value="@value|f:*|h:div" />
</constraint>
<constraint>
<key value="ref-1" />
<severity value="error" />
<human value="SHALL have a contained resource if a local reference is provided" />
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" />
<xpath value="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, '#')])" />
</constraint>
<mapping>
<identity value="rim" />
<map value="n/a" />
</mapping>
<mapping>
<identity value="rim" />
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
</mapping>
<mapping>
<identity value="rim" />
<map value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]" />
</mapping>
</element>
</snapshot>
<differential>
<element id="MedicationAdministration.extension">
<path value="MedicationAdministration.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<rules value="open" />
</slicing>
<min value="1" />
</element>
<element id="MedicationAdministration.extension:parentDeviceMetric">
<path value="MedicationAdministration.extension" />
<sliceName value="parentDeviceMetric" />
<min value="1" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/parent-device-metric" />
</type>
</element>
<element id="MedicationAdministration.extension:slotId">
<path value="MedicationAdministration.extension" />
<sliceName value="slotId" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/slot-id" />
</type>
</element>
<element id="MedicationAdministration.extension:tsb">
<path value="MedicationAdministration.extension" />
<sliceName value="tsb" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/tsb" />
</type>
</element>
<element id="MedicationAdministration.extension:observationEventTiming">
<path value="MedicationAdministration.extension" />
<sliceName value="observationEventTiming" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/observation-event-timing" />
</type>
</element>
<element id="MedicationAdministration.extension:registeredTimeStamp">
<path value="MedicationAdministration.extension" />
<sliceName value="registeredTimeStamp" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/registered-timestamp" />
</type>
</element>
<element id="MedicationAdministration.extension:gdpr-controller">
<path value="MedicationAdministration.extension" />
<sliceName value="gdpr-controller" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/gdpr-controller" />
</type>
</element>
<element id="MedicationAdministration.extension:timezone">
<path value="MedicationAdministration.extension" />
<sliceName value="timezone" />
<short value="Optional Extension Element" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/patient-timezone" />
</type>
</element>
<element id="MedicationAdministration.extension:source">
<path value="MedicationAdministration.extension" />
<sliceName value="source" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/provenance-source" />
</type>
</element>
<element id="MedicationAdministration.extension:channel">
<path value="MedicationAdministration.extension" />
<sliceName value="channel" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/provenance-channel" />
</type>
</element>
<element id="MedicationAdministration.identifier">
<path value="MedicationAdministration.identifier" />
<max value="1" />
</element>
<element id="MedicationAdministration.identifier.system">
<path value="MedicationAdministration.identifier.system" />
<binding>
<strength value="required" />
<valueSetUri value="http://roche.com/fhir/rdc/ValueSet/identifiers" />
</binding>
</element>
<element id="MedicationAdministration.partOf">
<path value="MedicationAdministration.partOf" />
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/medication-administration" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
</type>
</element>
<element id="MedicationAdministration.status">
<path value="MedicationAdministration.status" />
<definition value="in MedicationAdministration we use status="completed"" />
<comment value="in MedicationAdministration we use status="completed"" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="completed" />
<comment value="Fixed value" />
</mapping>
</element>
<element id="MedicationAdministration.category">
<path value="MedicationAdministration.category" />
<definition value="Indicates the type of medication administration and where the medication is expected to be consumed or administered." />
</element>
<element id="MedicationAdministration.medication[x]">
<path value="MedicationAdministration.medication[x]" />
<slicing>
<discriminator>
<type value="type" />
<path value="$this" />
</discriminator>
<rules value="open" />
</slicing>
<type>
<code value="CodeableConcept" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/Medication" />
</type>
</element>
<element id="MedicationAdministration.medication[x]:CodeableConcept">
<path value="MedicationAdministration.medication[x]" />
<sliceName value="CodeableConcept" />
<type>
<code value="CodeableConcept" />
</type>
<binding>
<strength value="required" />
<valueSetUri value="http://roche.com/fhir/rdc/ValueSet/insulin-codes" />
</binding>
</element>
<element id="MedicationAdministration.medication[x]:Reference">
<path value="MedicationAdministration.medication[x]" />
<sliceName value="Reference" />
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/Medication" />
</type>
</element>
<element id="MedicationAdministration.subject">
<path value="MedicationAdministration.subject" />
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/patient" />
</type>
</element>
<element id="MedicationAdministration.subject.reference">
<path value="MedicationAdministration.subject.reference" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="Patient/${patientId}" />
</mapping>
</element>
<element id="MedicationAdministration.supportingInformation">
<path value="MedicationAdministration.supportingInformation" />
<comment value="This field will be used to reference to:\na) A Observation EWM related with the actual MedAdministration\nb) A Basal Careplan (IPPROFILE ACSPIX ) related with the actual MedAdministration (Ex. BASAL Dt="2018-10-16" Tm="17:00" cbrf="0.70" profile="3" /> --> In this case it will reference the Basal Careplan asociated to profile=3)" />
<type>
<code value="Reference" />
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/observation-EWM" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/careplan-basal" />
</type>
</element>
<element id="MedicationAdministration.supportingInformation.reference">
<path value="MedicationAdministration.supportingInformation.reference" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="Observation/${relatedObservationId} : CarePlan/${cpId}" />
<comment value="If input.relatedObservationId || input.profile then ObsRef else CarePlanRef" />
</mapping>
</element>
<element id="MedicationAdministration.effective[x]">
<path value="MedicationAdministration.effective[x]" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="${Dt}T${Tm}:00+02:00" />
<comment value="From BG tag or IP BOLUS tag with effectivedatetime / For BASAL start & end -> period type" />
</mapping>
</element>
<element id="MedicationAdministration.performer">
<path value="MedicationAdministration.performer" />
<max value="1" />
</element>
<element id="MedicationAdministration.performer.actor">
<path value="MedicationAdministration.performer.actor" />
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/practitioner" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/patient" />
</type>
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/phg-device" />
</type>
</element>
<element id="MedicationAdministration.performer.actor.reference">
<path value="MedicationAdministration.performer.actor.reference" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="Patient/${patientId}" />
</mapping>
</element>
<element id="MedicationAdministration.performer.onBehalfOf">
<path value="MedicationAdministration.performer.onBehalfOf" />
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/organization" />
</type>
</element>
<element id="MedicationAdministration.reasonNotGiven">
<path value="MedicationAdministration.reasonNotGiven" />
<binding>
<strength value="required" />
<valueSetReference>
<reference value="http://roche.com/fhir/rdc/ValueSet/reason-medication-not-given-codes" />
</valueSetReference>
</binding>
</element>
<element id="MedicationAdministration.reasonCode">
<path value="MedicationAdministration.reasonCode" />
<max value="1" />
</element>
<element id="MedicationAdministration.reasonReference">
<path value="MedicationAdministration.reasonReference" />
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/observation-EWM" />
</type>
</element>
<element id="MedicationAdministration.prescription.reference">
<path value="MedicationAdministration.prescription.reference" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="MedicationRequest/${input.medRequestId" />
</mapping>
</element>
<element id="MedicationAdministration.device">
<path value="MedicationAdministration.device" />
<type>
<code value="Reference" />
<targetProfile value="http://roche.com/fhir/rdc/StructureDefinition/phg-device" />
</type>
</element>
<element id="MedicationAdministration.note">
<path value="MedicationAdministration.note" />
<max value="1" />
</element>
<element id="MedicationAdministration.dosage.extension">
<path value="MedicationAdministration.dosage.extension" />
<slicing>
<discriminator>
<type value="value" />
<path value="url" />
</discriminator>
<rules value="open" />
</slicing>
<min value="0" />
</element>
<element id="MedicationAdministration.dosage.extension:adminType">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="adminType" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/medication-administration-dosage/admin-type" />
</type>
</element>
<element id="MedicationAdministration.dosage.extension:tbr">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="tbr" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/tbr" />
</type>
</element>
<element id="MedicationAdministration.dosage.extension:bolusCorrectionInsulinUnits">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="bolusCorrectionInsulinUnits" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/bolus-correction-insulin-units" />
</type>
</element>
<element id="MedicationAdministration.dosage.extension:bolusFoodInsulinUnits">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="bolusFoodInsulinUnits" />
<short value="Optional Extension Element" />
<definition value="Optional Extension Element - found in all resources" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/bolus-food-insulin-units" />
</type>
</element>
<element id="MedicationAdministration.dosage.extension:extendedBolusDuration">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="extendedBolusDuration" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/extended-bolus-duration" />
</type>
</element>
<element id="MedicationAdministration.dosage.extension:extendedBolusInsulinAmount">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="extendedBolusInsulinAmount" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/extended-bolus-insulin-amount" />
</type>
</element>
<element id="MedicationAdministration.dosage.extension:immediateBolusInsulinAmount">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="immediateBolusInsulinAmount" />
<min value="0" />
<max value="1" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/immediate-bolus-insulin-amount" />
</type>
</element>
<element id="MedicationAdministration.dosage.extension:bolusActivationType">
<path value="MedicationAdministration.dosage.extension" />
<sliceName value="bolusActivationType" />
<min value="0" />
<type>
<code value="Extension" />
<profile value="http://roche.com/fhir/rdc/StructureDefinition/bolus-activation-type" />
</type>
</element>
<element id="MedicationAdministration.dosage.dose">
<path value="MedicationAdministration.dosage.dose" />
<binding>
<strength value="required" />
<valueSetUri value="http://roche.com/fhir/rdc/ValueSet/devicemetric-metric-unit" />
</binding>
</element>
<element id="MedicationAdministration.dosage.dose.value">
<path value="MedicationAdministration.dosage.dose.value" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="BG.Ins1 : BG.Ins2 : IPDATA.BOLUS.amount" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.unit">
<path value="MedicationAdministration.dosage.dose.unit" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="[iU]" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.system">
<path value="MedicationAdministration.dosage.dose.system" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="http://unitsofmeasure.org" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.dose.code">
<path value="MedicationAdministration.dosage.dose.code" />
<mapping>
<identity value="ACSPIX2FHIR" />
<map value="[iU]" />
</mapping>
</element>
<element id="MedicationAdministration.dosage.rate[x]">
<path value="MedicationAdministration.dosage.rate[x]" />
<binding>
<strength value="required" />
<valueSetUri value="http://roche.com/fhir/rdc/ValueSet/devicemetric-metric-unit" />
</binding>
</element>
</differential>
</StructureDefinition>