<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter-ForADT-Child" />
  <name value="Encounter-ForADT-Child" />
  <status value="active" />
  <description value="Dedalus API Framework core profile for Encounter-Child for ADT transactions" />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Encounter" />
  <baseDefinition value="http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter" />
  <derivation value="constraint" />
  <differential>
    <element id="Encounter.meta">
      <path value="Encounter.meta" />
      <min value="1" />
    </element>
    <element id="Encounter.status">
      <path value="Encounter.status" />
      <short value="in-progress | finished | cancelled" />
      <definition value="in-progress | finished | cancelled." />
    </element>
    <element id="Encounter.class">
      <path value="Encounter.class" />
      <short value="inpatient | short stay" />
      <definition value="inpatient | short stay" />
      <comment value="Use code: &quot;IMP&quot;, display: &quot;inpatient&quot; for inpatient admissions, code: &quot;SS&quot;, display: &quot;short stay&quot; for outpatient admissions" />
      <min value="1" />
    </element>
    <element id="Encounter.class.code">
      <path value="Encounter.class.code" />
      <min value="1" />
    </element>
    <element id="Encounter.type">
      <path value="Encounter.type" />
      <min value="1" />
      <max value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="http://apiframework.dedalus.eu/fhir/CodeSystem/EncounterType" />
          <code value="CH" />
          <display value="Encounter CHILD" />
        </coding>
        <text value="CHILD" />
      </fixedCodeableConcept>
    </element>
    <element id="Encounter.subject">
      <path value="Encounter.subject" />
      <short value="The patient or group present at the encounter" />
      <definition value="The patient or group present at the encounter." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
      </type>
    </element>
    <element id="Encounter.participant.type">
      <path value="Encounter.participant.type" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Encounter.period">
      <path value="Encounter.period" />
      <min value="1" />
    </element>
    <element id="Encounter.period.start">
      <path value="Encounter.period.start" />
      <min value="1" />
    </element>
    <element id="Encounter.location">
      <path value="Encounter.location" />
      <mustSupport value="true" />
    </element>
    <element id="Encounter.location.location">
      <path value="Encounter.location.location" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://apiframework.dedalus.eu/fhir/StructureDefinition/Location" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Encounter.serviceProvider">
      <path value="Encounter.serviceProvider" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://apiframework.dedalus.eu/fhir/StructureDefinition/Organization" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Encounter.partOf">
      <path value="Encounter.partOf" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter-ForADT-Master" />
        <aggregation value="referenced" />
        <aggregation value="contained" />
        <aggregation value="bundled" />
      </type>
    </element>
  </differential>
</StructureDefinition>