{
  "resourceType": "StructureDefinition",
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" />"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Location",
  "version": "0.10.1",
  "name": "EReferralLocation",
  "title": "Location",
  "status": "draft",
  "description": "Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated.",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Location.meta",
        "path": "Location.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Location.meta.profile",
        "path": "Location.meta.profile",
        "comment": "#### **_` FOR eREFERRAL USAGE: The meta.profile = http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Location|1.0.0 `_**\r\n\r\nIt is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "mustSupport": true
      },
      {
        "id": "Location.identifier.system",
        "path": "Location.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Location.identifier.value",
        "path": "Location.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Location.status",
        "path": "Location.status",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetUnknownType_StructureDefinition.differential.element[5].binding": "http://hl7.org/fhir/ValueSet/location-status"
        }
      },
      {
        "id": "Location.name",
        "path": "Location.name",
        "mustSupport": true
      },
      {
        "id": "Location.description",
        "path": "Location.description",
        "mustSupport": true
      },
      {
        "id": "Location.mode",
        "path": "Location.mode",
        "binding": {
          "strength": "required",
          "valueSetUnknownType_StructureDefinition.differential.element[8].binding": "http://hl7.org/fhir/ValueSet/location-mode"
        }
      },
      {
        "id": "Location.type",
        "path": "Location.type",
        "mustSupport": true
      },
      {
        "id": "Location.type.coding",
        "path": "Location.type.coding",
        "mustSupport": true
      },
      {
        "id": "Location.type.coding.system",
        "path": "Location.type.coding.system",
        "mustSupport": true
      },
      {
        "id": "Location.type.coding.code",
        "path": "Location.type.coding.code",
        "mustSupport": true
      },
      {
        "id": "Location.type.coding.display",
        "path": "Location.type.coding.display",
        "mustSupport": true
      },
      {
        "id": "Location.type.text",
        "path": "Location.type.text",
        "mustSupport": true
      },
      {
        "id": "Location.telecom",
        "path": "Location.telecom",
        "mustSupport": true
      },
      {
        "id": "Location.telecom.system",
        "path": "Location.telecom.system",
        "mustSupport": true
      },
      {
        "id": "Location.telecom.value",
        "path": "Location.telecom.value",
        "mustSupport": true
      },
      {
        "id": "Location.address",
        "path": "Location.address",
        "mustSupport": true
      },
      {
        "id": "Location.address.use",
        "path": "Location.address.use",
        "mustSupport": true
      },
      {
        "id": "Location.address.type",
        "path": "Location.address.type",
        "mustSupport": true
      },
      {
        "id": "Location.address.text",
        "path": "Location.address.text",
        "mustSupport": true
      },
      {
        "id": "Location.address.line",
        "path": "Location.address.line",
        "mustSupport": true
      },
      {
        "id": "Location.address.city",
        "path": "Location.address.city",
        "mustSupport": true
      },
      {
        "id": "Location.address.state",
        "path": "Location.address.state",
        "mustSupport": true
      },
      {
        "id": "Location.address.postalCode",
        "path": "Location.address.postalCode",
        "mustSupport": true
      },
      {
        "id": "Location.address.country",
        "path": "Location.address.country",
        "mustSupport": true
      },
      {
        "id": "Location.physicalType",
        "path": "Location.physicalType",
        "mustSupport": true
      },
      {
        "id": "Location.physicalType.coding",
        "path": "Location.physicalType.coding",
        "mustSupport": true
      },
      {
        "id": "Location.physicalType.coding.system",
        "path": "Location.physicalType.coding.system",
        "mustSupport": true
      },
      {
        "id": "Location.physicalType.coding.code",
        "path": "Location.physicalType.coding.code",
        "mustSupport": true
      },
      {
        "id": "Location.physicalType.coding.display",
        "path": "Location.physicalType.coding.display",
        "mustSupport": true
      },
      {
        "id": "Location.position",
        "path": "Location.position",
        "mustSupport": false
      },
      {
        "id": "Location.position.longitude",
        "path": "Location.position.longitude",
        "mustSupport": true
      },
      {
        "id": "Location.position.latitude",
        "path": "Location.position.latitude",
        "mustSupport": true
      },
      {
        "id": "Location.position.altitude",
        "path": "Location.position.altitude",
        "mustSupport": true
      },
      {
        "id": "Location.hoursOfOperation.daysOfWeek",
        "path": "Location.hoursOfOperation.daysOfWeek",
        "mustSupport": true
      },
      {
        "id": "Location.hoursOfOperation.allDay",
        "path": "Location.hoursOfOperation.allDay",
        "mustSupport": true
      },
      {
        "id": "Location.hoursOfOperation.openingTime",
        "path": "Location.hoursOfOperation.openingTime",
        "mustSupport": true
      },
      {
        "id": "Location.hoursOfOperation.closingTime",
        "path": "Location.hoursOfOperation.closingTime",
        "mustSupport": true
      }
    ]
  }
}