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

本指南适用于HL7中国的FHIR Connectathon测试。

Resource Profile: 日程计划本地化定义

Defining URL:http://hl7.org.cn/fhir/StructureDefinition/profile-my-schedule
Version:2024.5.5
Name:MySchedule
Title:日程计划本地化定义
Status:Draft as of 2024-05-05 21:11:47+0800
Definition:

计划本地化定义。

Publisher:HL7中国. HL7中国,
Source Resource:XML / JSON / Turtle

本定义的正式URL为:

http://hl7.org.cn/fhir/StructureDefinition/profile-my-schedule

定义内容的视图

关于定义、差异、快照以及如何解读这些表示法

这种结构源自 Schedule

Summary

Mandatory: 2 elements
Must-Support: 2 elements

Slices

This structure defines the following Slices:

  • The element Schedule.actor is sliced based on the value of value:$this

这种结构源自 Schedule

NameFlagsCard.TypeDescription & Constraintsdoco
.. Schedule 0..*ScheduleA container for slots of time that may be available for booking appointments
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierExternal Ids for this item
... active ?!Σ1..1boolean该日程计划是否有效标志
... serviceCategory Σ0..*CodeableConcept日程表大类
Binding: ServiceCategory (example)
... serviceType Σ0..*CodeableReference(HealthcareService)日程表类型
Binding: ServiceType (example)
... specialty Σ0..*CodeableConceptType of specialty needed
Binding: PracticeSettingCodeValueSet (preferred): Additional details about where the content was created (e.g. clinical specialty).


... name Σ0..1stringHuman-readable label
... Slices for actor Σ1..*Reference(Practitioner | PractitionerRole | HealthcareService | Location)Resource(s) that availability information is being provided for
Slice: Unordered, Open by value:$this
.... actor:Department SΣ1..1Reference(HealthcareService)预约科室
.... actor:Location Σ0..1Reference(Patient | Practitioner | PractitionerRole | CareTeam | RelatedPerson | Device | HealthcareService | Location)预约科室位置
.... actor:Doctor SΣ0..1Reference(Practitioner | PractitionerRole)预约医生
... planningHorizon Σ0..1Period日程表覆盖日期区间
... comment 0..1markdownComments on availability

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Schedule 0..*ScheduleA container for slots of time that may be available for booking appointments
... actor:Department Σ1..1Reference(HealthcareService)预约科室
... actor:Doctor Σ0..1Reference(Practitioner | PractitionerRole)预约医生

doco Documentation for this format

这种结构源自 Schedule

Summary

Mandatory: 2 elements
Must-Support: 2 elements

Slices

This structure defines the following Slices:

  • The element Schedule.actor is sliced based on the value of value:$this

差异视图

这种结构源自 Schedule

快照视图

NameFlagsCard.TypeDescription & Constraintsdoco
.. Schedule 0..*ScheduleA container for slots of time that may be available for booking appointments
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierExternal Ids for this item
... active ?!Σ1..1boolean该日程计划是否有效标志
... serviceCategory Σ0..*CodeableConcept日程表大类
Binding: ServiceCategory (example)
... serviceType Σ0..*CodeableReference(HealthcareService)日程表类型
Binding: ServiceType (example)
... specialty Σ0..*CodeableConceptType of specialty needed
Binding: PracticeSettingCodeValueSet (preferred): Additional details about where the content was created (e.g. clinical specialty).


... name Σ0..1stringHuman-readable label
... Slices for actor Σ1..*Reference(Practitioner | PractitionerRole | HealthcareService | Location)Resource(s) that availability information is being provided for
Slice: Unordered, Open by value:$this
.... actor:Department SΣ1..1Reference(HealthcareService)预约科室
.... actor:Location Σ0..1Reference(Patient | Practitioner | PractitionerRole | CareTeam | RelatedPerson | Device | HealthcareService | Location)预约科室位置
.... actor:Doctor SΣ0..1Reference(Practitioner | PractitionerRole)预约医生
... planningHorizon Σ0..1Period日程表覆盖日期区间
... comment 0..1markdownComments on availability

doco Documentation for this format

 

本定义的其它表示法: Schematron

Terminology Bindings

PathConformanceValueSetURI
Schedule.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
Schedule.serviceCategoryexampleServiceCategory
http://hl7.org/fhir/ValueSet/service-category
from the FHIR Standard
Schedule.serviceTypeexampleServiceType
http://hl7.org/fhir/ValueSet/service-type
from the FHIR Standard
Schedule.specialtypreferredPracticeSettingCodeValueSet
http://hl7.org/fhir/ValueSet/c80-practice-codes
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorScheduleIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorScheduleIf 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-4errorScheduleIf 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-5errorScheduleIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceScheduleA 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()