<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-medication-Dosage" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR Dosage Profile</b>
      </p>
      <p>The dosage of the medication, prescribed or taken.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.medication.Dosage maps to Dosage:
  DoseAmount maps to dose[x]
  TimingOfDoses maps to timing
  AsNeededIndicator maps to asNeeded[x]
  DoseInstructionsText maps to text
  AdditionalDoseInstruction maps to additionalInstruction
  RouteIntoBody maps to route
  AdministrationMethod maps to method
  AdministrationBodySite maps to site
  MaximumDosePerTimePeriod maps to maxDosePerPeriod
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-Dosage" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.medication.Dosage" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR Dosage 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="The dosage of the medication, prescribed or taken." />
  <fhirVersion value="3.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Dosage" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Dosage" />
  <derivation value="constraint" />
  <differential>
    <element id="Dosage:shr-medication-Dosage">
      <path value="Dosage" />
      <short value="SHR Dosage Profile" />
      <definition value="The dosage of the medication, prescribed or taken." />
    </element>
    <element id="Dosage:shr-medication-Dosage.additionalInstruction">
      <path value="Dosage.additionalInstruction" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AdditionalInstruction" />
        </extension>
        <strength value="required" />
        <description value="A coded concept identifying additional instructions such as &quot;take with water&quot; or &quot;avoid operating heavy machinery&quot;." />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/additional-instruction-codes" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Dosage:shr-medication-Dosage.timing">
      <path value="Dosage.timing" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Timing" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Timing" />
      </type>
    </element>
    <element id="Dosage:shr-medication-Dosage.asNeeded[x]">
      <path value="Dosage.asNeeded[x]" />
      <slicing id="65">
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Dosage:shr-medication-Dosage.asNeededCodeableConcept:CodeableConcept">
      <path value="Dosage.asNeededCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="example" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/medication-as-needed-reason" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Dosage:shr-medication-Dosage.site">
      <path value="Dosage.site" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/core/vs/BodySiteVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Dosage:shr-medication-Dosage.route">
      <path value="Dosage.route" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RouteOfAdministration" />
        </extension>
        <strength value="required" />
        <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>
    </element>
    <element id="Dosage:shr-medication-Dosage.method">
      <path value="Dosage.method" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MedicationAdministrationMethod" />
        </extension>
        <strength value="required" />
        <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>
    </element>
    <element id="Dosage:shr-medication-Dosage.dose[x]">
      <path value="Dosage.dose[x]" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Range" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Range" />
      </type>
      <type>
        <code value="Quantity" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-SimpleQuantity" />
      </type>
    </element>
    <element id="Dosage:shr-medication-Dosage.maxDosePerPeriod">
      <path value="Dosage.maxDosePerPeriod" />
      <type>
        <code value="Ratio" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Ratio" />
      </type>
    </element>
  </differential>
</StructureDefinition>