HL7中国FHIR Connectathon测试实施指南
1.0.0 - release
本指南适用于HL7中国的FHIR Connectathon测试。
Defining URL: | http://hl7.org.cn/fhir/StructureDefinition/profile-documentreference-xds |
Version: | 1.0.0 |
Name: | XDSDocumentReference |
Title: | 文档元数据本地化定义 |
Status: | Active as of 2021-06-10T22:08:24+08:00 |
Definition: | 文档元数据本地化定义。 |
Publisher: | HL7中国 |
Source Resource: | XML / JSON / Turtle |
本定义的正式URL为:
http://hl7.org.cn/fhir/StructureDefinition/profile-documentreference-xds
本定义的其它表示法: Schematron
Path | Conformance | ValueSet |
DocumentReference.language | preferred | CommonLanguages Max Binding: AllLanguages |
DocumentReference.status | required | DocumentReferenceStatus |
DocumentReference.docStatus | required | CompositionStatus |
DocumentReference.type | required | VSEHRDocumentType |
DocumentReference.category | required | VSDocumentCategory |
DocumentReference.relatesTo.code | required | DocumentRelationshipType |
DocumentReference.securityLabel | extensible | All Security Labels |
DocumentReference.content.attachment.contentType | required | Mime Types |
DocumentReference.content.attachment.language | preferred | CommonLanguages Max Binding: AllLanguages |
DocumentReference.content.format | required | VSDocumentFormatCode |
DocumentReference.context.event | example | ActCode |
DocumentReference.context.facilityType | required | VSFacilityTypeCode |
DocumentReference.context.practiceSetting | required | VSPracticeSettingCode |
Id | Path | Details | Requirements |
dom-2 | DocumentReference | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-3 | DocumentReference | 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 : 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() | |
dom-4 | DocumentReference | If 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-5 | DocumentReference | If a resource is contained in another resource, it SHALL NOT have a security label : contained.meta.security.empty() | |
dom-6 | DocumentReference | A resource should have narrative for robust management : text.`div`.exists() | |
ele-1 | DocumentReference.meta | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.implicitRules | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.language | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.text | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.modifierExtension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.modifierExtension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.masterIdentifier | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.identifier | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.status | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.docStatus | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.type | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.category | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.subject | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.date | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.author | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.authenticator | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.custodian | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.relatesTo | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.relatesTo.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.relatesTo.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.relatesTo.modifierExtension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.relatesTo.modifierExtension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.relatesTo.code | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.relatesTo.target | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.description | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.securityLabel | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.content.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.content.modifierExtension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.content.modifierExtension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.content.attachment | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content.attachment.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.content.attachment.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.content.attachment.contentType | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content.attachment.language | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content.attachment.url | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content.attachment.size | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content.attachment.hash | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content.attachment.title | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content.attachment.creation | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.content.format | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.context.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.context.modifierExtension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.context.modifierExtension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.context.encounter | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context.event | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context.period | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context.period.extension | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | DocumentReference.context.period.extension | Must have either extensions or value[x], not both : extension.exists() != value.exists() | |
ele-1 | DocumentReference.context.period.start | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context.period.end | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context.facilityType | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context.practiceSetting | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context.sourcePatientInfo | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ele-1 | DocumentReference.context.related | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |