Specialty Medication Enrollment
2.1.0 - CI Build United States of America flag

Specialty Medication Enrollment, published by HL7 International - Pharmacy. This is not an authorized publication; it is the continuous build for version 2.1.0). This version is based on the current content of https://github.com/HL7/fhir-specialty-rx/ and changes regularly. See the Directory of published versions

: Specialty Rx Query 1 - TTL Representation

Raw ttl | Download


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

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

 a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "specialty-rx-query-1"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query>     ] )
  ] ; # 
  fhir:type [ fhir:v "message"] ; # 
  fhir:timestamp [ fhir:v "2020-03-11T08:10:13-05:00"^^xsd:dateTime] ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "https://example.org/MyPharmacyApp/MessageHeader/reqheader1"^^xsd:anyURI ] ;
    ( fhir:resource <https://example.org/MyPharmacyApp/MessageHeader/reqheader1> )
  ] [
fhir:fullUrl [ fhir:v "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b"^^xsd:anyURI ] ;
    ( fhir:resource <urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b> )
  ] [
fhir:fullUrl [ fhir:v "http://example.org/MyEHR/Patient/patient1"^^xsd:anyURI ] ;
    ( fhir:resource <http://example.org/MyEHR/Patient/patient1> )
  ] ) . # 

<https://example.org/MyPharmacyApp/MessageHeader/reqheader1> a fhir:MessageHeader ;
  fhir:id [ fhir:v "req1"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-messageheader-query"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-messageheader-query>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: MessageHeader</b><a name=\"req1\"> </a></p><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\">Resource MessageHeader &quot;req1&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-specialty-rx-messageheader-query.html\">Specialty Rx MessageHeader - Query</a></p></div><p><b>event</b>: Query (Details: http://hl7.org/fhir/us/specialty-rx/CodeSystem/specialty-rx-event-type code query = 'Query', stated as 'null')</p><h3>Sources</h3><table class=\"grid\"><tr><td>-</td><td><b>Name</b></td><td><b>Endpoint</b></td></tr><tr><td>*</td><td>MyPharmacyApp</td><td><a href=\"http://example.org/MyPharmacyApp\">http://example.org/MyPharmacyApp</a></td></tr></table><p><b>focus</b>: <a href=\"#Parameters_61ebe359-bfdc-4613-8bf2-c5e300945f0b\">See above (urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b)</a></p></div>"
  ] ; # 
  fhir:event [
a fhir:Coding ;
fhir:system [ fhir:v "http://hl7.org/fhir/us/specialty-rx/CodeSystem/specialty-rx-event-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "query" ]
  ] ; # 
  fhir:source [
fhir:name [ fhir:v "MyPharmacyApp" ] ;
fhir:endpoint [ fhir:v "http://example.org/MyPharmacyApp"^^xsd:anyURI ]
  ] ; # 
  fhir:focus ( [
fhir:reference [ fhir:v "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b" ]
  ] ) . # 

<urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b> a fhir:Parameters ;
  fhir:id [ fhir:v "61ebe359-bfdc-4613-8bf2-c5e300945f0b"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-parameters-query"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-parameters-query>     ] )
  ] ; # 
  fhir:parameter ( [
fhir:name [ fhir:v "query-string" ] ;
fhir:value [ fhir:v "AllergyIntolerance?clinical-status=active" ]
  ] [
fhir:name [ fhir:v "query-string" ] ;
fhir:value [ fhir:v "Condition?clinical-status=active" ]
  ] [
fhir:name [ fhir:v "query-string" ] ;
fhir:value [ fhir:v "Coverage" ]
  ] [
fhir:name [ fhir:v "query-string" ] ;
fhir:value [ fhir:v "Observation?category=vital-signs" ]
  ] [
fhir:name [ fhir:v "query-string" ] ;
fhir:value [ fhir:v "Observation?category=laboratory" ]
  ] [
fhir:name [ fhir:v "query-string" ] ;
fhir:value [ fhir:v "MedicationRequest" ]
  ] [
fhir:name [ fhir:v "requester-patient" ] ;
fhir:value [
a fhir:Reference ;
fhir:link <http://example.org/MyEHR/Patient/patient1> ;
fhir:reference [ fhir:v "http://example.org/MyEHR/Patient/patient1" ]     ]
  ] ) . # 

<http://example.org/MyEHR/Patient/patient1> a fhir:Patient ;
  fhir:id [ fhir:v "patient1"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-patient"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-patient>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Patient</b><a name=\"patient1\"> </a></p><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\">Resource Patient &quot;patient1&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-specialty-rx-patient.html\">Specialty Rx Patient</a></p></div><p><b>identifier</b>: Patient internal identifier: 540002, MRN from prescription: 30455</p><p><b>active</b>: true</p><p><b>name</b>: Tim Doe </p><p><b>telecom</b>: ph: 555-555-5555(HOME), <a href=\"mailto:tim.doe@example.com\">tim.doe@example.com</a></p><p><b>gender</b>: male</p><p><b>birthDate</b>: 1987-02-20</p><p><b>address</b>: 2224 Century Ave Minnetonka MN 55345 US </p><h3>Communications</h3><table class=\"grid\"><tr><td>-</td><td><b>Language</b></td></tr><tr><td>*</td><td>English (Region=United States) <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v3-ietf3066.html\">Tags for the Identification of Languages</a>#en-US)</span></td></tr></table></div>"
  ] ; # 
  fhir:identifier ( [
fhir:type [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ] ;
fhir:code [ fhir:v "PI" ] ;
fhir:display [ fhir:v "Patient internal identifier" ]       ] )     ] ;
fhir:system [ fhir:v "http://example.org/MyPharmacyApp/patient-id"^^xsd:anyURI ] ;
fhir:value [ fhir:v "540002" ]
  ] [
fhir:type [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ] ;
fhir:code [ fhir:v "MR" ] ;
fhir:display [ fhir:v "Medical record number" ]       ] ) ;
fhir:text [ fhir:v "MRN from prescription" ]     ] ;
fhir:system [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/data-absent-reason"^^xsd:anyURI ] ;
fhir:value [ fhir:v "unknown" ]       ] )     ] ;
fhir:value [ fhir:v "30455" ]
  ] ) ; # 
  fhir:active [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:name ( [
fhir:family [ fhir:v "Doe" ] ;
    ( fhir:given [ fhir:v "Tim" ] )
  ] ) ; # 
  fhir:telecom ( [
fhir:system [ fhir:v "phone" ] ;
fhir:value [ fhir:v "555-555-5555" ] ;
fhir:use [ fhir:v "home" ]
  ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "tim.doe@example.com" ]
  ] ) ; # 
  fhir:gender [ fhir:v "male"] ; # 
  fhir:birthDate [ fhir:v "1987-02-20"^^xsd:date] ; # 
  fhir:address ( [
    ( fhir:line [ fhir:v "2224 Century Ave" ] ) ;
fhir:city [ fhir:v "Minnetonka" ] ;
fhir:state [ fhir:v "MN" ] ;
fhir:postalCode [ fhir:v "55345" ] ;
fhir:country [ fhir:v "US" ]
  ] ) ; # 
  fhir:communication ( [
fhir:language [
      ( fhir:coding [
fhir:system [ fhir:v "urn:ietf:bcp:47"^^xsd:anyURI ] ;
fhir:code [ fhir:v "en-US" ] ;
fhir:display [ fhir:v "English (Region=United States)" ]       ] )     ]
  ] ) . #