{
  "resourceType": "StructureDefinition",
  "id": "b32a7751-6182-4272-9498-53cb1dba45cb",
  "meta": {
    "versionId": "6",
    "lastUpdated": "2022-05-05T18:06:35.1377941+00:00"
  },
  "url": "http://ehealth.bc.ca/fhir/StructureDefinition/Location",
  "name": "Location",
  "status": "draft",
  "date": "2022-03-09T22:18:00.236102+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-CznSub-sdl-dropdownlist",
            "map": "(SDL_ID) +\"org\"+(BRANCH_ID)"
          },
          {
            "identity": "source-CznSub-sdl-NOTdropdownlist",
            "map": "(UNKn)+\"org3268\""
          }
        ]
      },
      {
        "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/Location'",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://ehealth.bc.ca/fhir/StructureDefinition/Location"
      },
      {
        "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",
        "comment": "If SDL-NOTdropdownlist: Skip this elementthere is no Panorama Identifier to send."
      },
      {
        "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)"
          }
        ]
      },
      {
        "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": "Seee Mappings",
        "mapping": [
          {
            "identity": "sdl-dropdownlist",
            "map": "(IMMUNIZATION_ORGANIZATION_BRANCH_OFFICE)"
          },
          {
            "identity": "sdl-NOTdropdownlist",
            "map": "(Free-Text entered by user)"
          }
        ]
      },
      {
        "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-CznSub-sdl-dropdownlist",
            "map": "fullURL+\"Organization/\"+(BRANCH_ID)",
            "comment": "http://ehealth.bc.ca/cznSub/fhir/"
          },
          {
            "identity": "source-CznSub-sdl-NOTdropdownlist",
            "map": "fullURL+\"Organization/3268\"",
            "comment": "http://ehealth.bc.ca/cznSub/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-CznSub-sdl-NOTdropdownlist",
            "map": "\"3268\""
          },
          {
            "identity": "source-CznSub-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"
      }
    ]
  }
}