{
  "resourceType": "StructureDefinition",
  "id": "0c8ae132-bbbc-4b0a-91a8-e7c8b226491a",
  "meta": {
    "lastUpdated": "2020-11-19T12:56:36.455+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/AppointmentSe/v1",
  "name": "AppointmentSe",
  "status": "draft",
  "date": "2020-11-18T09:46:40.7498812+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",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Appointment.extension",
        "path": "Appointment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.extension:url",
        "path": "Appointment.extension",
        "sliceName": "url",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://cambio.se/fhir/StructureDefinition/appointment-Url/v1"
            ]
          }
        ]
      },
      {
        "id": "Appointment.extension:urlLabel",
        "path": "Appointment.extension",
        "sliceName": "urlLabel",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/urlLabel/v1"
            ]
          }
        ]
      },
      {
        "id": "Appointment.extension:urlNotAvailableMessage",
        "path": "Appointment.extension",
        "sliceName": "urlNotAvailableMessage",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/appointment-urlNotAvailableMessage/v1"
            ]
          }
        ]
      },
      {
        "id": "Appointment.extension:class",
        "path": "Appointment.extension",
        "sliceName": "class",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/appointment-encounterClass"
            ]
          }
        ]
      },
      {
        "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.minutesDuration",
        "path": "Appointment.minutesDuration",
        "max": "0"
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "max": "0"
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "max": "0"
      },
      {
        "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:practitionerRole",
        "path": "Appointment.participant",
        "sliceName": "practitionerRole",
        "max": "0"
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "max": "0"
      }
    ]
  }
}