{
  "resourceType": "StructureDefinition",
  "id": "PLSchedulingAppointment",
  "meta": {
    "lastUpdated": "2020-06-01T07:52:09.22+00:00"
  },
  "url": "http://hl7.org.pl/fhir/StructureDefinition/PLSchedulingAppointment",
  "name": "PLSchedulingAppointment",
  "status": "draft",
  "experimental": false,
  "date": "2020-06-01T06:42:02.7064711+00:00",
  "copyright": "HL7 Poland (2020)",
  "fhirVersion": "4.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
      },
      {
        "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.cancelationReason.coding.system",
        "path": "Appointment.cancelationReason.coding.system",
        "min": 1
      },
      {
        "id": "Appointment.cancelationReason.coding.code",
        "path": "Appointment.cancelationReason.coding.code",
        "min": 1
      },
      {
        "id": "Appointment.cancelationReason.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.cancelationReason.coding.display",
        "min": 1
      },
      {
        "id": "Appointment.serviceCategory",
        "path": "Appointment.serviceCategory",
        "max": "1"
      },
      {
        "id": "Appointment.serviceCategory.coding",
        "path": "Appointment.serviceCategory.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.serviceCategory.coding.system",
        "path": "Appointment.serviceCategory.coding.system",
        "min": 1
      },
      {
        "id": "Appointment.serviceCategory.coding.code",
        "path": "Appointment.serviceCategory.coding.code",
        "min": 1
      },
      {
        "id": "Appointment.serviceCategory.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.serviceCategory.coding.display",
        "min": 1
      },
      {
        "id": "Appointment.serviceCategory.coding.userSelected",
        "path": "Appointment.serviceCategory.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Appointment.serviceCategory.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.serviceCategory.text",
        "max": "0"
      },
      {
        "id": "Appointment.serviceType.coding.system",
        "path": "Appointment.serviceType.coding.system",
        "min": 1
      },
      {
        "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.specialty",
        "path": "Appointment.specialty",
        "max": "1"
      },
      {
        "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.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.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.specialty.text",
        "max": "0"
      },
      {
        "id": "Appointment.appointmentType.coding.system",
        "path": "Appointment.appointmentType.coding.system",
        "min": 1
      },
      {
        "id": "Appointment.appointmentType.coding.code",
        "path": "Appointment.appointmentType.coding.code",
        "min": 1
      },
      {
        "id": "Appointment.appointmentType.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.appointmentType.coding.display",
        "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.start",
        "path": "Appointment.start",
        "min": 1
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.pl/fhir/StructureDefinition/PLSchedulingSlot"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Appointment.slot.identifier.system",
        "path": "Appointment.slot.identifier.system",
        "min": 1
      },
      {
        "id": "Appointment.slot.identifier.value",
        "path": "Appointment.slot.identifier.value",
        "min": 1
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "min": 1
      },
      {
        "id": "Appointment.basedOn.reference",
        "path": "Appointment.basedOn.reference",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn.type",
        "path": "Appointment.basedOn.type",
        "max": "0"
      },
      {
        "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": "profile",
              "path": "actor.resolve()"
            }
          ],
          "rules": "open"
        },
        "min": 2
      },
      {
        "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://hl7.org/fhir/StructureDefinition/Location"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "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://hl7.org/fhir/StructureDefinition/Device"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "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://hl7.org/fhir/StructureDefinition/Practitioner"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "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://hl7.org.pl/fhir/StructureDefinition/PLSchedulingPatient"
            ],
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "max": "0"
      }
    ]
  }
}