This page is part of the Data Access Framework (v1.6.0: STU 2 Ballot 1) based on FHIR v1.6.0. . For a full list of available versions, see the Directory of published versions


<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="daf-medicationstatement"/>
  <url
       value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-medicationstatement"/>
  <name value="Profile daf-medicationstatement"/>
  <status value="draft"/>
  <publisher
             value="Health Level Seven International (Infrastructure and Messaging - Data Access Framework)"/>
  <contact>
    <telecom>
      <system value="other"/>
      <value value="http://www.healthit.gov"/>
    </telecom>
  </contact>
  <date value="2014-08-21"/>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </mapping>
  <mapping>
    <identity value="w5"/>
    <uri value="http://hl7.org/fhir/w5"/>
    <name value="W5 Mapping"/>
  </mapping>
  <mapping>
    <identity value="v2"/>
    <uri value="http://hl7.org/v2"/>
    <name value="HL7 v2 Mapping"/>
  </mapping>
  <kind value="resource"/>
  <abstract value="false"/>
  <type value="MedicationStatement"/>
  <baseDefinition
                  value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-core-medicationstatement"/>
  <derivation value="constraint"/>
  <snapshot>
    <element id="MedicationStatement:dafmedicationstatement">
      <path value="MedicationStatement"/>
      <name value="DAFMedicationStatement"/>
      <short value="Record of medication being taken by a patient"/>
      <definition
                  value="Statement that a medication is/was actively taken by a patient."/>
      <comments
                value="The WG will be updating the MedicationStatement resource  to adjust each affected resource to align with the workflow pattern (see workflow.html)."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="MedicationStatement"/>
        <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="mst-3"/>
        <severity value="error"/>
        <human
               value="Reason for use reference is only permitted if notTaken is false"/>
        <expression value="reasonForUseReference.empty() or notTaken = false"/>
        <xpath
               value="not(exists(*[starts-with(local-name(.), 'reasonForUseReference')]) and f:notTaken/@value=true())"/>
      </constraint>
      <constraint>
        <key value="mst-1"/>
        <severity value="error"/>
        <human value="Reason not taken is only permitted if notTaken is true"/>
        <expression value="reasonNotTaken.empty() or notTaken = true"/>
        <xpath
               value="not(exists(f:reasonNotTaken) and f:notTaken/@value=false())"/>
      </constraint>
      <constraint>
        <key value="mst-2"/>
        <severity value="error"/>
        <human
               value="Reason for use code is only permitted if notTaken is false"/>
        <expression value="reasonForUseCode.empty() or notTaken = false"/>
        <xpath
               value="not(exists(*[starts-with(local-name(.), 'reasonForUseCode')]) and f:notTaken/@value=true())"/>
      </constraint>
      <mustSupport value="false"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="SubstanceAdministration"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="clinical.medication"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.id">
      <path value="MedicationStatement.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."/>
      <comments
                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="*"/>
      </base>
      <type>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.meta">
      <path value="MedicationStatement.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="*"/>
      </base>
      <type>
        <code value="Meta"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.implicitRules">
      <path value="MedicationStatement.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."/>
      <comments
                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 as much as possible."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.implicitRules"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.language">
      <path value="MedicationStatement.language"/>
      <short value="Language of the resource content"/>
      <definition value="The base language in which the resource is written."/>
      <comments
                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="*"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
          </valueReference>
        </extension>
        <strength value="extensible"/>
        <description value="A human language."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.text">
      <path value="MedicationStatement.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."/>
      <comments
                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="*"/>
      </base>
      <type>
        <code value="Narrative"/>
      </type>
      <condition value="dom-1"/>
      <mapping>
        <identity value="rim"/>
        <map value="Act.text?"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.contained">
      <path value="MedicationStatement.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."/>
      <comments
                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="N/A"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.extension">
      <path value="MedicationStatement.extension"/>
      <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."/>
      <comments
                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"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.modifierExtension">
      <path value="MedicationStatement.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 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."/>
      <comments
                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>
      <isModifier value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.identifier">
      <path value="MedicationStatement.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="*"/>
      <base>
        <path value="MedicationStatement.identifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Identifier"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="SubstanceAdministration.id"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.status">
      <path value="MedicationStatement.status"/>
      <short
             value="active | completed | entered-in-error | intended | stopped | on-hold"/>
      <definition
                  value="A code representing the patient or other source's judgment about the state of the medication used that this statement is about.  Generally this will be active or completed."/>
      <comments
                value="MedicationStatement is a statement at a point in time.  The status is only representative at the point when it was asserted."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.status"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="true"/>
      <isSummary value="false"/>
      <binding>
        <strength value="required"/>
        <description
                     value="A set of codes indicating the current status of a MedicationStatement."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/medication-statement-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".statusCode"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.medication[x]">
      <path value="MedicationStatement.medication[x]"/>
      <short value="What medication was taken"/>
      <definition
                  value="Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications."/>
      <comments
                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.  Note: do not use Medication.name to describe the medication this statement concerns. When the only available information is a text description of the medication, Medication.code.text should be used."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.medication[x]"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-medication"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <binding>
        <strength value="extensible"/>
        <description value="Prescribable medications"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/us/daf/ValueSet/daf-medication-codes"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map
             value="SubstanceAdministration>Component>SubstanceAdministrationRequest.consumable"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="what"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.patient">
      <path value="MedicationStatement.patient"/>
      <short value="Who is/was taking  the medication"/>
      <definition value="The person or animal who is/was taking the medication."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.patient"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-patient"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="v2"/>
        <map value="PID-3-Patient ID List"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="SubstanceAdministration->subject->Patient"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.focus"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.effectivePeriod">
      <path value="MedicationStatement.effectivePeriod"/>
      <short value="Over what period was medication consumed?"/>
      <definition
                  value="The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the wasNotGiven element is true)."/>
      <comments
                value="If the medication is still being taken at the time the statement is recorded, the "end" date will be omitted."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.effective[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Period"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="SubstanceAdministration.effectiveTime"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.done"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.informationSource">
      <path value="MedicationStatement.informationSource"/>
      <short
             value="Person who provided the information about the taking of this medication"/>
      <definition
                  value="The person who provided the information about the taking of this medication.  Note:  A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.informationSource"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-pract"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-relatedperson"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map
             value=".participation[typeCode=INF].role[classCode=PAT, or  codes for Practioner or Related Person (if PAT is the informer, then syntax for self-reported =true)"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.source"/>
      </mapping>
    </element>
    <element
             id="MedicationStatement:dafmedicationstatement.supportingInformation">
      <path value="MedicationStatement.supportingInformation"/>
      <short value="Additional supporting information"/>
      <definition
                  value="Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement."/>
      <comments
                value="Likely references would be to MedicationOrder, MedicationDispense, Claim, Observation or QuestionnaireAnswers."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="MedicationStatement.supportingInformation"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map
             value=".outboundRelationship[typeCode=SPRT]/target[classCode=ACT,moodCode=EVN]"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dateAsserted">
      <path value="MedicationStatement.dateAsserted"/>
      <short value="When the statement was asserted?"/>
      <definition
                  value="The date when the medication statement was asserted by the information source."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.dateAsserted"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value=".participation[typeCode=AUT].time"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.notTaken">
      <path value="MedicationStatement.notTaken"/>
      <short value="True if medication is/was not being taken"/>
      <definition
                  value="Set this to true if the record is saying that the medication was NOT taken."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.notTaken"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <meaningWhenMissing
                          value="If this is missing, then the medication was taken"/>
      <mustSupport value="true"/>
      <isModifier value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value="SubstanceAdministration.actionNegationInd"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.reasonNotTaken">
      <path value="MedicationStatement.reasonNotTaken"/>
      <short value="True if asserting medication was not given"/>
      <definition value="A code indicating why the medication was not taken."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.reasonNotTaken"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <condition value="mst-1"/>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <binding>
        <strength value="example"/>
        <description
                     value="A coded concept indicating the reason why the MedicationStatement is negated."/>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map
             value="SubstanceAdministration->Reason->Observation->Value"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.reasonForUseCode">
      <path value="MedicationStatement.reasonForUseCode"/>
      <short value="Reason for why the medication is being/was taken"/>
      <definition value="A reason for why the medication is being/was taken."/>
      <comments
                value="This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonForUseReference."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="MedicationStatement.reasonForUseCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <strength value="example"/>
        <description
                     value="A coded concept identifying why the medication is being taken."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/condition-code"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".reasonCode"/>
      </mapping>
    </element>
    <element
             id="MedicationStatement:dafmedicationstatement.reasonForUseReference">
      <path value="MedicationStatement.reasonForUseReference"/>
      <short
             value="Condition that supports why the medication is being/was taken"/>
      <definition
                  value="Condition that supports why the medication is being/was taken."/>
      <comments
                value="This is a reference to a condition that is the reason why the medication is being/was taken.  If only a code exists, use reasonForUseCode."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="MedicationStatement.reasonForUseReference"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="not mapped"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.note">
      <path value="MedicationStatement.note"/>
      <short value="Further information about the statement"/>
      <definition
                  value="Provides extra information about the medication statement that is not conveyed by the other attributes."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="MedicationStatement.note"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Annotation"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map
             value=".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code="annotation"].value"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.category">
      <path value="MedicationStatement.category"/>
      <short value="Type of medication usage"/>
      <definition
                  value="Indicates where type of medication statement and where the medication is expected to be consumed or administered."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.category"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <strength value="example"/>
        <description
                     value="A coded concept identifying where the medication included in the is expected to be consumed or administered"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/medication-statement-category"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value="not mapped"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage">
      <path value="MedicationStatement.dosage"/>
      <short value="Details of how medication was taken"/>
      <definition
                  value="Indicates how the medication is/was used by the patient."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="MedicationStatement.dosage"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="BackboneElement"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map
             value="SubstanceAdministration>Component>SubstanceAdministrationRequest"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.id">
      <path value="MedicationStatement.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."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.extension">
      <path value="MedicationStatement.dosage.extension"/>
      <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."/>
      <comments
                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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="MedicationStatement:dafmedicationstatement.dosage.modifierExtension">
      <path value="MedicationStatement.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."/>
      <comments
                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>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.text">
      <path value="MedicationStatement.dosage.text"/>
      <short
             value="Free text dosage instructions as reported by the information source"/>
      <definition
                  value="Free text dosage information as reported about a patient's medication use. When coded dosage information is present, the free text may still be present for display to humans."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.dosage.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element
             id="MedicationStatement:dafmedicationstatement.dosage.additionalInstructions">
      <path value="MedicationStatement.dosage.additionalInstructions"/>
      <short value="Supplemental instructions - e.g. "with meals""/>
      <definition
                  value="Additional instructions such as "Swallow with plenty of water" which may or may not be coded."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="MedicationStatement.dosage.additionalInstructions"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <strength value="example"/>
        <description
                     value="A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery"."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/additional-instructions-codes"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".text"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.timing">
      <path value="MedicationStatement.dosage.timing"/>
      <short value="When/how often was medication taken"/>
      <definition
                  value="The timing schedule for giving the medication to the patient.  The Schedule data type allows many different expressions, for example.  "Every  8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:";  "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.dosage.timing"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Timing"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value=".effectiveTime"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.asNeeded[x]">
      <path value="MedicationStatement.dosage.asNeeded[x]"/>
      <short value="Take "as needed" (for x)"/>
      <definition
                  value="Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).    Specifically if 'boolean' datatype is selected, then the following logic applies:  If set to True, this indicates that the medication is only taken when needed, within the specified schedule."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.dosage.asNeeded[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <strength value="example"/>
        <description
                     value="A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose.  For example "pain", "30 minutes prior to sexual intercourse", "on flare-up" etc."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/medication-as-needed-reason"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map
             value="boolean: .outboundRelationship[typeCode=PRCN].negationInd (inversed - so negationInd = true means asNeeded=false  CodeableConcept: .outboundRelationship[typCode=PRCN].target[classCode=OBS, moodCode=EVN, isCriterionInd=true, code="Assertion"].value"/>
      </mapping>
    </element>
    <element
             id="MedicationStatement:dafmedicationstatement.dosage.siteCodeableConcept">
      <path value="MedicationStatement.dosage.siteCodeableConcept"/>
      <short value="Where (on body) medication is/was administered"/>
      <definition
                  value="A coded specification of or a reference to the anatomic site where the medication first enters the body."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.dosage.site[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <binding>
        <strength value="preferred"/>
        <description
                     value="This identifies the body site at which the substance was administered"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/us/daf/ValueSet/daf-bodysite"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".approachSiteCode"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.route">
      <path value="MedicationStatement.dosage.route"/>
      <short value="How the medication entered the body"/>
      <definition
                  value="A code specifying the route or physiological path of administration of a therapeutic agent into or onto a subject."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.dosage.route"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <binding>
        <strength value="preferred"/>
        <description
                     value="This identifies the route of substance administration."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/us/daf/ValueSet/daf-medication-route"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="rim"/>
        <map value=".routeCode"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.method">
      <path value="MedicationStatement.dosage.method"/>
      <short value="Technique used to administer medication"/>
      <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."/>
      <comments
                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="MedicationStatement.dosage.method"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <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=".methodCode"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.dose[x]">
      <path value="MedicationStatement.dosage.dose[x]"/>
      <short value="Amount of medication per dose"/>
      <definition
                  value="The amount of therapeutic or other substance given at one administration event."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.dosage.dose[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <type>
        <code value="Range"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value=".doseQuantity"/>
      </mapping>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.rate[x]">
      <path value="MedicationStatement.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.  Sometimes, a rate can imply duration when expressed as total volume / duration (e.g.  500mL/2 hours implies a duration of 2 hours).  However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.dosage.rate[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Ratio"/>
      </type>
      <type>
        <code value="Range"/>
      </type>
      <type>
        <code value="Quantity"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value=".rateQuantity"/>
      </mapping>
    </element>
    <element
             id="MedicationStatement:dafmedicationstatement.dosage.maxDosePerPeriod">
      <path value="MedicationStatement.dosage.maxDosePerPeriod"/>
      <short value="Maximum dose that was consumed per unit of time"/>
      <definition
                  value="The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time.  For example, 1000mg in 24 hours."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="MedicationStatement.dosage.maxDosePerPeriod"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Ratio"/>
      </type>
      <mustSupport value="true"/>
      <isSummary value="false"/>
      <mapping>
        <identity value="rim"/>
        <map value=".maxDoseQuantity"/>
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="MedicationStatement:dafmedicationstatement">
      <path value="MedicationStatement"/>
      <name value="DAFMedicationStatement"/>
      <definition
                  value="Statement that a medication is/was actively taken by a patient."/>
      <mustSupport value="false"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.identifier">
      <path value="MedicationStatement.identifier"/>
      <min value="0"/>
      <max value="*"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.medication[x]">
      <path value="MedicationStatement.medication[x]"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-medication"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.patient">
      <path value="MedicationStatement.patient"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-patient"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.effectivePeriod">
      <path value="MedicationStatement.effectivePeriod"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Period"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.informationSource">
      <path value="MedicationStatement.informationSource"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-pract"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <profile
                 value="http://hl7.org/fhir/us/daf/StructureDefinition/daf-relatedperson"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.notTaken">
      <path value="MedicationStatement.notTaken"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.reasonNotTaken">
      <path value="MedicationStatement.reasonNotTaken"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage">
      <path value="MedicationStatement.dosage"/>
      <min value="0"/>
      <max value="*"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.timing">
      <path value="MedicationStatement.dosage.timing"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element
             id="MedicationStatement:dafmedicationstatement.dosage.siteCodeableConcept">
      <path value="MedicationStatement.dosage.siteCodeableConcept"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="preferred"/>
        <description
                     value="This identifies the body site at which the substance was administered"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/us/daf/ValueSet/daf-bodysite"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.route">
      <path value="MedicationStatement.dosage.route"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
      <binding>
        <strength value="preferred"/>
        <description
                     value="This identifies the route of substance administration."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/us/daf/ValueSet/daf-medication-route"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.dose[x]">
      <path value="MedicationStatement.dosage.dose[x]"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element id="MedicationStatement:dafmedicationstatement.dosage.rate[x]">
      <path value="MedicationStatement.dosage.rate[x]"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
    <element
             id="MedicationStatement:dafmedicationstatement.dosage.maxDosePerPeriod">
      <path value="MedicationStatement.dosage.maxDosePerPeriod"/>
      <min value="0"/>
      <max value="1"/>
      <mustSupport value="true"/>
      <isModifier value="false"/>
      <isSummary value="false"/>
    </element>
  </differential>
</StructureDefinition>