{
  "resourceType": "StructureDefinition",
  "id": "pl-base-medical-facility",
  "url": "http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-base-medical-facility",
  "version": "0.0.1",
  "name": "PLBaseMedicalFacility",
  "title": "Placówka medyczna/Miejsce udzielania świadczeń",
  "status": "draft",
  "description": "Placówka medyczna/Miejsce udzielania świadczeń należace do określonego podmiotu medycznego",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "system"
            }
          ],
          "rules": "open",
          "description": "Różne rodzaje miejsc udzielania świadczeń",
          "ordered": false
        },
        "min": 1
      },
      {
        "id": "Location.identifier:orgUnit",
        "path": "Location.identifier",
        "sliceName": "orgUnit",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Location.identifier:orgUnit.system",
        "path": "Location.identifier.system",
        "min": 1,
        "patternUri": "urn:oid:2.16.840.1.113883.3.4424.2.3.2"
      },
      {
        "id": "Location.identifier:orgCell",
        "path": "Location.identifier",
        "sliceName": "orgCell",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Location.identifier:orgCell.system",
        "path": "Location.identifier.system",
        "min": 1,
        "patternUri": "urn:oid:2.16.840.1.113883.3.4424.2.3.3"
      },
      {
        "id": "Location.identifier:other",
        "path": "Location.identifier",
        "sliceName": "other",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Location.type",
        "path": "Location.type",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "urn:oid:2.16.840.1.113883.3.4424.11.2.4"
            }
          ]
        }
      },
      {
        "id": "Location.contact",
        "path": "Location.contact",
        "min": 1
      },
      {
        "id": "Location.managingOrganization",
        "path": "Location.managingOrganization",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-base-medical-provider"
            ]
          }
        ]
      }
    ]
  }
}