{
  "resourceType": "StructureDefinition",
  "id": "4e07f7d7-3e4a-423a-b31f-1abfc33ec0e1",
  "meta": {
    "lastUpdated": "2018-09-26T10:22:07.629+00:00"
  },
  "url": "https://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PlWlkpAppointment",
  "name": "PlWlkpAppointment",
  "status": "active",
  "date": "2018-09-26T10:22:06.983+00:00",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Appointment",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Appointment.identifier",
        "path": "Appointment.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.serviceCategory",
        "path": "Appointment.serviceCategory",
        "max": "0"
      },
      {
        "id": "Appointment.serviceType",
        "path": "Appointment.serviceType",
        "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",
          "valueSetReference": {
            "reference": "https://ezdrowie.wielkopolskie.pl/fhir/ValueSet/icd-9-pl"
          }
        }
      },
      {
        "id": "Appointment.specialty",
        "path": "Appointment.specialty",
        "min": 1,
        "max": "1",
        "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",
          "valueSetReference": {
            "reference": "https://ezdrowie.wielkopolskie.pl/fhir/ValueSet/czesc-8-kodu-resortowego"
          }
        }
      },
      {
        "id": "Appointment.appointmentType",
        "path": "Appointment.appointmentType",
        "min": 1
      },
      {
        "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.reason",
        "path": "Appointment.reason",
        "max": "0"
      },
      {
        "id": "Appointment.indication",
        "path": "Appointment.indication",
        "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",
        "min": 1
      },
      {
        "id": "Appointment.end",
        "path": "Appointment.end",
        "max": "0"
      },
      {
        "id": "Appointment.minutesDuration",
        "path": "Appointment.minutesDuration",
        "max": "0"
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PlWlkpSlot",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "min": 1
      },
      {
        "id": "Appointment.incomingReferral",
        "path": "Appointment.incomingReferral",
        "max": "1"
      },
      {
        "id": "Appointment.incomingReferral.reference",
        "path": "Appointment.incomingReferral.reference",
        "max": "0"
      },
      {
        "id": "Appointment.incomingReferral.identifier",
        "path": "Appointment.incomingReferral.identifier",
        "min": 1
      },
      {
        "id": "Appointment.incomingReferral.identifier.use",
        "path": "Appointment.incomingReferral.identifier.use",
        "max": "0"
      },
      {
        "id": "Appointment.incomingReferral.identifier.type",
        "path": "Appointment.incomingReferral.identifier.type",
        "max": "0"
      },
      {
        "id": "Appointment.incomingReferral.identifier.system",
        "path": "Appointment.incomingReferral.identifier.system",
        "min": 1
      },
      {
        "id": "Appointment.incomingReferral.identifier.value",
        "path": "Appointment.incomingReferral.identifier.value",
        "min": 1
      },
      {
        "id": "Appointment.incomingReferral.identifier.period",
        "path": "Appointment.incomingReferral.identifier.period",
        "max": "0"
      },
      {
        "id": "Appointment.incomingReferral.identifier.assigner",
        "path": "Appointment.incomingReferral.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "actor.reference"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.participant.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "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": "https://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PlWlkpLocation",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "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: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": "https://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PlWlkpDevice",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "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: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": "https://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PlWlkpPractitioner"
          }
        ]
      },
      {
        "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: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": "https://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PlWlkpPatient",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:patientParticipant.required",
        "path": "Appointment.participant.required",
        "max": "0"
      },
      {
        "id": "Appointment.participant:patientParticipant.status",
        "path": "Appointment.participant.status",
        "fixedCode": "accepted"
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "max": "0"
      }
    ]
  }
}