{
  "resourceType": "StructureDefinition",
  "id": "0c8ae132-bbbc-4b0a-91a8-e7c8b226491a",
  "meta": {
    "lastUpdated": "2022-05-09T16:34:14.0710612+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/AppointmentSe/v1",
  "version": "1.1.0",
  "name": "AppointmentSe",
  "status": "active",
  "date": "2022-05-09T16:34:53.0943539+00:00",
  "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",
  "differential": {
    "element": [
      {
        "id": "Appointment.extension",
        "path": "Appointment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Appointment.extension:url",
        "path": "Appointment.extension",
        "sliceName": "url",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://cambio.se/fhir/StructureDefinition/appointment-Url/v1"
            ]
          }
        ]
      },
      {
        "id": "Appointment.extension:urlLabel",
        "path": "Appointment.extension",
        "sliceName": "urlLabel",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/urlLabel/v1"
            ]
          }
        ]
      },
      {
        "id": "Appointment.extension:urlNotAvailableMessage",
        "path": "Appointment.extension",
        "sliceName": "urlNotAvailableMessage",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/appointment-urlNotAvailableMessage/v1"
            ]
          }
        ]
      },
      {
        "id": "Appointment.extension:class",
        "path": "Appointment.extension",
        "sliceName": "class",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/appointment-encounterClass/v1"
            ]
          }
        ]
      },
      {
        "id": "Appointment.extension:navigationInstruction",
        "path": "Appointment.extension",
        "sliceName": "navigationInstruction",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/appointment-navigationInstruction/v1"
            ]
          }
        ]
      },
      {
        "id": "Appointment.identifier",
        "path": "Appointment.identifier",
        "max": "0"
      },
      {
        "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.supportingInformation",
        "path": "Appointment.supportingInformation",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "type"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.supportingInformation:encounter",
        "path": "Appointment.supportingInformation",
        "sliceName": "encounter",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ]
          }
        ]
      },
      {
        "id": "Appointment.supportingInformation:encounter.type",
        "path": "Appointment.supportingInformation.type",
        "min": 1,
        "fixedUri": "encounter"
      },
      {
        "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",
        "definition": "Additional comments about the appointment to the patient. Can be specific information to the patient concerning the appointment, e.g. printout information around the offers of the unit (Vårdtjänsten) and e.g. how the meeting will be held."
      },
      {
        "id": "Appointment.patientInstruction",
        "path": "Appointment.patientInstruction",
        "definition": "General information to the patient, e.g. opening/closing times of the unit etc."
      },
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "max": "0"
      },
      {
        "id": "Appointment.participant:location",
        "path": "Appointment.participant",
        "sliceName": "location",
        "short": "Performing unit for the Appointment",
        "definition": "Performing unit for the Appointment"
      },
      {
        "id": "Appointment.participant:location.actor",
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:practitioner",
        "path": "Appointment.participant",
        "sliceName": "practitioner"
      },
      {
        "id": "Appointment.participant:practitioner.type",
        "path": "Appointment.participant.type",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.code"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Appointment.participant:practitioner.type:primaryPerformer",
        "path": "Appointment.participant.type",
        "sliceName": "primaryPerformer"
      },
      {
        "id": "Appointment.participant:practitioner.type:primaryPerformer.coding.code",
        "path": "Appointment.participant.type.coding.code",
        "short": "The principal or primary performer of the appointment.",
        "definition": "The principal or primary performer of the appointment. In COMSIC this corresponds to the main staff for the appointment.",
        "fixedCode": "PPRF"
      },
      {
        "id": "Appointment.participant:practitioner.type:secondaryPerformer",
        "path": "Appointment.participant.type",
        "sliceName": "secondaryPerformer"
      },
      {
        "id": "Appointment.participant:practitioner.type:secondaryPerformer.coding.code",
        "path": "Appointment.participant.type.coding.code",
        "short": "A secondary performer in the appointment.",
        "definition": "A person assisting in an act through his substantial presence and involvement This includes: assistants, technicians, associates, or whatever the job titles may be.",
        "fixedCode": "SPRF"
      },
      {
        "id": "Appointment.participant:device",
        "path": "Appointment.participant",
        "sliceName": "device",
        "max": "0"
      },
      {
        "id": "Appointment.participant:healthcareService",
        "path": "Appointment.participant",
        "sliceName": "healthcareService"
      },
      {
        "id": "Appointment.participant:healthcareService.actor",
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.cambio.se/StructureDefinition/HealthcareServiceLiteSe/v1"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:practitionerRole",
        "path": "Appointment.participant",
        "sliceName": "practitionerRole",
        "max": "0"
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "max": "0"
      }
    ]
  }
}