{
  "resourceType": "StructureDefinition",
  "id": "PLWlkpSchedulingAppointment",
  "meta": {
    "lastUpdated": "2019-02-05T07:13:43.641+00:00"
  },
  "url": "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingAppointment",
  "name": "PLWlkpSchedulingAppointment",
  "status": "active",
  "date": "2019-01-14T12:23:40.9102484Z",
  "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.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.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://hl7.org.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",
        "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://hl7.org.pl/fhir/ValueSet/czesc-8-kodu-resortowego"
          }
        }
      },
      {
        "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.2.4"
      },
      {
        "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",
        "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": "http://ezdrowie.wielkopolskie.pl/fhir/StructureDefinition/PLWlkpSchedulingSlot",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Appointment.slot.reference",
        "path": "Appointment.slot.reference",
        "min": 1
      },
      {
        "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",
        "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.incomingReferral.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Appointment.incomingReferral.display",
        "max": "0"
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "actor.reference"
            }
          ],
          "rules": "open"
        }
      },
      {
        "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.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: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.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: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.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: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.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.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "max": "0"
      }
    ]
  }
}