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

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

Resource Profile: 住院就诊服务结构定义

Defining URL:http://hl7.org.cn/fhir/StructureDefinition/core-inpatient-encounter
Version:2024.4.23
Name:CoreInpatientEncounter
Title:住院就诊服务结构定义
Status:Active as of 2024-04-23 21:03:23+0800
Definition:

住院就诊服务本地化定义。

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

本定义的正式URL为:

http://hl7.org.cn/fhir/StructureDefinition/core-inpatient-encounter

定义内容的视图

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

这种结构源自 Encounter

Summary

Mandatory: 16 elements (1 nested mandatory element)
Must-Support: 1 element

Slices

This structure defines the following Slices:

  • The element Encounter.identifier is sliced based on the value of value:system
  • The element Encounter.participant is sliced based on the value of value:type

 

本定义的其它表示法: Schematron

Terminology Bindings

PathConformanceValueSet / CodeURI
Encounter.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
Encounter.identifier:BID.userequiredIdentifierUse
http://hl7.org/fhir/ValueSet/identifier-use|5.0.0
from the FHIR Standard
Encounter.identifier:BID.typeextensibleIdentifierTypeCodes
http://hl7.org/fhir/ValueSet/identifier-type
from the FHIR Standard
Encounter.statusrequiredEncounterStatus
http://hl7.org/fhir/ValueSet/encounter-status|5.0.0
from the FHIR Standard
Encounter.classpreferredPattern: IMP
http://terminology.hl7.org/ValueSet/encounter-class
Encounter.priorityexampleActPriority
http://terminology.hl7.org/ValueSet/v3-ActPriority
Encounter.typeexampleEncounterType
http://hl7.org/fhir/ValueSet/encounter-type
from the FHIR Standard
Encounter.serviceTypeexampleServiceType
http://hl7.org/fhir/ValueSet/service-type
from the FHIR Standard
Encounter.subjectStatusexampleEncounterSubjectStatus
http://hl7.org/fhir/ValueSet/encounter-subject-status
from the FHIR Standard
Encounter.participant.typeextensibleParticipantType
http://hl7.org/fhir/ValueSet/encounter-participant-type
from the FHIR Standard
Encounter.participant:AUT.typeextensiblePattern: AUT
http://hl7.org/fhir/ValueSet/encounter-participant-type
from the FHIR Standard
Encounter.reason.useexampleEncounterReasonUse
http://hl7.org/fhir/ValueSet/encounter-reason-use
from the FHIR Standard
Encounter.reason.valuepreferredEncounterReasonCodes
http://hl7.org/fhir/ValueSet/encounter-reason
from the FHIR Standard
Encounter.diagnosis.conditionexampleConditionProblemDiagnosisCodes
http://hl7.org/fhir/ValueSet/condition-code
from the FHIR Standard
Encounter.diagnosis.usepreferredDiagnosisRole
http://terminology.hl7.org/ValueSet/diagnosis-role
Encounter.dietPreferenceexampleEncounterDiet
http://hl7.org/fhir/ValueSet/encounter-diet
from the FHIR Standard
Encounter.specialArrangementpreferredSpecialArrangements
http://hl7.org/fhir/ValueSet/encounter-special-arrangements
from the FHIR Standard
Encounter.specialCourtesypreferredSpecialCourtesy
http://hl7.org/fhir/ValueSet/encounter-special-courtesy
from the FHIR Standard
Encounter.admission.admitSourcepreferredAdmitSource
http://hl7.org/fhir/ValueSet/encounter-admit-source
from the FHIR Standard
Encounter.admission.reAdmissionexampleHl7VSReAdmissionIndicator
http://terminology.hl7.org/ValueSet/v2-0092
Encounter.admission.dischargeDispositionexampleDischargeDisposition
http://hl7.org/fhir/ValueSet/encounter-discharge-disposition
from the FHIR Standard
Encounter.location.statusrequiredEncounterLocationStatus
http://hl7.org/fhir/ValueSet/encounter-location-status|5.0.0
from the FHIR Standard
Encounter.location.formexampleLocationForm
http://hl7.org/fhir/ValueSet/location-form
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorEncounterIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorEncounterIf 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-4errorEncounterIf 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-5errorEncounterIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceEncounterA 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())
enc-1errorEncounter.participant, Encounter.participant:AUTA type must be provided when no explicit actor is specified
: actor.exists() or type.exists()
enc-2errorEncounter.participant, Encounter.participant:AUTA type cannot be provided for a patient or group participant
: actor.exists(resolve() is Patient or resolve() is Group) implies type.exists().not()
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()