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

HL7中国FHIR Connectathon测试实施指南 - Local Development build (v2025.3.12) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: RxQueryBundleExample - TTL Representation

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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:id [ fhir:v "RxQueryBundleExample"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org.cn/fhir/connectathon/StructureDefinition/profile-special-rx-query"^^xsd:anyURI ;
fhir:link <http://hl7.org.cn/fhir/connectathon/StructureDefinition/profile-special-rx-query>     ] )
  ] ; # 
  fhir:type [ fhir:v "message"] ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "urn:uuid:112312312-12-31-23-12-31-23-12-312"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:112312312-12-31-23-12-31-23-12-312> )
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:112312312-12-31-23-12-31-23-12-313"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:112312312-12-31-23-12-31-23-12-313> )
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:112312312-12-31-23-12-31-23-12-314"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:112312312-12-31-23-12-31-23-12-314> )
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:112312312-12-31-23-12-31-23-12-315"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:112312312-12-31-23-12-31-23-12-315> )
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:112312312-12-31-23-12-31-23-12-316"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:112312312-12-31-23-12-31-23-12-316> )
  ] ) . # 

<urn:uuid:112312312-12-31-23-12-31-23-12-312> a fhir:MessageHeader ;
  fhir:id [ fhir:v "RxMessageHeaderExample02"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org.cn/fhir/connectathon/StructureDefinition/profile-rx-messageheader"^^xsd:anyURI ;
fhir:link <http://hl7.org.cn/fhir/connectathon/StructureDefinition/profile-rx-messageheader>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MessageHeader_RxMessageHeaderExample02\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader RxMessageHeaderExample02</b></p><a name=\"RxMessageHeaderExample02\"> </a><a name=\"hcRxMessageHeaderExample02\"> </a><a name=\"RxMessageHeaderExample02-en-US\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-profile-rx-messageheader.html\">处方流转消息头结构定义</a></p></div><p><b>event</b>: <a href=\"CodeSystem-special-rx-event-type-codes.html#special-rx-event-type-codes-query\">处方流转事件类型代码表 query</a>: 检索患者相关信息请求</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Endpoint[x]</b></td><td><b>Name</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://bbb.com/pharmacy\">http://bbb.com/pharmacy</a></td><td>药房系统</td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:event [
a fhir:Coding ;
fhir:system [ fhir:v "http://hl7.org.cn/fhir/connectathon/CodeSystem/special-rx-event-type-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "query" ] ;
fhir:display [ fhir:v "检索患者相关信息请求" ]
  ] ; # 
  fhir:source [
fhir:endpoint [
a fhir:url ;
fhir:v "http://bbb.com/pharmacy"^^xsd:anyURI     ] ;
fhir:name [ fhir:v "药房系统" ]
  ] . # 

<urn:uuid:112312312-12-31-23-12-31-23-12-313> a fhir:Parameters ;
  fhir:id [ fhir:v "RxParametersExampleInline01"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org.cn/fhir/connectathon/StructureDefinition/profile-rx-parameters"^^xsd:anyURI ;
fhir:link <http://hl7.org.cn/fhir/connectathon/StructureDefinition/profile-rx-parameters>     ] )
  ] ; # 
  fhir:parameter ( [
fhir:name [ fhir:v "query-string" ] ;
fhir:value [
a fhir:string ;
fhir:v "AllergyIntolerance?clinical-status=active"     ]
  ] [
fhir:name [ fhir:v "patient" ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Patient/PatientExample01" ]     ]
  ] [
fhir:name [ fhir:v "prescription" ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "MedicationRequestExample01" ]     ]
  ] ) . # 

<urn:uuid:112312312-12-31-23-12-31-23-12-314> a fhir:MedicationRequest ;
  fhir:id [ fhir:v "RxMedicationRequestExample01"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MedicationRequest_RxMedicationRequestExample01\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest RxMedicationRequestExample01</b></p><a name=\"RxMedicationRequestExample01\"> </a><a name=\"hcRxMedicationRequestExample01\"> </a><a name=\"RxMedicationRequestExample01-en-US\"> </a><p><b>groupIdentifier</b>: <code>http://xxxxxx.com.cn/org-xxxx/prescription</code>/pres123456</p><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><h3>Medications</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Concept</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct XXXXXX}\">洛匹那韦</span></td></tr></table><p><b>subject</b>: <a href=\"Patient-PatientExample01.html\">刘康</a></p><p><b>encounter</b>: <a href=\"Encounter-EncounterExample01.html\">Encounter: identifier = urn:uuid:2.16.156.10011.1.10#45678; status = completed; class = 住院诊疗; type = ; actualPeriod = 2021-05-07 12:30:02+0800 --&gt; 2002-08-20 16:45:50+0800</a></p><p><b>authoredOn</b>: 2002-08-20 16:45:50+0800</p><p><b>requester</b>: <a href=\"Practitioner-PractitionerExample01.html\">赵勇</a></p><p><b>note</b>: 药品用法,备注说明等</p><blockquote><p><b>dosageInstruction</b></p><p><b>timing</b>: Code , Once</p><p><b>route</b>: <span title=\"Codes:{http://snomed.info/sct 26643006}\">口服</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>2 片<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code片 = '片')</span></td></tr></table></blockquote><h3>DispenseRequests</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Quantity</b></td></tr><tr><td style=\"display: none\">*</td><td>20 盒<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code盒 = '盒')</span></td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:groupIdentifier [
fhir:system [ fhir:v "http://xxxxxx.com.cn/org-xxxx/prescription"^^xsd:anyURI ] ;
fhir:value [ fhir:v "pres123456" ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  fhir:medication [
fhir:concept [
      ( fhir:coding [
a sct:XXXXXX ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "XXXXXX" ] ;
fhir:display [ fhir:v "洛匹那韦" ]       ] ) ;
fhir:text [ fhir:v "洛匹那韦" ]     ]
  ] ; # 
  fhir:subject [
fhir:reference [ fhir:v "Patient/PatientExample01" ] ;
fhir:display [ fhir:v "刘康" ]
  ] ; # 
  fhir:encounter [
fhir:reference [ fhir:v "Encounter/EncounterExample01" ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2002-08-20T16:45:50+08:00"^^xsd:dateTime] ; # 
  fhir:requester [
fhir:reference [ fhir:v "Practitioner/PractitionerExample01" ] ;
fhir:display [ fhir:v "赵勇" ]
  ] ; # 
  fhir:note ( [
fhir:text [ fhir:v "药品用法,备注说明等" ]
  ] ) ; # 
  fhir:dosageInstruction ( [
fhir:timing [
fhir:repeat [
fhir:bounds [
a fhir:Period ;
fhir:start [ fhir:v "2002-08-20T16:45:50+08:00"^^xsd:dateTime ] ;
fhir:end [ fhir:v "2002-09-20T16:45:50+08:00"^^xsd:dateTime ]         ]       ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation"^^xsd:anyURI ] ;
fhir:code [ fhir:v "BID" ] ;
fhir:display [ fhir:v "每日两次" ]         ] )       ]     ] ;
fhir:route [
      ( fhir:coding [
a sct:26643006 ;
fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
fhir:code [ fhir:v "26643006" ] ;
fhir:display [ fhir:v "口服" ]       ] )     ] ;
    ( fhir:doseAndRate [
fhir:dose [
a fhir:Quantity ;
fhir:value [ fhir:v "2"^^xsd:decimal ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "片" ]       ]     ] )
  ] ) ; # 
  fhir:dispenseRequest [
fhir:quantity [
fhir:value [ fhir:v "20"^^xsd:decimal ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "盒" ]     ]
  ] . # 

<urn:uuid:112312312-12-31-23-12-31-23-12-315> a fhir:Patient ;
  fhir:id [ fhir:v "PatientExample01"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org.cn/fhir/connectathon/StructureDefinition/core-patient"^^xsd:anyURI ;
fhir:link <http://hl7.org.cn/fhir/connectathon/StructureDefinition/core-patient>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_PatientExample01\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient PatientExample01</b></p><a name=\"PatientExample01\"> </a><a name=\"hcPatientExample01\"> </a><a name=\"PatientExample01-en-US\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-core-patient.html\">患者信息结构定义</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">刘康 Male, DoB: 1955-10-25 ( urn:oid:2.16.840.1.113883.2.23.1.19.1#110101200301120019)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Record is active\">Active:</td><td colspan=\"3\">true</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Other Id (see the one above)\">Other Id:</td><td colspan=\"3\"><code>urn:oid:2.16.840.1.113883.2.23.1.19.2</code>/100000000000000</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li>ph: 13800138000(Mobile)</li><li>北京市东城区景山前街4号(home)</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Nominated Contact: parent\">parent:</td><td colspan=\"3\"><ul><li>刘勇</li><li>ph: 13012345678</li></ul></td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:extension ( [
fhir:url [ fhir:v "http://hl7china.org.cn/fhir/StructureDefinition/ext-person-ethnicGroup"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "http://hl7.org.cn/fhir/connectathon/CodeSystem/gb3304"^^xsd:anyURI ] ;
fhir:code [ fhir:v "HA" ] ;
fhir:display [ fhir:v "汉族" ]     ]
  ] ) ; # 
  fhir:identifier ( [
fhir:system [ fhir:v "urn:oid:2.16.840.1.113883.2.23.1.19.1"^^xsd:anyURI ] ;
fhir:value [ fhir:v "110101200301120019" ]
  ] [
fhir:system [ fhir:v "urn:oid:2.16.840.1.113883.2.23.1.19.2"^^xsd:anyURI ] ;
fhir:value [ fhir:v "100000000000000" ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:name ( [
fhir:text [ fhir:v "刘康" ] ;
fhir:family [ fhir:v "刘" ] ;
    ( fhir:given [ fhir:v "康" ] )
  ] ) ; # 
  fhir:telecom ( [
fhir:system [ fhir:v "phone" ] ;
fhir:value [ fhir:v "13800138000" ] ;
fhir:use [ fhir:v "mobile" ]
  ] ) ; # 
  fhir:gender [
fhir:v "male" ;
    ( fhir:extension [
fhir:url [ fhir:v "https://hl7.org.cn/fhir/StructureDefinition/ext-person-gender"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "http://hl7.org.cn/fhir/connectathon/CodeSystem/gb2261-1"^^xsd:anyURI ] ;
fhir:code [ fhir:v "1" ] ;
fhir:display [ fhir:v "男性" ]       ]     ] )
  ] ; # 
  fhir:birthDate [ fhir:v "1955-10-25"^^xsd:date] ; # 
  fhir:address ( [
fhir:use [ fhir:v "home" ] ;
fhir:text [ fhir:v "北京市东城区景山前街4号" ] ;
    ( fhir:line [ fhir:v "景山前街4号" ] ) ;
fhir:city [ fhir:v "北京市" ] ;
fhir:district [ fhir:v "东城区" ] ;
fhir:state [ fhir:v "北京" ] ;
fhir:postalCode [ fhir:v "100010" ]
  ] ) ; # 
  fhir:contact ( [
    ( fhir:relationship [
      ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/patient-contact-relationship"^^xsd:anyURI ] ;
fhir:code [ fhir:v "parent" ]       ] )     ] ) ;
fhir:name [
fhir:text [ fhir:v "刘勇" ]     ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "phone" ] ;
fhir:value [ fhir:v "13012345678" ]     ] )
  ] ) . # 

<urn:uuid:112312312-12-31-23-12-31-23-12-316> a fhir:Organization ;
  fhir:id [ fhir:v "RxPharmacyExample"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Organization_RxPharmacyExample\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Organization RxPharmacyExample</b></p><a name=\"RxPharmacyExample\"> </a><a name=\"hcRxPharmacyExample\"> </a><a name=\"RxPharmacyExample-en-US\"> </a><p><b>name</b>: 某某大药房</p></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:name [ fhir:v "某某大药房"] . #