<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="shr-encounter-Encounter" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>SHR Encounter Profile</b>
      </p>
      <p>A description of an interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient, independent of the context of requested, planned, performed, etc.</p>
      <p>
        <b>SHR Mapping Summary</b>
      </p>
      <p>
        <pre>shr.encounter.Encounter maps to Basic:
</pre>
      </p>
    </div>
  </text>
  <url value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-Encounter" />
  <identifier>
    <system value="http://standardhealthrecord.org" />
    <value value="shr.encounter.Encounter" />
  </identifier>
  <version value="0.0.1" />
  <name value="SHR Encounter 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 description of an interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient, independent of the context of requested, planned, performed, etc." />
  <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-encounter-Encounter">
      <path value="Basic" />
      <short value="SHR Encounter Profile" />
      <definition value="A description of an interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient, independent of the context of requested, planned, performed, etc." />
    </element>
    <element id="Basic:shr-encounter-Encounter.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-encounter-Encounter.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-encounter-Encounter.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-encounter-Encounter.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-encounter-Encounter.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-encounter-Encounter.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-encounter-Encounter.extension:subject">
      <path value="Basic.extension" />
      <sliceName value="subject" />
      <definition value="The person or thing that this entry relates to, usually the Person of Record. However, not all entries have health information specifically about the patient, but in different contexts, could refer to a fetus, family member (living or dead), device, location, organization, finding, condition, or intervention." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Subject-extension" />
      </type>
    </element>
    <element id="Basic:shr-encounter-Encounter.extension:referraldate">
      <path value="Basic.extension" />
      <sliceName value="referraldate" />
      <definition value="The date when the provider received a referral for service. A referral includes an oral, written, faxed or electronic request for services made by the client or on the client's behalf." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-ReferralDate-extension" />
      </type>
    </element>
    <element id="Basic:shr-encounter-Encounter.extension:referralsourcetype">
      <path value="Basic.extension" />
      <sliceName value="referralsourcetype" />
      <definition value="The type of person or entity that instigated the encounter." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-ReferralSourceType-extension" />
      </type>
    </element>
    <element id="Basic:shr-encounter-Encounter.extension:typeasacoding">
      <path value="Basic.extension" />
      <sliceName value="typeasacoding" />
      <definition value="SHR TypeAsaCoding Extension" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-TypeAsaCoding-extension" />
      </type>
    </element>
    <element id="Basic:shr-encounter-Encounter.extension:typeasacoding.valueCoding">
      <path value="Basic.extension.valueCoding" />
      <binding>
        <strength value="extensible" />
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-ActEncounterCode" />
        </valueSetReference>
      </binding>
    </element>
    <element id="Basic:shr-encounter-Encounter.extension:servicegiven">
      <path value="Basic.extension" />
      <sliceName value="servicegiven" />
      <definition value="Indicates a medical service provided." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-ServiceGiven-extension" />
      </type>
    </element>
    <element id="Basic:shr-encounter-Encounter.extension:serviceprovider">
      <path value="Basic.extension" />
      <sliceName value="serviceprovider" />
      <definition value="The organization that provided the services rendered during this encounter." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-ServiceProvider-extension" />
      </type>
    </element>
    <element id="Basic:shr-encounter-Encounter.extension:treatmentcooperation">
      <path value="Basic.extension" />
      <sliceName value="treatmentcooperation" />
      <definition value="Whether the patient is undergoing treatment voluntarily, or under a legal order." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-TreatmentCooperation-extension" />
      </type>
    </element>
    <element id="Basic:shr-encounter-Encounter.extension:paymentsource">
      <path value="Basic.extension" />
      <sliceName value="paymentsource" />
      <definition value="The source of payment for the current encounter." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://standardhealthrecord.org/fhir/StructureDefinition/shr-encounter-PaymentSource-extension" />
      </type>
    </element>
    <element id="Basic:shr-encounter-Encounter.code">
      <path value="Basic.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://standardhealthrecord.org/fhir/basic-resource-type" />
          <code value="shr-encounter-Encounter" />
        </coding>
      </patternCodeableConcept>
    </element>
  </differential>
</StructureDefinition>