<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Location" />
  <meta>
    <versionId value="3" />
    <lastUpdated value="2020-06-09T10:01:11.5406118+00:00" />
  </meta>
  <url value="http://StructureDefinition.hl7fhir.cn/Location" />
  <name value="Location" />
  <title value="位置信息" />
  <status value="draft" />
  <description value="位置信息" />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Location" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Location" />
  <derivation value="constraint" />
  <snapshot>
    <element id="Location">
      <path value="Location" />
      <short value="位置信息" />
      <definition value="提供服务、资源和参与者的物理场所的详细信息" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location" />
        <min value="0" />
        <max value="*" />
      </base>
      <constraint>
        <key value="dom-2" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources" />
        <expression value="contained.contained.empty()" />
        <xpath value="not(parent::f:contained and f:contained)" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-4" />
        <severity value="error" />
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" />
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" />
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-3" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" />
        <expression value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" />
        <xpath value="not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
          <valueBoolean value="true" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
          <valueMarkdown value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." />
        </extension>
        <key value="dom-6" />
        <severity value="warning" />
        <human value="A resource should have narrative for robust management" />
        <expression value="text.`div`.exists()" />
        <xpath value="exists(f:text/h:div)" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-5" />
        <severity value="error" />
        <human value="If a resource is contained in another resource, it SHALL NOT have a security label" />
        <expression value="contained.meta.security.empty()" />
        <xpath value="not(exists(f:contained/*/f:meta/f:security))" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".Role[classCode=SDLC]" />
      </mapping>
    </element>
    <element id="Location.id">
      <path value="Location.id" />
      <short value="Logical id of this artifact" />
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." />
      <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Location.meta">
      <path value="Location.meta" />
      <short value="Metadata about the resource" />
      <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.meta" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Meta" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.implicitRules">
      <path value="Location.implicitRules" />
      <short value="A set of rules under which this content was created" />
      <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." />
      <comment value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.implicitRules" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.language">
      <path value="Location.language" />
      <short value="Language of the resource content" />
      <definition value="The base language in which the resource is written." />
      <comment value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.language" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language" />
        </extension>
        <strength value="preferred" />
        <description value="A human language." />
        <valueSet value="http://hl7.org/fhir/ValueSet/languages" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.text">
      <path value="Location.text" />
      <short value="Text summary of the resource, for human interpretation" />
      <definition value="A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." />
      <comment value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded information is added later." />
      <alias value="narrative" />
      <alias value="html" />
      <alias value="xhtml" />
      <alias value="display" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="DomainResource.text" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Narrative" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="Act.text?" />
      </mapping>
    </element>
    <element id="Location.contained">
      <path value="Location.contained" />
      <short value="Contained, inline Resources" />
      <definition value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." />
      <comment value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels." />
      <alias value="inline resources" />
      <alias value="anonymous resources" />
      <alias value="contained resources" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.contained" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Resource" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.extension">
      <path value="Location.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.modifierExtension">
      <path value="Location.modifierExtension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Extensions that cannot be ignored" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and 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.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="DomainResource.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.identifier">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="Location.identifier" />
      <short value="位置的业务编码" />
      <definition value="位置的业务编码，根据管理机构分配给该位置的一个编码，非逻辑ID" />
      <comment value="业务ID不是资源服务器上的逻辑ID（非标识主键）" />
      <requirements value="Organization label locations in registries, need to keep track of those." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.identifier" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Identifier" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Identifier" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Identifier" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.identifier" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".id" />
      </mapping>
    </element>
    <element id="Location.status">
      <path value="Location.status" />
      <short value="状态" />
      <definition value="可描述该位置的状态，在位置状态发生变化的时候，作为标识符使用。&#xD;&#xA;正常使用 | 暂停使用 | 作废的" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.status" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid" />
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="LocationStatus" />
        </extension>
        <strength value="required" />
        <description value="Indicates whether the location is still in use." />
        <valueSet value="http://hl7.org/fhir/ValueSet/location-status|4.0.1" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".statusCode" />
      </mapping>
    </element>
    <element id="Location.operationalStatus">
      <path value="Location.operationalStatus" />
      <short value="操作（工作）状态" />
      <definition value="操作状态描述该地点现在的操作的状态，这通常包括的概念，如污染、内务管理和其他活动或者维护。" />
      <comment value="编码可以使用枚举值或编码列表非常随意地定义。也可以非常正式的定义，如SNOMED CT。请参阅HL7 v3核心原则。" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.operationalStatus" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="OperationalStatus" />
        </extension>
        <strength value="preferred" />
        <description value="The operational status if the location (where typically a bed/room)." />
        <valueSet value="http://terminology.hl7.org/ValueSet/v2-0116" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.status" />
      </mapping>
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <short value="位置名称" />
      <definition value="描述该位置的名称。不需要是唯一的。描述当前使用的名称" />
      <comment value="If the name of a location changes, consider putting the old name in the alias column so that it can still be located through searches." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.name" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".name" />
      </mapping>
    </element>
    <element id="Location.alias">
      <path value="Location.alias" />
      <short value="位置别名" />
      <definition value="该位置的别名的列表。" />
      <comment value="There are no dates associated with the alias/historic names, as this is not intended to track when names were used, but to assist in searching so that older names can still result in identifying the location." />
      <requirements value="Over time locations and organizations go through many changes and can be known by different names.&#xA;&#xA;For searching knowing previous names that the location was known by can be very useful." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.alias" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".name" />
      </mapping>
    </element>
    <element id="Location.description">
      <path value="Location.description" />
      <short value="位置详细信息" />
      <definition value="有关位置的其他详细信息，可以作为进一步的信息显示" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <requirements value="Humans need additional information to verify a correct location has been identified." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.description" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".playingEntity[classCode=PLC determinerCode=INSTANCE].desc" />
      </mapping>
    </element>
    <element id="Location.mode">
      <path value="Location.mode" />
      <short value="位置模式" />
      <definition value="描述位置的 模式，是 类还是实例，大多数情况下为 实例。&#xD;&#xA;实例：表示位置的特定实例（例如，手术室1A）&#xD;&#xA;类：表示一类位置（例如，任何手术室），尽管此类位置可以被限制在特定的边界内（例如组织，父级位置，地址等）。" />
      <comment value="This is labeled as a modifier because whether or not the location is a class of locations changes how it can be used and understood." />
      <requirements value="When using a Location resource for scheduling or orders, we need to be able to refer to a class of Locations instead of a specific Location." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.mode" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="LocationMode" />
        </extension>
        <strength value="required" />
        <description value="Indicates whether a resource instance represents a specific location or a class of locations." />
        <valueSet value="http://hl7.org/fhir/ValueSet/location-mode|4.0.1" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.class" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".playingEntity[classCode=PLC].determinerCode" />
      </mapping>
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <short value="位置功能类型" />
      <definition value="指示在该位置功能类型。" />
      <comment value="这是表示术语的常用模型，但并不适用于所有的术语。在某些情况下，会直接使用编码，并使用自己的结构来管理描述文本、编码、翻译、元素之间的关系、前协调（预置映射规则）和后协调（映射后置处理）。" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.type" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="LocationType" />
        </extension>
        <strength value="extensible" />
        <description value="Indicates the type of function performed at the location." />
        <valueSet value="http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.class" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".code" />
      </mapping>
    </element>
    <element id="Location.telecom">
      <path value="Location.telecom" />
      <short value="联系方式" />
      <definition value="联系方式，包括电话、传真、邮件等" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.telecom" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="ContactPoint" />
        <profile value="http://StructureDefinition.hl7fhir.cn/ContactPoint" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="cpt-2" />
        <severity value="error" />
        <human value="A system is required if a value is provided." />
        <expression value="value.empty() or system.exists()" />
        <xpath value="not(exists(f:value)) or exists(f:system)" />
        <source value="http://hl7.org/fhir/StructureDefinition/ContactPoint" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XTN" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="TEL" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="ContactPoint" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".telecom" />
      </mapping>
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <short value="地址" />
      <definition value="该位置的详细地址" />
      <comment value="注：此地址是用来描述行政管理目的地址或邮政编码，不是用来描述绝对地理坐标。" />
      <requirements value="If locations can be visited, we need to keep track of their address." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.address" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Address" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Address" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XAD" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Address" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".addr" />
      </mapping>
    </element>
    <element id="Location.physicalType">
      <path value="Location.physicalType" />
      <short value="位置物理形式" />
      <definition value="位置的物理形式，例如建筑物、房间、车辆、道路。" />
      <comment value="这是表示术语的常用模型，但并不适用于所有的术语。在某些情况下，会直接使用编码，并使用自己的结构来管理描述文本、编码、翻译、元素之间的关系、前协调（预置映射规则）和后协调（映射后置处理）。" />
      <requirements value="For purposes of showing relevant locations in queries, we need to categorize locations." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.physicalType" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <isSummary value="true" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PhysicalType" />
        </extension>
        <strength value="example" />
        <description value="Physical form of the location." />
        <valueSet value="http://hl7.org/fhir/ValueSet/location-physical-type" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CD" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="FiveWs.class" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".playingEntity [classCode=PLC].code" />
      </mapping>
    </element>
    <element id="Location.position">
      <path value="Location.position" />
      <short value="绝对位置" />
      <definition value="位置的绝对地理位置，使用WGS84基准表示(这与KML中使用的坐标系统相同)。" />
      <requirements value="For mobile applications and automated route-finding knowing the exact location of the Location is required." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Location.position" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".playingEntity [classCode=PLC determinerCode=INSTANCE].positionText" />
      </mapping>
    </element>
    <element id="Location.position.id">
      <path value="Location.position.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.position.extension">
      <path value="Location.position.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.position.modifierExtension">
      <path value="Location.position.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.position.longitude">
      <path value="Location.position.longitude" />
      <short value="经度" />
      <definition value="经度。值域和解释与KML中经度元素的文本相同(参见下面的注释)。" />
      <comment value="Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)&#xD;&#xA;不要使用IEEE类型的浮点类型，而是使用一些工作方式类似于真正的小数，具有内置的精度(例如Java BigInteger)。" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Location.position.longitude" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="decimal" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" />
      </mapping>
    </element>
    <element id="Location.position.latitude">
      <path value="Location.position.latitude" />
      <short value="纬度" />
      <definition value="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).&#xD;&#xA;纬度。值域和解释与KML中纬度元素的文本相同(参见下面的注释)。" />
      <comment value="Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)&#xD;&#xA;不要使用IEEE类型的浮点类型，而是使用一些工作方式类似于真正的小数，具有内置的精度(例如Java BigInteger)。" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Location.position.latitude" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="decimal" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" />
      </mapping>
    </element>
    <element id="Location.position.altitude">
      <path value="Location.position.altitude" />
      <short value="高度" />
      <definition value="Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).&#xD;&#xA;高度。值域和解释与KML中海拔元素的文本相同(参见下面的注释)。" />
      <comment value="Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.position.altitude" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="decimal" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="(RIM Opted not to map the sub-elements of GPS location, is now an OBS)" />
      </mapping>
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <short value="管理组织" />
      <definition value="负责配置和维护位置信息的组织，可以理解为该位置信息的管理部门和所属部门。" />
      <comment value="引用应该是对实际FHIR资源的引用，并且应该是可解析的(允许访问控制、临时不可用等)。解析可以通过从URL检索来实现，也可以在适用的情况下通过资源类型来实现，将绝对引用作为标准URL处理并在本地注册表/存储库中查找它。" />
      <requirements value="Need to know who manages the location." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.managingOrganization" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" />
        <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".scopingEntity[classCode=ORG determinerKind=INSTANCE]" />
      </mapping>
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <short value="父位置" />
      <definition value="这个位置在物理上是另一个位置的一部分。" />
      <comment value="引用应该是对实际FHIR资源的引用，并且应该是可解析的(允许访问控制、临时不可用等)。解析可以通过从URL检索来实现，也可以在适用的情况下通过资源类型来实现，将绝对引用作为标准URL处理并在本地注册表/存储库中查找它。" />
      <requirements value="For purposes of location, display and identification, knowing which locations are located within other locations is important." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.partOf" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy">
          <valueBoolean value="true" />
        </extension>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" />
        <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".inboundLink[typeCode=PART].source[classCode=SDLC]" />
      </mapping>
    </element>
    <element id="Location.hoursOfOperation">
      <path value="Location.hoursOfOperation" />
      <short value="营业时间" />
      <definition value="描述该位置 的营业时间，如一周营业几次，每天营业时间。" />
      <comment value="这类信息通常发布在目录和网站上，通知客户该设施何时可用。&#xD;&#xA;地点内的特定服务可能有自己的工作时间，可能比地点工作时间短(或长)。" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.hoursOfOperation" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="Location.hoursOfOperation.id">
      <path value="Location.hoursOfOperation.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.hoursOfOperation.extension">
      <path value="Location.hoursOfOperation.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.hoursOfOperation.modifierExtension">
      <path value="Location.hoursOfOperation.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="Location.hoursOfOperation.daysOfWeek">
      <path value="Location.hoursOfOperation.daysOfWeek" />
      <short value="每周营业日" />
      <definition value="描述一周之内的哪些天可使用该位置&#xD;&#xA;mon | tue | wed | thu | fri | sat | sun" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.hoursOfOperation.daysOfWeek" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DaysOfWeek" />
        </extension>
        <strength value="required" />
        <description value="The days of the week." />
        <valueSet value="http://hl7.org/fhir/ValueSet/days-of-week|4.0.1" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="Location.hoursOfOperation.allDay">
      <path value="Location.hoursOfOperation.allDay" />
      <short value="是否全天可用" />
      <definition value="描述是否全天可用，如果为true 后面的节点可省略" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.hoursOfOperation.allDay" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="Location.hoursOfOperation.openingTime">
      <path value="Location.hoursOfOperation.openingTime" />
      <short value="开放时间" />
      <definition value="不是全天开放的情况下，位置的开业时间" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.hoursOfOperation.openingTime" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="time" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="Location.hoursOfOperation.closingTime">
      <path value="Location.hoursOfOperation.closingTime" />
      <short value="关闭时间" />
      <definition value="不是全天开放的情况下，位置的关闭时间" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.hoursOfOperation.closingTime" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="time" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value=".effectiveTime" />
      </mapping>
    </element>
    <element id="Location.availabilityExceptions">
      <path value="Location.availabilityExceptions" />
      <short value="可用性异常的描述" />
      <definition value="营业地点与正常营业地点不同的说明，例如公众假期的供应情况。简明扼要地描述正常站点可用性的所有可能的例外情况，详见开放时间。" />
      <comment value="FHIR字符串的大小不能超过1MB" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Location.availabilityExceptions" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="Location.endpoint">
      <path value="Location.endpoint" />
      <short value="技术端点" />
      <definition value="提供对位置操作的服务的访问的技术端点" />
      <comment value="引用应该是对实际FHIR资源的引用，并且应该是可解析的(允许访问控制、临时不可用等)。解析可以通过从URL检索来实现，也可以在适用的情况下通过资源类型来实现，将绝对引用作为标准URL处理并在本地注册表/存储库中查找它。" />
      <requirements value="Organizations may have different systems at different locations that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose.&#xD;&#xA;组织可能在不同的位置拥有不同的系统，这些系统提供各种服务，并且需要能够定义技术连接细节，以便如何连接到它们，以及用于什么目的。" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Location.endpoint" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Endpoint" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ref-1" />
        <severity value="error" />
        <human value="SHALL have a contained resource if a local reference is provided" />
        <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))" />
        <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="Location">
      <path value="Location" />
      <short value="位置信息" />
      <definition value="提供服务、资源和参与者的物理场所的详细信息" />
    </element>
    <element id="Location.identifier">
      <path value="Location.identifier" />
      <short value="位置的业务编码" />
      <definition value="位置的业务编码，根据管理机构分配给该位置的一个编码，非逻辑ID" />
      <type>
        <code value="Identifier" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Identifier" />
      </type>
    </element>
    <element id="Location.status">
      <path value="Location.status" />
      <short value="状态" />
      <definition value="可描述该位置的状态，在位置状态发生变化的时候，作为标识符使用。&#xD;&#xA;正常使用 | 暂停使用 | 作废的" />
    </element>
    <element id="Location.operationalStatus">
      <path value="Location.operationalStatus" />
      <short value="操作（工作）状态" />
      <definition value="操作状态描述该地点现在的操作的状态，这通常包括的概念，如污染、内务管理和其他活动或者维护。" />
      <type>
        <code value="Coding" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Coding" />
      </type>
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <short value="位置名称" />
      <definition value="描述该位置的名称。不需要是唯一的。描述当前使用的名称" />
    </element>
    <element id="Location.alias">
      <path value="Location.alias" />
      <short value="位置别名" />
      <definition value="该位置的别名的列表。" />
    </element>
    <element id="Location.description">
      <path value="Location.description" />
      <short value="位置详细信息" />
      <definition value="有关位置的其他详细信息，可以作为进一步的信息显示" />
    </element>
    <element id="Location.mode">
      <path value="Location.mode" />
      <short value="位置模式" />
      <definition value="描述位置的 模式，是 类还是实例，大多数情况下为 实例。&#xD;&#xA;实例：表示位置的特定实例（例如，手术室1A）&#xD;&#xA;类：表示一类位置（例如，任何手术室），尽管此类位置可以被限制在特定的边界内（例如组织，父级位置，地址等）。" />
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <short value="位置功能类型" />
      <definition value="指示在该位置功能类型。" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Location.telecom">
      <path value="Location.telecom" />
      <type>
        <code value="ContactPoint" />
        <profile value="http://StructureDefinition.hl7fhir.cn/ContactPoint" />
      </type>
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <definition value="该位置的详细地址" />
      <type>
        <code value="Address" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Address" />
      </type>
    </element>
    <element id="Location.physicalType">
      <path value="Location.physicalType" />
      <short value="位置物理形式" />
      <definition value="位置的物理形式，例如建筑物、房间、车辆、道路。" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://StructureDefinition.hl7fhir.cn/CodeableConcept" />
      </type>
    </element>
    <element id="Location.position">
      <path value="Location.position" />
      <short value="绝对位置" />
      <definition value="位置的绝对地理位置，使用WGS84基准表示(这与KML中使用的坐标系统相同)。" />
      <max value="0" />
    </element>
    <element id="Location.position.longitude">
      <path value="Location.position.longitude" />
      <short value="经度" />
      <definition value="经度。值域和解释与KML中经度元素的文本相同(参见下面的注释)。" />
      <comment value="Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)&#xD;&#xA;不要使用IEEE类型的浮点类型，而是使用一些工作方式类似于真正的小数，具有内置的精度(例如Java BigInteger)。" />
    </element>
    <element id="Location.position.latitude">
      <path value="Location.position.latitude" />
      <short value="纬度" />
      <definition value="Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).&#xD;&#xA;纬度。值域和解释与KML中纬度元素的文本相同(参见下面的注释)。" />
      <comment value="Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)&#xD;&#xA;不要使用IEEE类型的浮点类型，而是使用一些工作方式类似于真正的小数，具有内置的精度(例如Java BigInteger)。" />
    </element>
    <element id="Location.position.altitude">
      <path value="Location.position.altitude" />
      <short value="高度" />
      <definition value="Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).&#xD;&#xA;高度。值域和解释与KML中海拔元素的文本相同(参见下面的注释)。" />
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <short value="管理组织" />
      <definition value="负责配置和维护位置信息的组织，可以理解为该位置信息的管理部门和所属部门。" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
      </type>
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <short value="父位置" />
      <definition value="这个位置在物理上是另一个位置的一部分。" />
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy">
          <valueBoolean value="true" />
        </extension>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
      </type>
    </element>
    <element id="Location.hoursOfOperation">
      <path value="Location.hoursOfOperation" />
      <short value="营业时间" />
      <definition value="描述该位置 的营业时间，如一周营业几次，每天营业时间。" />
      <comment value="这类信息通常发布在目录和网站上，通知客户该设施何时可用。&#xD;&#xA;地点内的特定服务可能有自己的工作时间，可能比地点工作时间短(或长)。" />
    </element>
    <element id="Location.hoursOfOperation.daysOfWeek">
      <path value="Location.hoursOfOperation.daysOfWeek" />
      <short value="每周营业日" />
      <definition value="描述一周之内的哪些天可使用该位置&#xD;&#xA;mon | tue | wed | thu | fri | sat | sun" />
    </element>
    <element id="Location.hoursOfOperation.allDay">
      <path value="Location.hoursOfOperation.allDay" />
      <short value="是否全天可用" />
      <definition value="描述是否全天可用，如果为true 后面的节点可省略" />
    </element>
    <element id="Location.hoursOfOperation.openingTime">
      <path value="Location.hoursOfOperation.openingTime" />
      <short value="开放时间" />
      <definition value="不是全天开放的情况下，位置的开业时间" />
    </element>
    <element id="Location.hoursOfOperation.closingTime">
      <path value="Location.hoursOfOperation.closingTime" />
      <short value="关闭时间" />
      <definition value="不是全天开放的情况下，位置的关闭时间" />
    </element>
    <element id="Location.availabilityExceptions">
      <path value="Location.availabilityExceptions" />
      <short value="可用性异常的描述" />
      <definition value="营业地点与正常营业地点不同的说明，例如公众假期的供应情况。简明扼要地描述正常站点可用性的所有可能的例外情况，详见开放时间。" />
      <comment value="FHIR字符串的大小不能超过1MB" />
    </element>
    <element id="Location.endpoint">
      <path value="Location.endpoint" />
      <short value="技术端点" />
      <definition value="提供对位置操作的服务的访问的技术端点" />
      <requirements value="Organizations may have different systems at different locations that provide various services and need to be able to define the technical connection details for how to connect to them, and for what purpose.&#xD;&#xA;组织可能在不同的位置拥有不同的系统，这些系统提供各种服务，并且需要能够定义技术连接细节，以便如何连接到它们，以及用于什么目的。" />
      <type>
        <code value="Reference" />
        <profile value="http://StructureDefinition.hl7fhir.cn/Reference" />
      </type>
    </element>
  </differential>
</StructureDefinition>