FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packageservicewell.fhir.se.frenda-wof-connect-flc
Resource TypeStructureDefinition
IdStructureDefinition-frenda-get-appointment.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/servicewell/servicewell.fhir.se.frenda-wof-connect-flc/StructureDefinition-frenda-get-appointment.html
URLhttps://canonical.fhir.link/servicewell/fhir.se.frenda-wof-connect-flc/StructureDefinition/frenda-get-appointment
Version0.1.1
Statusdraft
Date2026-03-31T18:53:53+00:00
NameFrendaGetAppointment
TitleFrenda Appointment (Logical Model)
DescriptionLogisk modell av Frenda Get Appointment, inkl. klinik, behandlare och behandling.
Typehttps://canonical.fhir.link/servicewell/fhir.se.frenda-wof-connect-flc/StructureDefinition/frenda-get-appointment
Kindlogical

Resources that use this resource

StructureDefinition
servicewell.fhir.se.frenda-wof-connect-flc#currentpost-create-appointmentPost Create Appointment (Extract Model)

Resources that this resource uses

StructureDefinition
servicewell.fhir.se.frenda-wof-connect-flc#currentfrenda-clinicFrenda Clinic (Logical Model)

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition frenda-get-appointment

NameFlagsCard.TypeDescription & Constraintsdoco
.. frenda-get-appointment 0..*ElementFrenda Appointment (Logical Model)

Elements defined in Ancestors:@id, extension
... @id 0..1stringExtern teknisk identifierare
... start 1..1dateTimeStarttid (UTC)
... duration 0..1integerVaraktighet i minuter
... status 0..1codeStatus för bokningen (t.ex. booked | cancelled | fulfilled)
Binding: http://servicewell.se/fhir/ValueSet/frenda-appointment-status (preferred)
... reason 0..1stringFri text: orsak/anteckning
... isWebBooked 0..1booleanBokad via webben
... isCancellationAvailable 0..1booleanTillåter avbokning
... isRescheduleAvailable 0..1booleanTillåter ombokning
... canAppointmentBeRescheduled 0..1booleanKan ombokas (policy/kontroll)
... canAppointmentBeCancelled 0..1booleanKan avbokas (policy/kontroll)
... minChangeHours 0..1integerMinsta timmar före ändring/avbokning
... webReschedulingCount 0..1integerAntal genomförda ombokningar via webben
... webReschedulingCountAllowed 0..1integerMax antal ombokningar via webben
... webCode 0..1stringExtern kod för webbokning (om förekommer)
... clinic 1..1frenda-clinicKlinikuppgifter
... treater 0..1BackboneElementBehandlare
.... @id 0..1stringBehandlarens tekniska ID
.... name 0..1stringFullständigt namn (visningsnamn)
.... firstName 0..1stringFörnamn
.... lastName 0..1stringEfternamn
.... title 0..1stringTitel
.... hsaIdentity 0..1stringHSA-id
... treatment 0..1BackboneElementBehandling/åtgärd
.... @id 0..1stringBehandlingens tekniska ID
.... name 0..1stringBehandlingsnamn
.... duration 0..1integerRekommenderad varaktighet (min)
.... calendarTreatmentType 0..1stringTyp i kalender (t.ex. 'Akut')
.... description 0..1stringBeskrivning
... treatmentType 0..1codeTyp/klass av behandling (t.ex. 'Akut')
Binding: http://servicewell.se/fhir/ValueSet/frenda-treatment-type (example)

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "frenda-get-appointment",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://canonical.fhir.link/servicewell/fhir.se.frenda-wof-connect-flc/StructureDefinition/frenda-get-appointment",
  "version": "0.1.1",
  "name": "FrendaGetAppointment",
  "title": "Frenda Appointment (Logical Model)",
  "status": "draft",
  "date": "2026-03-31T18:53:53+00:00",
  "publisher": "Service Well AB",
  "contact": [
    {
      "name": "Service Well AB",
      "telecom": [
        {
          "system": "url",
          "value": "https://servicewell.se"
        }
      ]
    }
  ],
  "description": "Logisk modell av Frenda Get Appointment, inkl. klinik, behandlare och behandling.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "fhir",
      "uri": "http://hl7.org/v3",
      "name": "FHIR Appointment"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "https://canonical.fhir.link/servicewell/fhir.se.frenda-wof-connect-flc/StructureDefinition/frenda-get-appointment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "frenda-get-appointment",
        "path": "frenda-get-appointment",
        "short": "Frenda Appointment (Logical Model)",
        "definition": "Logisk modell av Frenda Get Appointment, inkl. klinik, behandlare och behandling.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.id",
        "path": "frenda-get-appointment.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Extern teknisk identifierare",
        "definition": "Extern teknisk identifierare",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.identifier.value"
          },
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.extension",
        "path": "frenda-get-appointment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.start",
        "path": "frenda-get-appointment.start",
        "short": "Starttid (UTC)",
        "definition": "Starttid (UTC)",
        "min": 1,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.start",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.start"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.duration",
        "path": "frenda-get-appointment.duration",
        "short": "Varaktighet i minuter",
        "definition": "Varaktighet i minuter",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.duration",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.minutesDuration"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.status",
        "path": "frenda-get-appointment.status",
        "short": "Status för bokningen (t.ex. booked | cancelled | fulfilled)",
        "definition": "Status för bokningen (t.ex. booked | cancelled | fulfilled)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.status",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "http://servicewell.se/fhir/ValueSet/frenda-appointment-status"
        },
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.status"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.reason",
        "path": "frenda-get-appointment.reason",
        "short": "Fri text: orsak/anteckning",
        "definition": "Fri text: orsak/anteckning",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.reason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.reason"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.isWebBooked",
        "path": "frenda-get-appointment.isWebBooked",
        "short": "Bokad via webben",
        "definition": "Bokad via webben",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.isWebBooked",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.isCancellationAvailable",
        "path": "frenda-get-appointment.isCancellationAvailable",
        "short": "Tillåter avbokning",
        "definition": "Tillåter avbokning",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.isCancellationAvailable",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.isRescheduleAvailable",
        "path": "frenda-get-appointment.isRescheduleAvailable",
        "short": "Tillåter ombokning",
        "definition": "Tillåter ombokning",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.isRescheduleAvailable",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.canAppointmentBeRescheduled",
        "path": "frenda-get-appointment.canAppointmentBeRescheduled",
        "short": "Kan ombokas (policy/kontroll)",
        "definition": "Kan ombokas (policy/kontroll)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.canAppointmentBeRescheduled",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.canAppointmentBeCancelled",
        "path": "frenda-get-appointment.canAppointmentBeCancelled",
        "short": "Kan avbokas (policy/kontroll)",
        "definition": "Kan avbokas (policy/kontroll)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.canAppointmentBeCancelled",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.minChangeHours",
        "path": "frenda-get-appointment.minChangeHours",
        "short": "Minsta timmar före ändring/avbokning",
        "definition": "Minsta timmar före ändring/avbokning",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.minChangeHours",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.webReschedulingCount",
        "path": "frenda-get-appointment.webReschedulingCount",
        "short": "Antal genomförda ombokningar via webben",
        "definition": "Antal genomförda ombokningar via webben",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.webReschedulingCount",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.webReschedulingCountAllowed",
        "path": "frenda-get-appointment.webReschedulingCountAllowed",
        "short": "Max antal ombokningar via webben",
        "definition": "Max antal ombokningar via webben",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.webReschedulingCountAllowed",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.webCode",
        "path": "frenda-get-appointment.webCode",
        "short": "Extern kod för webbokning (om förekommer)",
        "definition": "Extern kod för webbokning (om förekommer)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.webCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.clinic",
        "path": "frenda-get-appointment.clinic",
        "short": "Klinikuppgifter",
        "definition": "Klinikuppgifter",
        "min": 1,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.clinic",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "https://canonical.fhir.link/servicewell/fhir.se.frenda-wof-connect-flc/StructureDefinition/frenda-clinic"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.participant.actor(Organization|Location) | HealthcareService"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater",
        "path": "frenda-get-appointment.treater",
        "short": "Behandlare",
        "definition": "Behandlare",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treater",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.participant.actor(PractitionerRole|Practitioner)"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.id",
        "path": "frenda-get-appointment.treater.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Behandlarens tekniska ID",
        "definition": "Behandlarens tekniska ID",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.extension",
        "path": "frenda-get-appointment.treater.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.modifierExtension",
        "path": "frenda-get-appointment.treater.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.name",
        "path": "frenda-get-appointment.treater.name",
        "short": "Fullständigt namn (visningsnamn)",
        "definition": "Fullständigt namn (visningsnamn)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treater.name",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.firstName",
        "path": "frenda-get-appointment.treater.firstName",
        "short": "Förnamn",
        "definition": "Förnamn",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treater.firstName",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.lastName",
        "path": "frenda-get-appointment.treater.lastName",
        "short": "Efternamn",
        "definition": "Efternamn",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treater.lastName",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.title",
        "path": "frenda-get-appointment.treater.title",
        "short": "Titel",
        "definition": "Titel",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treater.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.hsaIdentity",
        "path": "frenda-get-appointment.treater.hsaIdentity",
        "short": "HSA-id",
        "definition": "HSA-id",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treater.hsaIdentity",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment",
        "path": "frenda-get-appointment.treatment",
        "short": "Behandling/åtgärd",
        "definition": "Behandling/åtgärd",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treatment",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.appointmentType | Appointment.serviceType | Appointment.description | Appointment.reason"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.id",
        "path": "frenda-get-appointment.treatment.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Behandlingens tekniska ID",
        "definition": "Behandlingens tekniska ID",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.extension",
        "path": "frenda-get-appointment.treatment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.modifierExtension",
        "path": "frenda-get-appointment.treatment.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.name",
        "path": "frenda-get-appointment.treatment.name",
        "short": "Behandlingsnamn",
        "definition": "Behandlingsnamn",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treatment.name",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.duration",
        "path": "frenda-get-appointment.treatment.duration",
        "short": "Rekommenderad varaktighet (min)",
        "definition": "Rekommenderad varaktighet (min)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treatment.duration",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.calendarTreatmentType",
        "path": "frenda-get-appointment.treatment.calendarTreatmentType",
        "short": "Typ i kalender (t.ex. 'Akut')",
        "definition": "Typ i kalender (t.ex. 'Akut')",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treatment.calendarTreatmentType",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.description",
        "path": "frenda-get-appointment.treatment.description",
        "short": "Beskrivning",
        "definition": "Beskrivning",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treatment.description",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatmentType",
        "path": "frenda-get-appointment.treatmentType",
        "short": "Typ/klass av behandling (t.ex. 'Akut')",
        "definition": "Typ/klass av behandling (t.ex. 'Akut')",
        "min": 0,
        "max": "1",
        "base": {
          "path": "frenda-get-appointment.treatmentType",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "example",
          "valueSet": "http://servicewell.se/fhir/ValueSet/frenda-treatment-type"
        }
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "frenda-get-appointment",
        "path": "frenda-get-appointment",
        "short": "Frenda Appointment (Logical Model)",
        "definition": "Logisk modell av Frenda Get Appointment, inkl. klinik, behandlare och behandling."
      },
      {
        "id": "frenda-get-appointment.id",
        "path": "frenda-get-appointment.id",
        "short": "Extern teknisk identifierare",
        "definition": "Extern teknisk identifierare",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.identifier.value"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.start",
        "path": "frenda-get-appointment.start",
        "short": "Starttid (UTC)",
        "definition": "Starttid (UTC)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.start"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.duration",
        "path": "frenda-get-appointment.duration",
        "short": "Varaktighet i minuter",
        "definition": "Varaktighet i minuter",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.minutesDuration"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.status",
        "path": "frenda-get-appointment.status",
        "short": "Status för bokningen (t.ex. booked | cancelled | fulfilled)",
        "definition": "Status för bokningen (t.ex. booked | cancelled | fulfilled)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "http://servicewell.se/fhir/ValueSet/frenda-appointment-status"
        },
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.status"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.reason",
        "path": "frenda-get-appointment.reason",
        "short": "Fri text: orsak/anteckning",
        "definition": "Fri text: orsak/anteckning",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.reason"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.isWebBooked",
        "path": "frenda-get-appointment.isWebBooked",
        "short": "Bokad via webben",
        "definition": "Bokad via webben",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.isCancellationAvailable",
        "path": "frenda-get-appointment.isCancellationAvailable",
        "short": "Tillåter avbokning",
        "definition": "Tillåter avbokning",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.isRescheduleAvailable",
        "path": "frenda-get-appointment.isRescheduleAvailable",
        "short": "Tillåter ombokning",
        "definition": "Tillåter ombokning",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.canAppointmentBeRescheduled",
        "path": "frenda-get-appointment.canAppointmentBeRescheduled",
        "short": "Kan ombokas (policy/kontroll)",
        "definition": "Kan ombokas (policy/kontroll)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.canAppointmentBeCancelled",
        "path": "frenda-get-appointment.canAppointmentBeCancelled",
        "short": "Kan avbokas (policy/kontroll)",
        "definition": "Kan avbokas (policy/kontroll)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.minChangeHours",
        "path": "frenda-get-appointment.minChangeHours",
        "short": "Minsta timmar före ändring/avbokning",
        "definition": "Minsta timmar före ändring/avbokning",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.webReschedulingCount",
        "path": "frenda-get-appointment.webReschedulingCount",
        "short": "Antal genomförda ombokningar via webben",
        "definition": "Antal genomförda ombokningar via webben",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.webReschedulingCountAllowed",
        "path": "frenda-get-appointment.webReschedulingCountAllowed",
        "short": "Max antal ombokningar via webben",
        "definition": "Max antal ombokningar via webben",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.webCode",
        "path": "frenda-get-appointment.webCode",
        "short": "Extern kod för webbokning (om förekommer)",
        "definition": "Extern kod för webbokning (om förekommer)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.clinic",
        "path": "frenda-get-appointment.clinic",
        "short": "Klinikuppgifter",
        "definition": "Klinikuppgifter",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "https://canonical.fhir.link/servicewell/fhir.se.frenda-wof-connect-flc/StructureDefinition/frenda-clinic"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.participant.actor(Organization|Location) | HealthcareService"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater",
        "path": "frenda-get-appointment.treater",
        "short": "Behandlare",
        "definition": "Behandlare",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.participant.actor(PractitionerRole|Practitioner)"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.id",
        "path": "frenda-get-appointment.treater.id",
        "short": "Behandlarens tekniska ID",
        "definition": "Behandlarens tekniska ID",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.name",
        "path": "frenda-get-appointment.treater.name",
        "short": "Fullständigt namn (visningsnamn)",
        "definition": "Fullständigt namn (visningsnamn)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.firstName",
        "path": "frenda-get-appointment.treater.firstName",
        "short": "Förnamn",
        "definition": "Förnamn",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.lastName",
        "path": "frenda-get-appointment.treater.lastName",
        "short": "Efternamn",
        "definition": "Efternamn",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.title",
        "path": "frenda-get-appointment.treater.title",
        "short": "Titel",
        "definition": "Titel",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treater.hsaIdentity",
        "path": "frenda-get-appointment.treater.hsaIdentity",
        "short": "HSA-id",
        "definition": "HSA-id",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment",
        "path": "frenda-get-appointment.treatment",
        "short": "Behandling/åtgärd",
        "definition": "Behandling/åtgärd",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mapping": [
          {
            "identity": "fhir",
            "map": "Appointment.appointmentType | Appointment.serviceType | Appointment.description | Appointment.reason"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.id",
        "path": "frenda-get-appointment.treatment.id",
        "short": "Behandlingens tekniska ID",
        "definition": "Behandlingens tekniska ID",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.name",
        "path": "frenda-get-appointment.treatment.name",
        "short": "Behandlingsnamn",
        "definition": "Behandlingsnamn",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.duration",
        "path": "frenda-get-appointment.treatment.duration",
        "short": "Rekommenderad varaktighet (min)",
        "definition": "Rekommenderad varaktighet (min)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.calendarTreatmentType",
        "path": "frenda-get-appointment.treatment.calendarTreatmentType",
        "short": "Typ i kalender (t.ex. 'Akut')",
        "definition": "Typ i kalender (t.ex. 'Akut')",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatment.description",
        "path": "frenda-get-appointment.treatment.description",
        "short": "Beskrivning",
        "definition": "Beskrivning",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "frenda-get-appointment.treatmentType",
        "path": "frenda-get-appointment.treatmentType",
        "short": "Typ/klass av behandling (t.ex. 'Akut')",
        "definition": "Typ/klass av behandling (t.ex. 'Akut')",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "example",
          "valueSet": "http://servicewell.se/fhir/ValueSet/frenda-treatment-type"
        }
      }
    ]
  }
}