<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-medication-MedicationRequested" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR MedicationRequested Profile</b>
      </p>
      <p>An order for a medication to be dispensed and instructions for use.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.medication.MedicationRequested maps to http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest:
  MedicationOrCode maps to medication[x]
  RequestedContext.Reason maps to reasonCode
  RequestedContext.Status maps to status
  RequestedContext.ExpectedPerformanceTime maps to dispenseRequest.validityPeriod
  RequestedContext.Priority maps to priority
  RequestedContext.PerformerInstructions maps to note.text
  RequestedContext.ExpectedPerformer.Organization maps to dispenseRequest.performer
  constrain note to 0..1
  NumberOfRefillsAllowed maps to dispenseRequest.numberOfRepeatsAllowed
  QuantityPerDispense maps to dispenseRequest.quantity
  SupplyDuration maps to dispenseRequest.expectedSupplyDuration
  constrain dosageInstruction to 0..1
  Dosage maps to dosageInstruction
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationRequested" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.medication.MedicationRequested" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR MedicationRequested 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="An order for a medication to be dispensed and instructions for use." />
  <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="workflow" />
    <uri value="http://hl7.org/fhir/workflow" />
    <name value="Workflow Mapping" />
  </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="MedicationRequest" />
  <baseDefinition value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationrequest" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationRequest:shr-medication-MedicationRequested">
      <path value="MedicationRequest" />
      <short value="SHR MedicationRequested Profile" />
      <definition value="An order for a medication to be dispensed and instructions for use." />
      <mustSupport value="false" />
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.extension:relatedencounter">
      <path value="MedicationRequest.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="MedicationRequest:shr-medication-MedicationRequested.extension:author">
      <path value="MedicationRequest.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="MedicationRequest:shr-medication-MedicationRequested.extension:informant">
      <path value="MedicationRequest.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="MedicationRequest:shr-medication-MedicationRequested.extension:type">
      <path value="MedicationRequest.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="MedicationRequest:shr-medication-MedicationRequested.extension:category">
      <path value="MedicationRequest.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="MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext">
      <path value="MedicationRequest.extension" />
      <sliceName value="requestedcontext" />
      <definition value="An order for something to take place." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-RequestedContext-extension" />
      </type>
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext.extension:status">
      <path value="MedicationRequest.extension.extension" />
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext.extension:status.value[x]">
      <path value="MedicationRequest.extension.extension.value[x]" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/medication-request-status" />
        </valueSetReference>
      </binding>
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext.extension:priority">
      <path value="MedicationRequest.extension.extension" />
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.extension:requestedcontext.extension:priority.value[x]">
      <path value="MedicationRequest.extension.extension.value[x]" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/medication-request-priority" />
        </valueSetReference>
      </binding>
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.medication[x]">
      <path value="MedicationRequest.medication[x]" />
      <slicing id="66">
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Medication" />
      </type>
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.medicationCodeableConcept:CodeableConcept">
      <path value="MedicationRequest.medicationCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/us/core/ValueSet/us-core-medication-codes" />
        </valueSetReference>
      </binding>
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.note">
      <path value="MedicationRequest.note" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.dosageInstruction">
      <path value="MedicationRequest.dosageInstruction" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Dosage" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-Dosage" />
      </type>
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.dispenseRequest">
      <path value="MedicationRequest.dispenseRequest" />
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.dispenseRequest.quantity">
      <path value="MedicationRequest.dispenseRequest.quantity" />
      <type>
        <code value="Quantity" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Quantity" />
      </type>
    </element>
    <element id="MedicationRequest:shr-medication-MedicationRequested.dispenseRequest.expectedSupplyDuration">
      <path value="MedicationRequest.dispenseRequest.expectedSupplyDuration" />
      <type>
        <code value="Duration" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Duration" />
      </type>
    </element>
  </differential>
</StructureDefinition>