{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MyAppointment",
  "name": "MyAppointment",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Appointment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.extension",
        "path": "Appointment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Appointment.extension:methodOfRefund",
        "path": "Appointment.extension",
        "sliceName": "methodOfRefund",
        "short": "Metoda refundacji",
        "definition": "Metoda refundacji",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://example.org/fhir/StructureDefinition/MethodOfRefund"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Appointment.extension:methodOfRefund.value[x]",
        "path": "Appointment.extension.value[x]",
        "short": "Metoda refundacji",
        "definition": "Metoda refundacji"
      },
      {
        "id": "Appointment.status",
        "path": "Appointment.status",
        "definition": "Status zdarzenia"
      },
      {
        "id": "Appointment.cancelationReason",
        "path": "Appointment.cancelationReason",
        "short": "Kod odwołania spotkania",
        "definition": "Kod odwołania spotkania"
      },
      {
        "id": "Appointment.serviceCategory",
        "path": "Appointment.serviceCategory",
        "max": "0"
      },
      {
        "id": "Appointment.serviceType",
        "path": "Appointment.serviceType",
        "short": "Konkretna usługa, która ma być wykonana podczas tego spotkania",
        "definition": "Konkretna usługa, która ma być wykonana podczas tego spotkania"
      },
      {
        "id": "Appointment.specialty",
        "path": "Appointment.specialty",
        "short": "Specjalności obsługiwane przez HealthcareService” „Zbiór specjalności obsługiwanych przez serwis. Słownik medyczny.",
        "definition": "Specjalności obsługiwane przez HealthcareService” „Zbiór specjalności obsługiwanych przez serwis. Słownik medyczny."
      },
      {
        "id": "Appointment.appointmentType",
        "path": "Appointment.appointmentType",
        "short": "Typ wizyty czy gabinetowa/online",
        "definition": "Typ wizyty czy gabinetowa/online"
      },
      {
        "id": "Appointment.reasonCode",
        "path": "Appointment.reasonCode",
        "max": "0"
      },
      {
        "id": "Appointment.reasonReference",
        "path": "Appointment.reasonReference",
        "max": "0"
      },
      {
        "id": "Appointment.priority",
        "path": "Appointment.priority",
        "short": "Priorytet wizyty",
        "definition": "Priorytet wizyty"
      },
      {
        "id": "Appointment.description",
        "path": "Appointment.description",
        "short": "Krótki opis spotkania, który byłby wyświetlany w wierszu tematu wezwania na spotkanie lub liście spotkań",
        "definition": "Krótki opis spotkania, który byłby wyświetlany w wierszu tematu wezwania na spotkanie lub liście spotkań"
      },
      {
        "id": "Appointment.supportingInformation",
        "path": "Appointment.supportingInformation",
        "max": "0"
      },
      {
        "id": "Appointment.start",
        "path": "Appointment.start",
        "short": "Data/godzina.",
        "definition": "Data/godzina."
      },
      {
        "id": "Appointment.end",
        "path": "Appointment.end",
        "short": "Data/godzina.",
        "definition": "Data/godzina."
      },
      {
        "id": "Appointment.minutesDuration",
        "path": "Appointment.minutesDuration",
        "short": "Czas trwania",
        "definition": "Czas trwania"
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "max": "0"
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "max": "0"
      },
      {
        "id": "Appointment.patientInstruction",
        "path": "Appointment.patientInstruction",
        "short": "Szczegółowe informacje i instrukcje dla pacjenta",
        "definition": "Szczegółowe informacje i instrukcje dla pacjenta"
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "short": "Lista uczestników",
        "definition": "Lista uczestników"
      }
    ]
  }
}