{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.simplifier.net/VW-test/StructureDefinition/0584a1f7-f6c2-4c25-ae5e-afb7df4d047c",
  "name": "ImpiloLocation",
  "status": "draft",
  "date": "2022-07-28T19:21:55.6871678+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Location.identifier:DHIS2Id",
        "path": "Location.identifier",
        "sliceName": "DHIS2Id",
        "label": "DHIS2Id",
        "comment": "There is some discussion still re: whether identifiers are tied to entities (e.g., Organizations) or physical locations (e.g., Locations). Until then, both Resources can have DHIS2 identifiers and facility IDs",
        "max": "1"
      },
      {
        "id": "Location.identifier:DHIS2Id.system",
        "path": "Location.identifier.system",
        "fixedUri": "http://197.221.242.150/mohcc/DHIS2ID",
        "binding": {
          "strength": "required",
          "valueSet": "http://197.221.242.150/mohcc/DHIS2ID"
        }
      },
      {
        "id": "Location.identifier:DHIS2Id.value",
        "path": "Location.identifier.value",
        "short": "DHIS2-assigned code"
      },
      {
        "id": "Location.identifier:FacID",
        "path": "Location.identifier",
        "sliceName": "FacID",
        "label": "FacID",
        "comment": "Placeholder for a presumably national facility ID scheme",
        "max": "1"
      },
      {
        "id": "Location.identifier:FacID.system",
        "path": "Location.identifier.system",
        "binding": {
          "strength": "required",
          "valueSet": "http://197.221.242.150/mohcc/facID"
        }
      },
      {
        "id": "Location.status",
        "path": "Location.status",
        "min": 1
      },
      {
        "id": "Location.name",
        "path": "Location.name",
        "min": 1
      },
      {
        "id": "Location.address.district",
        "path": "Location.address.district",
        "min": 1
      },
      {
        "id": "Location.managingOrganization",
        "path": "Location.managingOrganization",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.simplifier.net/VW-test/StructureDefinition/475b046c-6330-442b-807e-c7a6de39cd2b"
            ]
          }
        ]
      },
      {
        "id": "Location.managingOrganization.reference",
        "path": "Location.managingOrganization.reference",
        "binding": {
          "strength": "preferred",
          "description": "Stub to Organization Resource, e.g., Organization/1"
        }
      },
      {
        "id": "Location.partOf",
        "path": "Location.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.simplifier.net/VW-test/StructureDefinition/0584a1f7-f6c2-4c25-ae5e-afb7df4d047c"
            ]
          }
        ]
      }
    ]
  }
}