HL7中国FHIR Connectathon测试实施指南
2025.3.12 - release

HL7中国FHIR Connectathon测试实施指南 - Local Development build (v2025.3.12) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Resource Profile: 位置结构定义

官方URL: http://hl7.org.cn/fhir/connectathon/StructureDefinition/core-location 版本: 2025.3.12
Draft as of 2025-03-11 机读名称: CoreLocation

位置资源本地化定义。

Usage:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Location 0..* Location Details and position information for a place
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: 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
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... name Σ 1..1 string 位置的全称。
ele-1: All FHIR elements must have a @value or children
... alias 0..* string 位置的别名。
ele-1: All FHIR elements must have a @value or children
... mode Σ 1..1 code 位置的模式,有类型(kind)和实例(instance)两种。
Binding: LocationMode (required): Indicates whether a resource instance represents a specific location or a class of locations.


ele-1: All FHIR elements must have a @value or children
... type SΣ 0..1 CodeableConcept 位置的功能类型。像:大楼、楼层、病房、病床、车辆、住宅等
Binding: ServiceDeliveryLocationRoleType (extensible): Indicates the type of function performed at the location.


ele-1: All FHIR elements must have a @value or children
... form SΣ 0..1 CodeableConcept 位置的物理形式。像:大楼、楼层、病房、病床、车辆、住宅等
Binding: LocationForm (example): Physical form of the location.


ele-1: All FHIR elements must have a @value or children
... position 0..1 BackboneElement 位置的经纬度。
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... longitude 1..1 decimal Longitude with WGS84 datum
ele-1: All FHIR elements must have a @value or children
.... latitude 1..1 decimal Latitude with WGS84 datum
ele-1: All FHIR elements must have a @value or children
... managingOrganization Σ 1..1 Reference(Organization) 该位置的管理组织。
ele-1: All FHIR elements must have a @value or children
... partOf 0..1 Reference(Location) 位置的层级关系,指向该位置的上一级位置。
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Location.statusrequiredLocationStatus
http://hl7.org/fhir/ValueSet/location-status|5.0.0
from the FHIR Standard
Location.moderequiredLocationMode
http://hl7.org/fhir/ValueSet/location-mode|5.0.0
from the FHIR Standard
Location.typeextensibleServiceDeliveryLocationRoleType
http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
Location.formexampleLocationForm
http://hl7.org/fhir/ValueSet/location-form
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorLocationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorLocationIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorLocationIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorLocationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceLocationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

该结构继承自 Location

NameFlagsCard.TypeDescription & Constraintsdoco
.. Location 0..* Location Details and position information for a place
... status 1..1 code 位置的有效状态。
... name 1..1 string 位置的全称。
... alias 0..* string 位置的别名。
... type S 0..1 CodeableConcept 位置的功能类型。像:大楼、楼层、病房、病床、车辆、住宅等
... form S 0..1 CodeableConcept 位置的物理形式。像:大楼、楼层、病房、病床、车辆、住宅等
... position 0..1 BackboneElement 位置的经纬度。
... managingOrganization 1..1 Reference(Organization) 该位置的管理组织。
... partOf 0..1 Reference(Location) 位置的层级关系,指向该位置的上一级位置。

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Location 0..* Location Details and position information for a place
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier Unique code or number identifying the location to its users
... status ?!Σ 1..1 code 位置的有效状态。
Binding: LocationStatus (required): Indicates whether the location is still in use.

... operationalStatus Σ 0..1 Coding The operational status of the location (typically only for a bed/room)
Binding: hl7VS-bedStatus (preferred): The operational status if the location (where typically a bed/room).

... name Σ 1..1 string 位置的全称。
... alias 0..* string 位置的别名。
... description Σ 0..1 markdown Additional details about the location that could be displayed as further information to identify the location beyond its name
... mode Σ 1..1 code 位置的模式,有类型(kind)和实例(instance)两种。
Binding: LocationMode (required): Indicates whether a resource instance represents a specific location or a class of locations.

... type SΣ 0..1 CodeableConcept 位置的功能类型。像:大楼、楼层、病房、病床、车辆、住宅等
Binding: ServiceDeliveryLocationRoleType (extensible): Indicates the type of function performed at the location.


... contact 0..* ExtendedContactDetail Official contact details for the location
... address 0..1 Address Physical location
... form SΣ 0..1 CodeableConcept 位置的物理形式。像:大楼、楼层、病房、病床、车辆、住宅等
Binding: LocationForm (example): Physical form of the location.

... position 0..1 BackboneElement 位置的经纬度。
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... longitude 1..1 decimal Longitude with WGS84 datum
.... latitude 1..1 decimal Latitude with WGS84 datum
.... altitude 0..1 decimal Altitude with WGS84 datum
... managingOrganization Σ 1..1 Reference(Organization) 该位置的管理组织。
... partOf 0..1 Reference(Location) 位置的层级关系,指向该位置的上一级位置。
... characteristic 0..* CodeableConcept Collection of characteristics (attributes)
Binding: LocationCharacteristic (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy).


... hoursOfOperation 0..* Availability What days/times during a week is this location usually open (including exceptions)
... virtualService 0..* VirtualServiceDetail Connection details of a virtual service (e.g. conference call)
... endpoint 0..* Reference(Endpoint) Technical endpoints providing access to services operated for the location

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Location.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
Location.statusrequiredLocationStatus
http://hl7.org/fhir/ValueSet/location-status|5.0.0
from the FHIR Standard
Location.operationalStatuspreferredHl7VSBedStatus
http://terminology.hl7.org/ValueSet/v2-0116
Location.moderequiredLocationMode
http://hl7.org/fhir/ValueSet/location-mode|5.0.0
from the FHIR Standard
Location.typeextensibleServiceDeliveryLocationRoleType
http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
Location.formexampleLocationForm
http://hl7.org/fhir/ValueSet/location-form
from the FHIR Standard
Location.characteristicexampleLocationCharacteristic
http://hl7.org/fhir/ValueSet/location-characteristic
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorLocationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorLocationIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorLocationIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorLocationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceLocationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

该结构继承自 Location

Summary

Mandatory: 4 elements
Must-Support: 2 elements

关键元素视图

NameFlagsCard.TypeDescription & Constraintsdoco
.. Location 0..* Location Details and position information for a place
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: 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
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... contained 0..* Resource Contained, inline Resources
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... name Σ 1..1 string 位置的全称。
ele-1: All FHIR elements must have a @value or children
... alias 0..* string 位置的别名。
ele-1: All FHIR elements must have a @value or children
... mode Σ 1..1 code 位置的模式,有类型(kind)和实例(instance)两种。
Binding: LocationMode (required): Indicates whether a resource instance represents a specific location or a class of locations.


ele-1: All FHIR elements must have a @value or children
... type SΣ 0..1 CodeableConcept 位置的功能类型。像:大楼、楼层、病房、病床、车辆、住宅等
Binding: ServiceDeliveryLocationRoleType (extensible): Indicates the type of function performed at the location.


ele-1: All FHIR elements must have a @value or children
... form SΣ 0..1 CodeableConcept 位置的物理形式。像:大楼、楼层、病房、病床、车辆、住宅等
Binding: LocationForm (example): Physical form of the location.


ele-1: All FHIR elements must have a @value or children
... position 0..1 BackboneElement 位置的经纬度。
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... longitude 1..1 decimal Longitude with WGS84 datum
ele-1: All FHIR elements must have a @value or children
.... latitude 1..1 decimal Latitude with WGS84 datum
ele-1: All FHIR elements must have a @value or children
... managingOrganization Σ 1..1 Reference(Organization) 该位置的管理组织。
ele-1: All FHIR elements must have a @value or children
... partOf 0..1 Reference(Location) 位置的层级关系,指向该位置的上一级位置。
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Location.statusrequiredLocationStatus
http://hl7.org/fhir/ValueSet/location-status|5.0.0
from the FHIR Standard
Location.moderequiredLocationMode
http://hl7.org/fhir/ValueSet/location-mode|5.0.0
from the FHIR Standard
Location.typeextensibleServiceDeliveryLocationRoleType
http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
Location.formexampleLocationForm
http://hl7.org/fhir/ValueSet/location-form
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorLocationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorLocationIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorLocationIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorLocationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceLocationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

差异视图

该结构继承自 Location

NameFlagsCard.TypeDescription & Constraintsdoco
.. Location 0..* Location Details and position information for a place
... status 1..1 code 位置的有效状态。
... name 1..1 string 位置的全称。
... alias 0..* string 位置的别名。
... type S 0..1 CodeableConcept 位置的功能类型。像:大楼、楼层、病房、病床、车辆、住宅等
... form S 0..1 CodeableConcept 位置的物理形式。像:大楼、楼层、病房、病床、车辆、住宅等
... position 0..1 BackboneElement 位置的经纬度。
... managingOrganization 1..1 Reference(Organization) 该位置的管理组织。
... partOf 0..1 Reference(Location) 位置的层级关系,指向该位置的上一级位置。

doco Documentation for this format

快照视图

NameFlagsCard.TypeDescription & Constraintsdoco
.. Location 0..* Location Details and position information for a place
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... extension 0..* Extension Additional content defined by implementations
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..* Identifier Unique code or number identifying the location to its users
... status ?!Σ 1..1 code 位置的有效状态。
Binding: LocationStatus (required): Indicates whether the location is still in use.

... operationalStatus Σ 0..1 Coding The operational status of the location (typically only for a bed/room)
Binding: hl7VS-bedStatus (preferred): The operational status if the location (where typically a bed/room).

... name Σ 1..1 string 位置的全称。
... alias 0..* string 位置的别名。
... description Σ 0..1 markdown Additional details about the location that could be displayed as further information to identify the location beyond its name
... mode Σ 1..1 code 位置的模式,有类型(kind)和实例(instance)两种。
Binding: LocationMode (required): Indicates whether a resource instance represents a specific location or a class of locations.

... type SΣ 0..1 CodeableConcept 位置的功能类型。像:大楼、楼层、病房、病床、车辆、住宅等
Binding: ServiceDeliveryLocationRoleType (extensible): Indicates the type of function performed at the location.


... contact 0..* ExtendedContactDetail Official contact details for the location
... address 0..1 Address Physical location
... form SΣ 0..1 CodeableConcept 位置的物理形式。像:大楼、楼层、病房、病床、车辆、住宅等
Binding: LocationForm (example): Physical form of the location.

... position 0..1 BackboneElement 位置的经纬度。
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... longitude 1..1 decimal Longitude with WGS84 datum
.... latitude 1..1 decimal Latitude with WGS84 datum
.... altitude 0..1 decimal Altitude with WGS84 datum
... managingOrganization Σ 1..1 Reference(Organization) 该位置的管理组织。
... partOf 0..1 Reference(Location) 位置的层级关系,指向该位置的上一级位置。
... characteristic 0..* CodeableConcept Collection of characteristics (attributes)
Binding: LocationCharacteristic (example): A custom attribute that could be provided at a service (e.g. Wheelchair accessibiliy).


... hoursOfOperation 0..* Availability What days/times during a week is this location usually open (including exceptions)
... virtualService 0..* VirtualServiceDetail Connection details of a virtual service (e.g. conference call)
... endpoint 0..* Reference(Endpoint) Technical endpoints providing access to services operated for the location

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Location.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
Location.statusrequiredLocationStatus
http://hl7.org/fhir/ValueSet/location-status|5.0.0
from the FHIR Standard
Location.operationalStatuspreferredHl7VSBedStatus
http://terminology.hl7.org/ValueSet/v2-0116
Location.moderequiredLocationMode
http://hl7.org/fhir/ValueSet/location-mode|5.0.0
from the FHIR Standard
Location.typeextensibleServiceDeliveryLocationRoleType
http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
Location.formexampleLocationForm
http://hl7.org/fhir/ValueSet/location-form
from the FHIR Standard
Location.characteristicexampleLocationCharacteristic
http://hl7.org/fhir/ValueSet/location-characteristic
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorLocationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorLocationIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorLocationIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorLocationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceLocationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

该结构继承自 Location

Summary

Mandatory: 4 elements
Must-Support: 2 elements

 

本 Profile 的其它表示法: CSV, Excel, Schematron