{
  "resourceType": "StructureDefinition",
  "id": "PLWlkpSchedulingAppointment",
  "meta": {
    "versionId": "0",
    "lastUpdated": "2018-12-27T11:37:54.724+00:00"
  },
  "url": "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingAppointment",
  "name": "PLWlkpSchedulingAppointment",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Appointment",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Appointment.identifier",
        "path": "Appointment.identifier",
        "short": "Identyfikator rezerwacji wolnego terminu",
        "min": 1,
        "max": "*"
      },
      {
        "id": "Appointment.identifier.use",
        "path": "Appointment.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.identifier.type",
        "path": "Appointment.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.identifier.system",
        "path": "Appointment.identifier.system",
        "min": 1
      },
      {
        "id": "Appointment.identifier.value",
        "path": "Appointment.identifier.value",
        "min": 1
      },
      {
        "id": "Appointment.identifier.period",
        "path": "Appointment.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.identifier.assigner",
        "path": "Appointment.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.status",
        "path": "Appointment.status",
        "short": "Status rezerwacji wolnego terminu",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.cancelationReason",
        "path": "Appointment.cancelationReason",
        "short": "Powód anulowania",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Appointment.cancelationReason.coding",
        "path": "Appointment.cancelationReason.coding",
        "max": "0"
      },
      {
        "id": "Appointment.cancelationReason.text",
        "path": "Appointment.cancelationReason.text",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.serviceCategory",
        "path": "Appointment.serviceCategory",
        "max": "0"
      },
      {
        "id": "Appointment.serviceType",
        "path": "Appointment.serviceType",
        "short": "Rodzaj usługi medycznej realizowanej w ramach udostępnianego grafiku, z którego pochodzi wolny termin",
        "min": 1,
        "max": "1",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "service-type"
            }
          ],
          "strength": "required",
          "description": "Zbiór wartości zawierający wszystkie pozycje słownika ICD-9 PL",
          "valueSet": "http://ezdrowie.wielkopolskie.pl/fhir/ValueSet/icd-9-pl"
        }
      },
      {
        "id": "Appointment.serviceType.coding",
        "path": "Appointment.serviceType.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.serviceType.coding.system",
        "path": "Appointment.serviceType.coding.system",
        "min": 1,
        "fixedUri": "urn:oid: 2.16.840.1.113883.3.4424.11.2.6"
      },
      {
        "id": "Appointment.serviceType.coding.version",
        "path": "Appointment.serviceType.coding.version",
        "max": "0"
      },
      {
        "id": "Appointment.serviceType.coding.code",
        "path": "Appointment.serviceType.coding.code",
        "min": 1
      },
      {
        "id": "Appointment.serviceType.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.serviceType.coding.display",
        "min": 1
      },
      {
        "id": "Appointment.serviceType.coding.userSelected",
        "path": "Appointment.serviceType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Appointment.serviceType.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.serviceType.text",
        "min": 1
      },
      {
        "id": "Appointment.specialty",
        "path": "Appointment.specialty",
        "short": "Kod specjalności pracownika medycznego przypisanego do udostepnionego wolnego terminu",
        "min": 0,
        "max": "*",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "specialty"
            }
          ],
          "strength": "required",
          "description": "Zbiór wartości zawierający wszystkie pozycje słownika części VII kodu resortowego",
          "valueSet": "http://ezdrowie.wielkopolskie.pl/fhir/ValueSet/specjalnosc-lekarska"
        }
      },
      {
        "id": "Appointment.specialty.coding",
        "path": "Appointment.specialty.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.specialty.coding.system",
        "path": "Appointment.specialty.coding.system",
        "min": 1,
        "fixedUri": "urn:oid:2.16.840.1.113883.3.4424.11.3.3"
      },
      {
        "id": "Appointment.specialty.coding.version",
        "path": "Appointment.specialty.coding.version",
        "max": "0"
      },
      {
        "id": "Appointment.specialty.coding.code",
        "path": "Appointment.specialty.coding.code",
        "min": 1
      },
      {
        "id": "Appointment.specialty.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.specialty.coding.display",
        "min": 1
      },
      {
        "id": "Appointment.specialty.coding.userSelected",
        "path": "Appointment.specialty.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Appointment.specialty.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.specialty.text",
        "max": "0"
      },
      {
        "id": "Appointment.appointmentType",
        "path": "Appointment.appointmentType",
        "short": "Nazwa rodzaju rezerwacji, która ma być dokonana w ramach wolnego terminu",
        "min": 1,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "appointmentType"
            }
          ],
          "strength": "required",
          "valueSet": "http://ezdrowie.wielkopolskie.pl/fhir/ValueSet/appointment-type"
        }
      },
      {
        "id": "Appointment.appointmentType.coding",
        "path": "Appointment.appointmentType.coding",
        "max": "0"
      },
      {
        "id": "Appointment.appointmentType.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.appointmentType.text",
        "min": 1
      },
      {
        "id": "Appointment.reasonCode",
        "path": "Appointment.reasonCode",
        "max": "0"
      },
      {
        "id": "Appointment.reasonReference",
        "path": "Appointment.reasonReference",
        "max": "0"
      },
      {
        "id": "Appointment.priority",
        "path": "Appointment.priority",
        "max": "0"
      },
      {
        "id": "Appointment.description",
        "path": "Appointment.description",
        "max": "0"
      },
      {
        "id": "Appointment.supportingInformation",
        "path": "Appointment.supportingInformation",
        "max": "0"
      },
      {
        "id": "Appointment.start",
        "path": "Appointment.start",
        "short": "data i czas zarezerwowanego terminu w dostępnionym grafiku",
        "min": 1
      },
      {
        "id": "Appointment.end",
        "path": "Appointment.end",
        "min": 1
      },
      {
        "id": "Appointment.minutesDuration",
        "path": "Appointment.minutesDuration",
        "max": "0"
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "short": "Dane wolnego terminu oraz grafiku, w ramach którego został udostępiony",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingSlot"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Appointment.slot.reference",
        "path": "Appointment.slot.reference",
        "min": 1
      },
      {
        "id": "Appointment.slot.type",
        "path": "Appointment.slot.type",
        "max": "0"
      },
      {
        "id": "Appointment.slot.identifier",
        "path": "Appointment.slot.identifier",
        "max": "0"
      },
      {
        "id": "Appointment.slot.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.slot.display",
        "max": "0"
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "short": "Data i czas utworzenia rezerwacji wolnego terminu",
        "min": 1
      },
      {
        "id": "Appointment.comment",
        "path": "Appointment.comment",
        "short": "Opcjonalny komentarz przypisany do rezerwacji wolnego terminu"
      },
      {
        "id": "Appointment.patientInstruction",
        "path": "Appointment.patientInstruction",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "short": "Dane dokumentu skierowania związanego z realizacją usługi medycznej, na którą dokonana została rezerwacja wolnego terminu",
        "max": "1"
      },
      {
        "id": "Appointment.basedOn.reference",
        "path": "Appointment.basedOn.reference",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn.type",
        "path": "Appointment.basedOn.type",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Appointment.basedOn.reference",
        "path": "Appointment.basedOn.reference",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn.identifier",
        "path": "Appointment.basedOn.identifier",
        "min": 1
      },
      {
        "id": "Appointment.basedOn.identifier.use",
        "path": "Appointment.basedOn.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn.identifier.type",
        "path": "Appointment.basedOn.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn.identifier.system",
        "path": "Appointment.basedOn.identifier.system",
        "min": 1
      },
      {
        "id": "Appointment.basedOn.identifier.value",
        "path": "Appointment.basedOn.identifier.value",
        "min": 1
      },
      {
        "id": "Appointment.basedOn.identifier.period",
        "path": "Appointment.basedOn.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn.identifier.assigner",
        "path": "Appointment.basedOn.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.basedOn.display",
        "max": "0"
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "actor.reference"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.participant.type",
        "path": "Appointment.participant.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant.actor",
        "path": "Appointment.participant.actor",
        "max": "0"
      },
      {
        "id": "Appointment.participant.required",
        "path": "Appointment.participant.required",
        "max": "0"
      },
      {
        "id": "Appointment.participant.status",
        "path": "Appointment.participant.status",
        "max": "0"
      },
      {
        "id": "Appointment.participant.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:locationParticipant",
        "path": "Appointment.participant",
        "sliceName": "locationParticipant",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.participant:locationParticipant.type",
        "path": "Appointment.participant.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:locationParticipant.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingLocation"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:locationParticipant.actor.reference",
        "path": "Appointment.participant.actor.reference",
        "min": 1
      },
      {
        "id": "Appointment.participant:locationParticipant.actor.type",
        "path": "Appointment.participant.actor.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:locationParticipant.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "max": "0"
      },
      {
        "id": "Appointment.participant:locationParticipant.actor.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.participant.actor.display",
        "max": "0"
      },
      {
        "id": "Appointment.participant:locationParticipant.required",
        "path": "Appointment.participant.required",
        "max": "0"
      },
      {
        "id": "Appointment.participant:locationParticipant.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:locationParticipant.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:deviceParticipant",
        "path": "Appointment.participant",
        "sliceName": "deviceParticipant"
      },
      {
        "id": "Appointment.participant:deviceParticipant.type",
        "path": "Appointment.participant.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:deviceParticipant.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingDevice"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:deviceParticipant.actor.reference",
        "path": "Appointment.participant.actor.reference",
        "min": 1
      },
      {
        "id": "Appointment.participant:deviceParticipant.actor.type",
        "path": "Appointment.participant.actor.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:deviceParticipant.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "max": "0"
      },
      {
        "id": "Appointment.participant:deviceParticipant.actor.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.participant.actor.display",
        "max": "0"
      },
      {
        "id": "Appointment.participant:deviceParticipant.required",
        "path": "Appointment.participant.required",
        "max": "0"
      },
      {
        "id": "Appointment.participant:deviceParticipant.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:deviceParticipant.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:practitionerParticipant",
        "path": "Appointment.participant",
        "sliceName": "practitionerParticipant",
        "max": "1"
      },
      {
        "id": "Appointment.participant:practitionerParticipant.type",
        "path": "Appointment.participant.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:practitionerParticipant.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingPractitioner"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:practitionerParticipant.actor.reference",
        "path": "Appointment.participant.actor.reference",
        "min": 1
      },
      {
        "id": "Appointment.participant:practitionerParticipant.actor.type",
        "path": "Appointment.participant.actor.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:practitionerParticipant.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "max": "0"
      },
      {
        "id": "Appointment.participant:practitionerParticipant.actor.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.participant.actor.display",
        "max": "0"
      },
      {
        "id": "Appointment.participant:practitionerParticipant.required",
        "path": "Appointment.participant.required",
        "max": "0"
      },
      {
        "id": "Appointment.participant:practitionerParticipant.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:practitionerParticipant.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patientParticipant",
        "path": "Appointment.participant",
        "sliceName": "patientParticipant",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.participant:patientParticipant.type",
        "path": "Appointment.participant.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patientParticipant.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingPatient"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:patientParticipant.actor.reference",
        "path": "Appointment.participant.actor.reference",
        "min": 1
      },
      {
        "id": "Appointment.participant:patientParticipant.actor.type",
        "path": "Appointment.participant.actor.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patientParticipant.actor.type",
        "path": "Appointment.participant.actor.type",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patientParticipant.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patientParticipant.actor.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.participant.actor.display",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patientParticipant.required",
        "path": "Appointment.participant.required",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patientParticipant.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.participant:patientParticipant.period",
        "path": "Appointment.participant.period",
        "max": "0"
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "max": "0"
      }
    ]
  }
}