{
  "resourceType": "StructureDefinition",
  "id": "PLWlkpSchedulingSlot",
  "meta": {
    "lastUpdated": "2019-02-05T07:12:19.633+00:00"
  },
  "url": "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingSlot",
  "name": "PLWlkpSchedulingSlot",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Slot",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Slot",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Slot.extension",
        "path": "Slot.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Slot.extension:patientProfile",
        "path": "Slot.extension",
        "sliceName": "patientProfile",
        "short": "Profil pacjenta dla wolnego terminu",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingExtPatientProfile"
            ]
          }
        ]
      },
      {
        "id": "Slot.extension:reimbursementType",
        "path": "Slot.extension",
        "sliceName": "reimbursementType",
        "short": "Tryb finansowania wizyty dla wolnego terminu",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingExtReimbursementType"
            ]
          }
        ]
      },
      {
        "id": "Slot.identifier",
        "path": "Slot.identifier",
        "short": "Identyfikator slotu",
        "definition": "Identyfikator slotu",
        "min": "1",
        "max": "1"
      },
      {
        "id": "Slot.identifier.use",
        "path": "Slot.identifier.use",
        "max": "0"
      },
      {
        "id": "Slot.identifier.type",
        "path": "Slot.identifier.type",
        "max": "0"
      },
      {
        "id": "Slot.identifier.system",
        "path": "Slot.identifier.system",
        "min": "1"
      },
      {
        "id": "Slot.identifier.value",
        "path": "Slot.identifier.value",
        "min": "1"
      },
      {
        "id": "Slot.identifier.period",
        "path": "Slot.identifier.period",
        "max": "0"
      },
      {
        "id": "Slot.identifier.assigner",
        "path": "Slot.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Slot.serviceCategory",
        "path": "Slot.serviceCategory",
        "max": "0"
      },
      {
        "id": "Slot.serviceCategory.coding",
        "path": "Slot.serviceCategory.coding",
        "max": "0"
      },
      {
        "id": "Slot.serviceCategory.coding.version",
        "path": "Slot.serviceCategory.coding.version",
        "max": "0"
      },
      {
        "id": "Slot.serviceCategory.coding.userSelected",
        "path": "Slot.serviceCategory.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Slot.serviceCategory.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Slot.serviceCategory.text",
        "max": "0"
      },
      {
        "id": "Slot.serviceType",
        "path": "Slot.serviceType",
        "short": "Kody usług realizowanych w obrębie danego slotu",
        "definition": "Kody usług realizowanych w obrębie danego slotu",
        "min": "1",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "service-type"
            }
          ],
          "strength": "required",
          "valueSet": "http://ezdrowie.wielkopolskie.pl/fhir/ValueSet/icd-9-pl"
        }
      },
      {
        "id": "Slot.serviceType.coding",
        "path": "Slot.serviceType.coding",
        "min": "1",
        "max": "1"
      },
      {
        "id": "Slot.serviceType.coding.system",
        "path": "Slot.serviceType.coding.system",
        "min": "1",
        "fixedUri": "urn:oid:2.16.840.1.113883.3.4424.11.2.6"
      },
      {
        "id": "Slot.serviceType.coding.version",
        "path": "Slot.serviceType.coding.version",
        "max": "0"
      },
      {
        "id": "Slot.serviceType.coding.code",
        "path": "Slot.serviceType.coding.code",
        "min": "1"
      },
      {
        "id": "Slot.serviceType.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Slot.serviceType.coding.display",
        "min": "1"
      },
      {
        "id": "Slot.serviceType.coding.userSelected",
        "path": "Slot.serviceType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Slot.serviceType.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Slot.serviceType.text",
        "min": "1"
      },
      {
        "id": "Slot.specialty",
        "path": "Slot.specialty",
        "short": "Specjalność komórki organizacyjnej",
        "definition": "Specjalność komórki organizacyjnej",
        "min": "1",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "specialty"
            }
          ],
          "strength": "required",
          "valueSet": "http://ezdrowie.wielkopolskie.pl/fhir/ValueSet/specjalnosc-komorki-organizacyjnej"
        }
      },
      {
        "id": "Slot.specialty.coding",
        "path": "Slot.specialty.coding",
        "min": "1",
        "max": "1"
      },
      {
        "id": "Slot.specialty.coding.system",
        "path": "Slot.specialty.coding.system",
        "min": "1",
        "fixedUri": "urn:oid:2.16.840.1.113883.3.4424.11.2.4"
      },
      {
        "id": "Slot.specialty.coding.version",
        "path": "Slot.specialty.coding.version",
        "max": "0"
      },
      {
        "id": "Slot.specialty.coding.code",
        "path": "Slot.specialty.coding.code",
        "min": "1"
      },
      {
        "id": "Slot.specialty.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Slot.specialty.coding.display",
        "min": "1"
      },
      {
        "id": "Slot.specialty.coding.userSelected",
        "path": "Slot.specialty.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Slot.specialty.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Slot.specialty.text",
        "max": "0"
      },
      {
        "id": "Slot.appointmentType",
        "path": "Slot.appointmentType",
        "short": "Nazwa typu rezerwacji jaka może być zrealizowana",
        "definition": "Nazwa typu rezerwacji jaka może być zrealizowana",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "appointment-type"
            }
          ],
          "strength": "required",
          "valueSet": "http://ezdrowie.wielkopolskie.pl/fhir/ValueSet/appointment-type"
        }
      },
      {
        "id": "Slot.appointmentType.extension",
        "path": "Slot.appointmentType.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Slot.appointmentType.extension:patientsPerSlot",
        "path": "Slot.appointmentType.extension",
        "sliceName": "patientsPerSlot",
        "short": "Maksymalna liczba pacjentów dla wolnego terminu",
        "min": "0",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingExtPatientsPerSlot"
            ]
          }
        ]
      },
      {
        "id": "Slot.appointmentType.coding",
        "path": "Slot.appointmentType.coding",
        "min": "1",
        "max": "1"
      },
      {
        "id": "Slot.appointmentType.coding.system",
        "path": "Slot.appointmentType.coding.system",
        "min": "1",
        "fixedUri": "http://ezdrowie.wielkopolskie.pl/fhir/CodeSystem/appointment-type"
      },
      {
        "id": "Slot.appointmentType.coding.version",
        "path": "Slot.appointmentType.coding.version",
        "max": "0"
      },
      {
        "id": "Slot.appointmentType.coding.code",
        "path": "Slot.appointmentType.coding.code",
        "min": "1"
      },
      {
        "id": "Slot.appointmentType.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Slot.appointmentType.coding.display",
        "min": "1"
      },
      {
        "id": "Slot.appointmentType.coding.userSelected",
        "path": "Slot.appointmentType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Slot.appointmentType.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Slot.appointmentType.text",
        "min": "1"
      },
      {
        "id": "Slot.schedule",
        "path": "Slot.schedule",
        "short": "Dane udostępnionego grafiku, z którego pochodzi wolny termin",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingSchedule"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Slot.schedule.reference",
        "path": "Slot.schedule.reference",
        "min": "1"
      },
      {
        "id": "Slot.schedule.type",
        "path": "Slot.schedule.type",
        "max": "0"
      },
      {
        "id": "Slot.schedule.identifier",
        "path": "Slot.schedule.identifier",
        "max": "0"
      },
      {
        "id": "Slot.schedule.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Slot.schedule.display",
        "max": "0"
      },
      {
        "id": "Slot.overbooked",
        "path": "Slot.overbooked",
        "max": "0"
      },
      {
        "id": "Slot.comment",
        "path": "Slot.comment",
        "short": "Komentarz zawierający dodatkowe informacje dotyczące slotu",
        "definition": "Komentarz zawierający dodatkowe informacje dotyczące slotu"
      }
    ]
  }
}