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

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

Resource Profile: 出院小结共享文档本地化定义

Defining URL:http://hl7.org.cn/fhir/StructureDefinition/profile-discharge-summary-document
Version:2024.4.23
Name:DocumentDischargeSummary
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/profile-discharge-summary-document

定义内容的视图

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

这种结构源自 Composition

Summary

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

Slices

This structure defines the following Slices:

  • The element Composition.section is sliced based on the value of type:resource

 

本定义的其它表示法: Schematron

Terminology Bindings

PathConformanceValueSet / CodeURI
Composition.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
Composition.statusrequiredCompositionStatus
http://hl7.org/fhir/ValueSet/composition-status|5.0.0
from the FHIR Standard
Composition.typerequiredPattern: C0053("出院小结")
http://hl7.org.cn/fhir/ValueSet/emr-document-type
from this IG
Composition.categoryrequiredPattern: EMR("电子病历共享文档")
http://hl7.org.cn/fhir/ValueSet/document-category
from this IG
Composition.attester.modepreferredCompositionAttestationMode
http://hl7.org/fhir/ValueSet/composition-attestation-mode
from the FHIR Standard
Composition.event.detailexampleActCode
http://terminology.hl7.org/ValueSet/v3-ActCode
Composition.section.coderequiredDocSectionCodes
http://hl7.org.cn/fhir/ValueSet/doc-section-codes
from this IG
Composition.section.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
from the FHIR Standard
Composition.section.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
from the FHIR Standard
Composition.section:ReasonForVisit.codeexamplePattern: LOINC code 29299-5("Reason for visit")
http://hl7.org/fhir/ValueSet/doc-section-codes
from the FHIR Standard
Composition.section:ReasonForVisit.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
from the FHIR Standard
Composition.section:ReasonForVisit.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
from the FHIR Standard
Composition.section:Diagnosis.codeexamplePattern: LOINC code 11535-2("Hospital discharge diagnosis")
http://hl7.org/fhir/ValueSet/doc-section-codes
from the FHIR Standard
Composition.section:Diagnosis.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
from the FHIR Standard
Composition.section:Diagnosis.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
from the FHIR Standard
Composition.section:Medications.codeexamplePattern: LOINC code 10183-2("Hospital discharge medications")
http://hl7.org/fhir/ValueSet/doc-section-codes
from the FHIR Standard
Composition.section:Medications.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
from the FHIR Standard
Composition.section:Medications.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
from the FHIR Standard
Composition.section:Allergies.codeexamplePattern: LOINC code 48765-2("Allergies and adverse reactions")
http://hl7.org/fhir/ValueSet/doc-section-codes
from the FHIR Standard
Composition.section:Allergies.orderedBypreferredListOrderCodes
http://hl7.org/fhir/ValueSet/list-order
from the FHIR Standard
Composition.section:Allergies.emptyReasonpreferredListEmptyReasons
http://hl7.org/fhir/ValueSet/list-empty-reason
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
cmp-1errorComposition.section, Composition.section:ReasonForVisit, Composition.section:Diagnosis, Composition.section:Medications, Composition.section:AllergiesA section must contain at least one of text, entries, or sub-sections
: text.exists() or entry.exists() or section.exists()
cmp-2errorComposition.section, Composition.section:ReasonForVisit, Composition.section:Diagnosis, Composition.section:Medications, Composition.section:AllergiesA section can only have an emptyReason if it is empty
: emptyReason.empty() or entry.empty()
dom-2errorCompositionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorCompositionIf 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-4errorCompositionIf 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-5errorCompositionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceCompositionA 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()