<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-action-RequestedContext-extension" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR RequestedContext Extension</b>
      </p>
      <p>An order for something to take place.</p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-RequestedContext-extension" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.action.RequestedContext" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR RequestedContext Extension" />
  <title value="SHR RequestedContext Extension" />
  <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 something to take place." />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="*" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension:requestedcontext">
      <path value="Extension" />
      <short value="SHR RequestedContext Extension" />
      <definition value="An order for something to take place." />
      <min value="0" />
      <max value="*" />
    </element>
    <element id="Extension:requestedcontext.extension:reason">
      <path value="Extension.extension" />
      <sliceName value="reason" />
      <definition value="The justification for an action or non-action, conclusion, opinion, etc." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Reason-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:status">
      <path value="Extension.extension" />
      <sliceName value="status" />
      <definition value="Position in workflow." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-Status-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:status.value[x]">
      <path value="Extension.extension.value[x]" />
      <binding>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/request-status" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Extension:requestedcontext.extension:requestintent">
      <path value="Extension.extension" />
      <sliceName value="requestintent" />
      <definition value="Indicates the level of authority/intentionality associated with the request and where the request fits into the workflow chain." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-RequestIntent-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:expectedperformancetime">
      <path value="Extension.extension" />
      <sliceName value="expectedperformancetime" />
      <definition value="When an action should be done. If the action is a series or recurs (e.g. daily blood sugar testing in the morning) then a Timing can be used to describe the periodicity." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-ExpectedPerformanceTime-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:expectedperformertype">
      <path value="Extension.extension" />
      <sliceName value="expectedperformertype" />
      <definition value="What type of party should carry out the testing." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-ExpectedPerformerType-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:expectedperformer">
      <path value="Extension.extension" />
      <sliceName value="expectedperformer" />
      <definition value="Who should carry out the tests. For example, the patient or caregiver." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-ExpectedPerformer-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:expectedmethod">
      <path value="Extension.extension" />
      <sliceName value="expectedmethod" />
      <definition value="The method that should be used to carry out the action." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-ExpectedMethod-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:priority">
      <path value="Extension.extension" />
      <sliceName value="priority" />
      <definition value="An indication of the importance of an action." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Priority-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:priority.value[x]">
      <path value="Extension.extension.value[x]" />
      <binding>
        <strength value="preferred" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/request-priority" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Extension:requestedcontext.extension:performerinstructions">
      <path value="Extension.extension" />
      <sliceName value="performerinstructions" />
      <definition value="Information for the performer of the test, if needed." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-PerformerInstructions-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:patientinstructions">
      <path value="Extension.extension" />
      <sliceName value="patientinstructions" />
      <definition value="Information for the patient, such as, where to get the test, how to prepare for the test, etc." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-PatientInstructions-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.extension:communicationmethod">
      <path value="Extension.extension" />
      <sliceName value="communicationmethod" />
      <definition value="This is the method the provider used to communicate. Examples include: Written, Telephoned, Verbal, Electronically Entered, Policy, Service Correction, Duplicate, etc. 'Code indicating the origin of the prescription.' - NCPDP Telecommunication (Field 419-DJ, Data Dictionary 201104). Possible values include: Written; Telephone; Electronic; Facsimile; Pharmacy; Not Known." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-CommunicationMethod-extension" />
      </type>
    </element>
    <element id="Extension:requestedcontext.url">
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-RequestedContext-extension" />
    </element>
    <element id="Extension:requestedcontext.value[x]">
      <path value="Extension.value[x]" />
      <min value="0" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>