{
  "resourceType": "StructureDefinition",
  "id": "PLWlkpSchedulingLocation",
  "meta": {
    "lastUpdated": "2019-02-05T07:13:21.95+00:00"
  },
  "url": "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingLocation",
  "name": "PLWlkpSchedulingLocation",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "short": "Identyfikator placówki związanej z realizacją uslugi medycznej",
        "min": 1,
        "max": "1"
      },
      {
        "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.name",
        "path": "Location.name",
        "short": "Nazwa placówki medycznej",
        "min": 1
      },
      {
        "id": "Location.alias",
        "path": "Location.alias",
        "short": "Alternatywna nazwa placówki medycznej",
        "min": 0,
        "max": "*"
      },
      {
        "id": "Location.description",
        "path": "Location.description",
        "short": "Opis placówki medycznej",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Location.mode",
        "path": "Location.mode",
        "min": 1,
        "fixedCode": "instance",
        "isModifier": true
      },
      {
        "id": "Location.type",
        "path": "Location.type",
        "max": "0"
      },
      {
        "id": "Location.telecom",
        "path": "Location.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Location.telecom:phoneNumber",
        "path": "Location.telecom",
        "sliceName": "phoneNumber",
        "max": "1"
      },
      {
        "id": "Location.telecom:phoneNumber.system",
        "path": "Location.telecom.system",
        "min": 1,
        "fixedCode": "phone"
      },
      {
        "id": "Location.telecom:phoneNumber.value",
        "path": "Location.telecom.value",
        "short": "Numer telefonu placówki medycznej",
        "min": 1
      },
      {
        "id": "Location.telecom:phoneNumber.use",
        "path": "Location.telecom.use",
        "max": "0"
      },
      {
        "id": "Location.telecom:phoneNumber.rank",
        "path": "Location.telecom.rank",
        "max": "0"
      },
      {
        "id": "Location.telecom:phoneNumber.period",
        "path": "Location.telecom.period",
        "max": "0"
      },
      {
        "id": "Location.telecom:email",
        "path": "Location.telecom",
        "sliceName": "email",
        "max": "1"
      },
      {
        "id": "Location.telecom:email.system",
        "path": "Location.telecom.system",
        "min": 1,
        "fixedCode": "email"
      },
      {
        "id": "Location.telecom:email.value",
        "path": "Location.telecom.value",
        "short": "Adres email placówki medycznej",
        "min": 1
      },
      {
        "id": "Location.telecom:email.use",
        "path": "Location.telecom.use",
        "max": "0"
      },
      {
        "id": "Location.telecom:email.rank",
        "path": "Location.telecom.rank",
        "max": "0"
      },
      {
        "id": "Location.telecom:email.period",
        "path": "Location.telecom.period",
        "max": "0"
      },
      {
        "id": "Location.address",
        "path": "Location.address",
        "short": "Fizyczny adres placówki medycznej",
        "min": 1
      },
      {
        "id": "Location.address.use",
        "path": "Location.address.use",
        "max": "0"
      },
      {
        "id": "Location.address.type",
        "path": "Location.address.type",
        "max": "0"
      },
      {
        "id": "Location.address.text",
        "path": "Location.address.text",
        "max": "0"
      },
      {
        "id": "Location.address.line",
        "path": "Location.address.line",
        "short": "Nazwa ulicy, numer budynku i mieszkania",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Location.address.city",
        "path": "Location.address.city",
        "short": "Nazwa miejscowości",
        "min": 1
      },
      {
        "id": "Location.address.district",
        "path": "Location.address.district",
        "max": "0"
      },
      {
        "id": "Location.address.state",
        "path": "Location.address.state",
        "max": "0"
      },
      {
        "id": "Location.address.postalCode",
        "path": "Location.address.postalCode",
        "short": "Kod pocztowy",
        "min": 1
      },
      {
        "id": "Location.address.country",
        "path": "Location.address.country",
        "short": "Opcjonalne wskazanie kraju, w którym znajduje się placówka",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Location.address.period",
        "path": "Location.address.period",
        "max": "0"
      },
      {
        "id": "Location.physicalType",
        "path": "Location.physicalType",
        "max": "0"
      },
      {
        "id": "Location.position",
        "path": "Location.position",
        "short": "Pozycja geograficzna miejsca, w którym znajduje się placówka medyczna",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Location.position.longitude",
        "path": "Location.position.longitude",
        "short": "Szerokość geograczina",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Location.position.lotitude",
        "path": "Location.position.lotitude",
        "short": "Wysokość geograczina",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Location.position.altitude",
        "path": "Location.position.altitude",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization",
        "path": "Location.managingOrganization",
        "short": "Dane organizacji zarządzającej placówką medyczną",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingOrganization"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Location.managingOrganization.reference",
        "path": "Location.managingOrganization.reference",
        "min": 1
      },
      {
        "id": "Location.managingOrganization.type",
        "path": "Location.managingOrganization.type",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.identifier",
        "path": "Location.managingOrganization.identifier",
        "max": "0"
      },
      {
        "id": "Location.managingOrganization.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "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"
      }
    ]
  }
}