<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="0cb612e3-ae20-4816-b16d-f1c228bb986a" />
  <meta>
    <lastUpdated value="2020-09-10T12:53:16.255+00:00" />
  </meta>
  <url value="https://fhir.cambio.se/StructureDefinition/LocationUnitCoreSe/v1" />
  <name value="LocationUnitCoreSe" />
  <status value="draft" />
  <date value="2020-04-15T10:43:43.2364925+00:00" />
  <description value="A profile for Locations where each location is some type of &quot;unit&quot;, it could be an OP unit, IP ward, hospital or similar. &#xD;&#xA;&#xD;&#xA;Use other Location profiles for other location types such as Beds.&#xD;&#xA;&#xD;&#xA;This is a Core profile, hence is open in its profiling. Consider using more specific profiles derived from this one." />
  <fhirVersion value="4.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/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Location" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Location" />
  <derivation value="constraint" />
  <snapshot />
  <differential>
    <element id="Location.extension">
      <path value="Location.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Location.extension:hsaHierarchy">
      <path value="Location.extension" />
      <sliceName value="hsaHierarchy" />
      <short value="HSA Hierarchy" />
      <definition value="The HSA Care Provider (managing Organization) and the HSA Department according to the Swedish HSA catalogue" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.cambio.se/StructureDefinition/common-hsaHierarchy/v1" />
      </type>
    </element>
    <element id="Location.identifier">
      <path value="Location.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Location.identifier:hsaId">
      <path value="Location.identifier" />
      <sliceName value="hsaId" />
      <max value="1" />
    </element>
    <element id="Location.identifier:hsaId.use">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.identifier.use" />
      <fixedCode value="official" />
    </element>
    <element id="Location.identifier:hsaId.system">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.identifier.system" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.752.129.2.1.4.1" />
    </element>
    <element id="Location.identifier:hsaId.value">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.identifier.value" />
      <min value="1" />
    </element>
    <element id="Location.status">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.status" />
      <comment value="Only active and inactive are supported" />
    </element>
    <element id="Location.operationalStatus">
      <path value="Location.operationalStatus" />
      <max value="0" />
    </element>
    <element id="Location.alias">
      <path value="Location.alias" />
      <max value="1" />
    </element>
    <element id="Location.mode">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.mode" />
      <comment value="For this profile, only instance is applicable" />
      <fixedCode value="instance" />
    </element>
    <element id="Location.type.coding">
      <path value="Location.type.coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Location.type.coding:v3RoleCode">
      <path value="Location.type.coding" />
      <sliceName value="v3RoleCode" />
      <comment value="Any number of types are supported, but each type must provide a code from the http://terminology.hl7.org/CodeSystem/v3-RoleCode system." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Location.type.coding:v3RoleCode.system">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v3-RoleCode" />
    </element>
    <element id="Location.type.coding:v3RoleCode.code">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.type.coding.code" />
      <min value="1" />
    </element>
    <element id="Location.telecom.use">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.telecom.use" />
      <comment value="Not supported as not applicable for Location" />
      <max value="0" />
    </element>
    <element id="Location.telecom.rank">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.telecom.rank" />
      <comment value="Not supported as not applicable for Location" />
      <max value="0" />
    </element>
    <element id="Location.telecom.period">
      <path value="Location.telecom.period" />
      <comment value="Not supported as not applicable for Location&#xA;&#xA;Period is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration)." />
      <max value="0" />
    </element>
    <element id="Location.address.use">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.address.use" />
      <comment value="Not supported as not applicable for Location" />
      <max value="0" />
    </element>
    <element id="Location.address.period">
      <path value="Location.address.period" />
      <max value="0" />
    </element>
    <element id="Location.physicalType">
      <path value="Location.physicalType" />
      <comment value="Not currently supported, left for future use" />
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <comment value="In a Swedish context, this will be the HSA Care Provider (e.g. the Region, or a private healthcare provider)" />
    </element>
    <element id="Location.managingOrganization.identifier.system">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.managingOrganization.identifier.system" />
      <comment value="In as Swedish context this should be a HSA using the OID 1.2.752.129.2.1.4.1" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.752.129.2.1.4.1" />
    </element>
    <element id="Location.managingOrganization.identifier.value">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.managingOrganization.identifier.value" />
      <min value="1" />
    </element>
    <element id="Location.managingOrganization.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.managingOrganization.display" />
      <comment value="This is the name of the managing organization" />
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <comment value="This is the parent unit in COSMIC" />
    </element>
    <element id="Location.partOf.identifier.system">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.partOf.identifier.system" />
      <comment value="In a Swedish context this is always a HSA id using OID 1.2.752.129.2.1.4.1" />
      <min value="1" />
      <fixedUri value="urn:oid:1.2.752.129.2.1.4.1" />
    </element>
    <element id="Location.partOf.identifier.value">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.partOf.identifier.value" />
      <min value="1" />
    </element>
    <element id="Location.partOf.display">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.partOf.display" />
      <comment value="Name of the unit" />
    </element>
  </differential>
</StructureDefinition>