- HSPC Implementation Guide

This page is part of the HSPC FHIR Implementation Guide (v0.1.0: Daft For Comment Draft) based on FHIR v1.9.0. This is the current published version. For a full list of available versions, see the Directory of published versions

href="assets/ico/favicon.png"/>

Profile hspc-ipencounter

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

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

 a fhir:StructureDefinition;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "hspc-ipencounter"];
  fhir:StructureDefinition.url [ fhir:value "http://fhir.org/guides/hspc/StructureDefinition/hspc-ipencounter"];
  fhir:StructureDefinition.name [ fhir:value "Profile hspc-ipencounter"];
  fhir:StructureDefinition.status [ fhir:value "draft"];
  fhir:StructureDefinition.publisher [ fhir:value "HSPC"];
  fhir:StructureDefinition.contact [
     fhir:index 0;
     fhir:StructureDefinition.contact.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "other" ];
       fhir:ContactPoint.value [ fhir:value "http://healthcaresoa.org" ]     ]
  ];
  fhir:StructureDefinition.date [ fhir:value "2015-12-30"^^xsd:date];
  fhir:StructureDefinition.mapping [
     fhir:index 0;
     fhir:StructureDefinition.mapping.identity [ fhir:value "qdm" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://www.healthit.gov/quality-data-model" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "Quality Data Model" ]
  ], [
     fhir:index 1;
     fhir:StructureDefinition.mapping.identity [ fhir:value "rim" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v3" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "RIM Mapping" ]
  ], [
     fhir:index 2;
     fhir:StructureDefinition.mapping.identity [ fhir:value "w5" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/fhir/w5" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "W5 Mapping" ]
  ], [
     fhir:index 3;
     fhir:StructureDefinition.mapping.identity [ fhir:value "v2" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v2" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "HL7 v2 Mapping" ]
  ];
  fhir:StructureDefinition.kind [ fhir:value "resource"];
  fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean];
  fhir:StructureDefinition.type [ fhir:value "Encounter"];
  fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter"];
  fhir:StructureDefinition.derivation [ fhir:value "constraint"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.snapshot.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter" ];
       fhir:ElementDefinition.name [ fhir:value "HSPC Inpatient Encounter" ];
       fhir:ElementDefinition.short [ fhir:value "An interaction during which services are provided to the patient" ];
       fhir:ElementDefinition.definition [ fhir:value "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient." ];
       fhir:ElementDefinition.alias [
         fhir:value "Visit";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Encounter[moodCode=EVN]" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "workflow.encounter" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "qdm" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient Characteristic" ]       ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.id" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.id" ];
       fhir:ElementDefinition.short [ fhir:value "Logical id of this artifact" ];
       fhir:ElementDefinition.definition [ fhir:value "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ];
       fhir:ElementDefinition.comments [ fhir:value "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Resource.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "id" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.meta" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.meta" ];
       fhir:ElementDefinition.short [ fhir:value "Metadata about the resource" ];
       fhir:ElementDefinition.definition [ fhir:value "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Resource.meta" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Meta" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.implicitRules" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.implicitRules" ];
       fhir:ElementDefinition.short [ fhir:value "A set of rules under which this content was created" ];
       fhir:ElementDefinition.definition [ fhir:value "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." ];
       fhir:ElementDefinition.comments [ fhir:value "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Resource.implicitRules" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "uri" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.language" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.language" ];
       fhir:ElementDefinition.short [ fhir:value "Language of the resource content" ];
       fhir:ElementDefinition.definition [ fhir:value "The base language in which the resource is written." ];
       fhir:ElementDefinition.comments [ fhir:value "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Resource.language" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.binding [
         fhir:extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ];
           fhir:Extension.valueReference [
             fhir:link <http://hl7.org/fhir/ValueSet/all-languages>;
             fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/all-languages" ]           ]         ];
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A human language." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/languages>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/languages" ]         ]       ]     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.text" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.text" ];
       fhir:ElementDefinition.short [ fhir:value "Text summary of the resource, for human interpretation" ];
       fhir:ElementDefinition.definition [ fhir:value "A human-readable narrative that contains a summary of the resource, and may 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:ElementDefinition.comments [ fhir:value "Contained resources do not have 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 in formation is added later." ];
       fhir:ElementDefinition.alias [
         fhir:value "narrative";
         fhir:index 0       ], [
         fhir:value "html";
         fhir:index 1       ], [
         fhir:value "xhtml";
         fhir:index 2       ], [
         fhir:value "display";
         fhir:index 3       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.text" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Narrative" ]       ];
       fhir:ElementDefinition.condition [
         fhir:value "dom-1";
         fhir:index 0       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Act.text?" ]       ]     ], [
       fhir:index 6;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.contained" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.contained" ];
       fhir:ElementDefinition.short [ fhir:value "Contained, inline Resources" ];
       fhir:ElementDefinition.definition [ fhir:value "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ];
       fhir:ElementDefinition.comments [ fhir:value "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again." ];
       fhir:ElementDefinition.alias [
         fhir:value "inline resources";
         fhir:index 0       ], [
         fhir:value "anonymous resources";
         fhir:index 1       ], [
         fhir:value "contained resources";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.contained" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Resource" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 7;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.slicing [
         fhir:Element.id [ fhir:value "29" ];
         fhir:ElementDefinition.slicing.discriminator [
           fhir:value "url";
           fhir:index 0         ];
         fhir:ElementDefinition.slicing.ordered [ fhir:value "false"^^xsd:boolean ];
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ]     ], [
       fhir:index 8;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:confidentiality$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "Confidentiality" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The set of values that describe the level of confidentiality for the patient encounter." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v2-0907>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v2-0907" ]         ]       ]     ], [
       fhir:index 9;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:hospitalservice$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "HospitalService" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The particular healthcare specialty or care group responsible for the care of the patient during the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty>;
           fhir:Reference.reference [ fhir:value "http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty" ]         ]       ]     ], [
       fhir:index 10;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:viplevel$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "VipLevel" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe the sensitivity level of a patient's information" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/hspc-viplevel" ]         ]       ]     ], [
       fhir:index 11;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:ambulatorystatus$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "AmbulatoryStatus" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The codes that describe a patient's current level of ability to ambulate." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v2-0009>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v2-0009" ]         ]       ]     ], [
       fhir:index 12;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:departedbytransportation$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "DepartedByTransportation" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe various means of transportation used to leave a location" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/departureTransportMode" ]         ]       ]     ], [
       fhir:index 13;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:arrivedbytransportation$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "ArrivedByTransportation" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe various means of transportation used to arrive at a location" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/arrivalTransportMode" ]         ]       ]     ], [
       fhir:index 14;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:admitmedicationid$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "AdmitMedicationId" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 15;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:dischargemedicationid$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "DischargeMedicationId" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 16;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:administrativeencounterid$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "AdministrativeEncounterId" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 17;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer 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." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 18;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.identifier" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.identifier" ];
       fhir:ElementDefinition.short [ fhir:value "Identifier(s) by which this encounter is known" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifier(s) by which this encounter is known." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.identifier" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-19" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".id" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "id" ]       ]     ], [
       fhir:index 19;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.status" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.status" ];
       fhir:ElementDefinition.short [ fhir:value "planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error" ];
       fhir:ElementDefinition.definition [ fhir:value "planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.status" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Current state of the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/encounter-status>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/encounter-status" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "No clear equivalent in HL7 v2; active/finished could be inferred from PV1-44, PV1-45, PV2-24; inactive could be inferred from PV2-16" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".statusCode" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "status" ]       ]     ], [
       fhir:index 20;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.statusHistory" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.statusHistory" ];
       fhir:ElementDefinition.short [ fhir:value "List of past encounter statuses" ];
       fhir:ElementDefinition.definition [ fhir:value "The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them." ];
       fhir:ElementDefinition.comments [ fhir:value "The current status is always found in the current version of the resource, not the status history." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.statusHistory" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ]     ], [
       fhir:index 21;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.statusHistory.id" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.statusHistory.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 22;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.statusHistory.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.statusHistory.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional Content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 23;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.statusHistory.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.statusHistory.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer 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." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ], [
         fhir:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 24;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.statusHistory.status" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.statusHistory.status" ];
       fhir:ElementDefinition.short [ fhir:value "planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error" ];
       fhir:ElementDefinition.definition [ fhir:value "planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.statusHistory.status" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Current state of the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/encounter-status>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/encounter-status" ]         ]       ]     ], [
       fhir:index 25;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.statusHistory.period" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.statusHistory.period" ];
       fhir:ElementDefinition.short [ fhir:value "The time that the episode was in the specified status" ];
       fhir:ElementDefinition.definition [ fhir:value "The time that the episode was in the specified status." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.statusHistory.period" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Period" ]       ]     ], [
       fhir:index 26;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.class" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.class" ];
       fhir:ElementDefinition.short [ fhir:value "A reference to a code defined by a terminology system" ];
       fhir:ElementDefinition.definition [ fhir:value "A reference to a code defined by a terminology system." ];
       fhir:ElementDefinition.comments [ fhir:value "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.class" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Coding" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Coding" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Classification of the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v3-ActEncounterCode>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v3-ActEncounterCode" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "CV" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "orim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "fhir:Coding rdfs:subClassOf dt:CDCoding" ]       ]     ], [
       fhir:index 27;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.type" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.type" ];
       fhir:ElementDefinition.short [ fhir:value "Specific type of encounter" ];
       fhir:ElementDefinition.definition [ fhir:value "Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)." ];
       fhir:ElementDefinition.comments [ fhir:value "Since there are many ways to further classify encounters, this element is 0..*." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.type" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The type of encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/encounter-type>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/encounter-type" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-4 / PV1-18" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".code" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "class" ]       ]     ], [
       fhir:index 28;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.priority" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.priority" ];
       fhir:ElementDefinition.short [ fhir:value "Indicates the urgency of the encounter" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates the urgency of the encounter." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.priority" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The priority level of the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/encounterPriority" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV2-25" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".priorityCode" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "grade" ]       ]     ], [
       fhir:index 29;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.patient" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.patient" ];
       fhir:ElementDefinition.short [ fhir:value "The patient present at the encounter" ];
       fhir:ElementDefinition.definition [ fhir:value "The patient present at the encounter." ];
       fhir:ElementDefinition.comments [ fhir:value "While the encounter is always about the patient, the patient may not actually be known in all contexts of use." ];
       fhir:ElementDefinition.alias [
         fhir:value "patient";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.patient" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PID-3" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=SBJ]/role[classCode=PAT]" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "who.focus" ]       ]     ], [
       fhir:index 30;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.episodeOfCare" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.episodeOfCare" ];
       fhir:ElementDefinition.short [ fhir:value "Episode(s) of care that this encounter should be recorded against" ];
       fhir:ElementDefinition.definition [ fhir:value "Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as government reporting, issue tracking, association via a common problem.  The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.episodeOfCare" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-54, PV1-53" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "context" ]       ]     ], [
       fhir:index 31;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.incomingReferral" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.incomingReferral" ];
       fhir:ElementDefinition.short [ fhir:value "The ReferralRequest that initiated this encounter" ];
       fhir:ElementDefinition.definition [ fhir:value "The referral request this encounter satisfies (incoming referral)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.incomingReferral" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/ReferralRequest" ]       ]     ], [
       fhir:index 32;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant" ];
       fhir:ElementDefinition.short [ fhir:value "List of participants involved in the encounter" ];
       fhir:ElementDefinition.definition [ fhir:value "The list of people responsible for providing the service." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.participant" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "ROL" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=PFM]" ]       ]     ], [
       fhir:index 33;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant.id" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 34;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant.extension:providerservice$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant.extension" ];
       fhir:ElementDefinition.name [ fhir:value "ProviderService" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The codes that represent the particular specialty or practice group that a provider is affiliated with for the given encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty>;
           fhir:Reference.reference [ fhir:value "http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty" ]         ]       ]     ], [
       fhir:index 35;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer 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." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ], [
         fhir:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 36;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant.type" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant.type" ];
       fhir:ElementDefinition.short [ fhir:value "Role of participant in encounter" ];
       fhir:ElementDefinition.definition [ fhir:value "Role of participant in encounter." ];
       fhir:ElementDefinition.comments [ fhir:value "The participant type indicates how an individual partitipates in an encounter. It includes non-practitioner participants, and for practitioners this is to describe the action type in the context of this encounter (e.g. Admitting Dr, Attending Dr, Translator, Consulting Dr). This is different to the practitioner roles which are functional roles, derived from terms of employment, education, licensing, etc." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.participant.type" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that are used to describe how an entity participates in an encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v3-ParticipationType>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v3-ParticipationType" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "ROL-3 (or maybe PRT-4)" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".functionCode" ]       ]     ], [
       fhir:index 37;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant.period" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant.period" ];
       fhir:ElementDefinition.short [ fhir:value "Period of time during the encounter participant was present" ];
       fhir:ElementDefinition.definition [ fhir:value "The period of time that the specified participant was present during the encounter. These can overlap or be sub-sets of the overall encounters period." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.participant.period" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Period" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "ROL-5, ROL-6 (or maybe PRT-5)" ]       ]     ], [
       fhir:index 38;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant.individual" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant.individual" ];
       fhir:ElementDefinition.short [ fhir:value "Persons involved in the encounter other than the patient" ];
       fhir:ElementDefinition.definition [ fhir:value "Persons involved in the encounter other than the patient." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.participant.individual" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "ROL-4" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".role" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "who" ]       ]     ], [
       fhir:index 39;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.appointment" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.appointment" ];
       fhir:ElementDefinition.short [ fhir:value "The appointment that scheduled this encounter" ];
       fhir:ElementDefinition.definition [ fhir:value "The appointment that scheduled this encounter." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.appointment" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Appointment" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "SCH-1 / SCH-2" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=FLFS].target[classCode=ENC, moodCode=APT]" ]       ]     ], [
       fhir:index 40;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.period" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.period" ];
       fhir:ElementDefinition.short [ fhir:value "The start and end time of the encounter" ];
       fhir:ElementDefinition.definition [ fhir:value "The start and end time of the encounter." ];
       fhir:ElementDefinition.comments [ fhir:value "If not (yet) known, the end of the Period may be omitted." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.period" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Period" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-44, PV1-45" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".effectiveTime (low & high)" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "when.done" ]       ]     ], [
       fhir:index 41;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length" ];
       fhir:ElementDefinition.name [ fhir:value "LengthOfStay" ];
       fhir:ElementDefinition.short [ fhir:value "Quantity of time the encounter lasted (less time absent)" ];
       fhir:ElementDefinition.definition [ fhir:value "Quantity of time the encounter lasted. This excludes the time during leaves of absence." ];
       fhir:ElementDefinition.comments [ fhir:value "May differ from the time the Encounter.period lasted because of leave of absence." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.length" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Duration" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "(PV1-45 less PV1-44) iff ( (PV1-44 not empty) and (PV1-45 not empty) ); units in minutes" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".lengthOfStayQuantity" ]       ]     ], [
       fhir:index 42;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay.id" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 43;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional Content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 44;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay.value" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length.value" ];
       fhir:ElementDefinition.short [ fhir:value "Numerical value (with implicit precision)" ];
       fhir:ElementDefinition.definition [ fhir:value "The value of the measured amount. The value includes an implicit precision in the presentation of the value." ];
       fhir:ElementDefinition.comments [ fhir:value "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Precision is handled implicitly in almost all cases of measurement." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Quantity.value" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "decimal" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "SN.2  / CQ - N/A" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value" ]       ]     ], [
       fhir:index 45;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay.comparator" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length.comparator" ];
       fhir:ElementDefinition.short [ fhir:value "< | <= | >= | > - how to understand the value" ];
       fhir:ElementDefinition.definition [ fhir:value "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value." ];
       fhir:ElementDefinition.comments [ fhir:value "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Quantity.comparator" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.meaningWhenMissing [ fhir:value "If there is no comparator, then there is no modification of the value" ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.description [ fhir:value "How the Quantity should be understood and represented." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/quantity-comparator>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/quantity-comparator" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "SN.1  / CQ.1" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "IVL properties" ]       ]     ], [
       fhir:index 46;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay.unit" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length.unit" ];
       fhir:ElementDefinition.short [ fhir:value "Unit representation" ];
       fhir:ElementDefinition.definition [ fhir:value "A human-readable form of the unit." ];
       fhir:ElementDefinition.requirements [ fhir:value "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Quantity.unit" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "(see OBX.6 etc.) / CQ.2" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PQ.unit" ]       ]     ], [
       fhir:index 47;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay.system" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length.system" ];
       fhir:ElementDefinition.short [ fhir:value "Primitive Type uri" ];
       fhir:ElementDefinition.definition [ fhir:value "String of characters used to identify a name or a resource" ];
       fhir:ElementDefinition.comments [ fhir:value "see http://en.wikipedia.org/wiki/Uniform_resource_identifier" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Quantity.system" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "uri" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/uri" ]       ];
       fhir:ElementDefinition.fixedUri [ fhir:value "http://unitsofmeasure.org" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 48;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay.code" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length.code" ];
       fhir:ElementDefinition.short [ fhir:value "Primitive Type code" ];
       fhir:ElementDefinition.definition [ fhir:value "A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Quantity.code" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/code" ]       ];
       fhir:ElementDefinition.fixedCode [ fhir:value "d" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 49;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.reason" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.reason" ];
       fhir:ElementDefinition.short [ fhir:value "Reason the encounter takes place (code)" ];
       fhir:ElementDefinition.definition [ fhir:value "Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis." ];
       fhir:ElementDefinition.comments [ fhir:value "For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis)." ];
       fhir:ElementDefinition.alias [
         fhir:value "Indication";
         fhir:index 0       ], [
         fhir:value "Admission diagnosis";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.reason" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe why an act was performed" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/encounterReason" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "EVN-4 / PV2-3 (note: PV2-3 is nominally constrained to inpatient admissions; HL7 v2 makes no vocabulary suggestions for PV2-3; would not expect PV2 segment or PV2-3 to be in use in all implementations )" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".reasonCode" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "why" ]       ]     ], [
       fhir:index 50;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.indication" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.indication" ];
       fhir:ElementDefinition.short [ fhir:value "Reason the encounter takes place (resource)" ];
       fhir:ElementDefinition.definition [ fhir:value "Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. The indication will typically be a Condition (with other resources referenced in the evidence.detail), or a Procedure." ];
       fhir:ElementDefinition.comments [ fhir:value "For systems that need to know which was the primary diagnosis, these will be marked with the standard extension primaryDiagnosis (which is a sequence value rather than a flag, 1 = primary diagnosis)." ];
       fhir:ElementDefinition.alias [
         fhir:value "Admission diagnosis";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.indication" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Resources that would commonly referenced at Encounter.indication would be Condition and/or Procedure. These most closely align with DG1/PRB and PR1 respectively." ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=RSON].target" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "why" ]       ]     ], [
       fhir:index 51;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.account" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.account" ];
       fhir:ElementDefinition.short [ fhir:value "The set of accounts that may be used for billing for this Encounter" ];
       fhir:ElementDefinition.definition [ fhir:value "The set of accounts that may be used for billing for this Encounter." ];
       fhir:ElementDefinition.comments [ fhir:value "The billing system may choose to allocate billable items associated with the Encounter to different referenced Accounts based on internal business rules." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.account" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Account" ]       ]     ], [
       fhir:index 52;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization" ];
       fhir:ElementDefinition.short [ fhir:value "Details about the admission to a healthcare service" ];
       fhir:ElementDefinition.definition [ fhir:value "Details about the admission to a healthcare service." ];
       fhir:ElementDefinition.comments [ fhir:value "An Encounter may cover more than just the inpatient stay. Contexts such as outpatients, community clinics, and aged care facilities are also included.  The duration recorded in the period of this encounter covers the entire scope of this hospitalization record." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=COMP].target[classCode=ENC, moodCode=EVN]" ]       ]     ], [
       fhir:index 53;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.id" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 54;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.extension" ];
       fhir:ElementDefinition.slicing [
         fhir:Element.id [ fhir:value "30" ];
         fhir:ElementDefinition.slicing.discriminator [
           fhir:value "url";
           fhir:index 0         ];
         fhir:ElementDefinition.slicing.ordered [ fhir:value "false"^^xsd:boolean ];
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ]     ], [
       fhir:index 55;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.extension:preadmittestindicator$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.extension" ];
       fhir:ElementDefinition.name [ fhir:value "PreAdmitTestIndicator" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The set of values to indicate affirmative or negative" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v2-0136>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v2-0136" ]         ]       ]     ], [
       fhir:index 56;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.extension:readmitindicator$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.extension" ];
       fhir:ElementDefinition.name [ fhir:value "ReAdmitIndicator" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The set of values to indicate affirmative or negative" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v2-0136>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v2-0136" ]         ]       ]     ], [
       fhir:index 57;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer 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." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ], [
         fhir:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 58;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.preAdmissionIdentifier" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.preAdmissionIdentifier" ];
       fhir:ElementDefinition.short [ fhir:value "Pre-admission identifier" ];
       fhir:ElementDefinition.definition [ fhir:value "Pre-admission identifier." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.preAdmissionIdentifier" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Identifier" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-5" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".id" ]       ]     ], [
       fhir:index 59;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.origin" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.origin" ];
       fhir:ElementDefinition.short [ fhir:value "The location from which the patient came before admission" ];
       fhir:ElementDefinition.definition [ fhir:value "The location from which the patient came before admission." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.origin" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Location" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=ORG].role" ]       ]     ], [
       fhir:index 60;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.admitSource" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.admitSource" ];
       fhir:ElementDefinition.short [ fhir:value "From where patient was admitted (physician referral, transfer)" ];
       fhir:ElementDefinition.definition [ fhir:value "From where patient was admitted (physician referral, transfer)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.admitSource" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The set of codes that describe where a patient came from for the current admission." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/admissionSource" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-14" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".admissionReferralSourceCode" ]       ]     ], [
       fhir:index 61;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.admittingDiagnosis" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.admittingDiagnosis" ];
       fhir:ElementDefinition.short [ fhir:value "The admitting diagnosis as reported by admitting practitioner" ];
       fhir:ElementDefinition.definition [ fhir:value "The admitting diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.admittingDiagnosis" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ]       ]     ], [
       fhir:index 62;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.reAdmission" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.reAdmission" ];
       fhir:ElementDefinition.short [ fhir:value "The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission" ];
       fhir:ElementDefinition.definition [ fhir:value "Whether this hospitalization is a readmission and why if known." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.reAdmission" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The reason for re-admission of this hospitalization encounter." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v2-0092>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v2-0092" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-13" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Propose at harmonization" ]       ]     ], [
       fhir:index 63;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.dietPreference" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.dietPreference" ];
       fhir:ElementDefinition.short [ fhir:value "Diet preferences reported by the patient" ];
       fhir:ElementDefinition.definition [ fhir:value "Diet preferences reported by the patient." ];
       fhir:ElementDefinition.comments [ fhir:value "For example a patient may request both a dairy-free and nut-free diet preference (not mutually exclusive)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used to track patient's diet restrictions and/or preference. For a complete description of the nutrition needs of a patient during their stay, one should use the nutritionOrder resource which links to Encounter." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.dietPreference" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe the kind of nutrition to be supplied to the patient." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/dietType" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-38" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=COMP].target[classCode=SBADM, moodCode=EVN, code=\"diet\"]" ]       ]     ], [
       fhir:index 64;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.specialCourtesy" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.specialCourtesy" ];
       fhir:ElementDefinition.short [ fhir:value "Special courtesies (VIP, board member)" ];
       fhir:ElementDefinition.definition [ fhir:value "Special courtesies (VIP, board member)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.specialCourtesy" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Special courtesies" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/encounter-special-courtesy>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/encounter-special-courtesy" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-16" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".specialCourtesiesCode" ]       ]     ], [
       fhir:index 65;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.specialArrangement" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.specialArrangement" ];
       fhir:ElementDefinition.short [ fhir:value "Wheelchair, translator, stretcher, etc." ];
       fhir:ElementDefinition.definition [ fhir:value "Wheelchair, translator, stretcher, etc." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.specialArrangement" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Special arrangements" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/encounter-special-arrangements>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/encounter-special-arrangements" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-15 / OBR-30 / OBR-43" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".specialArrangementCode" ]       ]     ], [
       fhir:index 66;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.destination" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.destination" ];
       fhir:ElementDefinition.short [ fhir:value "Location to which the patient is discharged" ];
       fhir:ElementDefinition.definition [ fhir:value "Location to which the patient is discharged." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.destination" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Location" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-37" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=DST]" ]       ]     ], [
       fhir:index 67;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.dischargeDisposition" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.dischargeDisposition" ];
       fhir:ElementDefinition.short [ fhir:value "Category or kind of location after discharge" ];
       fhir:ElementDefinition.definition [ fhir:value "Category or kind of location after discharge." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.dischargeDisposition" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Discharge Disposition" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/encounter-discharge-disposition>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/encounter-discharge-disposition" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-36" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".dischargeDispositionCode" ]       ]     ], [
       fhir:index 68;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.dischargeDiagnosis" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.dischargeDiagnosis" ];
       fhir:ElementDefinition.short [ fhir:value "The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete" ];
       fhir:ElementDefinition.definition [ fhir:value "The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.hospitalization.dischargeDiagnosis" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".outboundRelationship[typeCode=OUT].target[classCode=OBS, moodCode=EVN, code=ASSERTION].value" ]       ]     ], [
       fhir:index 69;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location" ];
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:value "Encounter.location.location|flase|open";
           fhir:index 0         ];
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
       fhir:ElementDefinition.short [ fhir:value "List of locations where the patient has been" ];
       fhir:ElementDefinition.definition [ fhir:value "List of locations where  the patient has been during this encounter." ];
       fhir:ElementDefinition.comments [ fhir:value "Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\"." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.location" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=LOC]" ]       ]     ], [
       fhir:index 70;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location" ];
       fhir:ElementDefinition.name [ fhir:value "AssignedParticipatingLocation" ];
       fhir:ElementDefinition.short [ fhir:value "List of locations where the patient has been" ];
       fhir:ElementDefinition.definition [ fhir:value "List of locations where  the patient has been during this encounter." ];
       fhir:ElementDefinition.comments [ fhir:value "Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\"." ];
       fhir:ElementDefinition.alias [
         fhir:value "AssignedParticipatingLocation";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.location" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=LOC]" ]       ]     ], [
       fhir:index 71;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation.id" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 72;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation.extension:patientarrivalstatus$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.extension" ];
       fhir:ElementDefinition.name [ fhir:value "PatientArrivalStatus" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The codes that describe whether or not the patient has arrived at the specified location for the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/arrivalStatus" ]         ]       ]     ], [
       fhir:index 73;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer 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." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ], [
         fhir:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 74;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation.location" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.location" ];
       fhir:ElementDefinition.short [ fhir:value "A reference from one resource to another" ];
       fhir:ElementDefinition.definition [ fhir:value "A reference from one resource to another." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.location.location" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" ]       ]     ], [
       fhir:index 75;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation.status" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.status" ];
       fhir:ElementDefinition.short [ fhir:value "planned | active | reserved | completed" ];
       fhir:ElementDefinition.definition [ fhir:value "The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time." ];
       fhir:ElementDefinition.comments [ fhir:value "When the patient is no longer active at a location, then the period end date is entered, and the status may be changed to completed." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.location.status" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The status of the location." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/encounter-location-status>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/encounter-location-status" ]         ]       ]     ], [
       fhir:index 76;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation.period" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.period" ];
       fhir:ElementDefinition.short [ fhir:value "Time period during which the patient was present at the location" ];
       fhir:ElementDefinition.definition [ fhir:value "Time period during which the patient was present at the location." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.location.period" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Period" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".time" ]       ]     ], [
       fhir:index 77;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location" ];
       fhir:ElementDefinition.name [ fhir:value "ServiceDeliveryLocation" ];
       fhir:ElementDefinition.short [ fhir:value "List of locations where the patient has been" ];
       fhir:ElementDefinition.definition [ fhir:value "List of locations where  the patient has been during this encounter." ];
       fhir:ElementDefinition.comments [ fhir:value "Virtual encounters can be recorded in the Encounter by specifying a location reference to a location of type \"kind\" such as \"client's home\" and an encounter.class = \"virtual\"." ];
       fhir:ElementDefinition.alias [
         fhir:value "ServiceDeliveryLocationCondition";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.location" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "BackboneElement" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".participation[typeCode=LOC]" ]       ]     ], [
       fhir:index 78;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation.id" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 79;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation.extension:servicedeliverylocationcondition$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.extension" ];
       fhir:ElementDefinition.name [ fhir:value "ServiceDeliveryLocationCondition" ];
       fhir:ElementDefinition.short [ fhir:value "Extension" ];
       fhir:ElementDefinition.definition [ fhir:value "An Extension" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The codes that describe the state of readiness of the encounter location" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/locationCondition" ]         ]       ]     ], [
       fhir:index 80;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer 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." ];
       fhir:ElementDefinition.comments [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ], [
         fhir:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 81;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation.location" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.location" ];
       fhir:ElementDefinition.short [ fhir:value "A reference from one resource to another" ];
       fhir:ElementDefinition.definition [ fhir:value "A reference from one resource to another." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.location.location" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "The target of a resource reference is a RIM entry point (Act, Role, or Entity)" ]       ]     ], [
       fhir:index 82;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation.status" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.status" ];
       fhir:ElementDefinition.short [ fhir:value "planned | active | reserved | completed" ];
       fhir:ElementDefinition.definition [ fhir:value "The status of the participants' presence at the specified location during the period specified. If the participant is is no longer at the location, then the period will have an end date/time." ];
       fhir:ElementDefinition.comments [ fhir:value "When the patient is no longer active at a location, then the period end date is entered, and the status may be changed to completed." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.location.status" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The status of the location." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/encounter-location-status>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/encounter-location-status" ]         ]       ]     ], [
       fhir:index 83;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation.period" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.period" ];
       fhir:ElementDefinition.short [ fhir:value "Time period during which the patient was present at the location" ];
       fhir:ElementDefinition.definition [ fhir:value "Time period during which the patient was present at the location." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.location.period" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Period" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".time" ]       ]     ], [
       fhir:index 84;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.serviceProvider" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.serviceProvider" ];
       fhir:ElementDefinition.short [ fhir:value "The custodian organization of this Encounter record" ];
       fhir:ElementDefinition.definition [ fhir:value "An organization that is in charge of maintaining the information of this Encounter (e.g. who maintains the report or the master service catalog item, etc.). This MAY be the same as the organization on the Patient record, however it could be different. This MAY not be not the Service Delivery Location's Organization." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.serviceProvider" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Organization" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "PV1-10 / PL.6  & PL.1  (note: HL7 v2 definition is \"the treatment or type of surgery that the patient is scheduled to receive\"; seems slightly out of alignment with the concept name 'hospital service'. Would not trust that implementations apply this semantic by default)" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".particiaption[typeCode=PFM].role" ]       ]     ], [
       fhir:index 85;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.partOf" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.partOf" ];
       fhir:ElementDefinition.short [ fhir:value "Another Encounter this encounter is part of" ];
       fhir:ElementDefinition.definition [ fhir:value "Another Encounter of which this encounter is a part of (administratively or in time)." ];
       fhir:ElementDefinition.comments [ fhir:value "This is also used for associating a child's encounter back to the mother's encounter.  Refer to the Notes section in the Patient resource for further details." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Encounter.partOf" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:int ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value ".inboundRelationship[typeCode=COMP].source[classCode=COMP, moodCode=EVN]" ]       ]     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.differential.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter" ];
       fhir:ElementDefinition.name [ fhir:value "HSPC Inpatient Encounter" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "qdm" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Patient Characteristic" ]       ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.encounter-reasonCancelled" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.encounter-reasonCancelled" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe why an individual's encounter has been done away with." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/reasonCancelled" ]         ]       ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:confidentiality$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "Confidentiality" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The set of values that describe the level of confidentiality for the patient encounter." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v2-0907>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v2-0907" ]         ]       ]     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:hospitalservice$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "HospitalService" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The particular healthcare specialty or care group responsible for the care of the patient during the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty>;
           fhir:Reference.reference [ fhir:value "http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty" ]         ]       ]     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:viplevel$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "VipLevel" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe the sensitivity level of a patient's information" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/hspc-viplevel" ]         ]       ]     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:ambulatorystatus$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "AmbulatoryStatus" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The codes that describe a patient's current level of ability to ambulate." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v2-0009>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v2-0009" ]         ]       ]     ], [
       fhir:index 6;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:departedbytransportation$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "DepartedByTransportation" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe various means of transportation used to leave a location" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/departureTransportMode" ]         ]       ]     ], [
       fhir:index 7;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:arrivedbytransportation$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "ArrivedByTransportation" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe various means of transportation used to arrive at a location" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/arrivalTransportMode" ]         ]       ]     ], [
       fhir:index 8;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:admitmedicationid$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "AdmitMedicationId" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 9;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:dischargemedicationid$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "DischargeMedicationId" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 10;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.extension:administrativeencounterid$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.extension" ];
       fhir:ElementDefinition.name [ fhir:value "AdministrativeEncounterId" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 11;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.class" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.class" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Coding" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Coding" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 12;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.priority" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.priority" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The priority level of the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/encounterPriority" ]         ]       ]     ], [
       fhir:index 13;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 14;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant.extension:providerservice$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant.extension" ];
       fhir:ElementDefinition.name [ fhir:value "ProviderService" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The codes that represent the particular specialty or practice group that a provider is affiliated with for the given encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty>;
           fhir:Reference.reference [ fhir:value "http://fhir.org/guides/hspc/ValueSet/practitioner-providerPractitionerSpecialty" ]         ]       ]     ], [
       fhir:index 15;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.participant.type" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.participant.type" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that are used to describe how an entity participates in an encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v3-ParticipationType>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v3-ParticipationType" ]         ]       ]     ], [
       fhir:index 16;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length" ];
       fhir:ElementDefinition.name [ fhir:value "LengthOfStay" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 17;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay.system" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length.system" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "uri" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/uri" ]       ];
       fhir:ElementDefinition.fixedUri [ fhir:value "http://unitsofmeasure.org" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 18;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.length:lengthofstay.code" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.length.code" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/code" ]       ];
       fhir:ElementDefinition.fixedCode [ fhir:value "d" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 19;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.reason" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.reason" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe why an act was performed" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/encounterReason" ]         ]       ]     ], [
       fhir:index 20;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 21;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.extension:preadmittestindicator$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.extension" ];
       fhir:ElementDefinition.name [ fhir:value "PreAdmitTestIndicator" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The set of values to indicate affirmative or negative" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v2-0136>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v2-0136" ]         ]       ]     ], [
       fhir:index 22;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.extension:readmitindicator$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.extension" ];
       fhir:ElementDefinition.name [ fhir:value "ReAdmitIndicator" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The set of values to indicate affirmative or negative" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v2-0136>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v2-0136" ]         ]       ]     ], [
       fhir:index 23;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.admitSource" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.admitSource" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The set of codes that describe where a patient came from for the current admission." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/admissionSource" ]         ]       ]     ], [
       fhir:index 24;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.specialCourtesy" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.specialCourtesy" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe the kind of courtesies to be extended to the patient during the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/v3-EncounterSpecialCourtesy>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/v3-EncounterSpecialCourtesy" ]         ]       ]     ], [
       fhir:index 25;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.specialArrangement" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.specialArrangement" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe any particular needs for a patient regarding this encounter." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/specialArrangement" ]         ]       ]     ], [
       fhir:index 26;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.hospitalization.dietPreference" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.hospitalization.dietPreference" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A set of codes that describe the kind of nutrition to be supplied to the patient." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/dietType" ]         ]       ]     ], [
       fhir:index 27;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location" ];
       fhir:ElementDefinition.name [ fhir:value "AssignedParticipatingLocation" ];
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:value "Encounter.location.location|flase|open";
           fhir:index 0         ];
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
       fhir:ElementDefinition.alias [
         fhir:value "AssignedParticipatingLocation";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 28;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation.extension:patientarrivalstatus$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.extension" ];
       fhir:ElementDefinition.name [ fhir:value "PatientArrivalStatus" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The codes that describe whether or not the patient has arrived at the specified location for the encounter" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/arrivalStatus" ]         ]       ]     ], [
       fhir:index 29;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:assignedparticipatinglocation.location" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.location" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 30;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location" ];
       fhir:ElementDefinition.name [ fhir:value "ServiceDeliveryLocation" ];
       fhir:ElementDefinition.alias [
         fhir:value "ServiceDeliveryLocationCondition";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ], [
       fhir:index 31;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation.extension:servicedeliverylocationcondition$Extension" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.extension" ];
       fhir:ElementDefinition.name [ fhir:value "ServiceDeliveryLocationCondition" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:int ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.binding.description [ fhir:value "The codes that describe the state of readiness of the encounter location" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:Reference.reference [ fhir:value "ValueSet/locationCondition" ]         ]       ]     ], [
       fhir:index 32;
       fhir:Element.id [ fhir:value "Encounter:hspcinpatientencounter.location:servicedeliverylocation.location" ];
       fhir:ElementDefinition.path [ fhir:value "Encounter.location.location" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Reference" ]       ];
       fhir:ElementDefinition.mustSupport [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ]     ]
  ].