{
  "resourceType": "StructureDefinition",
  "id": "4355d114-32dd-420e-8eae-65d864d90ecc",
  "meta": {
    "versionId": "6",
    "lastUpdated": "2022-05-05T19:43:42.5952749+00:00"
  },
  "url": "http://ehealth.bc.ca/fhir/StructureDefinition/IMMSLocation",
  "name": "IMMSLocation",
  "status": "draft",
  "date": "2022-03-09T22:18:16.0791149+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.id",
        "path": "Location.id",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "source-eForm-sdl-dropdownlist",
            "map": "(SDL_ID)+\"org\"+(BRANCH_ID)"
          }
        ]
      },
      {
        "id": "Location.meta",
        "path": "Location.meta",
        "min": 1
      },
      {
        "id": "Location.meta.id",
        "path": "Location.meta.id",
        "max": "0"
      },
      {
        "id": "Location.meta.versionId",
        "path": "Location.meta.versionId",
        "fixedId": "2022.01"
      },
      {
        "id": "Location.meta.lastUpdated",
        "path": "Location.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Location.meta.source",
        "path": "Location.meta.source",
        "max": "0"
      },
      {
        "id": "Location.meta.profile",
        "path": "Location.meta.profile",
        "comment": "Apply \"http://ehealth.bc.ca/fhir/StructureDefinition/IMMSLocation\"",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Location.meta.security",
        "path": "Location.meta.security",
        "max": "0"
      },
      {
        "id": "Location.meta.tag",
        "path": "Location.meta.tag",
        "max": "0"
      },
      {
        "id": "Location.implicitRules",
        "path": "Location.implicitRules",
        "max": "0"
      },
      {
        "id": "Location.language",
        "path": "Location.language",
        "max": "0"
      },
      {
        "id": "Location.text",
        "path": "Location.text",
        "max": "0"
      },
      {
        "id": "Location.contained",
        "path": "Location.contained",
        "max": "0"
      },
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Location.identifier.id",
        "path": "Location.identifier.id",
        "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",
        "comment": "Use \"https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-panorama-service-delivery-location-id\"",
        "min": 1
      },
      {
        "id": "Location.identifier.value",
        "path": "Location.identifier.value",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "sdl-dropdownlist",
            "map": "(SDL_ID), serviceDeliveryLocation from eForm"
          }
        ]
      },
      {
        "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.name",
        "path": "Location.name",
        "comment": "See Mappings",
        "mapping": [
          {
            "identity": "sdl-dropdownlist",
            "map": "(IMMUNIZATION_ORGANIZATION_BRANCH_OFFICE)"
          }
        ]
      },
      {
        "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.telecom",
        "path": "Location.telecom",
        "max": "0"
      },
      {
        "id": "Location.address",
        "path": "Location.address",
        "max": "0"
      },
      {
        "id": "Location.physicalType",
        "path": "Location.physicalType",
        "max": "0"
      },
      {
        "id": "Location.position",
        "path": "Location.position",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.id",
        "path": "Location.managingOrganization.id",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.reference",
        "path": "Location.managingOrganization.reference",
        "comment": "See Mappings",
        "max": "0",
        "mapping": [
          {
            "identity": "source-eForm-sdl-dropdownlist",
            "map": "fullURL+\"Organization/\"+(BRANCH_ID)",
            "comment": "http://ehealth.bc.ca/eForm/fhir/"
          }
        ]
      },
      {
        "id": "Location.managingOrganization.type",
        "path": "Location.managingOrganization.type",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.identifier",
        "path": "Location.managingOrganization.identifier",
        "min": 1
      },
      {
        "id": "Location.managingOrganization.identifier.id",
        "path": "Location.managingOrganization.identifier.id",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.identifier.use",
        "path": "Location.managingOrganization.identifier.use",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.identifier.type",
        "path": "Location.managingOrganization.identifier.type",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.identifier.system",
        "path": "Location.managingOrganization.identifier.system",
        "comment": "Apply \"https://ehealth.bc.ca/NamingSystem/ca-bc-panorama-organization-unit-id\"",
        "min": 1
      },
      {
        "id": "Location.managingOrganization.identifier.value",
        "path": "Location.managingOrganization.identifier.value",
        "comment": "See Mappings",
        "min": 1,
        "mapping": [
          {
            "identity": "source-eform-sdl-dropdownlist",
            "map": "(BRANCH_ID)"
          }
        ]
      },
      {
        "id": "Location.managingOrganization.identifier.period",
        "path": "Location.managingOrganization.identifier.period",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.identifier.assigner",
        "path": "Location.managingOrganization.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.display",
        "path": "Location.managingOrganization.display",
        "max": "0"
      },
      {
        "id": "Location.partOf",
        "path": "Location.partOf",
        "max": "0"
      },
      {
        "id": "Location.hoursOfOperation",
        "path": "Location.hoursOfOperation",
        "max": "0"
      },
      {
        "id": "Location.availabilityExceptions",
        "path": "Location.availabilityExceptions",
        "max": "0"
      },
      {
        "id": "Location.endpoint",
        "path": "Location.endpoint",
        "max": "0"
      }
    ]
  }
}