Amakomaya Nepal FHIR Implementation Guide
2.0.0 - ci-build Nepal

Amakomaya Nepal FHIR Implementation Guide - Local Development build (v2.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Resource Profile: AMKAppointment - TTL Profile

Active as of 2026-08-21

TTL representation of the amk-appointment resource profile.

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @prefix owl: <http://www.w3.org/2002/07/owl#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

    # - resource -------------------------------------------------------------------

    <http://hl7.org/fhir/StructureDefinition/amk-appointment> a fhir:StructureDefinition ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "amk-appointment"] ; #
      fhir:text [
         fhir:status [ fhir:v "extensions" ] ;
         fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition amk-appointment</b></p><a name=\"amk-appointment\"> </a><a name=\"hcamk-appointment\"> </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-amk-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/6.0.0-ballot5/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>#xD;\n<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-amk-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/6.0.0-ballot5/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>#xD;\n<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_bck00.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: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-amk-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=\"http://hl7.org/fhir/6.0.0-ballot5/references.html\">Reference</a>(<a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/6.0.0-ballot5/patient.html\">Patient</a> | <a style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/6.0.0-ballot5/group.html\">Group</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>#xD;\n<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>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:url [
         fhir:v "https://fhir.amakomaya.com/StructureDefinition/amk-appointment"^^xsd:anyURI ;
         fhir:l <https://fhir.amakomaya.com/StructureDefinition/amk-appointment>
      ] ; #
      fhir:version [ fhir:v "2.0.0"] ; #
      fhir:name [ fhir:v "AMKAppointment"] ; #
      fhir:title [ fhir:v "AMK Appointment Profile"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:date [ fhir:v "2026-08-21T17:27:40+05:45"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "Amakomaya Nepal"] ; #
      fhir:contact ( [
         fhir:name [ fhir:v "Amakomaya Nepal" ] ;
         fhir:telecom ( [
           fhir:system [ fhir:v "url" ] ;
           fhir:value [ fhir:v "https://amakomaya.com" ]
         ] [
           fhir:system [ fhir:v "email" ] ;
           fhir:value [ fhir:v "info@amakomaya.com" ]
         ] )
      ] [
         fhir:name [ fhir:v "RC Poudel" ] ;
         fhir:telecom ( [
           fhir:system [ fhir:v "email" ] ;
           fhir:value [ fhir:v "rcpoudel@amakomaya.com" ]
         ] [
           fhir:system [ fhir:v "email" ] ;
           fhir:value [ fhir:v "rmchndrapdl@gmail.com" ]
         ] [
           fhir:system [ fhir:v "phone" ] ;
           fhir:value [ fhir:v "+977-9851341921" ]
         ] )
      ] ) ; #
      fhir:description [ fhir:v "Profile for representing appointments in the Amakomaya health system, capturing scheduling and participant"] ; #
      fhir:jurisdiction ( [
         fhir:coding ( [
           fhir:system [
             fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
             fhir:l <urn:iso:std:iso:3166>
           ] ;
           fhir:code [ fhir:v "NP" ]
         ] )
      ] ) ; #
      fhir:copyright [ fhir:v "Used by permission of HL7 International, all rights reserved Creative Commons License"] ; #
      fhir:fhirVersion [ fhir:v "6.0.0-ballot5"] ; #
      fhir:mapping ( [
         fhir:identity [ fhir:v "workflow" ] ;
         fhir:uri [
           fhir:v "http://hl7.org/fhir/workflow"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/workflow>
         ] ;
         fhir:name [ fhir:v "Workflow Pattern" ]
      ] [
         fhir:identity [ fhir:v "w5" ] ;
         fhir:uri [
           fhir:v "http://hl7.org/fhir/fivews"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/fivews>
         ] ;
         fhir:name [ fhir:v "FiveWs Pattern Mapping" ]
      ] [
         fhir:identity [ fhir:v "rim" ] ;
         fhir:uri [
           fhir:v "http://hl7.org/v3"^^xsd:anyURI ;
           fhir:l <http://hl7.org/v3>
         ] ;
         fhir:name [ fhir:v "RIM Mapping" ]
      ] [
         fhir:identity [ fhir:v "ical" ] ;
         fhir:uri [
           fhir:v "http://ietf.org/rfc/2445"^^xsd:anyURI ;
           fhir:l <http://ietf.org/rfc/2445>
         ] ;
         fhir:name [ fhir:v "iCalendar" ]
      ] [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:uri [
           fhir:v "http://hl7.org/v2"^^xsd:anyURI ;
           fhir:l <http://hl7.org/v2>
         ] ;
         fhir:name [ fhir:v "HL7 V2 Mapping" ]
      ] ) ; #
      fhir:kind [ fhir:v "resource"] ; #
      fhir:abstract [ fhir:v false] ; #
      fhir:type [
         fhir:v "Appointment"^^xsd:anyURI ;
         fhir:l fhir:Appointment
      ] ; #
      fhir:baseDefinition [
         fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
      ] ; #
      fhir:derivation [ fhir:v "constraint"] ; #
      fhir:snapshot [
         fhir:extension ( [
           fhir:url [
             fhir:v "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version"^^xsd:anyURI ;
             fhir:l <http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version>
           ] ;
           fhir:value [
             a fhir:String ;
             fhir:v "6.0.0-ballot5"
           ]
         ] ) ;
         fhir:element ( [
           fhir:id [ fhir:v "Appointment" ] ;
           fhir:path [ fhir:v "Appointment" ] ;
           fhir:short [ fhir:v "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)" ] ;
           fhir:definition [ fhir:v "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)." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:constraint ( [
             fhir:key [ fhir:v "app-2" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "Either start and end are specified, or neither" ] ;
             fhir:expression [ fhir:v "start.exists() = end.exists()" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
             ]
           ] [
             fhir:key [ fhir:v "app-3" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "Only proposed or cancelled appointments can be missing start/end dates" ] ;
             fhir:expression [ fhir:v "(start.exists() and end.exists()) or (status in ('proposed' | 'cancelled' | 'waitlist'))" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
             ]
           ] [
             fhir:key [ fhir:v "app-4" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "Cancellation reason is only used for appointments that have been cancelled, or noshow" ] ;
             fhir:expression [ fhir:v "cancellationReason.exists() implies (status='noshow' or status='cancelled')" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
             ]
           ] [
             fhir:key [ fhir:v "app-5" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "The start must be less than or equal to the end" ] ;
             fhir:expression [ fhir:v "start.exists() implies start <= end" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
             ]
           ] [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice>
               ] ;
               fhir:value [
                 a fhir:Boolean ;
                 fhir:v true
               ]
             ] [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation>
               ] ;
               fhir:value [
                 a fhir:Markdown ;
                 fhir:v "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."
               ]
             ] ) ;
             fhir:key [ fhir:v "app-6" ] ;
             fhir:severity [ fhir:v "warning" ] ;
             fhir:human [ fhir:v "An appointment may have an originatingAppointment or recurrenceTemplate, but not both" ] ;
             fhir:expression [ fhir:v "originatingAppointment.exists().not() or recurrenceTemplate.exists().not()" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
             ]
           ] [
             fhir:key [ fhir:v "app-7" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "Cancellation date is only used for appointments that have been cancelled, or noshow" ] ;
             fhir:expression [ fhir:v "cancellationDate.exists() implies (status='noshow' or status='cancelled')" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
             ]
           ] [
             fhir:key [ fhir:v "dom-2" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ] ;
             fhir:expression [ fhir:v "contained.contained.empty()" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ] [
             fhir:key [ fhir:v "dom-3" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "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" ] ;
             fhir:expression [ fhir:v "contained.where((('#'+id.trace('id') in %resource.descendants().select(reference | as(uri))) or descendants().where(reference='#' | as(uri)='#').exists()).not()).trace('unmatched', id).empty()" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ] [
             fhir:key [ fhir:v "dom-4" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ] ;
             fhir:expression [ fhir:v "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ] [
             fhir:key [ fhir:v "dom-5" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a security label" ] ;
             fhir:expression [ fhir:v "contained.meta.security.empty()" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ] [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice>
               ] ;
               fhir:value [
                 a fhir:Boolean ;
                 fhir:v true
               ]
             ] [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation>
               ] ;
               fhir:value [
                 a fhir:Markdown ;
                 fhir:v "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."
               ]
             ] ) ;
             fhir:key [ fhir:v "dom-6" ] ;
             fhir:severity [ fhir:v "warning" ] ;
             fhir:human [ fhir:v "A resource should have narrative for robust management" ] ;
             fhir:expression [ fhir:v "text.`div`.exists()" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/DomainResource>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "Entity, Role, or Act,Act[@moodCode <= 'INT']" ]
           ] [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request" ]
           ] [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "workflow.scheduling" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "VEVENT" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.id" ] ;
           fhir:path [ fhir:v "Appointment.id" ] ;
           fhir:short [ fhir:v "Logical id of this artifact" ] ;
           fhir:definition [ fhir:v "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ] ;
           fhir:comment [ fhir:v "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 resource id depends on the given use case." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Resource.id" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>
               ] ;
               fhir:value [
                 a fhir:Url ;
                 fhir:v "id"^^xsd:anyURI ;
                 fhir:l fhir:id
               ]
             ] ) ;
             fhir:code [
               fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhirpath/System.String>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ]
         ] [
           fhir:id [ fhir:v "Appointment.meta" ] ;
           fhir:path [ fhir:v "Appointment.meta" ] ;
           fhir:short [ fhir:v "Metadata about the resource" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Resource.meta" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Meta"^^xsd:anyURI ;
               fhir:l fhir:Meta
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ]
         ] [
           fhir:id [ fhir:v "Appointment.implicitRules" ] ;
           fhir:path [ fhir:v "Appointment.implicitRules" ] ;
           fhir:short [ fhir:v "A set of rules under which this content was created" ] ;
           fhir:definition [ fhir:v "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. For DomainResources, if more than one implicitRules policy applies, additional policies may be conveyed using the [additionalImplicitRules](https://build.fhir.org/ig/HL7/fhir-extensions/StructureDefinition-additionalImplicitRules.html) extension." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Resource.implicitRules" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "uri"^^xsd:anyURI ;
               fhir:l fhir:uri
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v true ] ;
           fhir:isModifierReason [ fhir:v "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation" ] ;
           fhir:isSummary [ fhir:v true ]
         ] [
           fhir:id [ fhir:v "Appointment.language" ] ;
           fhir:path [ fhir:v "Appointment.language" ] ;
           fhir:short [ fhir:v "Language of the resource content" ] ;
           fhir:definition [ fhir:v "The base language in which the resource is written." ] ;
           fhir:comment [ fhir:v "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)." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Resource.language" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "code"^^xsd:anyURI ;
               fhir:l fhir:code
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "Language"
               ]
             ] ) ;
             fhir:strength [ fhir:v "required" ] ;
             fhir:description [ fhir:v "IETF language tag for a human language" ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/all-languages|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/all-languages?version=6.0.0-ballot5>
             ] ;
             fhir:additional ( [
               fhir:purpose [ fhir:v "starter" ] ;
               fhir:valueSet [
                 fhir:v "http://hl7.org/fhir/ValueSet/languages|6.0.0-ballot5"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/ValueSet/languages?version=6.0.0-ballot5>
               ]
             ] )
           ]
         ] [
           fhir:id [ fhir:v "Appointment.text" ] ;
           fhir:path [ fhir:v "Appointment.text" ] ;
           fhir:short [ fhir:v "Text summary of the resource, for human interpretation" ] ;
           fhir:definition [ fhir:v "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 \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ] ;
           fhir:comment [ fhir:v "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 \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later." ] ;
           fhir:alias ( [ fhir:v "narrative" ] [ fhir:v "html" ] [ fhir:v "xhtml" ] [ fhir:v "display" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "DomainResource.text" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Narrative"^^xsd:anyURI ;
               fhir:l fhir:Narrative
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "dom-6" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "Act.text?" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.contained" ] ;
           fhir:path [ fhir:v "Appointment.contained" ] ;
           fhir:short [ fhir:v "Contained, inline Resources" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:comment [ fhir:v "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. Contained resources may be a resource type defined in the FHIR specification, or an [additional resource](http://build.fhir.org/resource.html#additional)." ] ;
           fhir:alias ( [ fhir:v "inline resources" ] [ fhir:v "anonymous resources" ] [ fhir:v "contained resources" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "DomainResource.contained" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Resource"^^xsd:anyURI ;
               fhir:l fhir:Resource
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "dom-2" ] [ fhir:v "dom-4" ] [ fhir:v "dom-3" ] [ fhir:v "dom-5" ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.extension" ] ;
           fhir:path [ fhir:v "Appointment.extension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Additional content defined by implementations" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "DomainResource.extension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.modifierExtension" ] ;
           fhir:path [ fhir:v "Appointment.modifierExtension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Extensions that cannot be ignored" ] ;
           fhir:definition [ fhir:v "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:requirements [ fhir:v "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://build.fhir.org/extensibility.html#modifierExtension)." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "DomainResource.modifierExtension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v true ] ;
           fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.identifier" ] ;
           fhir:path [ fhir:v "Appointment.identifier" ] ;
           fhir:short [ fhir:v "External Ids for this item" ] ;
           fhir:definition [ fhir:v "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)." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.identifier" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Identifier"^^xsd:anyURI ;
               fhir:l fhir:Identifier
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.identifier" ]
           ] [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.identifier" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "SCH-1, SCH-2, ARQ-1, ARQ-2" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".id" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "UID" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.status" ] ;
           fhir:path [ fhir:v "Appointment.status" ] ;
           fhir:short [ fhir:v "proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error | checked-in | waitlist | unknown" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:comment [ fhir:v "If the Appointment's status is \"cancelled\" 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.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid." ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.status" ] ;
             fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "code"^^xsd:anyURI ;
               fhir:l fhir:code
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "app-4" ] [ fhir:v "app-3" ] [ fhir:v "app-7" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v true ] ;
           fhir:isModifierReason [ fhir:v "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" ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "AppointmentStatus"
               ]
             ] ) ;
             fhir:strength [ fhir:v "required" ] ;
             fhir:description [ fhir:v "The free/busy status of an appointment." ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/appointmentstatus|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/appointmentstatus?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.status" ]
           ] [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.status" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "SCH-25" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".statusCode" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "STATUS" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.cancellationReason" ] ;
           fhir:path [ fhir:v "Appointment.cancellationReason" ] ;
           fhir:short [ fhir:v "The coded reason for the appointment being cancelled" ] ;
           fhir:definition [ fhir:v "The coded reason for the appointment being cancelled. This is often used in reporting/billing/further processing to determine if further actions are required, or specific fees apply." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.cancellationReason" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableConcept"^^xsd:anyURI ;
               fhir:l fhir:CodeableConcept
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "app-4" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "cancellation-reason"
               ]
             ] ) ;
             fhir:strength [ fhir:v "example" ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/appointment-cancellation-reason|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/appointment-cancellation-reason?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.class" ] ;
           fhir:path [ fhir:v "Appointment.class" ] ;
           fhir:short [ fhir:v "Classification when becoming an encounter" ] ;
           fhir:definition [ fhir:v "Concepts representing classification of patient encounter such as ambulatory (outpatient), inpatient, emergency, home health or others due to local variations." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.class" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableConcept"^^xsd:anyURI ;
               fhir:l fhir:CodeableConcept
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "EncounterClass"
               ]
             ] ) ;
             fhir:strength [ fhir:v "preferred" ] ;
             fhir:description [ fhir:v "Classification of the encounter." ] ;
             fhir:valueSet [
               fhir:v "http://terminology.hl7.org/ValueSet/encounter-class"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/ValueSet/encounter-class>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.class" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "PV1-2" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".inboundRelationship[typeCode=SUBJ].source[classCode=LIST].code" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.serviceCategory" ] ;
           fhir:path [ fhir:v "Appointment.serviceCategory" ] ;
           fhir:short [ fhir:v "A broad categorization of the service that is to be performed during this appointment" ] ;
           fhir:definition [ fhir:v "A broad categorization of the service that is to be performed during this appointment." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.serviceCategory" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableConcept"^^xsd:anyURI ;
               fhir:l fhir:CodeableConcept
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "service-category"
               ]
             ] ) ;
             fhir:strength [ fhir:v "example" ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/service-category|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/service-category?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a, might be inferred from the ServiceDeliveryLocation" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "CATEGORIES" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.serviceType" ] ;
           fhir:path [ fhir:v "Appointment.serviceType" ] ;
           fhir:short [ fhir:v "The specific service that is to be performed during this appointment" ] ;
           fhir:definition [ fhir:v "The specific service that is to be performed during this appointment." ] ;
           fhir:comment [ fhir:v "For a provider to provider appointment the code \"FOLLOWUP\" may be appropriate, as this is expected to be discussing some patient that was seen in the past." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.serviceType" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableReference"^^xsd:anyURI ;
               fhir:l fhir:CodeableReference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/HealthcareService|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/HealthcareService?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "service-type"
               ]
             ] ) ;
             fhir:strength [ fhir:v "example" ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/service-type|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/service-type?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.code" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "ARQ-8, SCH-8 or ARQ-7, SCH-7  - note these are all user tables - review with trading partners which v2 field is used for serviceType concepts is recommended." ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a, might be inferred from the ServiceDeliveryLocation" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.specialty" ] ;
           fhir:path [ fhir:v "Appointment.specialty" ] ;
           fhir:short [ fhir:v "The specialty of a practitioner that would be required to perform the service requested in this appointment" ] ;
           fhir:definition [ fhir:v "The specialty of a practitioner that would be required to perform the service requested in this appointment." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.specialty" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableConcept"^^xsd:anyURI ;
               fhir:l fhir:CodeableConcept
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "specialty"
               ]
             ] ) ;
             fhir:strength [ fhir:v "example" ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/c80-practice-codes|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/c80-practice-codes?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.class" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".performer.AssignedPerson.code" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.appointmentType" ] ;
           fhir:path [ fhir:v "Appointment.appointmentType" ] ;
           fhir:short [ fhir:v "The style of appointment or patient that has been booked in the slot (not service type)" ] ;
           fhir:definition [ fhir:v "The style of appointment or patient that has been booked in the slot (not service type)." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.appointmentType" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableConcept"^^xsd:anyURI ;
               fhir:l fhir:CodeableConcept
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "appointment-type"
               ]
             ] ) ;
             fhir:strength [ fhir:v "preferred" ] ;
             fhir:valueSet [
               fhir:v "http://terminology.hl7.org/ValueSet/v2-0276"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/ValueSet/v2-0276>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".code" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "CLASSIFICATION" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.reason" ] ;
           fhir:path [ fhir:v "Appointment.reason" ] ;
           fhir:short [ fhir:v "Reason this appointment is scheduled" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.reason" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableReference"^^xsd:anyURI ;
               fhir:l fhir:CodeableReference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Condition|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Condition?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/DiagnosticReport|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/DiagnosticReport?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Procedure?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Observation|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Observation?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "ApptReason"
               ]
             ] ) ;
             fhir:strength [ fhir:v "preferred" ] ;
             fhir:description [ fhir:v "The Reason for the appointment to take place." ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/encounter-reason|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/encounter-reason?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.reason" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "AIS-3" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".reasonCode" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.priority" ] ;
           fhir:path [ fhir:v "Appointment.priority" ] ;
           fhir:short [ fhir:v "Used to make informed decisions if needing to re-prioritize" ] ;
           fhir:definition [ fhir:v "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)." ] ;
           fhir:comment [ fhir:v "Seeking implementer feedback on this property and how interoperable it is.\r\rUsing an extension to record a CodeableConcept for named values may be tested at a future connectathon." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.priority" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableConcept"^^xsd:anyURI ;
               fhir:l fhir:CodeableConcept
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "Priority"
               ]
             ] ) ;
             fhir:strength [ fhir:v "example" ] ;
             fhir:description [ fhir:v "Indicates the urgency of the appointment." ] ;
             fhir:valueSet [
               fhir:v "http://terminology.hl7.org/ValueSet/v3-ActPriority"^^xsd:anyURI ;
               fhir:l <http://terminology.hl7.org/ValueSet/v3-ActPriority>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.priority" ]
           ] [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.class" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "ARQ-12, SCH-11.6 / TQ1-9" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".priorityCode" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "PRIORITY" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.description" ] ;
           fhir:path [ fhir:v "Appointment.description" ] ;
           fhir:short [ fhir:v "Shown on a subject line in a meeting request, or appointment list" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.description" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "string"^^xsd:anyURI ;
               fhir:l fhir:string
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "NTE-3" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".text" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "SUMMARY" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.replaces" ] ;
           fhir:path [ fhir:v "Appointment.replaces" ] ;
           fhir:short [ fhir:v "Appointment replaced by this Appointment" ] ;
           fhir:definition [ fhir:v "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)." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.replaces" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Reference"^^xsd:anyURI ;
               fhir:l fhir:Reference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.replaces" ]
           ] [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.context" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".inboundRelationship[@typeCode = 'SPRT'].observation" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "ATTACH" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.virtualService" ] ;
           fhir:path [ fhir:v "Appointment.virtualService" ] ;
           fhir:short [ fhir:v "Connection details of a virtual service (e.g. conference call)" ] ;
           fhir:definition [ fhir:v "Connection details of a virtual service (e.g. conference call)." ] ;
           fhir:comment [ fhir:v "There are two types of virtual meetings that often exist:\r\r* a persistent, virtual meeting room that can only be used for a single purpose at a time, \r* and a dynamic virtual meeting room that is generated on demand for a specific purpose.\r\rImplementers may consider using Location.virtualService for persistent meeting rooms.\r\rIf each participant would have a different meeting link, an extension using the VirtualServiceContactDetail  can be applied to the Appointment.participant BackboneElement." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.virtualService" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "VirtualServiceDetail"^^xsd:anyURI ;
               fhir:l fhir:VirtualServiceDetail
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.supportingInformation" ] ;
           fhir:path [ fhir:v "Appointment.supportingInformation" ] ;
           fhir:short [ fhir:v "Additional information to support the appointment" ] ;
           fhir:definition [ fhir:v "Additional information to support the appointment provided when making the appointment." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.supportingInformation" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Reference"^^xsd:anyURI ;
               fhir:l fhir:Reference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Resource|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Resource?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.supportingInfo" ]
           ] [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.context" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".inboundRelationship[@typeCode = 'SPRT'].observation" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "ATTACH" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.previousAppointment" ] ;
           fhir:path [ fhir:v "Appointment.previousAppointment" ] ;
           fhir:short [ fhir:v "The previous appointment in a series" ] ;
           fhir:definition [ fhir:v "The previous appointment in a series of related appointments." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.previousAppointment" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Reference"^^xsd:anyURI ;
               fhir:l fhir:Reference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.context" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.originatingAppointment" ] ;
           fhir:path [ fhir:v "Appointment.originatingAppointment" ] ;
           fhir:short [ fhir:v "The originating appointment in a recurring set of appointments" ] ;
           fhir:definition [ fhir:v "The originating appointment in a recurring set of related appointments." ] ;
           fhir:comment [ fhir:v "This property is intended for use when representing a recurring set of related appointments.\r\rFor 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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.originatingAppointment" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Reference"^^xsd:anyURI ;
               fhir:l fhir:Reference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:condition ( [ fhir:v "app-6" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.context" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.start" ] ;
           fhir:path [ fhir:v "Appointment.start" ] ;
           fhir:short [ fhir:v "When appointment is to take place" ] ;
           fhir:definition [ fhir:v "Date/Time that the appointment is to take place." ] ;
           fhir:comment [ fhir:v "If actual start/end times are not known then the requested period start/end can be used." ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.start" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "instant"^^xsd:anyURI ;
               fhir:l fhir:instant
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "app-5" ] [ fhir:v "app-3" ] [ fhir:v "app-2" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.occurrence[x]" ]
           ] [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.init" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "ARQ-11.1, SCH-11.4 / TQ1-7" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".effectiveTime.low" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "DTSTART" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.end" ] ;
           fhir:path [ fhir:v "Appointment.end" ] ;
           fhir:short [ fhir:v "When appointment is to conclude" ] ;
           fhir:definition [ fhir:v "Date/Time that the appointment is to conclude." ] ;
           fhir:comment [ fhir:v "If actual start/end times are not known then the requested period start/end can be used." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.end" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "instant"^^xsd:anyURI ;
               fhir:l fhir:instant
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "app-5" ] [ fhir:v "app-3" ] [ fhir:v "app-2" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.occurrence[x]" ]
           ] [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.done[x]" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "SCH-11.5 / TQ1-8/ calculated based on the start and the duration which is in ARQ-9" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".effectiveTime.high" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "DTEND" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.minutesDuration" ] ;
           fhir:path [ fhir:v "Appointment.minutesDuration" ] ;
           fhir:short [ fhir:v "Can be less than start/end (e.g. estimate)" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.minutesDuration" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "positiveInt"^^xsd:anyURI ;
               fhir:l fhir:positiveInt
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.occurrence[x]" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')].width" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "DURATION (e.g. PT15M)" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.requestedPeriod" ] ;
           fhir:path [ fhir:v "Appointment.requestedPeriod" ] ;
           fhir:short [ fhir:v "Potential date/time interval(s) requested to allocate the appointment within" ] ;
           fhir:definition [ fhir:v "A set of date ranges (potentially including times) that the appointment is preferred to be scheduled within.\n\nThe 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." ] ;
           fhir:comment [ fhir:v "This does not introduce a capacity for recurring appointments." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.requestedPeriod" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Period"^^xsd:anyURI ;
               fhir:l fhir:Period
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.occurrence[x]" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "ARQ-11" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".activityTime[@xsi:type = ('SXPR_TS', 'PIVL_TS')]" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.slot" ] ;
           fhir:path [ fhir:v "Appointment.slot" ] ;
           fhir:short [ fhir:v "The slots that this appointment is filling" ] ;
           fhir:definition [ fhir:v "The slots from the participants' schedules that will be filled by the appointment." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.slot" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Reference"^^xsd:anyURI ;
               fhir:l fhir:Reference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Slot|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Slot?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".outboundRelationship[@typeCode = 'REFR'].act[@classCode = 'ACT'][@moodCode = 'SLOT']" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.account" ] ;
           fhir:path [ fhir:v "Appointment.account" ] ;
           fhir:short [ fhir:v "The set of accounts that may be used for billing for this Appointment" ] ;
           fhir:definition [ fhir:v "The set of accounts that is expected to be used for billing the activities that result from this Appointment." ] ;
           fhir:comment [ fhir:v "The specified account(s) could be those identified during pre-registration workflows in preparation for an upcoming Encounter." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.account" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Reference"^^xsd:anyURI ;
               fhir:l fhir:Reference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Account|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Account?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".pertains.A_Account" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.created" ] ;
           fhir:path [ fhir:v "Appointment.created" ] ;
           fhir:short [ fhir:v "The date that this appointment was initially created" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.created" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "dateTime"^^xsd:anyURI ;
               fhir:l fhir:dateTime
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.authoredOn" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".author.time" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "CREATED" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.cancellationDate" ] ;
           fhir:path [ fhir:v "Appointment.cancellationDate" ] ;
           fhir:short [ fhir:v "When the appointment was cancelled" ] ;
           fhir:definition [ fhir:v "The date/time describing when the appointment was cancelled." ] ;
           fhir:comment [ fhir:v "If the appointment was cancelled multiple times, this would reflect the most recent cancellation." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.cancellationDate" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "dateTime"^^xsd:anyURI ;
               fhir:l fhir:dateTime
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "app-7" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ]
         ] [
           fhir:id [ fhir:v "Appointment.note" ] ;
           fhir:path [ fhir:v "Appointment.note" ] ;
           fhir:short [ fhir:v "Additional comments" ] ;
           fhir:definition [ fhir:v "Additional notes/comments about the appointment." ] ;
           fhir:comment [ fhir:v "Additional text to aid in facilitating the appointment. For instance, a note might be, \"patient should proceed immediately to infusion room upon arrival\"\r\rWhere 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.\r\rTypically 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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.note" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Annotation"^^xsd:anyURI ;
               fhir:l fhir:Annotation
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.note" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "NTE-3" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "DESCRIPTION (for internal use)" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.patientInstruction" ] ;
           fhir:path [ fhir:v "Appointment.patientInstruction" ] ;
           fhir:short [ fhir:v "Detailed information and instructions for the patient" ] ;
           fhir:definition [ fhir:v "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)." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.patientInstruction" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableReference"^^xsd:anyURI ;
               fhir:l fhir:CodeableReference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/DocumentReference|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/DocumentReference?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Binary|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Binary?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Communication|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Communication?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "NTE-3" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".subjectOf.observation[@moodCode = 'EVN'][code = 'annotation'].value" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "DESCRIPTION (for patient use)" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.basedOn" ] ;
           fhir:path [ fhir:v "Appointment.basedOn" ] ;
           fhir:short [ fhir:v "The request this appointment is allocated to assess" ] ;
           fhir:definition [ fhir:v "The request this appointment is allocated to assess (e.g. incoming referral or procedure request)." ] ;
           fhir:alias ( [ fhir:v "incomingReferral" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.basedOn" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Reference"^^xsd:anyURI ;
               fhir:l fhir:Reference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/CarePlan|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/CarePlan?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/DeviceRequest|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/DeviceRequest?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationRequest?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/ServiceRequest?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/RequestOrchestration|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/RequestOrchestration?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/NutritionOrder|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/NutritionOrder?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/VisionPrescription|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/VisionPrescription?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.basedOn" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v ".outboundRelationship[@typeCode = 'FLFS'].act[@classCode < 'ActCareProvisionRequestType'][@moodCode = 'RQO']" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.subject" ] ;
           fhir:path [ fhir:v "Appointment.subject" ] ;
           fhir:short [ fhir:v "The patient or group associated with the appointment" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.subject" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Reference"^^xsd:anyURI ;
               fhir:l fhir:Reference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Patient|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Patient?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Group|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Group?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.who" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "PID-3-Patient ID List" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "subject.patient" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.participant" ] ;
           fhir:path [ fhir:v "Appointment.participant" ] ;
           fhir:short [ fhir:v "Participants involved in appointment" ] ;
           fhir:definition [ fhir:v "List of participants involved in the appointment." ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.participant" ] ;
             fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "BackboneElement"^^xsd:anyURI ;
               fhir:l fhir:BackboneElement
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "app-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "Either the type or actor on the participant SHALL be specified" ] ;
             fhir:expression [ fhir:v "type.exists() or actor.exists()" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Appointment>
             ]
           ] [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children or both" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "workflow" ] ;
             fhir:map [ fhir:v "Request.performer, Request.subject" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "PID, AIP, AIG, AIL" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "performer | reusableDevice | subject | location" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "ATTENDEE component to be created" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.participant.id" ] ;
           fhir:path [ fhir:v "Appointment.participant.id" ] ;
           fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
           fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
           fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.id" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>
               ] ;
               fhir:value [
                 a fhir:Url ;
                 fhir:v "string"^^xsd:anyURI ;
                 fhir:l fhir:string
               ]
             ] ) ;
             fhir:code [
               fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhirpath/System.String>
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "ele-1" ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.participant.extension" ] ;
           fhir:path [ fhir:v "Appointment.participant.extension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Additional content defined by implementations" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.extension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.participant.modifierExtension" ] ;
           fhir:path [ fhir:v "Appointment.participant.modifierExtension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:definition [ fhir:v "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:requirements [ fhir:v "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://build.fhir.org/extensibility.html#modifierExtension)." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v true ] ;
           fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.participant.type" ] ;
           fhir:path [ fhir:v "Appointment.participant.type" ] ;
           fhir:short [ fhir:v "Role of participant in the appointment" ] ;
           fhir:definition [ fhir:v "Role of participant in the appointment." ] ;
           fhir:comment [ fhir:v "The role of the participant can be used to declare what the actor will be doing in the scope of this appointment.\r\rIf the actor is not specified, then it is expected that the actor will be filled in at a later stage of planning.\r\rThis value SHALL be the same when creating an AppointmentResponse so that they can be matched, and subsequently update the Appointment.\r\r`Appointment.participant.type` can be used to differentiate references of the same type, such as Locations, not just Practitioners or PractitionerRoles.  For example, if an appointment is scheduled in a radiology department (Location #1), but has an arrival location of the North Check-in Desk (Location #2), then those locations could be differentiated using `Appointment.participant.type`." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.participant.type" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableConcept"^^xsd:anyURI ;
               fhir:l fhir:CodeableConcept
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "app-1" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "ParticipantType"
               ]
             ] ) ;
             fhir:strength [ fhir:v "extensible" ] ;
             fhir:description [ fhir:v "Role of participant in encounter." ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/encounter-participant-type|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/encounter-participant-type?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "AIP-4, AIG-4" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "(performer | reusableDevice | subject | location).@typeCode" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.participant.period" ] ;
           fhir:path [ fhir:v "Appointment.participant.period" ] ;
           fhir:short [ fhir:v "Participation period of the actor" ] ;
           fhir:definition [ fhir:v "Participation period of the actor." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.participant.period" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Period"^^xsd:anyURI ;
               fhir:l fhir:Period
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.participant.actor" ] ;
           fhir:path [ fhir:v "Appointment.participant.actor" ] ;
           fhir:short [ fhir:v "The individual, device, location, or service participating in the appointment" ] ;
           fhir:definition [ fhir:v "The individual, device, location, or service participating in the appointment." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.participant.actor" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Reference"^^xsd:anyURI ;
               fhir:l fhir:Reference
             ] ;
             fhir:targetProfile ( [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Patient|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Patient?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Group|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Group?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Practitioner?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/PractitionerRole?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/CareTeam|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/CareTeam?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/RelatedPerson?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Device|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Device?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/HealthcareService|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/HealthcareService?version=6.0.0-ballot5>
             ] [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Location|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Location?version=6.0.0-ballot5>
             ] )
           ] ) ;
           fhir:condition ( [ fhir:v "app-1" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "w5" ] ;
             fhir:map [ fhir:v "FiveWs.who" ]
           ] [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "PID-3-Patient ID List | AIL-3 | AIG-3 | AIP-3" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "performer.person | reusableDevice.manufacturedDevice | subject.patient | location.serviceDeliveryLocation" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "ATTENDEE: (Need to provide the common name CN and also the MAILTO properties from the practitioner resource) where the participant type is not \"information-only\"" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.participant.required" ] ;
           fhir:path [ fhir:v "Appointment.participant.required" ] ;
           fhir:short [ fhir:v "The participant is required to attend (optional when false)" ] ;
           fhir:definition [ fhir:v "Whether this participant is required to be present at the meeting. If false, the participant is optional." ] ;
           fhir:comment [ fhir:v "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'." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.participant.required" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "boolean"^^xsd:anyURI ;
               fhir:l fhir:boolean
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "(performer | reusableDevice | subject | location).@performInd" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "ROLE=REQ-PARTICIPANT (roleparam)" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.participant.status" ] ;
           fhir:path [ fhir:v "Appointment.participant.status" ] ;
           fhir:short [ fhir:v "accepted | declined | tentative | needs-action" ] ;
           fhir:definition [ fhir:v "Participation status of the actor." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.participant.status" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "code"^^xsd:anyURI ;
               fhir:l fhir:code
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "ParticipationStatus"
               ]
             ] ) ;
             fhir:strength [ fhir:v "required" ] ;
             fhir:description [ fhir:v "The Participation status of an appointment." ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/participationstatus|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/participationstatus?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "v2" ] ;
             fhir:map [ fhir:v "AIP-12, AIG-14" ]
           ] [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "(performer | reusableDevice | subject | location).statusCode" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "ATTENDEE;CN=\"John Doe\";RSVP=TRUE:mailto:john@doe.com (rsvpparam | partstatparam)" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceId" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceId" ] ;
           fhir:short [ fhir:v "The sequence number in the recurrence" ] ;
           fhir:definition [ fhir:v "The sequence number that identifies a specific appointment in a recurring pattern." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceId" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "positiveInt"^^xsd:anyURI ;
               fhir:l fhir:positiveInt
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.occurrenceChanged" ] ;
           fhir:path [ fhir:v "Appointment.occurrenceChanged" ] ;
           fhir:short [ fhir:v "Indicates that this appointment varies from a recurrence pattern" ] ;
           fhir:definition [ fhir:v "This appointment varies from the recurring pattern." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.occurrenceChanged" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "boolean"^^xsd:anyURI ;
               fhir:l fhir:boolean
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate" ] ;
           fhir:short [ fhir:v "Details of the recurrence pattern/template used to generate occurrences" ] ;
           fhir:definition [ fhir:v "The details of the recurrence pattern or template that is used to generate recurring appointments." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "BackboneElement"^^xsd:anyURI ;
               fhir:l fhir:BackboneElement
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "app-6" ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children or both" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.id" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.id" ] ;
           fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
           fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
           fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.id" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>
               ] ;
               fhir:value [
                 a fhir:Url ;
                 fhir:v "string"^^xsd:anyURI ;
                 fhir:l fhir:string
               ]
             ] ) ;
             fhir:code [
               fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhirpath/System.String>
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "ele-1" ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.extension" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.extension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Additional content defined by implementations" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.extension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.modifierExtension" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.modifierExtension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:definition [ fhir:v "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:requirements [ fhir:v "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://build.fhir.org/extensibility.html#modifierExtension)." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v true ] ;
           fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.timezone" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.timezone" ] ;
           fhir:short [ fhir:v "The timezone of the occurrences" ] ;
           fhir:definition [ fhir:v "The timezone of the recurring appointment occurrences." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.timezone" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableConcept"^^xsd:anyURI ;
               fhir:l fhir:CodeableConcept
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "IANATimezone"
               ]
             ] ) ;
             fhir:strength [ fhir:v "required" ] ;
             fhir:description [ fhir:v "IANA Timezones (BCP 175)" ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/timezones|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/timezones?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "TZID" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.recurrenceType" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.recurrenceType" ] ;
           fhir:short [ fhir:v "The frequency of the recurrence" ] ;
           fhir:definition [ fhir:v "How often the appointment series should recur." ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.recurrenceType" ] ;
             fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "CodeableConcept"^^xsd:anyURI ;
               fhir:l fhir:CodeableConcept
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "AppointmentRecurrenceType"
               ]
             ] ) ;
             fhir:strength [ fhir:v "preferred" ] ;
             fhir:description [ fhir:v "IANA Timezones (BCP 175)" ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/appointment-recurrrence-type|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/appointment-recurrrence-type?version=6.0.0-ballot5>
             ]
           ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "FREQ" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.lastOccurrenceDate" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.lastOccurrenceDate" ] ;
           fhir:short [ fhir:v "The date when the recurrence should end" ] ;
           fhir:definition [ fhir:v "Recurring appointments will not occur after this date." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.lastOccurrenceDate" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "date"^^xsd:anyURI ;
               fhir:l fhir:date
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "UNTIL" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.occurrenceCount" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.occurrenceCount" ] ;
           fhir:short [ fhir:v "The number of planned occurrences" ] ;
           fhir:definition [ fhir:v "How many appointments are planned in the recurrence." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.occurrenceCount" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "positiveInt"^^xsd:anyURI ;
               fhir:l fhir:positiveInt
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "COUNT" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.occurrenceDate" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.occurrenceDate" ] ;
           fhir:short [ fhir:v "Specific dates for a recurring set of appointments (no template)" ] ;
           fhir:definition [ fhir:v "The list of specific dates that will have appointments generated." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.occurrenceDate" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "date"^^xsd:anyURI ;
               fhir:l fhir:date
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "RDATE" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate" ] ;
           fhir:short [ fhir:v "Information about weekly recurring appointments" ] ;
           fhir:definition [ fhir:v "Information about weekly recurring appointments." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "BackboneElement"^^xsd:anyURI ;
               fhir:l fhir:BackboneElement
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children or both" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.id" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.id" ] ;
           fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
           fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
           fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.id" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>
               ] ;
               fhir:value [
                 a fhir:Url ;
                 fhir:v "string"^^xsd:anyURI ;
                 fhir:l fhir:string
               ]
             ] ) ;
             fhir:code [
               fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhirpath/System.String>
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "ele-1" ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.extension" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.extension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Additional content defined by implementations" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.extension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.modifierExtension" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.modifierExtension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:definition [ fhir:v "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:requirements [ fhir:v "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://build.fhir.org/extensibility.html#modifierExtension)." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v true ] ;
           fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.daysOfWeek" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.daysOfWeek" ] ;
           fhir:short [ fhir:v "mon | tue | wed | thu | fri | sat | sun" ] ;
           fhir:definition [ fhir:v "Indicates which days of the week the appointment will occur on." ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.daysOfWeek" ] ;
             fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "code"^^xsd:anyURI ;
               fhir:l fhir:code
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "DaysOfWeek"
               ]
             ] ) ;
             fhir:strength [ fhir:v "required" ] ;
             fhir:description [ fhir:v "The days of the week." ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/days-of-week|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/days-of-week?version=6.0.0-ballot5>
             ]
           ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.weekInterval" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.weekInterval" ] ;
           fhir:short [ fhir:v "Recurs every nth week" ] ;
           fhir:definition [ fhir:v "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.\r\re.g. For recurring every second week this interval would be 2, or every third week the interval would be 3." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.weekInterval" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "positiveInt"^^xsd:anyURI ;
               fhir:l fhir:positiveInt
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate" ] ;
           fhir:short [ fhir:v "Information about monthly recurring appointments" ] ;
           fhir:definition [ fhir:v "Information about monthly recurring appointments." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "BackboneElement"^^xsd:anyURI ;
               fhir:l fhir:BackboneElement
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children or both" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.id" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.id" ] ;
           fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
           fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
           fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.id" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>
               ] ;
               fhir:value [
                 a fhir:Url ;
                 fhir:v "string"^^xsd:anyURI ;
                 fhir:l fhir:string
               ]
             ] ) ;
             fhir:code [
               fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhirpath/System.String>
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "ele-1" ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.extension" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.extension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Additional content defined by implementations" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.extension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.modifierExtension" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.modifierExtension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:definition [ fhir:v "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:requirements [ fhir:v "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://build.fhir.org/extensibility.html#modifierExtension)." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v true ] ;
           fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfMonth" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfMonth" ] ;
           fhir:short [ fhir:v "Recurs on a specific day of the month" ] ;
           fhir:definition [ fhir:v "Indicates that appointments in the series of recurring appointments should occur on a specific day of the month." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfMonth" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "positiveInt"^^xsd:anyURI ;
               fhir:l fhir:positiveInt
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.nthWeekOfMonth" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.nthWeekOfMonth" ] ;
           fhir:short [ fhir:v "first | second | third | fourth | last" ] ;
           fhir:definition [ fhir:v "Indicates which week within a month the appointments in the series of recurring appointments should occur on." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.nthWeekOfMonth" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "code"^^xsd:anyURI ;
               fhir:l fhir:code
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "WeekOfMonth"
               ]
             ] ) ;
             fhir:strength [ fhir:v "required" ] ;
             fhir:description [ fhir:v "The set of weeks in a month." ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/week-of-month|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/week-of-month?version=6.0.0-ballot5>
             ]
           ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek" ] ;
           fhir:short [ fhir:v "mon | tue | wed | thu | fri | sat | sun" ] ;
           fhir:definition [ fhir:v "Indicates which day of the week the recurring appointments should occur each nth week." ] ;
           fhir:comment [ fhir:v "This property is intended to be used with Appointment.recurrenceTemplate.monthly.nthWeek." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "code"^^xsd:anyURI ;
               fhir:l fhir:code
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:binding [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName>
               ] ;
               fhir:value [
                 a fhir:String ;
                 fhir:v "DaysOfWeek"
               ]
             ] ) ;
             fhir:strength [ fhir:v "required" ] ;
             fhir:description [ fhir:v "The days of the week." ] ;
             fhir:valueSet [
               fhir:v "http://hl7.org/fhir/ValueSet/days-of-week|6.0.0-ballot5"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/ValueSet/days-of-week?version=6.0.0-ballot5>
             ]
           ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.monthInterval" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.monthInterval" ] ;
           fhir:short [ fhir:v "Recurs every nth month" ] ;
           fhir:definition [ fhir:v "Indicates that recurring appointments should occur every nth month." ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.monthInterval" ] ;
             fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "positiveInt"^^xsd:anyURI ;
               fhir:l fhir:positiveInt
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate" ] ;
           fhir:short [ fhir:v "Information about yearly recurring appointments" ] ;
           fhir:definition [ fhir:v "Information about yearly recurring appointments." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "BackboneElement"^^xsd:anyURI ;
               fhir:l fhir:BackboneElement
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children or both" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.id" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.id" ] ;
           fhir:representation ( [ fhir:v "xmlAttr" ] ) ;
           fhir:short [ fhir:v "Unique id for inter-element referencing" ] ;
           fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.id" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:extension ( [
               fhir:url [
                 fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"^^xsd:anyURI ;
                 fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type>
               ] ;
               fhir:value [
                 a fhir:Url ;
                 fhir:v "string"^^xsd:anyURI ;
                 fhir:l fhir:string
               ]
             ] ) ;
             fhir:code [
               fhir:v "http://hl7.org/fhirpath/System.String"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhirpath/System.String>
             ]
           ] ) ;
           fhir:condition ( [ fhir:v "ele-1" ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.extension" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.extension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Additional content defined by implementations" ] ;
           fhir:definition [ fhir:v "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." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Element.extension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "n/a" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.modifierExtension" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.modifierExtension" ] ;
           fhir:slicing [
             fhir:discriminator ( [
               fhir:type [ fhir:v "value" ] ;
               fhir:path [ fhir:v "url" ]
             ] ) ;
             fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ;
             fhir:rules [ fhir:v "open" ]
           ] ;
           fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ;
           fhir:definition [ fhir:v "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.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:requirements [ fhir:v "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://build.fhir.org/extensibility.html#modifierExtension)." ] ;
           fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "Extension"^^xsd:anyURI ;
               fhir:l fhir:Extension
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:isModifier [ fhir:v true ] ;
           fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ;
           fhir:isSummary [ fhir:v true ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "rim" ] ;
             fhir:map [ fhir:v "N/A" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.yearInterval" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.yearInterval" ] ;
           fhir:short [ fhir:v "Recurs every nth year" ] ;
           fhir:definition [ fhir:v "Appointment recurs every nth year." ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "1" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.yearInterval" ] ;
             fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "1" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "positiveInt"^^xsd:anyURI ;
               fhir:l fhir:positiveInt
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ]
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.excludingDate" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.excludingDate" ] ;
           fhir:short [ fhir:v "Any dates that should be excluded from the series" ] ;
           fhir:definition [ fhir:v "Any dates, such as holidays, that should be excluded from the recurrence." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.excludingDate" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "date"^^xsd:anyURI ;
               fhir:l fhir:date
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ] ;
           fhir:mapping ( [
             fhir:identity [ fhir:v "ical" ] ;
             fhir:map [ fhir:v "EXDATE" ]
           ] )
         ] [
           fhir:id [ fhir:v "Appointment.recurrenceTemplate.excludingRecurrenceId" ] ;
           fhir:path [ fhir:v "Appointment.recurrenceTemplate.excludingRecurrenceId" ] ;
           fhir:short [ fhir:v "Any recurrence IDs that should be excluded from the recurrence" ] ;
           fhir:definition [ fhir:v "Any dates, such as holidays, that should be excluded from the recurrence." ] ;
           fhir:comment [ fhir:v "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." ] ;
           fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
           fhir:max [ fhir:v "*" ] ;
           fhir:base [
             fhir:path [ fhir:v "Appointment.recurrenceTemplate.excludingRecurrenceId" ] ;
             fhir:min [ fhir:v "0"^^xsd:nonNegativeInteger ] ;
             fhir:max [ fhir:v "*" ]
           ] ;
           fhir:type ( [
             fhir:code [
               fhir:v "positiveInt"^^xsd:anyURI ;
               fhir:l fhir:positiveInt
             ]
           ] ) ;
           fhir:constraint ( [
             fhir:key [ fhir:v "ele-1" ] ;
             fhir:severity [ fhir:v "error" ] ;
             fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ;
             fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
             fhir:source [
               fhir:v "http://hl7.org/fhir/StructureDefinition/Element"^^xsd:anyURI ;
               fhir:l <http://hl7.org/fhir/StructureDefinition/Element>
             ]
           ] ) ;
           fhir:mustSupport [ fhir:v false ] ;
           fhir:isModifier [ fhir:v false ] ;
           fhir:isSummary [ fhir:v false ]
         ] )
      ] ; #
      fhir:differential [
         fhir:element ( [
           fhir:id [ fhir:v "Appointment" ] ;
           fhir:path [ fhir:v "Appointment" ]
         ] [
           fhir:id [ fhir:v "Appointment.start" ] ;
           fhir:path [ fhir:v "Appointment.start" ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ]
         ] [
           fhir:id [ fhir:v "Appointment.subject" ] ;
           fhir:path [ fhir:v "Appointment.subject" ] ;
           fhir:min [ fhir:v "1"^^xsd:nonNegativeInteger ]
         ] )
      ] . #