Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

Example StructureDefinition/Appointment (Turtle)

Patient Administration Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Patient, Practitioner, RelatedPerson

Raw Turtle (+ also see Turtle/RDF Format Specification)

StructureDefinition for appointment

@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

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

[] a fhir:StructureDefinition ;
  fhir:id [ fhir:v "Appointment"] ;
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2023-03-26T15:21:02.749+11:00" ]
  ] ;
  fhir:text [
     fhir:status [ fhir:v "generated" ]
  ] ;
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-category" ] ;
     fhir:value [ fhir:v "Base.Workflow" ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ;
     fhir:value [ fhir:v "trial-use" ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ] ;
     fhir:value [ fhir:v "3" ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category" ] ;
     fhir:value [ fhir:v "patient" ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:value [ fhir:v "pa" ]
  ] ) ;
  fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"], [ fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment"] ;
  fhir:version [ fhir:v "5.0.0"], [ fhir:v "5.0.0"] ;
  fhir:name [ fhir:v "Appointment"], [ fhir:v "Appointment"] ;
  fhir:status [ fhir:v "draft"], [ fhir:v "draft"] ;
  fhir:experimental [ fhir:v "false"], [ fhir:v "false"] ;
  fhir:date [ fhir:v "2023-03-26T15:21:02+11:00"], [ fhir:v "2023-03-26T15:21:02+11:00"] ;
  fhir:publisher [ fhir:v "Health Level Seven International (Patient Administration)"], [ fhir:v "Health Level Seven International (Patient Administration)"] ;
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/pafm/index.cfm" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org/fhir" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/pafm/index.cfm" ]
     ] )
  ] ) ;
  fhir:description [ 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: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:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ;
  fhir:fhirVersion [ fhir:v "5.0.0"] ;
  fhir:mapping ( [
     fhir:identity [ fhir:v "workflow" ] ;
     fhir:uri [ fhir:v "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" ] ;
     fhir:name [ fhir:v "FiveWs Pattern Mapping" ]
  ] [
     fhir:identity [ fhir:v "rim" ] ;
     fhir:uri [ fhir:v "http://hl7.org/v3" ] ;
     fhir:name [ fhir:v "RIM Mapping" ]
  ] [
     fhir:identity [ fhir:v "ical" ] ;
     fhir:uri [ fhir:v "http://ietf.org/rfc/2445" ] ;
     fhir:name [ fhir:v "iCalendar" ]
  ] [
     fhir:identity [ fhir:v "v2" ] ;
     fhir:uri [ fhir:v "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"] ;
  fhir:baseDefinition [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"] ;
  fhir:derivation [ fhir:v "specialization"] ;
  fhir:snapshot [
     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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment" ] ;
         fhir:min [ fhir:v "0" ] ;
         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" ]
       ] [
         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" ]
       ] [
         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" ]
       ] [
         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" ]
       ] [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ] ;
           fhir:value [ fhir:v "true" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ] ;
           fhir:value [ 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" ]
       ] [
         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" ]
       ] [
         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" ]
       ] [
         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 in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" ] ;
         fhir:source [ fhir:v "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" ]
       ] [
         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" ]
       ] [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ] ;
           fhir:value [ fhir:v "true" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ] ;
           fhir:value [ 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" ]
       ] ) ;
       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 resouce id depends on the given use case." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Resource.id" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:value [ fhir:v "id" ]
         ] ) ;
         fhir:code [ fhir:v "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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Resource.meta" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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." ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Resource.implicitRules" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Resource.language" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "Language" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ] ;
           fhir:value [ fhir:v "true" ]
         ] ) ;
         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|5.0.0" ] ;
         fhir:additional ( [
           fhir:purpose [ fhir:v "starter" ] ;
           fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/languages" ]
         ] )
       ]
     ] [
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "DomainResource.text" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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." ] ;
       fhir:alias ( [ fhir:v "inline resources" ] [ fhir:v "anonymous resources" ] [ fhir:v "contained resources" ] ) ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "DomainResource.contained" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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: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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "DomainResource.extension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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: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](extensibility.html#modifierExtension)." ] ;
       fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "DomainResource.modifierExtension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.identifier" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.status" ] ;
         fhir:min [ fhir:v "1" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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|5.0.0" ]
       ] ;
       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/futher processing to determine if further actions are required, or specific fees apply." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.cancellationReason" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "cancellation-reason" ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/appointment-cancellation-reason" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.class" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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/EncounterClass" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.serviceCategory" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "service-category" ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/service-category" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.serviceType" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableReference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/HealthcareService" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "service-type" ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/service-type" ]
       ] ;
       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" ]
       ] [
         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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.specialty" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "specialty" ]
         ] ) ;
         fhir:strength [ fhir:v "preferred" ] ;
         fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/c80-practice-codes" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.appointmentType" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "appointment-type" ]
         ] ) ;
         fhir:strength [ fhir:v "preferred" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v2-0276" ]
       ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ARQ-7, SCH-7" ]
       ] [
         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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.reason" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableReference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Condition" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.priority" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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/tools/StructureDefinition/binding-definition" ] ;
           fhir:value [ fhir:v "Indicates the urgency of the appointment." ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
           fhir:value [ 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" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.description" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.replaces" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.virtualService" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.supportingInformation" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.previousAppointment" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.originatingAppointment" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment" ] )
       ] ) ;
       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" ]
       ] ) ;
       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 "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.start" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.end" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.minutesDuration" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.requestedPeriod" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.slot" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Slot" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.account" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Account" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.created" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.cancellationDate" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.note" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.patientInstruction" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableReference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/DocumentReference" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Binary" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Communication" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.basedOn" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/CarePlan" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/DeviceRequest" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ] )
       ] ) ;
       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" ]
       ] ) ;
       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 "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.subject" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Group" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.participant" ] ;
         fhir:min [ fhir:v "1" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.id" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:value [ fhir:v "string" ]
         ] ) ;
         fhir:code [ fhir:v "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: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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.extension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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: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](extensibility.html#modifierExtension)." ] ;
       fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.participant.type" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.participant.period" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.participant.actor" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Group" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/CareTeam" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Device" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/HealthcareService" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Location" ] )
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.participant.required" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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 "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.participant.status" ] ;
         fhir:min [ fhir:v "1" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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|5.0.0" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceId" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.occurrenceChanged" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [ fhir:v "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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.id" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:value [ fhir:v "string" ]
         ] ) ;
         fhir:code [ fhir:v "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: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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.extension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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: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](extensibility.html#modifierExtension)." ] ;
       fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.timezone" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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/tools/StructureDefinition/binding-definition" ] ;
           fhir:value [ fhir:v "IANA Timezones (BCP 175)." ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
           fhir:value [ 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|5.0.0" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.recurrenceType" ] ;
         fhir:min [ fhir:v "1" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.lastOccurrenceDate" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.occurrenceCount" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.occurrenceDate" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [ fhir:v "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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.id" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:value [ fhir:v "string" ]
         ] ) ;
         fhir:code [ fhir:v "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: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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.extension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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: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](extensibility.html#modifierExtension)." ] ;
       fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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.monday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.monday" ] ;
       fhir:short [ fhir:v "Recurs on Mondays" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Mondays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.monday" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.tuesday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.tuesday" ] ;
       fhir:short [ fhir:v "Recurs on Tuesday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Tuesdays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.tuesday" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.wednesday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.wednesday" ] ;
       fhir:short [ fhir:v "Recurs on Wednesday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Wednesdays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.wednesday" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.thursday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.thursday" ] ;
       fhir:short [ fhir:v "Recurs on Thursday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Thursdays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.thursday" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.friday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.friday" ] ;
       fhir:short [ fhir:v "Recurs on Friday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Fridays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.friday" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.saturday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.saturday" ] ;
       fhir:short [ fhir:v "Recurs on Saturday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Saturdays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.saturday" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.sunday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.sunday" ] ;
       fhir:short [ fhir:v "Recurs on Sunday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Sundays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.sunday" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.weekInterval" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [ fhir:v "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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.id" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:value [ fhir:v "string" ]
         ] ) ;
         fhir:code [ fhir:v "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: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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.extension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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: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](extensibility.html#modifierExtension)." ] ;
       fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfMonth" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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 "Indicates which week of the month the appointment should occur" ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.nthWeekOfMonth" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Coding" ]
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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|5.0.0" ]
       ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek" ] ;
       fhir:short [ fhir:v "Indicates which day of the week the appointment should occur" ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Coding" ]
       ] ) ;
       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" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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|5.0.0" ]
       ]
     ] [
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.monthInterval" ] ;
         fhir:min [ fhir:v "1" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ] ;
         fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ;
         fhir:source [ fhir:v "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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.id" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ;
           fhir:value [ fhir:v "string" ]
         ] ) ;
         fhir:code [ fhir:v "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: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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Element.extension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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: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](extensibility.html#modifierExtension)." ] ;
       fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] [
         fhir:key [ fhir:v "ext-1" ] ;
         fhir:severity [ fhir:v "error" ] ;
         fhir:human [ fhir:v "Must have either extensions or value[x], not both" ] ;
         fhir:expression [ fhir:v "extension.exists() != value.exists()" ] ;
         fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.yearlyTemplate.yearInterval" ] ;
         fhir:min [ fhir:v "1" ] ;
         fhir:max [ fhir:v "1" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.excludingDate" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:base [
         fhir:path [ fhir:v "Appointment.recurrenceTemplate.excludingRecurrenceId" ] ;
         fhir:min [ fhir:v "0" ] ;
         fhir:max [ fhir:v "*" ]
       ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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: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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:constraint ( [
         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" ]
       ] [
         fhir:extension ( [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ] ;
           fhir:value [ fhir:v "true" ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ] ;
           fhir:value [ 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" ]
       ] [
         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" ]
       ] [
         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" ]
       ] [
         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" ]
       ] [
         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" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:mapping ( [
         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 "rim" ] ;
         fhir:map [ fhir:v "Act[@moodCode <= 'INT']" ]
       ] [
         fhir:identity [ fhir:v "ical" ] ;
         fhir:map [ fhir:v "VEVENT" ]
       ] )
     ] [
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Identifier" ]
       ] ) ;
       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" ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ]
       ] ) ;
       fhir:condition ( [ fhir:v "app-4" ] [ fhir:v "app-3" ] [ fhir:v "app-7" ] ) ;
       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" ] ;
           fhir:value [ 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|5.0.0" ]
       ] ;
       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/futher processing to determine if further actions are required, or specific fees apply." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableConcept" ]
       ] ) ;
       fhir:condition ( [ fhir:v "app-4" ] ) ;
       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" ] ;
           fhir:value [ fhir:v "cancellation-reason" ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/appointment-cancellation-reason" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableConcept" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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/EncounterClass" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableConcept" ]
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "service-category" ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/service-category" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableReference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/HealthcareService" ] )
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "service-type" ]
         ] ) ;
         fhir:strength [ fhir:v "example" ] ;
         fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/service-type" ]
       ] ;
       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" ]
       ] [
         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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableConcept" ]
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "specialty" ]
         ] ) ;
         fhir:strength [ fhir:v "preferred" ] ;
         fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/c80-practice-codes" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableConcept" ]
       ] ) ;
       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" ] ;
           fhir:value [ fhir:v "appointment-type" ]
         ] ) ;
         fhir:strength [ fhir:v "preferred" ] ;
         fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v2-0276" ]
       ] ;
       fhir:mapping ( [
         fhir:identity [ fhir:v "v2" ] ;
         fhir:map [ fhir:v "ARQ-7, SCH-7" ]
       ] [
         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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableReference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Condition" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Observation" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" ] )
       ] ) ;
       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" ] ;
           fhir:value [ 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" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableConcept" ]
       ] ) ;
       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/tools/StructureDefinition/binding-definition" ] ;
           fhir:value [ fhir:v "Indicates the urgency of the appointment." ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
           fhir:value [ 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" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "string" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment" ] )
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "VirtualServiceDetail" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] )
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment" ] )
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Appointment" ] )
       ] ) ;
       fhir:condition ( [ fhir:v "app-6" ] ) ;
       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 "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "instant" ]
       ] ) ;
       fhir:condition ( [ fhir:v "app-5" ] [ fhir:v "app-3" ] [ fhir:v "app-2" ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "instant" ]
       ] ) ;
       fhir:condition ( [ fhir:v "app-5" ] [ fhir:v "app-3" ] [ fhir:v "app-2" ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "positiveInt" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Period" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Slot" ] )
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Account" ] )
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "dateTime" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "dateTime" ]
       ] ) ;
       fhir:condition ( [ fhir:v "app-7" ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Annotation" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableReference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/DocumentReference" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Binary" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Communication" ] )
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/CarePlan" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/DeviceRequest" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ] )
       ] ) ;
       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 "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Group" ] )
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "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" ]
       ] ) ;
       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.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." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableConcept" ]
       ] ) ;
       fhir:condition ( [ fhir:v "app-1" ] ) ;
       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" ] ;
           fhir:value [ 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" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Period" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Reference" ] ;
         fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Group" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/CareTeam" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Device" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/HealthcareService" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Location" ] )
       ] ) ;
       fhir:condition ( [ fhir:v "app-1" ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ]
       ] ) ;
       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 "1" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "code" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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|5.0.0" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "positiveInt" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "BackboneElement" ]
       ] ) ;
       fhir:condition ( [ fhir:v "app-6" ] ) ;
       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.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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableConcept" ]
       ] ) ;
       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/tools/StructureDefinition/binding-definition" ] ;
           fhir:value [ fhir:v "IANA Timezones (BCP 175)." ]
         ] [
           fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ;
           fhir:value [ 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|5.0.0" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "CodeableConcept" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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" ]
       ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "date" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "positiveInt" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "date" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "BackboneElement" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.monday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.monday" ] ;
       fhir:short [ fhir:v "Recurs on Mondays" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Mondays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.tuesday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.tuesday" ] ;
       fhir:short [ fhir:v "Recurs on Tuesday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Tuesdays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.wednesday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.wednesday" ] ;
       fhir:short [ fhir:v "Recurs on Wednesday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Wednesdays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.thursday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.thursday" ] ;
       fhir:short [ fhir:v "Recurs on Thursday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Thursdays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.friday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.friday" ] ;
       fhir:short [ fhir:v "Recurs on Friday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Fridays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.saturday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.saturday" ] ;
       fhir:short [ fhir:v "Recurs on Saturday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Saturdays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.sunday" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.weeklyTemplate.sunday" ] ;
       fhir:short [ fhir:v "Recurs on Sunday" ] ;
       fhir:definition [ fhir:v "Indicates that recurring appointments should occur on Sundays." ] ;
       fhir:min [ fhir:v "0" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "boolean" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "positiveInt" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "BackboneElement" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "positiveInt" ]
       ] ) ;
       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 "Indicates which week of the month the appointment should occur" ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Coding" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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|5.0.0" ]
       ]
     ] [
       fhir:id [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek" ] ;
       fhir:path [ fhir:v "Appointment.recurrenceTemplate.monthlyTemplate.dayOfWeek" ] ;
       fhir:short [ fhir:v "Indicates which day of the week the appointment should occur" ] ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "Coding" ]
       ] ) ;
       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" ] ;
           fhir:value [ 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|5.0.0" ]
       ]
     ] [
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "positiveInt" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "BackboneElement" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] [
       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" ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "positiveInt" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "date" ]
       ] ) ;
       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" ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type ( [
         fhir:code [ fhir:v "positiveInt" ]
       ] ) ;
       fhir:mustSupport [ fhir:v "false" ] ;
       fhir:isModifier [ fhir:v "false" ] ;
       fhir:isSummary [ fhir:v "false" ]
     ] )
  ] .

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.