<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-medication-MedicationNotUsed" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR MedicationNotUsed Profile</b>
      </p>
      <p>A record of a medication NOT used. Although usually not required, a medication not used is sometimes reported when deviating from normal expectation or care plan.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.medication.MedicationNotUsed maps to http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationstatement:
  Informant maps to informationSource
  Entry.CreationTime maps to dateAsserted
  MedicationOrCode maps to medication[x]
  Category maps to category
  fix taken to #n
  constrain dosage to 0..0
  NotPerformedContext.Reason maps to reasonNotTaken
  NotPerformedContext.OccurrenceTimeOrPeriod maps to effective[x]
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationNotUsed" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.medication.MedicationNotUsed" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR MedicationNotUsed 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 record of a medication NOT used. Although usually not required, a medication not used is sometimes reported when deviating from normal expectation or care plan." />
  <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="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/core/StructureDefinition/us-core-medicationstatement" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationStatement:shr-medication-MedicationNotUsed">
      <path value="MedicationStatement" />
      <short value="SHR MedicationNotUsed Profile" />
      <definition value="A record of a medication NOT used. Although usually not required, a medication not used is sometimes reported when deviating from normal expectation or care plan." />
      <mustSupport value="false" />
    </element>
    <element id="MedicationStatement:shr-medication-MedicationNotUsed.extension:relatedencounter">
      <path value="MedicationStatement.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="MedicationStatement:shr-medication-MedicationNotUsed.extension:author">
      <path value="MedicationStatement.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="MedicationStatement:shr-medication-MedicationNotUsed.extension:type">
      <path value="MedicationStatement.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="MedicationStatement:shr-medication-MedicationNotUsed.extension:notperformedcontext">
      <path value="MedicationStatement.extension" />
      <sliceName value="notperformedcontext" />
      <definition value="A record that a clinical act was not performed at a certain time or during a stated period of time, particularly when there might be an expectation of performing such an act, for example, if a vaccination is not given because of parental objection. Do not use this context if the act was initiated or started but aborted or cancelled." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-NotPerformedContext-extension" />
      </type>
    </element>
    <element id="MedicationStatement:shr-medication-MedicationNotUsed.extension:notperformedcontext.extension:reason">
      <path value="MedicationStatement.extension.extension" />
    </element>
    <element id="MedicationStatement:shr-medication-MedicationNotUsed.extension:notperformedcontext.extension:reason.extension:codeableconcept">
      <path value="MedicationStatement.extension.extension.extension" />
    </element>
    <element id="MedicationStatement:shr-medication-MedicationNotUsed.extension:notperformedcontext.extension:reason.extension:codeableconcept.valueCodeableConcept">
      <path value="MedicationStatement.extension.extension.extension.valueCodeableConcept" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/medication/vs/MedicationNotUsedReasonVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="MedicationStatement:shr-medication-MedicationNotUsed.medication[x]">
      <path value="MedicationStatement.medication[x]" />
      <slicing id="236">
        <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="MedicationStatement:shr-medication-MedicationNotUsed.medicationCodeableConcept:CodeableConcept">
      <path value="MedicationStatement.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="MedicationStatement:shr-medication-MedicationNotUsed.informationSource">
      <path value="MedicationStatement.informationSource" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-RelatedPerson" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Organization" />
      </type>
    </element>
    <element id="MedicationStatement:shr-medication-MedicationNotUsed.taken">
      <path value="MedicationStatement.taken" />
      <fixedCode value="n" />
    </element>
    <element id="MedicationStatement:shr-medication-MedicationNotUsed.reasonNotTaken">
      <path value="MedicationStatement.reasonNotTaken" />
      <binding>
        <strength value="required" />
        <valueSetReference>
          <reference value="http://standardhealthrecord.org/shr/medication/vs/MedicationNotUsedReasonVS" />
        </valueSetReference>
      </binding>
    </element>
    <element id="MedicationStatement:shr-medication-MedicationNotUsed.dosage">
      <path value="MedicationStatement.dosage" />
      <min value="0" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>