<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-medication-MedicationDispenseAction" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR MedicationDispenseAction Profile</b>
      </p>
      <p>The action of ordering and deliving a medication to the party responsible for administering the medication.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.medication.MedicationDispenseAction maps to Basic:
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationDispenseAction" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.medication.MedicationDispenseAction" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR MedicationDispenseAction 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 action of ordering and deliving a medication to the party responsible for administering the medication." />
  <purpose value="Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources." />
  <fhirVersion value="3.0.1" />
  <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>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Basic" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Basic" />
  <derivation value="constraint" />
  <differential>
    <element id="Basic:shr-medication-MedicationDispenseAction">
      <path value="Basic" />
      <short value="SHR MedicationDispenseAction Profile" />
      <definition value="The action of ordering and deliving a medication to the party responsible for administering the medication." />
    </element>
    <element id="Basic:shr-medication-MedicationDispenseAction.extension:relatedencounter">
      <path value="Basic.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="Basic:shr-medication-MedicationDispenseAction.extension:author">
      <path value="Basic.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="Basic:shr-medication-MedicationDispenseAction.extension:informant">
      <path value="Basic.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="Basic:shr-medication-MedicationDispenseAction.extension:type">
      <path value="Basic.extension" />
      <sliceName value="type" />
      <definition value="The most specific code (lowest level term) describing the kind or sort of thing being represented." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Type-extension" />
      </type>
    </element>
    <element id="Basic:shr-medication-MedicationDispenseAction.extension:category">
      <path value="Basic.extension" />
      <sliceName value="category" />
      <definition value="A class or division of people or things having particular shared characteristics" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Category-extension" />
      </type>
    </element>
    <element id="Basic:shr-medication-MedicationDispenseAction.extension:actioncontext">
      <path value="Basic.extension" />
      <sliceName value="actioncontext" />
      <definition value="The ontological status of the intervention, e.g., performed/not performed, requested/not requested." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-ActionContext-extension" />
      </type>
    </element>
    <element id="Basic:shr-medication-MedicationDispenseAction.extension:medicationorcode">
      <path value="Basic.extension" />
      <sliceName value="medicationorcode" />
      <definition value="A medication entity or a medication code." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-MedicationOrCode-extension" />
      </type>
    </element>
    <element id="Basic:shr-medication-MedicationDispenseAction.extension:dosage">
      <path value="Basic.extension" />
      <sliceName value="dosage" />
      <definition value="The dosage of the medication, prescribed or taken." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-Dosage-extension" />
      </type>
    </element>
    <element id="Basic:shr-medication-MedicationDispenseAction.extension:numberofrefillsallowed">
      <path value="Basic.extension" />
      <sliceName value="numberofrefillsallowed" />
      <definition value="The maximum number of times the dispense can be repeated. For medication dispense, this integer does NOT include the original order dispense. This means that if an order indicates dispense 30 tablets plus 3 repeats, then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-NumberOfRefillsAllowed-extension" />
      </type>
    </element>
    <element id="Basic:shr-medication-MedicationDispenseAction.extension:quantityperdispense">
      <path value="Basic.extension" />
      <sliceName value="quantityperdispense" />
      <definition value="The amount that is to be dispensed for one fill." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-QuantityPerDispense-extension" />
      </type>
    </element>
    <element id="Basic:shr-medication-MedicationDispenseAction.extension:supplyduration">
      <path value="Basic.extension" />
      <sliceName value="supplyduration" />
      <definition value="Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-SupplyDuration-extension" />
      </type>
    </element>
    <element id="Basic:shr-medication-MedicationDispenseAction.code">
      <path value="Basic.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://standardhealthrecord.org/fhir/basic-resource-type" />
          <code value="shr-medication-MedicationDispenseAction" />
        </coding>
      </patternCodeableConcept>
    </element>
  </differential>
</StructureDefinition>