SGHI FHIR Profile Implementation Guide
0.1.0 - ci-build

SGHI FHIR Profile Implementation Guide, published by Kathurima Kimathi. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/savannahghi/sil_fhir_profile_ig/ and changes regularly. See the Directory of published versions

## Resource Profile: SGHIAppointment - XML Profile

Draft as of 2026-05-21

XML representation of the appointment resource profile.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="appointment"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition appointment</b></p><a name="appointment"> </a><a name="hcappointment"> </a><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment">Appointment</a><a name="Appointment"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R5/appointment.html">Appointment</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.identifier">identifier</a><a name="Appointment.identifier"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">External Ids for this item</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.identifier.use">use</a><a name="Appointment.identifier.use"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">usual | official | temp | secondary | old (If known)</span><br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="http://hl7.org/fhir/R5/valueset-identifier-use.html" title="http://hl7.org/fhir/ValueSet/identifier-use" class="binding">IdentifierUse</a><span title="null" class="binding"> (</span><a href="http://hl7.org/fhir/R5/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set." class="binding">required</a><span title="null" class="binding">)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.identifier.type">type</a><a name="Appointment.identifier.type"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-codeableconcept.html" title="CodeableConcept">SGHICodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Description of identifier</span><br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="ValueSet-default-identifier-types.html" title="https://fhir.slade360.co.ke/fhir/ValueSet/default-identifier-types" class="binding">SGHI Default Identifier Types</a><span title="null" class="binding"> (</span><a href="http://hl7.org/fhir/R5/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set." class="binding">required</a><span title="null" class="binding">)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.identifier.system">system</a><a name="Appointment.identifier.system"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#uri">uri</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The namespace for the identifier value</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.identifier.value">value</a><a name="Appointment.identifier.value"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The value that is unique</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.identifier.assigner">assigner</a><a name="Appointment.identifier.assigner"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-reference.html" title="SGHI Reference">SGHIReference</a>(<a href="StructureDefinition-organization.html">SGHI Organization</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Organization that issued id (may be just text)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.cancellationReason">cancellationReason</a><a name="Appointment.cancellationReason"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-codeableconcept.html" title="CodeableConcept">SGHICodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The coded reason for the appointment being cancelled</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.class">class</a><a name="Appointment.class"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-codeableconcept.html" title="CodeableConcept">SGHICodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Classification when becoming an encounter</span><br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="ValueSet-all-loinc-codes.html" title="https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes" class="binding">All LOINC Codes</a><span title="null" class="binding"> (</span><a href="http://hl7.org/fhir/R5/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set." class="binding">required</a><span title="null" class="binding">)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.serviceCategory">serviceCategory</a><a name="Appointment.serviceCategory"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-codeableconcept.html" title="CodeableConcept">SGHICodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">A broad categorization of the service that is to be performed during this appointment</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.specialty">specialty</a><a name="Appointment.specialty"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-codeableconcept.html" title="CodeableConcept">SGHICodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The specialty of a practitioner that would be required to perform the service requested in this appointment</span><br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="ValueSet-speciality.html" title="https://fhir.slade360.co.ke/fhir/ValueSet/speciality" class="binding">speciality</a><span title="null" class="binding"> (</span><a href="http://hl7.org/fhir/R5/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set." class="binding">required</a><span title="null" class="binding">)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.appointmentType">appointmentType</a><a name="Appointment.appointmentType"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-codeableconcept.html" title="CodeableConcept">SGHICodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The style of appointment or patient that has been booked in the slot (not service type)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.reason">reason</a><a name="Appointment.reason"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-codeable-reference.html" title="SGHI CodeableReference">SGHICodeableReference</a>(<a href="StructureDefinition-condition.html">SGHI Condition</a> | <a href="StructureDefinition-observation.html">SGHI Observation</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Reason this appointment is scheduled</span><br class="binding"/><span style="font-weight:bold" title="null" class="binding">Binding: </span><a href="ValueSet-all-loinc-codes.html" title="https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes" class="binding">All LOINC Codes</a><span title="null" class="binding"> (</span><a href="http://hl7.org/fhir/R5/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set." class="binding">required</a><span title="null" class="binding">)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.priority">priority</a><a name="Appointment.priority"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-codeableconcept.html" title="CodeableConcept">SGHICodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Used to make informed decisions if needing to re-prioritize</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.replaces">replaces</a><a name="Appointment.replaces"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-reference.html" title="SGHI Reference">SGHIReference</a>(<a href="StructureDefinition-appointment.html">SGHI Appointment Profile</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Appointment replaced by this Appointment</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.previousAppointment">previousAppointment</a><a name="Appointment.previousAppointment"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-reference.html" title="SGHI Reference">SGHIReference</a>(<a href="StructureDefinition-appointment.html">SGHI Appointment Profile</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The previous appointment in a series</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.originatingAppointment">originatingAppointment</a><a name="Appointment.originatingAppointment"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-reference.html" title="SGHI Reference">SGHIReference</a>(<a href="StructureDefinition-appointment.html">SGHI Appointment Profile</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The originating appointment in a recurring set of appointments</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.start">start</a><a name="Appointment.start"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#instant">instant</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">When appointment is to take place</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.created">created</a><a name="Appointment.created"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; opacity: 0.5" href="http://hl7.org/fhir/R5/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The date that this appointment was initially created</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.basedOn">basedOn</a><a name="Appointment.basedOn"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-reference.html" title="SGHI Reference">SGHIReference</a>(<a href="StructureDefinition-servicerequest.html">SGHI ServiceRequest</a> | <a href="StructureDefinition-medicationrequest.html">SGHI MedicationRequest</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The request this appointment is allocated to assess</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.subject">subject</a><a name="Appointment.subject"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-reference.html" title="SGHI Reference">SGHIReference</a>(<a href="StructureDefinition-patient.html">SGHI Patient</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The patient or group associated with the appointment</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.participant">participant</a><a name="Appointment.participant"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck010.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_datatype.gif" alt="." style="background-color: white; background-color: inherit" title="Data Type" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.participant.type">type</a><a name="Appointment.participant.type"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-codeableconcept.html" title="CodeableConcept">SGHICodeableConcept</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Role of participant in the appointment</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-appointment-definitions.html#Appointment.participant.actor">actor</a><a name="Appointment.participant.actor"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-reference.html" title="SGHI Reference">SGHIReference</a>(<a href="StructureDefinition-patient.html">SGHI Patient</a> | <a href="StructureDefinition-practitioner.html">SGHI Practitioner</a> | <a href="StructureDefinition-fhir-location.html">SGHI Location</a> | <a href="StructureDefinition-practitionerrole.html">SGHI PractitionerRole</a>)</td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The individual, device, location, or service participating in the appointment</span></td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <url
           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/appointment"/>
      <version value="0.1.0"/>
      <name value="SGHIAppointment"/>
      <title value="SGHI Appointment Profile"/>
      <status value="draft"/>
      <date value="2026-05-21T09:38:13+00:00"/>
      <publisher value="Kathurima Kimathi"/>
      <contact>
        <name value="Kathurima Kimathi"/>
        <telecom>
          <system value="url"/>
          <value value="https://www.linkedin.com/in/kathurima-kimathi/"/>
        </telecom>
        <telecom>
          <system value="email"/>
          <value value="kathurimakimathi415@gmail.com"/>
        </telecom>
      </contact>
      <contact>
        <name value="Oscar John"/>
        <telecom>
          <system value="email"/>
          <value value="oscarjohnotieno@gmail.com"/>
          <use value="work"/>
        </telecom>
      </contact>
      <contact>
        <name value="Kennedy Omondi"/>
        <telecom>
          <system value="email"/>
          <value value="kennankole@gmail.com"/>
          <use value="work"/>
        </telecom>
      </contact>
      <description
                   value="A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."/>
      <fhirVersion value="5.0.0"/>
      <mapping>
        <identity value="workflow"/>
        <uri value="http://hl7.org/fhir/workflow"/>
        <name value="Workflow Pattern"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <uri value="http://hl7.org/fhir/fivews"/>
        <name value="FiveWs Pattern Mapping"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <mapping>
        <identity value="ical"/>
        <uri value="http://ietf.org/rfc/2445"/>
        <name value="iCalendar"/>
      </mapping>
      <mapping>
        <identity value="v2"/>
        <uri value="http://hl7.org/v2"/>
        <name value="HL7 V2 Mapping"/>
      </mapping>
      <kind value="resource"/>
      <abstract value="false"/>
      <type value="Appointment"/>
      <baseDefinition
                      value="http://hl7.org/fhir/StructureDefinition/Appointment"/>
      <derivation value="constraint"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="5.0.0"/>
        </extension>
        <element id="Appointment">
          <path value="Appointment"/>
          <short
                 value="A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)"/>
          <definition
                      value="A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <constraint>
            <key value="app-2"/>
            <severity value="error"/>
            <human value="Either start and end are specified, or neither"/>
            <expression value="start.exists() = end.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Appointment"/>
          </constraint>
          <constraint>
            <key value="app-3"/>
            <severity value="error"/>
            <human
                   value="Only proposed or cancelled appointments can be missing start/end dates"/>
            <expression
                        value="(start.exists() and end.exists()) or (status in ('proposed' | 'cancelled' | 'waitlist'))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Appointment"/>
          </constraint>
          <constraint>
            <key value="app-4"/>
            <severity value="error"/>
            <human
                   value="Cancellation reason is only used for appointments that have been cancelled, or noshow"/>
            <expression
                        value="cancellationReason.exists() implies (status='noshow' or status='cancelled')"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Appointment"/>
          </constraint>
          <constraint>
            <key value="app-5"/>
            <severity value="error"/>
            <human value="The start must be less than or equal to the end"/>
            <expression value="start.exists() implies start &lt;= end"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Appointment"/>
          </constraint>
          <constraint>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
              <valueBoolean value="true"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
              <valueMarkdown
                             value="For a recurring series of appointments, the originating appointment should have the recurrenceTemplate defining the details of the overall recurrence.  Each occurence should refer back to the originatingAppointment as the single source of truth for the details of the recurrence."/>
            </extension>
            <key value="app-6"/>
            <severity value="warning"/>
            <human
                   value="An appointment may have an originatingAppointment or recurrenceTemplate, but not both"/>
            <expression
                        value="originatingAppointment.exists().not() or recurrenceTemplate.exists().not()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Appointment"/>
          </constraint>
          <constraint>
            <key value="app-7"/>
            <severity value="error"/>
            <human
                   value="Cancellation date is only used for appointments that have been cancelled, or noshow"/>
            <expression
                        value="cancellationDate.exists() implies (status='noshow' or status='cancelled')"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Appointment"/>
          </constraint>
          <constraint>
            <key value="dom-2"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
            <expression value="contained.contained.empty()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-3"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource"/>
            <expression
                        value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-4"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
            <expression
                        value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-5"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a security label"/>
            <expression value="contained.meta.security.empty()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
              <valueBoolean value="true"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
              <valueMarkdown
                             value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."/>
            </extension>
            <key value="dom-6"/>
            <severity value="warning"/>
            <human
                   value="A resource should have narrative for robust management"/>
            <expression value="text.`div`.exists()"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Entity, Role, or Act,Act[@moodCode &lt;= 'INT']"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="workflow.scheduling"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="VEVENT"/>
          </mapping>
        </element>
        <element id="Appointment.id">
          <path value="Appointment.id"/>
          <short value="Logical id of this artifact"/>
          <definition
                      value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
          <comment
                   value="Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="id"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Appointment.meta">
          <path value="Appointment.meta"/>
          <short value="Metadata about the resource"/>
          <definition
                      value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.meta"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Meta"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Appointment.implicitRules">
          <path value="Appointment.implicitRules"/>
          <short value="A set of rules under which this content was created"/>
          <definition
                      value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc."/>
          <comment
                   value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.implicitRules"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation"/>
          <isSummary value="true"/>
        </element>
        <element id="Appointment.language">
          <path value="Appointment.language"/>
          <short value="Language of the resource content"/>
          <definition
                      value="The base language in which the resource is written."/>
          <comment
                   value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.language"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Language"/>
            </extension>
            <strength value="required"/>
            <description value="IETF language tag for a human language"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/all-languages|5.0.0"/>
            <additional>
              <purpose value="starter"/>
              <valueSet value="http://hl7.org/fhir/ValueSet/languages|5.0.0"/>
            </additional>
          </binding>
        </element>
        <element id="Appointment.text">
          <path value="Appointment.text"/>
          <short value="Text summary of the resource, for human interpretation"/>
          <definition
                      value="A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
          <comment
                   value="Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded information is added later."/>
          <alias value="narrative"/>
          <alias value="html"/>
          <alias value="xhtml"/>
          <alias value="display"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Narrative"/>
          </type>
          <condition value="dom-6"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Act.text?"/>
          </mapping>
        </element>
        <element id="Appointment.contained">
          <path value="Appointment.contained"/>
          <short value="Contained, inline Resources"/>
          <definition
                      value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning."/>
          <comment
                   value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels."/>
          <alias value="inline resources"/>
          <alias value="anonymous resources"/>
          <alias value="contained resources"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.contained"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
          <condition value="dom-2"/>
          <condition value="dom-4"/>
          <condition value="dom-3"/>
          <condition value="dom-5"/>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.extension">
          <path value="Appointment.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, 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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.modifierExtension">
          <path value="Appointment.modifierExtension"/>
          <short value="Extensions that cannot be ignored"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to 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.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="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
                        value="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/R5/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.identifier">
          <path value="Appointment.identifier"/>
          <short value="External Ids for this item"/>
          <definition
                      value="This records identifiers associated with this appointment concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)."/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="Appointment.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.identifier"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SCH-1, SCH-2, ARQ-1, ARQ-2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="UID"/>
          </mapping>
        </element>
        <element id="Appointment.identifier.id">
          <path value="Appointment.identifier.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="id"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <condition value="ele-1"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.identifier.extension">
          <path value="Appointment.identifier.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="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 managable, 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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.identifier.use">
          <path value="Appointment.identifier.use"/>
          <short value="usual | official | temp | secondary | old (If known)"/>
          <definition value="The purpose of this identifier."/>
          <comment
                   value="Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."/>
          <requirements
                        value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Identifier.use"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This is labeled as &quot;Is Modifier&quot; because applications should not mistake a temporary id for a permanent one."/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Role.code or implied by context"/>
          </mapping>
        </element>
        <element id="Appointment.identifier.type">
          <path value="Appointment.identifier.type"/>
          <short value="Description of identifier"/>
          <definition
                      value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/>
          <comment
                   value="This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage.   Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type."/>
          <requirements
                        value="Allows users to make use of identifiers when the identifier system is not known."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Identifier.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://fhir.slade360.co.ke/fhir/ValueSet/default-identifier-types"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="CX.5"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Role.code or implied by context"/>
          </mapping>
        </element>
        <element id="Appointment.identifier.system">
          <path value="Appointment.identifier.system"/>
          <short value="The namespace for the identifier value"/>
          <definition
                      value="Establishes the namespace for the value - that is, an absolute URL that describes a set values that are unique."/>
          <comment value="Identifier.system is always case sensitive."/>
          <requirements
                        value="There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Identifier.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <example>
            <label value="General"/>
            <valueUri value="http://www.acme.com/identifiers/patient"/>
          </example>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="CX.4 / EI-2-4"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="II.root or Role.id.root"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="./IdentifierType"/>
          </mapping>
        </element>
        <element id="Appointment.identifier.value">
          <path value="Appointment.identifier.value"/>
          <short value="The value that is unique"/>
          <definition
                      value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/>
          <comment
                   value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [http://hl7.org/fhir/StructureDefinition/rendered-value](http://hl7.org/fhir/extensions/StructureDefinition-rendered-value.html)). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Identifier.value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <example>
            <label value="General"/>
            <valueString value="123456"/>
          </example>
          <condition value="ident-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="CX.1 / EI.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="./Value"/>
          </mapping>
        </element>
        <element id="Appointment.identifier.period">
          <path value="Appointment.identifier.period"/>
          <short value="Time period when id is/was valid for use"/>
          <definition
                      value="Time period during which identifier is/was valid for use."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Identifier.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="CX.7 + CX.8"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Role.effectiveTime or implied by context"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="./StartDate and ./EndDate"/>
          </mapping>
        </element>
        <element id="Appointment.identifier.assigner">
          <path value="Appointment.identifier.assigner"/>
          <short value="Organization that issued id (may be just text)"/>
          <definition value="Organization that issued/manages the identifier."/>
          <comment
                   value="The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Identifier.assigner"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/organization"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="CX.4 / (CX.4,CX.9,CX.10)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="./IdentifierIssuingAuthority"/>
          </mapping>
        </element>
        <element id="Appointment.status">
          <path value="Appointment.status"/>
          <short
                 value="proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error | checked-in | waitlist"/>
          <definition
                      value="The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status."/>
          <comment
                   value="If the Appointment's status is &quot;cancelled&quot; then all participants are expected to have their calendars released for the appointment period, and as such any Slots that were marked as BUSY can be re-set to FREE.

    This element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Appointment.status"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="app-4"/>
          <condition value="app-3"/>
          <condition value="app-7"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AppointmentStatus"/>
            </extension>
            <strength value="required"/>
            <description value="The free/busy status of an appointment."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/appointmentstatus|5.0.0"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.status"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.status"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SCH-25"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".statusCode"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="STATUS"/>
          </mapping>
        </element>
        <element id="Appointment.cancellationReason">
          <path value="Appointment.cancellationReason"/>
          <short value="The coded reason for the appointment being cancelled"/>
          <definition
                      value="The coded reason for the appointment being cancelled. This is often used in reporting/billing/futher processing to determine if further actions are required, or specific fees apply."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.cancellationReason"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <condition value="app-4"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="cancellation-reason"/>
            </extension>
            <strength value="example"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/appointment-cancellation-reason|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.class">
          <path value="Appointment.class"/>
          <short value="Classification when becoming an encounter"/>
          <definition
                      value="Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.class"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.class"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PV1-2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code"/>
          </mapping>
        </element>
        <element id="Appointment.serviceCategory">
          <path value="Appointment.serviceCategory"/>
          <short
                 value="A broad categorization of the service that is to be performed during this appointment"/>
          <definition
                      value="A broad categorization of the service that is to be performed during this appointment."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.serviceCategory"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-category"/>
            </extension>
            <strength value="example"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/service-category|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a, might be inferred from the ServiceDeliveryLocation"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="CATEGORIES"/>
          </mapping>
        </element>
        <element id="Appointment.serviceType">
          <path value="Appointment.serviceType"/>
          <short
                 value="The specific service that is to be performed during this appointment"/>
          <definition
                      value="The specific service that is to be performed during this appointment."/>
          <comment
                   value="For a provider to provider appointment the code &quot;FOLLOWUP&quot; may be appropriate, as this is expected to be discussing some patient that was seen in the past."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.serviceType"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableReference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/HealthcareService|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="service-type"/>
            </extension>
            <strength value="example"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/service-type|5.0.0"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.code"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="ARQ-8, SCH-8"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="n/a, might be inferred from the ServiceDeliveryLocation"/>
          </mapping>
        </element>
        <element id="Appointment.specialty">
          <path value="Appointment.specialty"/>
          <short
                 value="The specialty of a practitioner that would be required to perform the service requested in this appointment"/>
          <definition
                      value="The specialty of a practitioner that would be required to perform the service requested in this appointment."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.specialty"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://fhir.slade360.co.ke/fhir/ValueSet/speciality"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.class"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".performer.AssignedPerson.code"/>
          </mapping>
        </element>
        <element id="Appointment.appointmentType">
          <path value="Appointment.appointmentType"/>
          <short
                 value="The style of appointment or patient that has been booked in the slot (not service type)"/>
          <definition
                      value="The style of appointment or patient that has been booked in the slot (not service type)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Appointment.appointmentType"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="appointment-type"/>
            </extension>
            <strength value="preferred"/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v2-0276"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="ARQ-7, SCH-7"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".code"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="CLASSIFICATION"/>
          </mapping>
        </element>
        <element id="Appointment.reason">
          <path value="Appointment.reason"/>
          <short value="Reason this appointment is scheduled"/>
          <definition
                      value="The reason that this appointment is being scheduled. This is more clinical than administrative. This can be coded, or as specified using information from another resource. When the patient arrives and the encounter begins it may be used as the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.reason"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableReference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeable-reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/condition"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/observation"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.reason"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="AIS-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".reasonCode"/>
          </mapping>
        </element>
        <element id="Appointment.priority">
          <path value="Appointment.priority"/>
          <short
                 value="Used to make informed decisions if needing to re-prioritize"/>
          <definition
                      value="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority)."/>
          <comment
                   value="Seeking implementer feedback on this property and how interoperable it is.

    Using an extension to record a CodeableConcept for named values may be tested at a future connectathon."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Appointment.priority"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Priority"/>
            </extension>
            <strength value="example"/>
            <description value="Indicates the urgency of the appointment."/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActPriority"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.priority"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.class"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="ARQ-12, SCH-11.6 / TQ1-9"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".priorityCode"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="PRIORITY"/>
          </mapping>
        </element>
        <element id="Appointment.description">
          <path value="Appointment.description"/>
          <short
                 value="Shown on a subject line in a meeting request, or appointment list"/>
          <definition
                      value="The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the note field."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map value="NTE-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".text"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="SUMMARY"/>
          </mapping>
        </element>
        <element id="Appointment.replaces">
          <path value="Appointment.replaces"/>
          <short value="Appointment replaced by this Appointment"/>
          <definition
                      value="Appointment replaced by this Appointment in cases where there is a cancellation, the details of the cancellation can be found in the cancellationReason property (on the referenced resource)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.replaces"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/appointment"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.replaces"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.context"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".inboundRelationship[@typeCode = 'SPRT'].observation"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="ATTACH"/>
          </mapping>
        </element>
        <element id="Appointment.virtualService">
          <path value="Appointment.virtualService"/>
          <short
                 value="Connection details of a virtual service (e.g. conference call)"/>
          <definition
                      value="Connection details of a virtual service (e.g. conference call)."/>
          <comment
                   value="There are two types of virtual meetings that often exist:

    * a persistent, virtual meeting room that can only be used for a single purpose at a time,
    * and a dynamic virtual meeting room that is generated on demand for a specific purpose.

    Implementers may consider using Location.virtualService for persistent meeting rooms.

    If each participant would have a different meeting link, an extension using the VirtualServiceContactDetail  can be applied to the Appointment.participant BackboneElement."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.virtualService"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="VirtualServiceDetail"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.supportingInformation">
          <path value="Appointment.supportingInformation"/>
          <short value="Additional information to support the appointment"/>
          <definition
                      value="Additional information to support the appointment provided when making the appointment."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.supportingInformation"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Resource|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.supportingInfo"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.context"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".inboundRelationship[@typeCode = 'SPRT'].observation"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="ATTACH"/>
          </mapping>
        </element>
        <element id="Appointment.previousAppointment">
          <path value="Appointment.previousAppointment"/>
          <short value="The previous appointment in a series"/>
          <definition
                      value="The previous appointment in a series of related appointments."/>
          <comment
                   value="This property is intended for use when representing a series of related appointments.  For example, in a nuclear medicine procedure, where there is an appointment for the injection of the isotopes, and then a subsequent appointment for the scan, the scan appointment would refer to the injection appointment via Appointment.previousAppointment.  For representing recurring appointments, see the guidance on recurring vs. series appointments."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.previousAppointment"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/appointment"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.context"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.originatingAppointment">
          <path value="Appointment.originatingAppointment"/>
          <short
                 value="The originating appointment in a recurring set of appointments"/>
          <definition
                      value="The originating appointment in a recurring set of related appointments."/>
          <comment
                   value="This property is intended for use when representing a recurring set of related appointments.

    For example, a patient undergoing physical therapy may have a recurring appointment every Tuesday and Thursday.  Each occurrence of the set will refer to the originating appointment, which contains the recurring template information.  For representing appointment series, see the guidance on recurring vs. series appointments."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.originatingAppointment"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/appointment"/>
          </type>
          <condition value="app-6"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.context"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.start">
          <path value="Appointment.start"/>
          <short value="When appointment is to take place"/>
          <definition value="Date/Time that the appointment is to take place."/>
          <comment
                   value="If actual start/end times are not known then the requested period start/end can be used."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Appointment.start"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="instant"/>
          </type>
          <condition value="app-5"/>
          <condition value="app-3"/>
          <condition value="app-2"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.occurrence[x]"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.init"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="ARQ-11.1, SCH-11.4 / TQ1-7"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime.low"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="DTSTART"/>
          </mapping>
        </element>
        <element id="Appointment.end">
          <path value="Appointment.end"/>
          <short value="When appointment is to conclude"/>
          <definition value="Date/Time that the appointment is to conclude."/>
          <comment
                   value="If actual start/end times are not known then the requested period start/end can be used."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.end"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="instant"/>
          </type>
          <condition value="app-5"/>
          <condition value="app-3"/>
          <condition value="app-2"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.occurrence[x]"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.done[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="SCH-11.5 / TQ1-8/ calculated based on the start and the duration which is in ARQ-9"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime.high"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="DTEND"/>
          </mapping>
        </element>
        <element id="Appointment.minutesDuration">
          <path value="Appointment.minutesDuration"/>
          <short value="Can be less than start/end (e.g. estimate)"/>
          <definition
                      value="Number of minutes that the appointment is to take. This can be less than the duration between the start and end times.  For example, where the actual time of appointment is only an estimate or if a 30 minute appointment is being requested, but any time would work.  Also, if there is, for example, a planned 15 minute break in the middle of a long appointment, the duration may be 15 minutes less than the difference between the start and end."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.minutesDuration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.occurrence[x]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')].width"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="DURATION (e.g. PT15M)"/>
          </mapping>
        </element>
        <element id="Appointment.requestedPeriod">
          <path value="Appointment.requestedPeriod"/>
          <short
                 value="Potential date/time interval(s) requested to allocate the appointment within"/>
          <definition
                      value="A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.

    The duration (usually in minutes) could also be provided to indicate the length of the appointment to fill and populate the start/end times for the actual allocated time. However, in other situations the duration may be calculated by the scheduling system."/>
          <comment
                   value="This does not introduce a capacity for recurring appointments."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.requestedPeriod"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.occurrence[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="ARQ-11"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')]"/>
          </mapping>
        </element>
        <element id="Appointment.slot">
          <path value="Appointment.slot"/>
          <short value="The slots that this appointment is filling"/>
          <definition
                      value="The slots from the participants' schedules that will be filled by the appointment."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.slot"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Slot|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[@typeCode = 'REFR'].act[@classCode = 'ACT'][@moodCode = 'SLOT']"/>
          </mapping>
        </element>
        <element id="Appointment.account">
          <path value="Appointment.account"/>
          <short
                 value="The set of accounts that may be used for billing for this Appointment"/>
          <definition
                      value="The set of accounts that is expected to be used for billing the activities that result from this Appointment."/>
          <comment
                   value="The specified account(s) could be those identified during pre-registration workflows in preparation for an upcoming Encounter."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.account"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Account|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".pertains.A_Account"/>
          </mapping>
        </element>
        <element id="Appointment.created">
          <path value="Appointment.created"/>
          <short value="The date that this appointment was initially created"/>
          <definition
                      value="The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment."/>
          <comment
                   value="This property is required for many use cases where the age of an appointment is considered in processing workflows for scheduling and billing of appointments."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Appointment.created"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.authoredOn"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".author.time"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="CREATED"/>
          </mapping>
        </element>
        <element id="Appointment.cancellationDate">
          <path value="Appointment.cancellationDate"/>
          <short value="When the appointment was cancelled"/>
          <definition
                      value="The date/time describing when the appointment was cancelled."/>
          <comment
                   value="If the appointment was cancelled multiple times, this would reflect the most recent cancellation."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.cancellationDate"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <condition value="app-7"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.note">
          <path value="Appointment.note"/>
          <short value="Additional comments"/>
          <definition value="Additional notes/comments about the appointment."/>
          <comment
                   value="Additional text to aid in facilitating the appointment. For instance, a note might be, &quot;patient should proceed immediately to infusion room upon arrival&quot;

    Where this is a planned appointment and the start/end dates are not set then this field can be used to provide additional guidance on the details of the appointment request, including any restrictions on when to book it.

    Typically only the concept.text will be used, however occasionally a reference to some generic documentation (or specific) and also supports coded instructions if/when they are required."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.note"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Annotation"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.note"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="NTE-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="DESCRIPTION (for internal use)"/>
          </mapping>
        </element>
        <element id="Appointment.patientInstruction">
          <path value="Appointment.patientInstruction"/>
          <short value="Detailed information and instructions for the patient"/>
          <definition
                      value="While Appointment.note contains information for internal use, Appointment.patientInstructions is used to capture patient facing information about the Appointment (e.g. please bring your referral or fast from 8pm night before)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.patientInstruction"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableReference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/DocumentReference|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Binary|5.0.0"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Communication|5.0.0"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map value="NTE-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="DESCRIPTION (for patient use)"/>
          </mapping>
        </element>
        <element id="Appointment.basedOn">
          <path value="Appointment.basedOn"/>
          <short value="The request this appointment is allocated to assess"/>
          <definition
                      value="The request this appointment is allocated to assess (e.g. incoming referral or procedure request)."/>
          <alias value="incomingReferral"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.basedOn"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/servicerequest"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.basedOn"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[@typeCode = 'FLFS'].act[@classCode &lt; 'ActCareProvisionRequestType'][@moodCode = 'RQO']"/>
          </mapping>
        </element>
        <element id="Appointment.subject">
          <path value="Appointment.subject"/>
          <short value="The patient or group associated with the appointment"/>
          <definition
                      value="The patient or group associated with the appointment, if they are to be present (usually) then they should also be included in the participant backbone element."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Appointment.subject"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/patient"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.who"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PID-3-Patient ID List"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="subject.patient"/>
          </mapping>
        </element>
        <element id="Appointment.participant">
          <path value="Appointment.participant"/>
          <short value="Participants involved in appointment"/>
          <definition value="List of participants involved in the appointment."/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="Appointment.participant"/>
            <min value="1"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="app-1"/>
            <severity value="error"/>
            <human
                   value="Either the type or actor on the participant SHALL be specified"/>
            <expression value="type.exists() or actor.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Appointment"/>
          </constraint>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.performer, Request.subject"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PID, AIP, AIG, AIL"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="performer | reusableDevice | subject | location"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="ATTENDEE component to be created"/>
          </mapping>
        </element>
        <element id="Appointment.participant.id">
          <path value="Appointment.participant.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <condition value="ele-1"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.participant.extension">
          <path value="Appointment.participant.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="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 managable, 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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.participant.modifierExtension">
          <path value="Appointment.participant.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="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 managable, 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.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="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
                        value="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/R5/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.participant.type">
          <path value="Appointment.participant.type"/>
          <short value="Role of participant in the appointment"/>
          <definition value="Role of participant in the appointment."/>
          <comment
                   value="The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.

    If the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.

    This value SHALL be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.participant.type"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <condition value="app-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ParticipantType"/>
            </extension>
            <strength value="extensible"/>
            <description value="Role of participant in encounter."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/encounter-participant-type|5.0.0"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="AIP-4, AIG-4"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="(performer | reusableDevice | subject | location).@typeCode"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.participant.period">
          <path value="Appointment.participant.period"/>
          <short value="Participation period of the actor"/>
          <definition value="Participation period of the actor."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.participant.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.participant.actor">
          <path value="Appointment.participant.actor"/>
          <short
                 value="The individual, device, location, or service participating in the appointment"/>
          <definition
                      value="The individual, device, location, or service participating in the appointment."/>
          <comment
                   value="Where a CareTeam is provided, this does not imply that the entire team is included, just a single member from the group with the appropriate role. Where multiple members are required, please include the CareTeam the required number of times."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.participant.actor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/patient"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/practitioner"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/fhir-location"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/practitionerrole"/>
          </type>
          <condition value="app-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.who"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PID-3-Patient ID List | AIL-3 | AIG-3 | AIP-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="performer.person | reusableDevice.manufacturedDevice | subject.patient | location.serviceDeliveryLocation"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map
                 value="ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource) where the participant type is not &quot;information-only&quot;"/>
          </mapping>
        </element>
        <element id="Appointment.participant.required">
          <path value="Appointment.participant.required"/>
          <short
                 value="The participant is required to attend (optional when false)"/>
          <definition
                      value="Whether this participant is required to be present at the meeting. If false, the participant is optional."/>
          <comment
                   value="For the use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present include the patient in the subject field, but do not include them as a participant - this was formerly done prior to R5 with required='information-only'."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.participant.required"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map
                 value="(performer | reusableDevice | subject | location).@performInd"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="ROLE=REQ-PARTICIPANT (roleparam)"/>
          </mapping>
        </element>
        <element id="Appointment.participant.status">
          <path value="Appointment.participant.status"/>
          <short value="accepted | declined | tentative | needs-action"/>
          <definition value="Participation status of the actor."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Appointment.participant.status"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ParticipationStatus"/>
            </extension>
            <strength value="required"/>
            <description value="The Participation status of an appointment."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/participationstatus|5.0.0"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="AIP-12, AIG-14"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="(performer | reusableDevice | subject | location).statusCode"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map
                 value="ATTENDEE;CN=&quot;John Doe&quot;;RSVP=TRUE:mailto:john@doe.com (rsvpparam | partstatparam)"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceId">
          <path value="Appointment.recurrenceId"/>
          <short value="The sequence number in the recurrence"/>
          <definition
                      value="The sequence number that identifies a specific appointment in a recurring pattern."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.occurrenceChanged">
          <path value="Appointment.occurrenceChanged"/>
          <short
                 value="Indicates that this appointment varies from a recurrence pattern"/>
          <definition
                      value="This appointment varies from the recurring pattern."/>
          <comment
                   value="For example, if a patient has physical therapy appointments every Tuesday and Thursday, but due to a national holiday, a single occurrence was rescheduled to a different day, while the rest of the recurring series remained on Tuesday / Thursday."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.occurrenceChanged"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate">
          <path value="Appointment.recurrenceTemplate"/>
          <short
                 value="Details of the recurrence pattern/template used to generate occurrences"/>
          <definition
                      value="The details of the recurrence pattern or template that is used to generate recurring appointments."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.recurrenceTemplate"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <condition value="app-6"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.id">
          <path value="Appointment.recurrenceTemplate.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <condition value="ele-1"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.extension">
          <path value="Appointment.recurrenceTemplate.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="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 managable, 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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.modifierExtension">
          <path value="Appointment.recurrenceTemplate.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="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 managable, 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.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="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
                        value="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/R5/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.timezone">
          <path value="Appointment.recurrenceTemplate.timezone"/>
          <short value="The timezone of the occurrences"/>
          <definition
                      value="The timezone of the recurring appointment occurrences."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.timezone"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="IANATimezone"/>
            </extension>
            <strength value="required"/>
            <description value="IANA Timezones (BCP 175)"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/timezones|5.0.0"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="ical"/>
            <map value="TZID"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.recurrenceType">
          <path value="Appointment.recurrenceTemplate.recurrenceType"/>
          <short value="The frequency of the recurrence"/>
          <definition value="How often the appointment series should recur."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.recurrenceType"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AppointmentRecurrenceType"/>
            </extension>
            <strength value="preferred"/>
            <description value="IANA Timezones (BCP 175)"/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/appointment-recurrrence-type|5.0.0"/>
          </binding>
          <mapping>
            <identity value="ical"/>
            <map value="FREQ"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.lastOccurrenceDate">
          <path value="Appointment.recurrenceTemplate.lastOccurrenceDate"/>
          <short value="The date when the recurrence should end"/>
          <definition
                      value="Recurring appointments will not occur after this date."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.lastOccurrenceDate"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="date"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="ical"/>
            <map value="UNTIL"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.occurrenceCount">
          <path value="Appointment.recurrenceTemplate.occurrenceCount"/>
          <short value="The number of planned occurrences"/>
          <definition
                      value="How many appointments are planned in the recurrence."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.occurrenceCount"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="ical"/>
            <map value="COUNT"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.occurrenceDate">
          <path value="Appointment.recurrenceTemplate.occurrenceDate"/>
          <short
                 value="Specific dates for a recurring set of appointments (no template)"/>
          <definition
                      value="The list of specific dates that will have appointments generated."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.recurrenceTemplate.occurrenceDate"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="date"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="ical"/>
            <map value="RDATE"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate"/>
          <short value="Information about weekly recurring appointments"/>
          <definition value="Information about weekly recurring appointments."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.weeklyTemplate"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.id">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <condition value="ele-1"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.extension">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="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 managable, 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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="Appointment.recurrenceTemplate.weeklyTemplate.modifierExtension">
          <path
                value="Appointment.recurrenceTemplate.weeklyTemplate.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="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 managable, 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.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="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
                        value="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/R5/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.monday">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate.monday"/>
          <short value="Recurs on Mondays"/>
          <definition
                      value="Indicates that recurring appointments should occur on Mondays."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.weeklyTemplate.monday"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.tuesday">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate.tuesday"/>
          <short value="Recurs on Tuesday"/>
          <definition
                      value="Indicates that recurring appointments should occur on Tuesdays."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.weeklyTemplate.tuesday"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.wednesday">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate.wednesday"/>
          <short value="Recurs on Wednesday"/>
          <definition
                      value="Indicates that recurring appointments should occur on Wednesdays."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path
                  value="Appointment.recurrenceTemplate.weeklyTemplate.wednesday"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.thursday">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate.thursday"/>
          <short value="Recurs on Thursday"/>
          <definition
                      value="Indicates that recurring appointments should occur on Thursdays."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.weeklyTemplate.thursday"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.friday">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate.friday"/>
          <short value="Recurs on Friday"/>
          <definition
                      value="Indicates that recurring appointments should occur on Fridays."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.weeklyTemplate.friday"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.saturday">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate.saturday"/>
          <short value="Recurs on Saturday"/>
          <definition
                      value="Indicates that recurring appointments should occur on Saturdays."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.weeklyTemplate.saturday"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.sunday">
          <path value="Appointment.recurrenceTemplate.weeklyTemplate.sunday"/>
          <short value="Recurs on Sunday"/>
          <definition
                      value="Indicates that recurring appointments should occur on Sundays."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.weeklyTemplate.sunday"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.weeklyTemplate.weekInterval">
          <path
                value="Appointment.recurrenceTemplate.weeklyTemplate.weekInterval"/>
          <short value="Recurs every nth week"/>
          <definition
                      value="The interval defines if the recurrence is every nth week. The default is every week, so it is expected that this value will be 2 or more.

    e.g. For recurring every second week this interval would be 2, or every third week the interval would be 3."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path
                  value="Appointment.recurrenceTemplate.weeklyTemplate.weekInterval"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.monthlyTemplate">
          <path value="Appointment.recurrenceTemplate.monthlyTemplate"/>
          <short value="Information about monthly recurring appointments"/>
          <definition value="Information about monthly recurring appointments."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.monthlyTemplate"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.monthlyTemplate.id">
          <path value="Appointment.recurrenceTemplate.monthlyTemplate.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <condition value="ele-1"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.monthlyTemplate.extension">
          <path value="Appointment.recurrenceTemplate.monthlyTemplate.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="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 managable, 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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="Appointment.recurrenceTemplate.monthlyTemplate.modifierExtension">
          <path
                value="Appointment.recurrenceTemplate.monthlyTemplate.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="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 managable, 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.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="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
                        value="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/R5/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.monthlyTemplate.dayOfMonth">
          <path
                value="Appointment.recurrenceTemplate.monthlyTemplate.dayOfMonth"/>
          <short value="Recurs on a specific day of the month"/>
          <definition
                      value="Indicates that appointments in the series of recurring appointments should occur on a specific day of the month."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path
                  value="Appointment.recurrenceTemplate.monthlyTemplate.dayOfMonth"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element
                 id="Appointment.recurrenceTemplate.monthlyTemplate.nthWeekOfMonth">
          <path
                value="Appointment.recurrenceTemplate.monthlyTemplate.nthWeekOfMonth"/>
          <short
                 value="Indicates which week of the month the appointment should occur"/>
          <definition
                      value="Indicates which week within a month the appointments in the series of recurring appointments should occur on."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path
                  value="Appointment.recurrenceTemplate.monthlyTemplate.nthWeekOfMonth"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="WeekOfMonth"/>
            </extension>
            <strength value="required"/>
            <description value="The set of weeks in a month."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/week-of-month|5.0.0"/>
          </binding>
        </element>
        <element id="Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek">
          <path value="Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek"/>
          <short
                 value="Indicates which day of the week the appointment should occur"/>
          <definition
                      value="Indicates which day of the week the recurring appointments should occur each nth week."/>
          <comment
                   value="This property is intended to be used with Appointment.recurrenceTemplate.monthly.nthWeek."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path
                  value="Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DaysOfWeek"/>
            </extension>
            <strength value="required"/>
            <description value="The days of the week."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/days-of-week|5.0.0"/>
          </binding>
        </element>
        <element
                 id="Appointment.recurrenceTemplate.monthlyTemplate.monthInterval">
          <path
                value="Appointment.recurrenceTemplate.monthlyTemplate.monthInterval"/>
          <short value="Recurs every nth month"/>
          <definition
                      value="Indicates that recurring appointments should occur every nth month."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path
                  value="Appointment.recurrenceTemplate.monthlyTemplate.monthInterval"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.yearlyTemplate">
          <path value="Appointment.recurrenceTemplate.yearlyTemplate"/>
          <short value="Information about yearly recurring appointments"/>
          <definition value="Information about yearly recurring appointments."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Appointment.recurrenceTemplate.yearlyTemplate"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.yearlyTemplate.id">
          <path value="Appointment.recurrenceTemplate.yearlyTemplate.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <condition value="ele-1"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.yearlyTemplate.extension">
          <path value="Appointment.recurrenceTemplate.yearlyTemplate.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="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 managable, 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
                   value="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 value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="Appointment.recurrenceTemplate.yearlyTemplate.modifierExtension">
          <path
                value="Appointment.recurrenceTemplate.yearlyTemplate.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="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 managable, 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.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="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
                        value="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/R5/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.yearlyTemplate.yearInterval">
          <path
                value="Appointment.recurrenceTemplate.yearlyTemplate.yearInterval"/>
          <short value="Recurs every nth year"/>
          <definition value="Appointment recurs every nth year."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path
                  value="Appointment.recurrenceTemplate.yearlyTemplate.yearInterval"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Appointment.recurrenceTemplate.excludingDate">
          <path value="Appointment.recurrenceTemplate.excludingDate"/>
          <short value="Any dates that should be excluded from the series"/>
          <definition
                      value="Any dates, such as holidays, that should be excluded from the recurrence."/>
          <comment
                   value="excludingDate is an alternative to excludingRecurrenceId.  You may say either that 12/25/XXXX should be excluded using excludingDate, or you may indicate the recurrenceId of the appointment that would fall on the excluded date in the excludingRecurrenceId property."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.recurrenceTemplate.excludingDate"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="date"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="ical"/>
            <map value="EXDATE"/>
          </mapping>
        </element>
        <element id="Appointment.recurrenceTemplate.excludingRecurrenceId">
          <path value="Appointment.recurrenceTemplate.excludingRecurrenceId"/>
          <short
                 value="Any recurrence IDs that should be excluded from the recurrence"/>
          <definition
                      value="Any dates, such as holidays, that should be excluded from the recurrence."/>
          <comment
                   value="excludingRecurrenceId is an alternative to excludingDate.  You may say either that 12/25/XXXX should be excluded using excludingDate, or you may indicate the recurrenceId of the appointment that would fall on the excluded date in the excludingRecurrenceId property."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Appointment.recurrenceTemplate.excludingRecurrenceId"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
      </snapshot>
      <differential>
        <element id="Appointment">
          <path value="Appointment"/>
        </element>
        <element id="Appointment.identifier">
          <path value="Appointment.identifier"/>
          <min value="1"/>
        </element>
        <element id="Appointment.identifier.use">
          <path value="Appointment.identifier.use"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/>
          </binding>
        </element>
        <element id="Appointment.identifier.type">
          <path value="Appointment.identifier.type"/>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://fhir.slade360.co.ke/fhir/ValueSet/default-identifier-types"/>
          </binding>
        </element>
        <element id="Appointment.identifier.system">
          <path value="Appointment.identifier.system"/>
          <min value="1"/>
        </element>
        <element id="Appointment.identifier.value">
          <path value="Appointment.identifier.value"/>
          <min value="1"/>
        </element>
        <element id="Appointment.identifier.assigner">
          <path value="Appointment.identifier.assigner"/>
          <min value="1"/>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/organization"/>
          </type>
        </element>
        <element id="Appointment.cancellationReason">
          <path value="Appointment.cancellationReason"/>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
        </element>
        <element id="Appointment.class">
          <path value="Appointment.class"/>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes"/>
          </binding>
        </element>
        <element id="Appointment.serviceCategory">
          <path value="Appointment.serviceCategory"/>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
        </element>
        <element id="Appointment.specialty">
          <path value="Appointment.specialty"/>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://fhir.slade360.co.ke/fhir/ValueSet/speciality"/>
          </binding>
        </element>
        <element id="Appointment.appointmentType">
          <path value="Appointment.appointmentType"/>
          <min value="1"/>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
        </element>
        <element id="Appointment.reason">
          <path value="Appointment.reason"/>
          <type>
            <code value="CodeableReference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeable-reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/condition"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/observation"/>
          </type>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://fhir.slade360.co.ke/fhir/ValueSet/all-loinc-codes"/>
          </binding>
        </element>
        <element id="Appointment.priority">
          <path value="Appointment.priority"/>
          <min value="1"/>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
        </element>
        <element id="Appointment.replaces">
          <path value="Appointment.replaces"/>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/appointment"/>
          </type>
        </element>
        <element id="Appointment.previousAppointment">
          <path value="Appointment.previousAppointment"/>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/appointment"/>
          </type>
        </element>
        <element id="Appointment.originatingAppointment">
          <path value="Appointment.originatingAppointment"/>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/appointment"/>
          </type>
        </element>
        <element id="Appointment.start">
          <path value="Appointment.start"/>
          <min value="1"/>
        </element>
        <element id="Appointment.created">
          <path value="Appointment.created"/>
          <min value="1"/>
        </element>
        <element id="Appointment.basedOn">
          <path value="Appointment.basedOn"/>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/servicerequest"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/medicationrequest"/>
          </type>
        </element>
        <element id="Appointment.subject">
          <path value="Appointment.subject"/>
          <min value="1"/>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/patient"/>
          </type>
        </element>
        <element id="Appointment.participant.type">
          <path value="Appointment.participant.type"/>
          <type>
            <code value="CodeableConcept"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/codeableconcept"/>
          </type>
        </element>
        <element id="Appointment.participant.actor">
          <path value="Appointment.participant.actor"/>
          <type>
            <code value="Reference"/>
            <profile
                     value="https://fhir.slade360.co.ke/fhir/StructureDefinition/reference"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/patient"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/practitioner"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/fhir-location"/>
            <targetProfile
                           value="https://fhir.slade360.co.ke/fhir/StructureDefinition/practitionerrole"/>
          </type>
        </element>
      </differential>
    </StructureDefinition>