<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Location-id-core" />
  <meta>
    <versionId value="3" />
    <lastUpdated value="2023-07-21T08:21:07.0876219+00:00" />
    <source value="#pgO8Yg0JoIx3b2ci" />
  </meta>
  <url value="http://fhir.hie.moh.gov.id/StructureDefinition/Location-id-core" />
  <version value="1.0.0" />
  <name value="LocationIdCore" />
  <title value="Location (ID Core)" />
  <status value="active" />
  <experimental value="false" />
  <date value="2023-12-11T09:25:44.9288138+00:00" />
  <description value="Defines basic constraints and extensions on the Location resource for use with other ID Core resources" />
  <copyright value="Used by permission of HL7 International, all rights reserved Creative Commons License" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Location" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Location" />
  <derivation value="constraint" />
  <differential>
    <element id="Location.extension">
      <path value="Location.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Location.extension:audit">
      <path value="Location.extension" />
      <sliceName value="audit" />
      <short value="Record audit on individual who recorded and updated the data" />
      <definition value="Record audit on individual who recorded and updated the data" />
      <comment value="Record audit on individual who recorded and updated the data" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://fhir.hie.moh.gov.id/StructureDefinition/audit-id-core" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Location.extension:serviceClass">
      <path value="Location.extension" />
      <sliceName value="serviceClass" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="https://example.org/fhir/StructureDefinition/service-class-id-core" />
      </type>
      <isModifier value="false" />
    </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:locationId">
      <path value="Location.identifier" />
      <sliceName value="locationId" />
    </element>
    <element id="Location.identifier:locationId.system">
      <path value="Location.identifier.system" />
      <min value="1" />
      <fixedUri value="http://fhir.hie.moh.gov.id/sid/location-id" />
    </element>
    <element id="Location.identifier:locationId.value">
      <path value="Location.identifier.value" />
      <min value="1" />
    </element>
    <element id="Location.identifier:masterId">
      <path value="Location.identifier" />
      <sliceName value="masterId" />
      <max value="1" />
    </element>
    <element id="Location.identifier:masterId.system">
      <path value="Location.identifier.system" />
      <min value="1" />
      <fixedUri value="http://fhir.hie.moh.gov.id/sid/master-id" />
    </element>
    <element id="Location.identifier:masterId.value">
      <path value="Location.identifier.value" />
      <min value="1" />
    </element>
    <element id="Location.status">
      <path value="Location.status" />
      <min value="1" />
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <min value="1" />
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://fhir.hie.moh.gov.id/ValueSet/location-type-id-core" />
      </binding>
    </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:encounterClass">
      <path value="Location.type.coding" />
      <sliceName value="encounterClass" />
      <binding>
        <strength value="example" />
        <valueSet value="http://fhir.hie.moh.gov.id/ValueSet/encounter-class-id-core" />
      </binding>
    </element>
    <element id="Location.type.coding:encounterClass.system">
      <path value="Location.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://fhir.hie.moh.gov.id/CodeSystem/encounter-class-id-core" />
    </element>
    <element id="Location.type.coding:wardClass">
      <path value="Location.type.coding" />
      <sliceName value="wardClass" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://fhir.hie.moh.gov.id/ValueSet/ward-class-id-core" />
      </binding>
    </element>
    <element id="Location.type.coding:wardClass.system">
      <path value="Location.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://fhir.hie.moh.gov.id/CodeSystem/ward-class-id-core" />
    </element>
    <element id="Location.type.coding:wardCategory">
      <path value="Location.type.coding" />
      <sliceName value="wardCategory" />
      <binding>
        <strength value="example" />
        <valueSet value="http://fhir.hie.moh.gov.id/ValueSet/ward-category-id-core" />
      </binding>
    </element>
    <element id="Location.type.coding:wardCategory.system">
      <path value="Location.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://fhir.hie.moh.gov.id/CodeSystem/ward-category-id-core" />
    </element>
    <element id="Location.type.coding:wardSpecialty">
      <path value="Location.type.coding" />
      <sliceName value="wardSpecialty" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://fhir.hie.moh.gov.id/ValueSet/ward-specialty-id-core" />
      </binding>
    </element>
    <element id="Location.type.coding:wardSpecialty.system">
      <path value="Location.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://fhir.hie.moh.gov.id/CodeSystem/ward-specialty-id-core" />
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <type>
        <code value="Address" />
        <profile value="http://fhir.hie.moh.gov.id/StructureDefinition/Address-id-core" />
      </type>
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>