{
  "resourceType": "StructureDefinition",
  "id": "63ecc2d2-90bf-42d2-989d-8374e639ced2",
  "meta": {
    "lastUpdated": "2020-11-20T08:04:42.706+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/AppointmentRebookingSe/v1",
  "name": "AppointmentRebookingSe",
  "status": "draft",
  "date": "2020-10-08T14:24:37.8180438+00:00",
  "description": "AppointmentRebookingSe may be used for rebooking an appointment.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "ical",
      "uri": "http://ietf.org/rfc/2445",
      "name": "iCalendar"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "https://fhir.cambio.se/StructureDefinition/AppointmentCoreSe",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Appointment.extension",
        "path": "Appointment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.extension:permittedPatientActions",
        "path": "Appointment.extension",
        "sliceName": "permittedPatientActions",
        "max": "0"
      },
      {
        "id": "Appointment.extension:serviceProvider",
        "path": "Appointment.extension",
        "sliceName": "serviceProvider",
        "max": "0"
      },
      {
        "id": "Appointment.extension:patientPremittedActions",
        "path": "Appointment.extension",
        "sliceName": "patientPremittedActions",
        "max": "0"
      },
      {
        "id": "Appointment.extension:rebookingMessage",
        "path": "Appointment.extension",
        "sliceName": "rebookingMessage",
        "short": "Message why the apppointment has been rebooked",
        "definition": "Message from patient when rebooking the appointment.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/appointment-message"
            ]
          }
        ]
      },
      {
        "id": "Appointment.status",
        "path": "Appointment.status",
        "fixedCode": "proposed"
      },
      {
        "id": "Appointment.cancelationReason",
        "path": "Appointment.cancelationReason",
        "max": "0"
      },
      {
        "id": "Appointment.specialty",
        "path": "Appointment.specialty",
        "max": "0"
      },
      {
        "id": "Appointment.appointmentType",
        "path": "Appointment.appointmentType",
        "max": "0"
      },
      {
        "id": "Appointment.reasonCode",
        "path": "Appointment.reasonCode",
        "max": "0"
      },
      {
        "id": "Appointment.reasonReference",
        "path": "Appointment.reasonReference",
        "max": "0"
      },
      {
        "id": "Appointment.description",
        "path": "Appointment.description",
        "max": "0"
      },
      {
        "id": "Appointment.supportingInformation",
        "path": "Appointment.supportingInformation",
        "max": "0"
      },
      {
        "id": "Appointment.minutesDuration",
        "path": "Appointment.minutesDuration",
        "max": "0"
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.slot.reference",
        "path": "Appointment.slot.reference",
        "min": 1
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "max": "0"
      },
      {
        "id": "Appointment.comment",
        "path": "Appointment.comment",
        "max": "0"
      },
      {
        "id": "Appointment.patientInstruction",
        "path": "Appointment.patientInstruction",
        "max": "0"
      },
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "max": "0"
      },
      {
        "id": "Appointment.participant:Patient",
        "path": "Appointment.participant",
        "sliceName": "Patient",
        "min": 1
      },
      {
        "id": "Appointment.participant:Location",
        "path": "Appointment.participant",
        "sliceName": "Location",
        "min": 1
      },
      {
        "id": "Appointment.participant:HealthcareService",
        "path": "Appointment.participant",
        "sliceName": "HealthcareService",
        "min": 1
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "max": "0"
      },
      {
        "id": "Appointment.id",
        "path": "Appointment.id",
        "min": 1
      }
    ]
  }
}