{
  "resourceType": "StructureDefinition",
  "id": "897178cf-9492-4daa-afad-eb4ab6fb8822",
  "meta": {
    "lastUpdated": "2020-11-20T07:56:19.403+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/AppointmentCancellationSe/v1",
  "name": "AppointmentCancellationSe",
  "status": "draft",
  "date": "2020-10-08T14:14:34.1436673+00:00",
  "description": "This profile should be used when a patient whish to cancel 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:cancellationMessage",
        "path": "Appointment.extension",
        "sliceName": "cancellationMessage",
        "short": "Message why the apppointment has been cancelled",
        "definition": "Message why the apppointment has been cancelled given by the patient.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/appointment-message"
            ]
          }
        ]
      },
      {
        "id": "Appointment.status",
        "path": "Appointment.status",
        "fixedCode": "cancelled"
      },
      {
        "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.start",
        "path": "Appointment.start",
        "max": "0"
      },
      {
        "id": "Appointment.end",
        "path": "Appointment.end",
        "max": "0"
      },
      {
        "id": "Appointment.minutesDuration",
        "path": "Appointment.minutesDuration",
        "max": "0"
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "max": "0"
      },
      {
        "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",
        "path": "Appointment.participant",
        "slicing": {
          "description": "NOTE! Using this profile means the Appointment is completely cancelled. Whether individual participants have accepted or declined is not relevant. Due to the fact that participant is mandatory at least one participant is required. None of the participant data will be processed as the appointment is completely cancelled.",
          "rules": "open"
        }
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "max": "0"
      },
      {
        "id": "Appointment.id",
        "path": "Appointment.id",
        "min": 1
      }
    ]
  }
}