sm-location
type: StructureDefinition
node role: treeRoot
id:
  v: sm-location
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition sm-location Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Location 0..* Location 用于描述一个实体地点的详细信息和位置信息 id 0..1 id 不重复的ID用以识别储存在特定FHIR Server中的Location纪录，通常又称为逻辑性ID。 language 0..1 code 用以表述Location Resource内容的语言。 Binding: CommonLanguages (preferred): 人类语言；鼓励使用CommonLanguages代码表中的代码，但不强制一定要使用此代码表，你也可使用其他代码表的代码或单纯以文字表示。 Additional Bindings Purpose AllLanguages Max Binding Example Value: zh-CN text 0..1 Narrative Location Resource之内容摘要以供人阅读 contained 0..* Resource 内嵌的（contained）、行内的Resources extension 0..* Extension 扩展字段 modifierExtension 0..* Extension 此扩展字段可能会完全修正或改变其他资料项目的意涵，需特别留意。 identifier 0..* Identifier 地点的唯一识别号 status S 0..1 code active | suspended | inactive Binding: LocationStatus (required): 地点的状态，指明该地点是否目前正在使用中；应填入所绑定值集中的其中一个代码。 operationalStatus 0..1 Coding 地点的运营状态（通常仅适用于床位 / 房间） Binding: hl7VS-bedStatus (preferred): 鼓励使用所绑定值集中的代码，但不强制一定要使用此值集，你也可使用其他值集的代码或单纯以文字表示。 name S 1..1 string 人们使用的地点名称 alias 0..* string 这是一份地点过去或现在所使用的其他名称的清单 description 0..1 string 关于地点的额外信息，除了名称之外，还可以提供更多的细节来帮助识别这个地点。 mode 0..1 code instance | kind Binding: LocationMode (required): 表明为一个地点或是一个地点的类别；应填入所绑定值集中的其中一个代码。 type 0..* CodeableConcept 执行的功能类型 Binding: ServiceDeliveryLocationRoleType (extensible): 应填入所绑定值集中的其中一个代码。 telecom S 0..* ContactPoint 地点的联络细节 system S 0..1 code phone | fax | email | pager | url | sms | other Binding: ContactPointSystem (required): 应填入所绑定值集中的其中一个代码。 value S 0..1 string 实际的联络方式之细节 use S 0..1 code home | work | temp | old | mobile Binding: ContactPointUse (required): 此联络方式的用途；应填入所绑定值集中的其中一个代码。 rank 0..1 positiveInt 具体说明偏好的使用顺序（1=最高优先顺序） period S 0..1 Period 此联络方式的使用效期 address S 0..1 SmAddress 实体地点 physicalType 0..1 CodeableConcept 绝对的地理位置 Binding: LocationType (example): 可参考所绑定值集，但此值集只是针对这个栏位的一个可能值的范例，不预期也不鼓励使用者一定要使用此值集的代码。 position 0..1 BackboneElement 绝对地理位置 longitude 1..1 decimal 以 WGS84 为基准的经度 latitude 1..1 decimal 以 WGS84 为基准的纬度 altitude 0..…
url:
  v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-location
version:
  v: 1.0.0
name:
  v: SmLocation
title:
  v: SmLocation
status:
  v: draft
date:
  v: 2024-11-11T09:31:51+00:00
publisher:
  v: whcater
contact:
  name:
    v: whcater
  telecom:
    system:
      v: url
    value:
      v: https://whcater.github.io/serious-med-ig/
description:
  v: 地点（Location)
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: Location
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Location
  link: http://hl7.org/fhir/StructureDefinition/Location
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Location
    path:
      v: Location
    short:
      v: 用于描述一个实体地点的详细信息和位置信息
    definition:
      v: 提供服务的实体地点的详细和位置信息，包括可以储存、查找、容纳或安置 resources和参与者的地点的信息。
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Location
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: 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:
        v: 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:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act
    mapping:
      identity:
        v: rim
      map:
        v: .Role[classCode=SDLC]
  element:
    id:
      v: Location.id
    path:
      v: Location.id
    short:
      v: 不重复的ID用以识别储存在特定FHIR Server中的Location纪录，通常又称为逻辑性ID。
    definition:
      v: resource的逻辑ID，在resource的URL中使用。一旦指定，这个值永远不会改变。
    comment:
      v: 一个resource使用新增操作（create operation）提交给服务器时，此resource没有id，它的id在resource被创建后由服务器分配/指定。
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Resource.id
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: http://hl7.org/fhirpath/System.String
    is modifier:
      v: false
    is summary:
      v: true
  element:
    id:
      v: Location.meta
    path:
      v: Location.meta
    short:
      v: Metadata about the resource
    definition:
      v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.

v: true

v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

v: id

v: 0

v: 1

path:
  v: Resource.meta
min:
  v: 0
max:
  v: 1

code:
  v: Meta

key:
  v: ele-1
severity:
  v: error
human:
  v: All FHIR elements must have a @value or children
expression:
  v: hasValue() or (children().count() > id.count())
xpath:
  v: @value|f:*|h:div
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  link: http://hl7.org/fhir/StructureDefinition/Element

v: false

v: true

id:
  v: Location.implicitRules
path:
  v: Location.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: 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
is summary:
  v: true

id:
  v: Location.language
path:
  v: Location.language
short:
  v: 用以表述Location Resource内容的语言。
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
example:
  label:
    v: Value
  value:
    v: zh-CN
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    value:
      v: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: Language
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    value:
      v: true
  strength:
    v: preferred
  description:
    v: 人类语言；鼓励使用CommonLanguages代码表中的代码，但不强制一定要使用此代码表，你也可使用其他代码表的代码或单纯以文字表示。
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    link: http://hl7.org/fhir/ValueSet/languages

id:
  v: Location.text
path:
  v: Location.text
short:
  v: Location Resource之内容摘要以供人阅读
definition:
  v: 人可读的叙述，包含resource的摘要，可用于向人表述resource的内容。叙述不需要对所有的结构化资料进行编码，但需要包含足够的细节使人在阅读叙述时理解「临床安全性」。resource定义有哪些内容应该在叙述中表示，以确保临床安全。
comment:
  v: 内嵌（contained）的resource没有叙述，非内嵌（contained）的resource则 **建议应该（SHOULD）** 有叙述。有时resource可能只有文字表述，很少或没有额外的结构化资料（只要满足所有minOccurs=1的资料项目）。这可能出现在旧系统的资料，当信息以 「文字表述区块（text blob） 」的形式被取得，或者文字表述是原始输入或说明，而编码信息稍后再添加。
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: Location.contained
path:
  v: Location.contained
short:
  v: 内嵌的（contained）、行内的Resources
definition:
  v: 这些resource内嵌（contains）的resource不会另外存于任何FHIR服务器，意即它们无法在任何FHIR服务器中被找到，也无法有自己独立的资料异动／交易（transaction）范围。
comment:
  v: 当内容可以从任何FHIR服务器找到时，不应该以内嵌（contained）resource的方式呈现，因为一旦失去识别，再次恢复它是非常困难的（并且取决于场景）。内嵌（contained）的resource可在它们的meta资料项目中表述profiles和tag，但不应该有安全标号（security labels）。
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Location.extension
path:
  v: Location.extension
short:
  v: 扩展字段
definition:
  v: 可用于表示不属于此resource基本定义的额外信息。为了扩充的使用安全和可管理，对扩充的定义和使用有一套严格的管理。尽管任何实作者都可以定义一个扩充，但作为扩充定义的一部分，**必须（SHALL）** 满足一系列要求。
comment:
  v: 任何应用程序、专案或标准使用扩充时，都不应该带有任何负面的联想。使用扩充是允许FHIR规范为每个人保留一个核心的简易性。
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: Location.modifierExtension
path:
  v: Location.modifierExtension
short:
  v: 此扩展字段可能会完全修正或改变其他资料项目的意涵，需特别留意。
definition:
  v: 可以用来表示不属于此resource的基本定义的额外信息，并修改包含它所内嵌（contained）的资料项目的理解和/或对包含资料项目之后续使用的理解。通常修饰用的资料项目提供否定或限定的信息。为了使扩充的使用安全和可管理，对扩充的定义和使用有一套严格的管理。虽然任何实作者都可以定义一个扩充，但在定义扩充时 **必须（SHALL）** 满足一组要求。处理resource的应用程序需要检查修饰用的扩充资料项目。 修饰用的扩充资料项目 **必须没有（SHALL NOT）** 改变resource或DomainResource上任何资料项目的含义（包括不能改变modifierExtension本身的含义）。
comment:
  v: 任何应用程序、专案或标准使用扩充时，都不应该带有任何负面的联想。使用扩充是允许FHIR规范为每个人保留一个核心的简易性。
requirements:
  v: 修饰用的资料项目扩充允许将不能安全地忽略的扩充，与绝大多数可以安全地忽略的扩充明确区分开来。这样做有助于促进可互操作性，因为无需禁止实作者使用扩充，想要了解更多信息，请参见[修饰用的资料项目扩充之定义]（http://hl7.org/fhir/R4/extensibility.html#modifierExtension）。
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false

id:
  v: Location.identifier
path:
  v: Location.identifier
short:
  v: 地点的唯一识别号
definition:
  v: 这是唯一的识别号，用来帮助使用者识别该地点
requirements:
  v: 机构会在注册档中给地点贴上标签，我们需要记录并追踪这些被标记的地点。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Location.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: Location.status
path:
  v: Location.status
short:
  v: active | suspended | inactive
definition:
  v: 这里的状态属性是指 resource 是否一般可用，而不是指它当前的具体状态。当前的具体状态可能会由 operationStatus 作描述，或者如果这个地点设有排程或时段的话，则由这些排程或时段来描述。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.status
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: LocationStatus
  strength:
    v: required
  description:
    v: 地点的状态，指明该地点是否目前正在使用中；应填入所绑定值集中的其中一个代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/location-status|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: rim
  map:
    v: .statusCode

id:
  v: Location.operationalStatus
path:
  v: Location.operationalStatus
short:
  v: 地点的运营状态（通常仅适用于床位 / 房间）
definition:
  v: 运营状态主要描述与床位相关的运营情况（但也可以用于房间、单位、椅子等，例如：隔离区或透析椅）。这通常包括床位是否受到污染、需要房间清洁，或者正在进行维修等情况。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.operationalStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: OperationalStatus
  strength:
    v: preferred
  description:
    v: 鼓励使用所绑定值集中的代码，但不强制一定要使用此值集，你也可使用其他值集的代码或单纯以文字表示。
  value set:
    v: http://terminology.hl7.org/ValueSet/v2-0116
    link: http://terminology.hl7.org/ValueSet/v2-0116
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Location.name
path:
  v: Location.name
short:
  v: 人们使用的地点名称
definition:
  v: 人们常用的地点名称。不需要是唯一的。
comment:
  v: 如果某地点的名称发生变更，可以考虑将旧名称放入别名(alias)资料项目，这样在查询时仍然可以找到此地点。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Location.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .name

id:
  v: Location.alias
path:
  v: Location.alias
short:
  v: 这是一份地点过去或现在所使用的其他名称的清单
definition:
  v: 这是一份地点过去或现在所使用的其他名称的清单
comment:
  v: 别名或过去的名称并不附带具体的日期，因为这不是用来记录名称使用的时间。其主要目的是帮助查询，让人们用旧名称也能找到对应的地点。
requirements:
  v: 随著时间的流逝，地点和机构会有很多变化，它们可能会有不同的名称。在查询资料时，知道一个地点之前的名称可能会很有帮助。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Location.alias
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .name

id:
  v: Location.description
path:
  v: Location.description
short:
  v: 关于地点的额外信息，除了名称之外，还可以提供更多的细节来帮助识别这个地点。
definition:
  v: 对地点的描述，可以帮助人们找到或者识别这个地点。
requirements:
  v: 人们需要额外信息来确保找到的是正确的地点
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .playingEntity[classCode=PLC determinerCode=INSTANCE].desc

id:
  v: Location.mode
path:
  v: Location.mode
short:
  v: instance | kind
definition:
  v: 表明这个 resource 实例是指一个具体的地点，还是指一种地点的类别。
comment:
  v: 之所以将此资料项目标记为修饰用(modifier)，是因为地点是否属于某一类的地点类别会改变其使用和理解方式。
requirements:
  v: 当在排程或下医嘱中使用Location resource时，我们需要能够参照某类地点，而不是一个具体的地点。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: LocationMode
  strength:
    v: required
  description:
    v: 表明为一个地点或是一个地点的类别；应填入所绑定值集中的其中一个代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/location-mode|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .playingEntity[classCode=PLC].determinerCode

id:
  v: Location.type
path:
  v: Location.type
short:
  v: 执行的功能类型
definition:
  v: 指明此地点执行的功能类型
min:
  v: 0
max:
  v: *
base:
  path:
    v: Location.type
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  description:
    v: 应填入所绑定值集中的其中一个代码。
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
    link: http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .code

id:
  v: Location.telecom
path:
  v: Location.telecom
short:
  v: 地点的联络细节
definition:
  v: 此地点提供的通讯设备联络方式。这可能包括电话号码、传真号码、手机号码、电子邮件地址和网站。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Location.telecom
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactPoint
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .telecom

id:
  v: Location.telecom.id
path:
  v: Location.telecom.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Location.telecom.extension
path:
  v: Location.telecom.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Location.telecom.system
path:
  v: Location.telecom.system
short:
  v: phone | fax | email | pager | url | sms | other
definition:
  v: 联络方式的通讯形式－需要什么通讯系统进行联络
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ContactPoint.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
condition:
  v: cpt-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ContactPointSystem
  strength:
    v: required
  description:
    v: 应填入所绑定值集中的其中一个代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: XTN.3
mapping:
  identity:
    v: rim
  map:
    v: ./scheme
mapping:
  identity:
    v: servd
  map:
    v: ./ContactPointType

id:
  v: Location.telecom.value
path:
  v: Location.telecom.value
short:
  v: 实际的联络方式之细节
definition:
  v: 实际的联络方式之细节，针对指定的通讯系统提供有意义的形式（电话号码或是电子邮件位址）
comment:
  v: 额外的文字资料，例如电话分机号码、或关于联络人的说明，有时也包括于此值。
requirements:
  v: 需支援非严格格式控制之旧有号码
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ContactPoint.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: XTN.1 (or XTN.12)
mapping:
  identity:
    v: rim
  map:
    v: ./url
mapping:
  identity:
    v: servd
  map:
    v: ./Value

id:
  v: Location.telecom.use
path:
  v: Location.telecom.use
short:
  v: home | work | temp | old | mobile
definition:
  v: 确定联络方式的用途
comment:
  v: 应用程序可以假定一个联络方法是目前使用中，除非它明确说它是暂时的或旧的。
requirements:
  v: 需要追踪此人使用这种联络的方式，使用者可以选择适合他们用途的联络方式。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ContactPoint.use
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not mistake a temporary or old contact etc.for a current/permanent one
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ContactPointUse
  strength:
    v: required
  description:
    v: 此联络方式的用途；应填入所绑定值集中的其中一个代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: XTN.2 - but often indicated by field
mapping:
  identity:
    v: rim
  map:
    v: unique(./use)
mapping:
  identity:
    v: servd
  map:
    v: ./ContactPointPurpose

id:
  v: Location.telecom.rank
path:
  v: Location.telecom.rank
short:
  v: 具体说明偏好的使用顺序（1=最高优先顺序）
definition:
  v: 具体说明使用一组联系方式的优先顺序，较小排名序位的联络方式比较大排名序位的联络方式之序位还要前面。
comment:
  v: 请注意，排名序位没有一定要遵循联络方式在实例中呈现的顺序。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ContactPoint.rank
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: n/a
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Location.telecom.period
path:
  v: Location.telecom.period
short:
  v: 此联络方式的使用效期
definition:
  v: 此联络方式的使用效期
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ContactPoint.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: ./usablePeriod[type="IVL<TS>"]
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

id:
  v: Location.address
path:
  v: Location.address
short:
  v: 实体地点
definition:
  v: 实体地点
comment:
  v: 额外的地址应使用另一个Location resource 实例或透过 Organiztion 进行记录
requirements:
  v: 如果可以访问地点，我们需要记录其地址。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.address
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Address
  profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-address
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-address
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a
mapping:
  identity:
    v: v2
  map:
    v: XAD
mapping:
  identity:
    v: rim
  map:
    v: AD
mapping:
  identity:
    v: servd
  map:
    v: Address

id:
  v: Location.physicalType
path:
  v: Location.physicalType
short:
  v: 绝对的地理位置
definition:
  v: 地点的实体形态，如建筑物、房间、车辆、道路。
requirements:
  v: 为了在查询中显示相关地点，我们需要对地点进行分类。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.physicalType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: PhysicalType
  strength:
    v: example
  description:
    v: 可参考所绑定值集，但此值集只是针对这个栏位的一个可能值的范例，不预期也不鼓励使用者一定要使用此值集的代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/location-physical-type
    link: http://hl7.org/fhir/ValueSet/location-physical-type
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class
mapping:
  identity:
    v: rim
  map:
    v: .playingEntity [classCode=PLC].code

id:
  v: Location.position
path:
  v: Location.position
short:
  v: 绝对地理位置
definition:
  v: 地点的绝对地理位置，使用 WGS84 基准表示（这与 KML 中使用的坐标系相同）。
requirements:
  v: 对于行动应用和自动导航来说，需要知道地点的确切位置。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.position
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .playingEntity [classCode=PLC determinerCode=INSTANCE].positionText

id:
  v: Location.position.id
path:
  v: Location.position.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Location.position.extension
path:
  v: Location.position.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Location.position.modifierExtension
path:
  v: Location.position.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Location.position.longitude
path:
  v: Location.position.longitude
short:
  v: 以 WGS84 为基准的经度
definition:
  v: 经度，值域和解释与 KML 中经度资料项目文字表述相同（见下文注释）。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Location.position.longitude
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: (RIM Opted not to map the sub-elements of GPS location, is now an OBS)

id:
  v: Location.position.latitude
path:
  v: Location.position.latitude
short:
  v: 以 WGS84 为基准的纬度
definition:
  v: 纬度，值域和解释与 KML 中纬度资料项目文字表述相同（见下文注释）。
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Location.position.latitude
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: (RIM Opted not to map the sub-elements of GPS location, is now an OBS)

id:
  v: Location.position.altitude
path:
  v: Location.position.altitude
short:
  v: 以 WGS84 为基准的海拔高度
definition:
  v: 海拔高度，值域和解释与 KML 中高度资料项目的文字表述相同（见下文注释）。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.position.altitude
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: decimal
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: (RIM Opted not to map the sub-elements of GPS location, is now an OBS)

id:
  v: Location.managingOrganization
path:
  v: Location.managingOrganization
short:
  v: 负责地点的提供与维护之机构
definition:
  v: 负责地点的提供与维护之机构
comment:
  v: 这也可以用来指出此地点隶属于哪个机构，以及提供哪些服务。这些服务可以透过HealthcareService resource来具体定义。
requirements:
  v: 需要知道谁负责管理此地点
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.managingOrganization
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-organization
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .scopingEntity[classCode=ORG determinerKind=INSTANCE]

id:
  v: Location.partOf
path:
  v: Location.partOf
short:
  v: 此地点是另一个地点的一部分
definition:
  v: 此地点是另一个地点的一部分
requirements:
  v: 为了方便查找地点、显示地点以及识别地点，知道哪些地点位于其他地点之内是重要的。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.partOf
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
    value:
      v: true
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-location
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-location
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .inboundLink[typeCode=PART].source[classCode=SDLC]

id:
  v: Location.hoursOfOperation
path:
  v: Location.hoursOfOperation
short:
  v: 这个地点通常在一个星期的哪些日子/时间开放？
definition:
  v: 这个地点通常在一个星期的哪些日子/时间开放？
comment:
  v: 这种信息通常可以在目录和网站上找到，以告知客户机构的开放时间。此地点内的特定服务可能有自己的营业时间，这些时间可能会比此地点的整体营业时间短或长。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Location.hoursOfOperation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: Location.hoursOfOperation.id
path:
  v: Location.hoursOfOperation.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Location.hoursOfOperation.extension
path:
  v: Location.hoursOfOperation.extension
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and 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:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Location.hoursOfOperation.modifierExtension
path:
  v: Location.hoursOfOperation.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Location.hoursOfOperation.daysOfWeek
path:
  v: Location.hoursOfOperation.daysOfWeek
short:
  v: mon | tue | wed | thu | fri | sat | sun
definition:
  v: 在规定的开始和结束时间内，一周中哪些天是开放的。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Location.hoursOfOperation.daysOfWeek
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: DaysOfWeek
  strength:
    v: required
  description:
    v: 应填入所绑定值集中的其中一个代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/days-of-week|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: Location.hoursOfOperation.allDay
path:
  v: Location.hoursOfOperation.allDay
short:
  v: 此地点全天开放
definition:
  v: 此地点全天开放
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.hoursOfOperation.allDay
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: Location.hoursOfOperation.openingTime
path:
  v: Location.hoursOfOperation.openingTime
short:
  v: 此地点的开放时间
definition:
  v: 此地点的开放时间
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.hoursOfOperation.openingTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: time
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: Location.hoursOfOperation.closingTime
path:
  v: Location.hoursOfOperation.closingTime
short:
  v: 此地点的关闭时间
definition:
  v: 此地点的关闭时间
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.hoursOfOperation.closingTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: time
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: Location.availabilityExceptions
path:
  v: Location.availabilityExceptions
short:
  v: 可用性例外情况说明
definition:
  v: 描述地点开放时间与正常情况不同的情形，例如国定假日。简明扼要地描述所有可能的异常情况，这些异常情况在开放时间的时间表中有详细说明。
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Location.availabilityExceptions
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Location.endpoint
path:
  v: Location.endpoint
short:
  v: 提供用于此地点运营服务的技术端点
definition:
  v: 提供用于此地点运营服务的技术端点
requirements:
  v: 机构在不同地点有提供各种服务的不同系统，需要明确怎样以及为了什么目的来连接这些系统的技术详情。
min:
  v: 0
max:
  v: *
base:
  path:
    v: Location.endpoint
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Endpoint
    link: http://hl7.org/fhir/StructureDefinition/Endpoint
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

element:
  id:
    v: Location
  path:
    v: Location
  short:
    v: 用于描述一个实体地点的详细信息和位置信息
  definition:
    v: 提供服务的实体地点的详细和位置信息，包括可以储存、查找、容纳或安置 resources和参与者的地点的信息。
element:
  id:
    v: Location.id
  path:
    v: Location.id
  short:
    v: 不重复的ID用以识别储存在特定FHIR Server中的Location纪录，通常又称为逻辑性ID。
  definition:
    v: resource的逻辑ID，在resource的URL中使用。一旦指定，这个值永远不会改变。
  comment:
    v: 一个resource使用新增操作（create operation）提交给服务器时，此resource没有id，它的id在resource被创建后由服务器分配/指定。
element:
  id:
    v: Location.language
  path:
    v: Location.language
  short:
    v: 用以表述Location Resource内容的语言。
  example:
    label:
      v: Value
    value:
      v: zh-CN
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      value:
        v: http://hl7.org/fhir/ValueSet/all-languages
        link: http://hl7.org/fhir/ValueSet/all-languages
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      value:
        v: Language
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      value:
        v: true
    strength:
      v: preferred
    description:
      v: 人类语言；鼓励使用CommonLanguages代码表中的代码，但不强制一定要使用此代码表，你也可使用其他代码表的代码或单纯以文字表示。
    value set:
      v: http://hl7.org/fhir/ValueSet/languages
      link: http://hl7.org/fhir/ValueSet/languages
element:
  id:
    v: Location.text
  path:
    v: Location.text
  short:
    v: Location Resource之内容摘要以供人阅读
  definition:
    v: 人可读的叙述，包含resource的摘要，可用于向人表述resource的内容。叙述不需要对所有的结构化资料进行编码，但需要包含足够的细节使人在阅读叙述时理解「临床安全性」。resource定义有哪些内容应该在叙述中表示，以确保临床安全。
  comment:
    v: 内嵌（contained）的resource没有叙述，非内嵌（contained）的resource则 **建议应该（SHOULD）** 有叙述。有时resource可能只有文字表述，很少或没有额外的结构化资料（只要满足所有minOccurs=1的资料项目）。这可能出现在旧系统的资料，当信息以 「文字表述区块（text blob） 」的形式被取得，或者文字表述是原始输入或说明，而编码信息稍后再添加。
element:
  id:
    v: Location.contained
  path:
    v: Location.contained
  short:
    v: 内嵌的（contained）、行内的Resources
  definition:
    v: 这些resource内嵌（contains）的resource不会另外存于任何FHIR服务器，意即它们无法在任何FHIR服务器中被找到，也无法有自己独立的资料异动／交易（transaction）范围。
  comment:
    v: 当内容可以从任何FHIR服务器找到时，不应该以内嵌（contained）resource的方式呈现，因为一旦失去识别，再次恢复它是非常困难的（并且取决于场景）。内嵌（contained）的resource可在它们的meta资料项目中表述profiles和tag，但不应该有安全标号（security labels）。
element:
  id:
    v: Location.extension
  path:
    v: Location.extension
  short:
    v: 扩展字段
  definition:
    v: 可用于表示不属于此resource基本定义的额外信息。为了扩充的使用安全和可管理，对扩充的定义和使用有一套严格的管理。尽管任何实作者都可以定义一个扩充，但作为扩充定义的一部分，**必须（SHALL）** 满足一系列要求。
  comment:
    v: 任何应用程序、专案或标准使用扩充时，都不应该带有任何负面的联想。使用扩充是允许FHIR规范为每个人保留一个核心的简易性。
element:
  id:
    v: Location.modifierExtension
  path:
    v: Location.modifierExtension
  short:
    v: 此扩展字段可能会完全修正或改变其他资料项目的意涵，需特别留意。
  definition:
    v: 可以用来表示不属于此resource的基本定义的额外信息，并修改包含它所内嵌（contained）的资料项目的理解和/或对包含资料项目之后续使用的理解。通常修饰用的资料项目提供否定或限定的信息。为了使扩充的使用安全和可管理，对扩充的定义和使用有一套严格的管理。虽然任何实作者都可以定义一个扩充，但在定义扩充时 **必须（SHALL）** 满足一组要求。处理resource的应用程序需要检查修饰用的扩充资料项目。 修饰用的扩充资料项目 **必须没有（SHALL NOT）** 改变resource或DomainResource上任何资料项目的含义（包括不能改变modifierExtension本身的含义）。
  comment:
    v: 任何应用程序、专案或标准使用扩充时，都不应该带有任何负面的联想。使用扩充是允许FHIR规范为每个人保留一个核心的简易性。
  requirements:
    v: 修饰用的资料项目扩充允许将不能安全地忽略的扩充，与绝大多数可以安全地忽略的扩充明确区分开来。这样做有助于促进可互操作性，因为无需禁止实作者使用扩充，想要了解更多信息，请参见[修饰用的资料项目扩充之定义]（http://hl7.org/fhir/R4/extensibility.html#modifierExtension）。
element:
  id:
    v: Location.identifier
  path:
    v: Location.identifier
  short:
    v: 地点的唯一识别号
  definition:
    v: 这是唯一的识别号，用来帮助使用者识别该地点
  requirements:
    v: 机构会在注册档中给地点贴上标签，我们需要记录并追踪这些被标记的地点。
element:
  id:
    v: Location.status
  path:
    v: Location.status
  definition:
    v: 这里的状态属性是指 resource 是否一般可用，而不是指它当前的具体状态。当前的具体状态可能会由 operationStatus 作描述，或者如果这个地点设有排程或时段的话，则由这些排程或时段来描述。
  must support:
    v: true
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      value:
        v: LocationStatus
    strength:
      v: required
    description:
      v: 地点的状态，指明该地点是否目前正在使用中；应填入所绑定值集中的其中一个代码。
    value set:
      v: http://hl7.org/fhir/ValueSet/location-status|4.0.1
      link: 4.0
      link: .1
element:
  id:
    v: Location.operationalStatus
  path:
    v: Location.operationalStatus
  short:
    v: 地点的运营状态（通常仅适用于床位 / 房间）
  definition:
    v: 运营状态主要描述与床位相关的运营情况（但也可以用于房间、单位、椅子等，例如：隔离区或透析椅）。这通常包括床位是否受到污染、需要房间清洁，或者正在进行维修等情况。
  binding:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      value:
        v: OperationalStatus
    strength:
      v: preferred
    description:
      v: 鼓励使用所绑定值集中的代码，但不强制一定要使用此值集，你也可使用其他值集的代码或单纯以文字表示。
    value set:
      v: http://terminology.hl7.org/ValueSet/v2-0116
      link: http://terminology.hl7.org/ValueSet/v2-0116
element:
  id:
    v: Location.name
  path:
    v: Location.name
  short:
    v: 人们使用的地点名称
  definition:
    v: 人们常用的地点名称。不需要是唯一的。
  comment:
    v: 如果某地点的名称发生变更，可以考虑将旧名称放入别名(alias)资料项目，这样在查询时仍然可以找到此地点。
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: Location.alias
  path:
    v: Location.alias
  short:
    v: 这是一份地点过去或现在所使用的其他名称的清单
  definition:
    v: 这是一份地点过去或现在所使用的其他名称的清单
  comment:
    v: 别名或过去的名称并不附带具体的日期，因为这不是用来记录名称使用的时间。其主要目的是帮助查询，让人们用旧名称也能找到对应的地点。
  requirements:
    v: 随著时间的流逝，地点和机构会有很多变化，它们可能会有不同的名称。在查询资料时，知道一个地点之前的名称可能会很有帮助。
element:
  id:
    v: Location.description
  path:
    v: Location.description
  short:
    v: 关于地点的额外信息，除了名称之外，还可以提供更多的细节来帮助识别这个地点。
  definition:
    v: 对地点的描述，可以帮助人们找到或者识别这个地点。
  requirements:
    v: 人们需要额外信息来确保找到的是正确的地点
element:
  id:
    v: Location.mode
  path:
    v: Location.mode

v: 表明这个 resource 实例是指一个具体的地点，还是指一种地点的类别。

v: 之所以将此资料项目标记为修饰用(modifier)，是因为地点是否属于某一类的地点类别会改变其使用和理解方式。

v: 当在排程或下医嘱中使用Location resource时，我们需要能够参照某类地点，而不是一个具体的地点。

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
  value:
    v: LocationMode
strength:
  v: required
description:
  v: 表明为一个地点或是一个地点的类别；应填入所绑定值集中的其中一个代码。
value set:
  v: http://hl7.org/fhir/ValueSet/location-mode|4.0.1
  link: 4.0
  link: .1

id:
  v: Location.type
path:
  v: Location.type
short:
  v: 执行的功能类型
definition:
  v: 指明此地点执行的功能类型
binding:
  strength:
    v: extensible
  description:
    v: 应填入所绑定值集中的其中一个代码。
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
    link: http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType

id:
  v: Location.telecom
path:
  v: Location.telecom
short:
  v: 地点的联络细节
definition:
  v: 此地点提供的通讯设备联络方式。这可能包括电话号码、传真号码、手机号码、电子邮件地址和网站。
must support:
  v: true

id:
  v: Location.telecom.system
path:
  v: Location.telecom.system
definition:
  v: 联络方式的通讯形式－需要什么通讯系统进行联络
must support:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ContactPointSystem
  strength:
    v: required
  description:
    v: 应填入所绑定值集中的其中一个代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/contact-point-system|4.0.1
    link: 4.0
    link: .1

id:
  v: Location.telecom.value
path:
  v: Location.telecom.value
short:
  v: 实际的联络方式之细节
definition:
  v: 实际的联络方式之细节，针对指定的通讯系统提供有意义的形式（电话号码或是电子邮件位址）
comment:
  v: 额外的文字资料，例如电话分机号码、或关于联络人的说明，有时也包括于此值。
requirements:
  v: 需支援非严格格式控制之旧有号码
must support:
  v: true

id:
  v: Location.telecom.use
path:
  v: Location.telecom.use
short:
  v: home | work | temp | old | mobile
definition:
  v: 确定联络方式的用途
comment:
  v: 应用程序可以假定一个联络方法是目前使用中，除非它明确说它是暂时的或旧的。
requirements:
  v: 需要追踪此人使用这种联络的方式，使用者可以选择适合他们用途的联络方式。
must support:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: ContactPointUse
  strength:
    v: required
  description:
    v: 此联络方式的用途；应填入所绑定值集中的其中一个代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/contact-point-use|4.0.1
    link: 4.0
    link: .1

id:
  v: Location.telecom.rank
path:
  v: Location.telecom.rank
short:
  v: 具体说明偏好的使用顺序（1=最高优先顺序）
definition:
  v: 具体说明使用一组联系方式的优先顺序，较小排名序位的联络方式比较大排名序位的联络方式之序位还要前面。
comment:
  v: 请注意，排名序位没有一定要遵循联络方式在实例中呈现的顺序。

id:
  v: Location.telecom.period
path:
  v: Location.telecom.period
short:
  v: 此联络方式的使用效期
definition:
  v: 此联络方式的使用效期
must support:
  v: true

id:
  v: Location.address
path:
  v: Location.address
short:
  v: 实体地点
definition:
  v: 实体地点
comment:
  v: 额外的地址应使用另一个Location resource 实例或透过 Organiztion 进行记录
requirements:
  v: 如果可以访问地点，我们需要记录其地址。
type:
  code:
    v: Address
  profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-address
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-address
must support:
  v: true

id:
  v: Location.physicalType
path:
  v: Location.physicalType
short:
  v: 绝对的地理位置
definition:
  v: 地点的实体形态，如建筑物、房间、车辆、道路。
requirements:
  v: 为了在查询中显示相关地点，我们需要对地点进行分类。
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: PhysicalType
  strength:
    v: example
  description:
    v: 可参考所绑定值集，但此值集只是针对这个栏位的一个可能值的范例，不预期也不鼓励使用者一定要使用此值集的代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/location-physical-type
    link: http://hl7.org/fhir/ValueSet/location-physical-type

id:
  v: Location.position
path:
  v: Location.position
short:
  v: 绝对地理位置
definition:
  v: 地点的绝对地理位置，使用 WGS84 基准表示（这与 KML 中使用的坐标系相同）。
requirements:
  v: 对于行动应用和自动导航来说，需要知道地点的确切位置。

id:
  v: Location.position.longitude
path:
  v: Location.position.longitude
short:
  v: 以 WGS84 为基准的经度
definition:
  v: 经度，值域和解释与 KML 中经度资料项目文字表述相同（见下文注释）。

id:
  v: Location.position.latitude
path:
  v: Location.position.latitude
short:
  v: 以 WGS84 为基准的纬度
definition:
  v: 纬度，值域和解释与 KML 中纬度资料项目文字表述相同（见下文注释）。

id:
  v: Location.position.altitude
path:
  v: Location.position.altitude
short:
  v: 以 WGS84 为基准的海拔高度
definition:
  v: 海拔高度，值域和解释与 KML 中高度资料项目的文字表述相同（见下文注释）。

id:
  v: Location.managingOrganization
path:
  v: Location.managingOrganization
short:
  v: 负责地点的提供与维护之机构
definition:
  v: 负责地点的提供与维护之机构
comment:
  v: 这也可以用来指出此地点隶属于哪个机构，以及提供哪些服务。这些服务可以透过HealthcareService resource来具体定义。
requirements:
  v: 需要知道谁负责管理此地点
type:
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-organization
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-organization
must support:
  v: true

id:
  v: Location.partOf
path:
  v: Location.partOf
short:
  v: 此地点是另一个地点的一部分
definition:
  v: 此地点是另一个地点的一部分
requirements:
  v: 为了方便查找地点、显示地点以及识别地点，知道哪些地点位于其他地点之内是重要的。
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
    value:
      v: true
  code:
    v: Reference
  target profile:
    v: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-location
    link: https://whcater.github.io/serious-med-ig/StructureDefinition/sm-location

id:
  v: Location.hoursOfOperation
path:
  v: Location.hoursOfOperation
short:
  v: 这个地点通常在一个星期的哪些日子/时间开放？
definition:
  v: 这个地点通常在一个星期的哪些日子/时间开放？
comment:
  v: 这种信息通常可以在目录和网站上找到，以告知客户机构的开放时间。此地点内的特定服务可能有自己的营业时间，这些时间可能会比此地点的整体营业时间短或长。

id:
  v: Location.hoursOfOperation.daysOfWeek
path:
  v: Location.hoursOfOperation.daysOfWeek
definition:
  v: 在规定的开始和结束时间内，一周中哪些天是开放的。
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: DaysOfWeek
  strength:
    v: required
  description:
    v: 应填入所绑定值集中的其中一个代码。
  value set:
    v: http://hl7.org/fhir/ValueSet/days-of-week|4.0.1
    link: 4.0
    link: .1

id:
  v: Location.hoursOfOperation.allDay
path:
  v: Location.hoursOfOperation.allDay
short:
  v: 此地点全天开放
definition:
  v: 此地点全天开放

id:
  v: Location.hoursOfOperation.openingTime
path:
  v: Location.hoursOfOperation.openingTime
short:
  v: 此地点的开放时间
definition:
  v: 此地点的开放时间

id:
  v: Location.hoursOfOperation.closingTime
path:
  v: Location.hoursOfOperation.closingTime
short:
  v: 此地点的关闭时间
definition:
  v: 此地点的关闭时间

id:
  v: Location.availabilityExceptions
path:
  v: Location.availabilityExceptions
short:
  v: 可用性例外情况说明
definition:
  v: 描述地点开放时间与正常情况不同的情形，例如国定假日。简明扼要地描述所有可能的异常情况，这些异常情况在开放时间的时间表中有详细说明。

id:
  v: Location.endpoint
path:
  v: Location.endpoint
short:
  v: 提供用于此地点运营服务的技术端点
definition:
  v: 提供用于此地点运营服务的技术端点
requirements:
  v: 机构在不同地点有提供各种服务的不同系统，需要明确怎样以及为了什么目的来连接这些系统的技术详情。