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

HL7中国FHIR Connectathon测试实施指南 - Local Development build (vV20230304). See the Directory of published versions

: DischargeSummaryDocumentExample01 - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Bundle;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "DischargeSummaryDocumentExample01"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org.cn/fhir/StructureDefinition/profile-ClinicalDocumentBundle";
       fhir:index 0;
       fhir:link <http://hl7.org.cn/fhir/StructureDefinition/profile-ClinicalDocumentBundle>     ]
  ];
  fhir:Bundle.type [ fhir:value "document"];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-312" ];
     fhir:Bundle.entry.resource <urn:uuid:112312312-12-31-23-12-31-23-12-312>
  ], [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-313" ];
     fhir:Bundle.entry.resource <urn:uuid:112312312-12-31-23-12-31-23-12-313>
  ], [
     fhir:index 2;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-314" ];
     fhir:Bundle.entry.resource <urn:uuid:112312312-12-31-23-12-31-23-12-314>
  ], [
     fhir:index 3;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-315" ];
     fhir:Bundle.entry.resource <urn:uuid:112312312-12-31-23-12-31-23-12-315>
  ], [
     fhir:index 4;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-316" ];
     fhir:Bundle.entry.resource <urn:uuid:112312312-12-31-23-12-31-23-12-316>
  ], [
     fhir:index 5;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-317" ];
     fhir:Bundle.entry.resource <urn:uuid:112312312-12-31-23-12-31-23-12-317>
  ], [
     fhir:index 6;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-318" ];
     fhir:Bundle.entry.resource <urn:uuid:112312312-12-31-23-12-31-23-12-318>
  ], [
     fhir:index 7;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-319" ];
     fhir:Bundle.entry.resource <urn:uuid:112312312-12-31-23-12-31-23-12-319>
  ], [
     fhir:index 8;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-320" ];
     fhir:Bundle.entry.resource <urn:uuid:112312312-12-31-23-12-31-23-12-320>
  ].

<urn:uuid:112312312-12-31-23-12-31-23-12-312> a fhir:Composition;
  fhir:Resource.id [ fhir:value "DischargeSummaryCompositionExampleInline01"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org.cn/fhir/StructureDefinition/profile-discharge-summary-document";
       fhir:index 0;
       fhir:link <http://hl7.org.cn/fhir/StructureDefinition/profile-discharge-summary-document>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>identifier</b>: id: N123455</p><p><b>status</b>: final</p><p><b>type</b>: <span title=\"Codes: {http://hl7.org.cn/fhir/CodeSystem/emr-document-type C0053}\">出院小结</span></p><p><b>category</b>: <span title=\"Codes: {http://hl7.org.cn/fhir/CodeSystem/document-category EMR}\">电子病历共享文档</span></p><p><b>encounter</b>: <a href=\"#Encounter_EncounterExampleInline01\">See above (Encounter/EncounterExampleInline01)</a></p><p><b>date</b>: 2002年8月24日 上午5:45:50</p><p><b>author</b>: <a href=\"#Practitioner_PractitionerExample01\">赵勇. Generated Summary: 赵勇; gender: male</a></p><p><b>title</b>: 出院小结</p><p><b>custodian</b>: <a href=\"#Organization_OrganizationExample03\">北大人民医院. Generated Summary: name: 北大人民医院</a></p></div>"
  ];
  fhir:Composition.identifier [
     fhir:Identifier.system [ fhir:value "urn:oid:1.2.10093.1.23.24.3454354" ];
     fhir:Identifier.value [ fhir:value "N123455" ]
  ];
  fhir:Composition.status [ fhir:value "final"];
  fhir:Composition.type [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://hl7.org.cn/fhir/CodeSystem/emr-document-type" ];
       fhir:Coding.code [ fhir:value "C0053" ];
       fhir:Coding.display [ fhir:value "出院小结" ]     ]
  ];
  fhir:Composition.category [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://hl7.org.cn/fhir/CodeSystem/document-category" ];
       fhir:Coding.code [ fhir:value "EMR" ];
       fhir:Coding.display [ fhir:value "电子病历共享文档" ]     ]
  ];
  fhir:Composition.subject [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-314" ];
     fhir:Reference.display [ fhir:value "张三" ]
  ];
  fhir:Composition.encounter [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-313" ]
  ];
  fhir:Composition.date [ fhir:value "2002-08-23T16:45:50.597-05:00"^^xsd:dateTime];
  fhir:Composition.author [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-315" ];
     fhir:Reference.display [ fhir:value "赵勇" ]
  ];
  fhir:Composition.title [ fhir:value "出院小结"];
  fhir:Composition.custodian [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-316" ];
     fhir:Reference.display [ fhir:value "北大人民医院" ]
  ];
  fhir:Composition.section [
     fhir:index 0;
     fhir:Composition.section.title [ fhir:value "入院原因" ];
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a loinc:29299-5;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "29299-5" ];
         fhir:Coding.display [ fhir:value "Reason for visit" ]       ]     ];
     fhir:Composition.section.entry [
       fhir:index 0;
       fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-317" ];
       fhir:Reference.display [ fhir:value "发热" ]     ]
  ], [
     fhir:index 1;
     fhir:Composition.section.title [ fhir:value "出院诊断" ];
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a loinc:11535-2;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "11535-2" ];
         fhir:Coding.display [ fhir:value "Hospital discharge diagnosis" ]       ]     ];
     fhir:Composition.section.entry [
       fhir:index 0;
       fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-318" ];
       fhir:Reference.display [ fhir:value "新冠肺炎" ]     ]
  ], [
     fhir:index 2;
     fhir:Composition.section.title [ fhir:value "出院用药" ];
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a loinc:10183-2;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "10183-2" ];
         fhir:Coding.display [ fhir:value "Hospital discharge medications" ]       ]     ];
     fhir:Composition.section.entry [
       fhir:index 0;
       fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-319" ];
       fhir:Reference.display [ fhir:value "洛匹那韦" ]     ]
  ], [
     fhir:index 3;
     fhir:Composition.section.title [ fhir:value "过敏和不良反应" ];
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a loinc:48765-2;
         fhir:Coding.system [ fhir:value "http://loinc.org" ];
         fhir:Coding.code [ fhir:value "48765-2" ];
         fhir:Coding.display [ fhir:value "Allergies and adverse reactions" ]       ]     ];
     fhir:Composition.section.entry [
       fhir:index 0;
       fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-320" ];
       fhir:Reference.display [ fhir:value "麻疹" ]     ]
  ].

<urn:uuid:112312312-12-31-23-12-31-23-12-313> a fhir:Encounter;
  fhir:Resource.id [ fhir:value "EncounterExampleInline01"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>status</b>: finished</p><p><b>class</b>: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActCode IMP}\">住院诊疗</span></p><p><b>type</b>: <span title=\"Codes: \">新冠肺炎入院</span></p><p><b>subject</b>: <a href=\"#Patient_PatientExample01\">张三. Generated Summary: active; 张三; Phone: 010-1234567; gender: female; birthDate: 1955-10-25</a></p><p><b>period</b>: 2021年5月7日 下午12:30:02 --&gt; 2002年8月20日 下午4:45:50</p><h3>Diagnoses</h3><table class=\"grid\"><tr><td>-</td><td><b>Condition</b></td><td><b>Use</b></td></tr><tr><td>*</td><td><a href=\"#Condition_DischargeDiagnosisExampleInline01\">新冠肺炎. Generated Summary: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/condition-category encounter-diagnosis}\">诊断</span>; <span title=\"Codes: {http://hl7.org/fhir/sid/icd-10 J12.82}\">新冠肺炎</span></a></td><td><span title=\"Codes: {http://terminology.hl7.org/CodeSystem/diagnosis-role DD}\">出院诊断</span></td></tr></table><p><b>serviceProvider</b>: <a href=\"#Organization_OrganizationExample03\">北大人民医院. Generated Summary: name: 北大人民医院</a></p></div>"
  ];
  fhir:Encounter.status [ fhir:value "finished"];
  fhir:Encounter.class [
     fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ];
     fhir:Coding.code [ fhir:value "IMP" ];
     fhir:Coding.display [ fhir:value "住院诊疗" ]
  ];
  fhir:Encounter.type [
     fhir:index 0;
     fhir:CodeableConcept.text [ fhir:value "新冠肺炎入院" ]
  ];
  fhir:Encounter.subject [
     fhir:Reference.reference [ fhir:value "Patient/PatientExample01" ];
     fhir:Reference.display [ fhir:value "张三" ]
  ];
  fhir:Encounter.period [
     fhir:Period.start [ fhir:value "2021-05-07T12:30:02+08:00"^^xsd:dateTime ];
     fhir:Period.end [ fhir:value "2002-08-20T16:45:50+08:00"^^xsd:dateTime ]
  ];
  fhir:Encounter.diagnosis [
     fhir:index 0;
     fhir:Encounter.diagnosis.condition [
       fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-318" ];
       fhir:Reference.display [ fhir:value "新冠肺炎" ]     ];
     fhir:Encounter.diagnosis.use [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/diagnosis-role" ];
         fhir:Coding.code [ fhir:value "DD" ];
         fhir:Coding.display [ fhir:value "出院诊断" ]       ]     ]
  ];
  fhir:Encounter.serviceProvider [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-316" ];
     fhir:Reference.display [ fhir:value "北大人民医院" ]
  ].

<urn:uuid:112312312-12-31-23-12-31-23-12-314> a fhir:Patient;
  fhir:Resource.id [ fhir:value "PatientExample01"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>active</b>: true</p><p><b>name</b>: 张三</p><p><b>telecom</b>: ph: 010-1234567(WORK)</p><p><b>gender</b>: female</p><p><b>birthDate</b>: 1955-10-25</p><p><b>address</b>: 北京市东城区某某小区10号楼9单999室 (HOME)</p></div>"
  ];
  fhir:Patient.active [ fhir:value "true"^^xsd:boolean];
  fhir:Patient.name [
     fhir:index 0;
     fhir:HumanName.text [ fhir:value "张三" ];
     fhir:HumanName.family [ fhir:value "张" ];
     fhir:HumanName.given [
       fhir:value "三";
       fhir:index 0     ]
  ];
  fhir:Patient.telecom [
     fhir:index 0;
     fhir:ContactPoint.system [ fhir:value "phone" ];
     fhir:ContactPoint.value [ fhir:value "010-1234567" ];
     fhir:ContactPoint.use [ fhir:value "work" ]
  ];
  fhir:Patient.gender [ fhir:value "female"];
  fhir:Patient.birthDate [ fhir:value "1955-10-25"^^xsd:date];
  fhir:Patient.address [
     fhir:index 0;
     fhir:Address.use [ fhir:value "home" ];
     fhir:Address.line [
       fhir:value "北京市东城区某某小区10号楼9单999室";
       fhir:index 0     ]
  ].

<urn:uuid:112312312-12-31-23-12-31-23-12-315> a fhir:Practitioner;
  fhir:Resource.id [ fhir:value "PractitionerExample01"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>name</b>: 赵勇</p><p><b>gender</b>: male</p></div>"
  ];
  fhir:Practitioner.name [
     fhir:index 0;
     fhir:HumanName.text [ fhir:value "赵勇" ];
     fhir:HumanName.family [ fhir:value "赵" ];
     fhir:HumanName.given [
       fhir:value "勇";
       fhir:index 0     ]
  ];
  fhir:Practitioner.gender [ fhir:value "male"].

<urn:uuid:112312312-12-31-23-12-31-23-12-316> a fhir:Organization;
  fhir:Resource.id [ fhir:value "OrganizationExample03"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>name</b>: 北大人民医院</p></div>"
  ];
  fhir:Organization.name [ fhir:value "北大人民医院"].

<urn:uuid:112312312-12-31-23-12-31-23-12-317> a fhir:Observation;
  fhir:Resource.id [ fhir:value "SymptomExampleInline01"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p></p><p><b>code</b>: <span title=\"Codes: {http://hl7.org/fhir/sid/icd-10 R50}\">发热</span></p><p><b>subject</b>: <a href=\"#Patient_PatientExample01\">张三. Generated Summary: active; 张三; Phone: 010-1234567; gender: female; birthDate: 1955-10-25</a></p><p><b>encounter</b>: <a href=\"#Encounter_EncounterExampleInline01\">See above (Encounter/EncounterExampleInline01)</a></p></div>"
  ];
  fhir:Observation.status [ fhir:value "final"];
  fhir:Observation.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/sid/icd-10" ];
       fhir:Coding.code [ fhir:value "R50" ];
       fhir:Coding.display [ fhir:value "发热" ]     ]
  ];
  fhir:Observation.subject [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-314" ];
     fhir:Reference.display [ fhir:value "张三" ]
  ];
  fhir:Observation.encounter [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-313" ]
  ].

<urn:uuid:112312312-12-31-23-12-31-23-12-318> a fhir:Condition;
  fhir:Resource.id [ fhir:value "DischargeDiagnosisExampleInline01"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>category</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/condition-category encounter-diagnosis}\">诊断</span></p><p><b>code</b>: <span title=\"Codes: {http://hl7.org/fhir/sid/icd-10 J12.82}\">新冠肺炎</span></p><p><b>subject</b>: <a href=\"#Patient_PatientExample01\">张三. Generated Summary: active; 张三; Phone: 010-1234567; gender: female; birthDate: 1955-10-25</a></p><p><b>encounter</b>: <a href=\"#Encounter_EncounterExampleInline01\">See above (Encounter/EncounterExampleInline01)</a></p></div>"
  ];
  fhir:Condition.category [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-category" ];
       fhir:Coding.code [ fhir:value "encounter-diagnosis" ];
       fhir:Coding.display [ fhir:value "诊断" ]     ]
  ];
  fhir:Condition.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/sid/icd-10" ];
       fhir:Coding.code [ fhir:value "J12.82" ];
       fhir:Coding.display [ fhir:value "Pneumonia due to COVID-19" ]     ];
     fhir:CodeableConcept.text [ fhir:value "新冠肺炎" ]
  ];
  fhir:Condition.subject [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-314" ];
     fhir:Reference.display [ fhir:value "张三" ]
  ];
  fhir:Condition.encounter [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-313" ]
  ].

<urn:uuid:112312312-12-31-23-12-31-23-12-319> a fhir:MedicationRequest;
  fhir:Resource.id [ fhir:value "MedicationRequestExampleInline01"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>status</b>: active</p><p><b>intent</b>: order</p><p><b>medication</b>: <span title=\"Codes: {http://snomed.info/sct XXXXXX}\">洛匹那韦</span></p><p><b>subject</b>: <a href=\"#Patient_PatientExample01\">张三. Generated Summary: active; 张三; Phone: 010-1234567; gender: female; birthDate: 1955-10-25</a></p><p><b>encounter</b>: <a href=\"#Encounter_EncounterExampleInline01\">See above (Encounter/EncounterExampleInline01)</a></p><p><b>authoredOn</b>: 2002年8月20日 下午4:45:50</p><p><b>requester</b>: <a href=\"#Practitioner_PractitionerExample01\">赵勇. Generated Summary: 赵勇; gender: male</a></p><p><b>reasonReference</b>: <a href=\"#Condition_DischargeDiagnosisExampleInline01\">新冠肺炎. Generated Summary: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/condition-category encounter-diagnosis}\">诊断</span>; <span title=\"Codes: {http://hl7.org/fhir/sid/icd-10 J12.82}\">新冠肺炎</span></a></p><p><b>groupIdentifier</b>: id: pres123456</p><p><b>note</b>: 药品用法,备注说明等</p><h3>DosageInstructions</h3><table class=\"grid\"><tr><td>-</td></tr><tr><td>*</td></tr></table><h3>DispenseRequests</h3><table class=\"grid\"><tr><td>-</td><td><b>Quantity</b></td></tr><tr><td>*</td><td>20 盒</td></tr></table></div>"
  ];
  fhir:MedicationRequest.status [ fhir:value "active"];
  fhir:MedicationRequest.intent [ fhir:value "order"];
  fhir:MedicationRequest.medicationCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a sct:XXXXXX;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
       fhir:Coding.code [ fhir:value "XXXXXX" ];
       fhir:Coding.display [ fhir:value "洛匹那韦" ]     ];
     fhir:CodeableConcept.text [ fhir:value "洛匹那韦" ]
  ];
  fhir:MedicationRequest.subject [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-314" ];
     fhir:Reference.display [ fhir:value "张三" ]
  ];
  fhir:MedicationRequest.encounter [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-313" ]
  ];
  fhir:MedicationRequest.authoredOn [ fhir:value "2002-08-20T16:45:50+08:00"^^xsd:dateTime];
  fhir:MedicationRequest.requester [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-315" ];
     fhir:Reference.display [ fhir:value "赵勇" ]
  ];
  fhir:MedicationRequest.reasonReference [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-318" ];
     fhir:Reference.display [ fhir:value "新冠肺炎" ]
  ];
  fhir:MedicationRequest.groupIdentifier [
     fhir:Identifier.system [ fhir:value "http://xxxxxx.com.cn/org-xxxx/prescription" ];
     fhir:Identifier.value [ fhir:value "pres123456" ]
  ];
  fhir:MedicationRequest.note [
     fhir:index 0;
     fhir:Annotation.text [ fhir:value "药品用法,备注说明等" ]
  ];
  fhir:MedicationRequest.dosageInstruction [
     fhir:index 0;
     fhir:Dosage.timing [
       fhir:Timing.repeat [
         fhir:Timing.repeat.boundsPeriod [
           fhir:Period.start [ fhir:value "2002-08-20T16:45:50+08:00"^^xsd:dateTime ];
           fhir:Period.end [ fhir:value "2002-09-20T16:45:50+08:00"^^xsd:dateTime ]         ]       ];
       fhir:Timing.code [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation" ];
           fhir:Coding.code [ fhir:value "BID" ];
           fhir:Coding.display [ fhir:value "每日两次" ]         ]       ]     ];
     fhir:Dosage.route [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         a sct:26643006;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
         fhir:Coding.code [ fhir:value "26643006" ];
         fhir:Coding.display [ fhir:value "口服" ]       ]     ];
     fhir:Dosage.doseAndRate [
       fhir:index 0;
       fhir:Dosage.doseAndRate.doseQuantity [
         fhir:Quantity.value [ fhir:value "2"^^xsd:decimal ];
         fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
         fhir:Quantity.code [ fhir:value "片" ]       ]     ]
  ];
  fhir:MedicationRequest.dispenseRequest [
     fhir:MedicationRequest.dispenseRequest.quantity [
       fhir:Quantity.value [ fhir:value "20"^^xsd:decimal ];
       fhir:Quantity.system [ fhir:value "http://unitsofmeasure.org" ];
       fhir:Quantity.code [ fhir:value "盒" ]     ]
  ].

<urn:uuid:112312312-12-31-23-12-31-23-12-320> a fhir:AllergyIntolerance;
  fhir:Resource.id [ fhir:value "AllergiesExampleInline01"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>clinicalStatus</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical resolved}\">已解决</span></p><p><b>verificationStatus</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/allergyintolerance-verification confirmed}\">已确认</span></p><p><b>type</b>: allergy</p><p><b>criticality</b>: high</p><p><b>code</b>: <span title=\"Codes: \">青霉素</span></p><p><b>patient</b>: <a href=\"#Patient_PatientExample01\">张三. Generated Summary: active; 张三; Phone: 010-1234567; gender: female; birthDate: 1955-10-25</a></p><p><b>encounter</b>: <a href=\"#Encounter_EncounterExampleInline01\">See above (Encounter/EncounterExampleInline01)</a></p><p><b>recordedDate</b>: 2021-08-20</p><h3>Reactions</h3><table class=\"grid\"><tr><td>-</td><td><b>Manifestation</b></td></tr><tr><td>*</td><td><span title=\"Codes: {http://example.org/system xxx}\">麻疹</span></td></tr></table></div>"
  ];
  fhir:AllergyIntolerance.clinicalStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical" ];
       fhir:Coding.code [ fhir:value "resolved" ];
       fhir:Coding.display [ fhir:value "已解决" ]     ]
  ];
  fhir:AllergyIntolerance.verificationStatus [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/allergyintolerance-verification" ];
       fhir:Coding.code [ fhir:value "confirmed" ];
       fhir:Coding.display [ fhir:value "已确认" ]     ]
  ];
  fhir:AllergyIntolerance.type [ fhir:value "allergy"];
  fhir:AllergyIntolerance.criticality [ fhir:value "high"];
  fhir:AllergyIntolerance.code [
     fhir:CodeableConcept.text [ fhir:value "青霉素" ]
  ];
  fhir:AllergyIntolerance.patient [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-314" ];
     fhir:Reference.display [ fhir:value "张三" ]
  ];
  fhir:AllergyIntolerance.encounter [
     fhir:Reference.reference [ fhir:value "urn:uuid:112312312-12-31-23-12-31-23-12-313" ]
  ];
  fhir:AllergyIntolerance.recordedDate [ fhir:value "2021-08-20"^^xsd:date];
  fhir:AllergyIntolerance.reaction [
     fhir:index 0;
     fhir:AllergyIntolerance.reaction.manifestation [
       fhir:index 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://example.org/system" ];
         fhir:Coding.code [ fhir:value "xxx" ];
         fhir:Coding.display [ fhir:value "Hives" ]       ];
       fhir:CodeableConcept.text [ fhir:value "麻疹" ]     ]
  ].

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.