<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-entity-Medication" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR Medication Profile</b>
      </p>
      <p>A type of prescription drug or over-the-counter drug that is used to prevent, treat, or relieve symptoms of a disease or abnormal condition, but excluding vaccines.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.entity.Medication maps to http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication:
  Type maps to code
  DoseForm maps to form
  MedicationIngredient.CodeableConcept maps to ingredient.item[x]
  MedicationIngredient.Substance maps to ingredient.item[x]
  MedicationIngredient.Medication maps to ingredient.item[x]
  MedicationIngredient.IngredientAmount maps to ingredient.amount
  MedicationIngredient.IsActiveIngredient maps to ingredient.isActive
  Brand maps to isBrand
  OverTheCounter maps to isOverTheCounter
  Manufacturer maps to manufacturer
  constrain package.batch to 0..1
  LotNumber maps to package.batch.lotNumber
  ExpirationDate maps to package.batch.expirationDate
  Package maps to package.container
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Medication" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.entity.Medication" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR Medication Profile" />
  <status value="draft" />
  <date value="2017-12-20" />
  <publisher value="The MITRE Corporation: Standard Health Record Collaborative" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://standardhealthrecord.org" />
    </telecom>
  </contact>
  <description value="A type of prescription drug or over-the-counter drug that is used to prevent, treat, or relieve symptoms of a disease or abnormal condition, but excluding vaccines." />
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166" />
      <code value="US" />
      <display value="United States Minor Outlying Islands (the)" />
    </coding>
  </jurisdiction>
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="argonaut-dq-dstu2" />
    <uri value="http://unknown.org/Argonaut DQ DSTU2" />
    <name value="Argonaut DQ DSTU2" />
  </mapping>
  <mapping>
    <identity value="script10.6" />
    <uri value="http://ncpdp.org/SCRIPT10_6" />
    <name value="Mapping to NCPDP SCRIPT 10.6" />
  </mapping>
  <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="Medication" />
  <baseDefinition value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-medication" />
  <derivation value="constraint" />
  <differential>
    <element id="Medication:shr-entity-Medication">
      <path value="Medication" />
      <short value="SHR Medication Profile" />
      <definition value="A type of prescription drug or over-the-counter drug that is used to prevent, treat, or relieve symptoms of a disease or abnormal condition, but excluding vaccines." />
      <mustSupport value="false" />
    </element>
    <element id="Medication:shr-entity-Medication.extension:relatedencounter">
      <path value="Medication.extension" />
      <sliceName value="relatedencounter" />
      <definition value="If content was generated during a patient encounter, related encounter is the encounter where the information was gained." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension" />
      </type>
    </element>
    <element id="Medication:shr-entity-Medication.extension:author">
      <path value="Medication.extension" />
      <sliceName value="author" />
      <definition value="The person or organization who created the entry and is responsible for (and may certify) the content." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension" />
      </type>
    </element>
    <element id="Medication:shr-entity-Medication.extension:informant">
      <path value="Medication.extension" />
      <sliceName value="informant" />
      <definition value="The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension" />
      </type>
    </element>
    <element id="Medication:shr-entity-Medication.manufacturer">
      <path value="Medication.manufacturer" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Organization" />
      </type>
    </element>
    <element id="Medication:shr-entity-Medication.form">
      <path value="Medication.form" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MedicationForm" />
        </extension>
        <strength value="required" />
        <description value="A coded concept defining the form of a medication" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/medication-form-codes" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Medication:shr-entity-Medication.ingredient">
      <path value="Medication.ingredient" />
    </element>
    <element id="Medication:shr-entity-Medication.ingredient.item[x]">
      <path value="Medication.ingredient.item[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Substance" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Medication" />
      </type>
    </element>
    <element id="Medication:shr-entity-Medication.ingredient.amount">
      <path value="Medication.ingredient.amount" />
      <type>
        <code value="Ratio" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Ratio" />
      </type>
    </element>
    <element id="Medication:shr-entity-Medication.package">
      <path value="Medication.package" />
    </element>
    <element id="Medication:shr-entity-Medication.package.batch">
      <path value="Medication.package.batch" />
      <min value="0" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>