<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="70d18821-9238-4ea0-bf2e-b1ac86909342" />
  <meta>
    <lastUpdated value="2021-09-28T08:35:47.012+00:00" />
  </meta>
  <url value="https://fhir.cambio.se/StructureDefinition/BasicUnitBedOverviewSe/v1" />
  <name value="BasicUnitBedOverviewSe" />
  <status value="draft" />
  <date value="2021-09-28T08:23:01.5389385Z" />
  <description value="The number of patients ready to be discharged." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Basic" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Basic" />
  <derivation value="constraint" />
  <differential>
    <element id="Basic.extension">
      <path value="Basic.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Basic.extension:numberOfPatients">
      <path value="Basic.extension" />
      <sliceName value="numberOfPatients" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-numberOfPatients/v1" />
      </type>
    </element>
    <element id="Basic.extension:freeBeds">
      <path value="Basic.extension" />
      <sliceName value="freeBeds" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-freeBeds/v1" />
      </type>
    </element>
    <element id="Basic.extension:prognosis">
      <path value="Basic.extension" />
      <sliceName value="prognosis" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-prognosis/v1" />
      </type>
    </element>
    <element id="Basic.extension:readyForDischarge">
      <path value="Basic.extension" />
      <sliceName value="readyForDischarge" />
      <definition value="The number of patients ready to be discharged." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-readyForDischarge/v1" />
      </type>
    </element>
    <element id="Basic.extension:availableBedsPeriod">
      <path value="Basic.extension" />
      <sliceName value="availableBedsPeriod" />
      <definition value="An available bed period is a cohesive time with a start-date-and-time and an end-date-and-time during which a specified number of available beds is defined. Different periods will not overlap, but gaps between periods can exist." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-availableBeds/v1" />
      </type>
    </element>
    <element id="Basic.extension:atTechnicalUnit">
      <path value="Basic.extension" />
      <sliceName value="atTechnicalUnit" />
      <definition value="The number of patients, currently at each technical unit." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-atTechnicalUnit/v1" />
      </type>
    </element>
    <element id="Basic.extension:bedSituationComment">
      <path value="Basic.extension" />
      <sliceName value="bedSituationComment" />
      <definition value="Latest created comment describing the current bed situation at the care unit." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-bedSituationComment/v1" />
      </type>
    </element>
    <element id="Basic.extension:contagionComment">
      <path value="Basic.extension" />
      <sliceName value="contagionComment" />
      <definition value="Latest created comment to raise awareness regarding any known contagions at the unit." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-contagionComment/v1" />
      </type>
    </element>
    <element id="Basic.extension:probableDischarge">
      <path value="Basic.extension" />
      <sliceName value="probableDischarge" />
      <definition value="The number of patients whom are currently likely to be discharged from the care unit." />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-probableDischarge/v1" />
      </type>
    </element>
    <element id="Basic.extension:absences">
      <path value="Basic.extension" />
      <sliceName value="absences" />
      <definition value="Statistics of the patients who are absent." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://example.org/fhir/StructureDefinition/bedOverview-absences/v1" />
      </type>
    </element>
    <element id="Basic.extension:outliers">
      <path value="Basic.extension" />
      <sliceName value="outliers" />
      <definition value="An outlier is a patient placed on ward that is not the serving unit of the medical responsible unit of the patient.&#xD;&#xA;A reason for outlying patients can be that the wards that serves a specific medical responsibility is full&#xD;&#xA;or crowded.E.g., A patient whose responsibility is with unit X is placed in ward Y. If ward Y is not a serving unit of unit X&#xD;&#xA;then;&#xD;&#xA;&#xD;&#xA;The patient is outlying from the unit X&#xD;&#xA;The patient is outlying to (inlier to) the ward Y." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-outliers/v1" />
      </type>
    </element>
    <element id="Basic.extension:transferable">
      <path value="Basic.extension" />
      <sliceName value="transferable" />
      <definition value="Statistics of the transferable patients." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/bedOverview-transferable/v1" />
      </type>
    </element>
    <element id="Basic.identifier">
      <path value="Basic.identifier" />
      <max value="0" />
    </element>
    <element id="Basic.code.coding">
      <path value="Basic.code.coding" />
      <max value="1" />
    </element>
    <element id="Basic.code.text">
      <path value="Basic.code.text" />
      <min value="1" />
      <fixedString value="Unit Bed Overview" />
    </element>
    <element id="Basic.subject">
      <path value="Basic.subject" />
      <definition value="The Unit that the Bed overview represent" />
      <min value="1" />
    </element>
    <element id="Basic.subject.identifier">
      <path value="Basic.subject.identifier" />
      <min value="1" />
    </element>
    <element id="Basic.subject.identifier.system">
      <path value="Basic.subject.identifier.system" />
      <definition value="The URN of the HSA-ID catalogue" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.752.129.2.1.4.1" />
    </element>
    <element id="Basic.subject.identifier.value">
      <path value="Basic.subject.identifier.value" />
      <min value="1" />
    </element>
    <element id="Basic.author">
      <path value="Basic.author" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>