{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.synapxe.sg/StructureDefinition/profile-location",
  "name": "Location",
  "status": "active",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Location.contained",
        "path": "Location.contained",
        "max": "1"
      },
      {
        "id": "Location.extension",
        "path": "Location.extension",
        "max": "0"
      },
      {
        "id": "Location.modifierExtension",
        "path": "Location.modifierExtension",
        "max": "0"
      },
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "max": "0"
      },
      {
        "id": "Location.identifier.id",
        "path": "Location.identifier.id",
        "max": "0"
      },
      {
        "id": "Location.identifier.extension",
        "path": "Location.identifier.extension",
        "max": "0"
      },
      {
        "id": "Location.identifier.use",
        "path": "Location.identifier.use",
        "max": "0"
      },
      {
        "id": "Location.identifier.type",
        "path": "Location.identifier.type",
        "max": "0"
      },
      {
        "id": "Location.identifier.system",
        "path": "Location.identifier.system",
        "min": 1
      },
      {
        "id": "Location.identifier.value",
        "path": "Location.identifier.value",
        "min": 1
      },
      {
        "id": "Location.identifier.period",
        "path": "Location.identifier.period",
        "max": "0"
      },
      {
        "id": "Location.identifier.assigner",
        "path": "Location.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Location.status",
        "path": "Location.status",
        "max": "0"
      },
      {
        "id": "Location.operationalStatus",
        "path": "Location.operationalStatus",
        "max": "0"
      },
      {
        "id": "Location.alias",
        "path": "Location.alias",
        "max": "0"
      },
      {
        "id": "Location.description",
        "path": "Location.description",
        "max": "0"
      },
      {
        "id": "Location.mode",
        "path": "Location.mode",
        "max": "0"
      },
      {
        "id": "Location.type",
        "path": "Location.type",
        "max": "0"
      },
      {
        "id": "Location.type.id",
        "path": "Location.type.id",
        "max": "0"
      },
      {
        "id": "Location.type.extension",
        "path": "Location.type.extension",
        "max": "0"
      },
      {
        "id": "Location.type.coding",
        "path": "Location.type.coding",
        "min": 1
      },
      {
        "id": "Location.type.coding.id",
        "path": "Location.type.coding.id",
        "max": "0"
      },
      {
        "id": "Location.type.coding.extension",
        "path": "Location.type.coding.extension",
        "max": "0"
      },
      {
        "id": "Location.type.coding.system",
        "path": "Location.type.coding.system",
        "min": 1,
        "patternUri": "https://fhir.synapxe.sg/CodeSystem/location-type"
      },
      {
        "id": "Location.type.coding.version",
        "path": "Location.type.coding.version",
        "max": "0"
      },
      {
        "id": "Location.type.coding.code",
        "path": "Location.type.coding.code",
        "min": 1
      },
      {
        "id": "Location.type.coding.display",
        "path": "Location.type.coding.display",
        "min": 1
      },
      {
        "id": "Location.type.coding.userSelected",
        "path": "Location.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Location.type.text",
        "path": "Location.type.text",
        "max": "0"
      },
      {
        "id": "Location.contact",
        "path": "Location.contact",
        "max": "0"
      },
      {
        "id": "Location.contact.organization",
        "path": "Location.contact.organization",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-organization"
            ]
          }
        ]
      },
      {
        "id": "Location.address",
        "path": "Location.address",
        "max": "0"
      },
      {
        "id": "Location.form",
        "path": "Location.form",
        "max": "0"
      },
      {
        "id": "Location.position",
        "path": "Location.position",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization",
        "path": "Location.managingOrganization",
        "short": "A reference from one resource to another",
        "definition": "A reference from one resource to another.",
        "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolvable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-reference-organization"
            ],
            "targetProfile": [
              "https://fhir.synapxe.sg/StructureDefinition/profile-organization"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Location.managingOrganization.display",
        "path": "Location.managingOrganization.display",
        "max": "0"
      },
      {
        "id": "Location.partOf",
        "path": "Location.partOf",
        "max": "0"
      },
      {
        "id": "Location.characteristic",
        "path": "Location.characteristic",
        "max": "0"
      },
      {
        "id": "Location.hoursOfOperation",
        "path": "Location.hoursOfOperation",
        "max": "0"
      },
      {
        "id": "Location.virtualService",
        "path": "Location.virtualService",
        "max": "0"
      },
      {
        "id": "Location.endpoint",
        "path": "Location.endpoint",
        "max": "0"
      }
    ]
  }
}