Specialty Medication Enrollment
2.0.0-ballot - STU 2 Ballot US

This page is part of the Specialty Medication Enrollment (v2.0.0-ballot: STU2 Ballot 1) based on FHIR R4. . For a full list of available versions, 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:Resource.id [ fhir:value "specialty-rx-query-1"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query>     ]
  ];
  fhir:Bundle.type [ fhir:value "message"];
  fhir:Bundle.timestamp [ fhir:value "2020-03-11T08:10:13-05:00"^^xsd:dateTime];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://example.org/MyPharmacyApp/MessageHeader/reqheader1" ];
     fhir:Bundle.entry.resource <https://example.org/MyPharmacyApp/MessageHeader/reqheader1>
  ], [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b" ];
     fhir:Bundle.entry.resource <urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b>
  ], [
     fhir:index 2;
     fhir:Bundle.entry.fullUrl [ fhir:value "http://example.org/MyEHR/Patient/patient1" ];
     fhir:Bundle.entry.resource <http://example.org/MyEHR/Patient/patient1>
  ].

<https://example.org/MyPharmacyApp/MessageHeader/reqheader1> a fhir:MessageHeader;
  fhir:Resource.id [ fhir:value "req1"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: MessageHeader</b></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 \"req1\" </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:MessageHeader.eventCoding [
     fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/specialty-rx/CodeSystem/specialty-rx-event-type" ];
     fhir:Coding.code [ fhir:value "query" ]
  ];
  fhir:MessageHeader.source [
     fhir:MessageHeader.source.name [ fhir:value "MyPharmacyApp" ];
     fhir:MessageHeader.source.endpoint [ fhir:value "http://example.org/MyPharmacyApp" ]
  ];
  fhir:MessageHeader.focus [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b" ]
  ].

<urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b> a fhir:Parameters;
  fhir:Resource.id [ fhir:value "61ebe359-bfdc-4613-8bf2-c5e300945f0b"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-parameters-query";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-parameters-query>     ]
  ];
  fhir:Parameters.parameter [
     fhir:index 0;
     fhir:Parameters.parameter.name [ fhir:value "query-string" ];
     fhir:Parameters.parameter.valueString [ fhir:value "AllergyIntolerance?clinical-status=active" ]
  ], [
     fhir:index 1;
     fhir:Parameters.parameter.name [ fhir:value "query-string" ];
     fhir:Parameters.parameter.valueString [ fhir:value "Condition?clinical-status=active" ]
  ], [
     fhir:index 2;
     fhir:Parameters.parameter.name [ fhir:value "query-string" ];
     fhir:Parameters.parameter.valueString [ fhir:value "Coverage" ]
  ], [
     fhir:index 3;
     fhir:Parameters.parameter.name [ fhir:value "query-string" ];
     fhir:Parameters.parameter.valueString [ fhir:value "Observation?category=vital-signs" ]
  ], [
     fhir:index 4;
     fhir:Parameters.parameter.name [ fhir:value "query-string" ];
     fhir:Parameters.parameter.valueString [ fhir:value "Observation?category=laboratory" ]
  ], [
     fhir:index 5;
     fhir:Parameters.parameter.name [ fhir:value "query-string" ];
     fhir:Parameters.parameter.valueString [ fhir:value "MedicationRequest" ]
  ], [
     fhir:index 6;
     fhir:Parameters.parameter.name [ fhir:value "requester-patient" ];
     fhir:Parameters.parameter.valueReference [
       fhir:link <http://example.org/MyEHR/Patient/patient1>;
       fhir:Reference.reference [ fhir:value "http://example.org/MyEHR/Patient/patient1" ]     ]
  ].

<http://example.org/MyEHR/Patient/patient1> a fhir:Patient;
  fhir:Resource.id [ fhir:value "patient1"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-patient";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-patient>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Patient</b></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 \"patient1\" </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/3.1.0/CodeSystem-v3-ietf3066.html\">Tags for the Identification of Languages</a>#en-US)</span></td></tr></table></div>"
  ];
  fhir:Patient.identifier [
     fhir:index 0;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ];
         fhir:Coding.code [ fhir:value "PI" ];
         fhir:Coding.display [ fhir:value "Patient internal identifier" ]       ]     ];
     fhir:Identifier.system [ fhir:value "http://example.org/MyPharmacyApp/patient-id" ];
     fhir:Identifier.value [ fhir:value "540002" ]
  ], [
     fhir:index 1;
     fhir:Identifier.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ];
         fhir:Coding.code [ fhir:value "MR" ];
         fhir:Coding.display [ fhir:value "Medical record number" ]       ];
       fhir:CodeableConcept.text [ fhir:value "MRN from prescription" ]     ];
     fhir:Identifier.system [
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/data-absent-reason" ];
         fhir:Extension.valueCode [ fhir:value "unknown" ]       ]     ];
     fhir:Identifier.value [ fhir:value "30455" ]
  ];
  fhir:Patient.active [ fhir:value "true"^^xsd:boolean];
  fhir:Patient.name [
     fhir:index 0;
     fhir:HumanName.family [ fhir:value "Doe" ];
     fhir:HumanName.given [
       fhir:value "Tim";
       fhir:index 0     ]
  ];
  fhir:Patient.telecom [
     fhir:index 0;
     fhir:ContactPoint.system [ fhir:value "phone" ];
     fhir:ContactPoint.value [ fhir:value "555-555-5555" ];
     fhir:ContactPoint.use [ fhir:value "home" ]
  ], [
     fhir:index 1;
     fhir:ContactPoint.system [ fhir:value "email" ];
     fhir:ContactPoint.value [ fhir:value "tim.doe@example.com" ]
  ];
  fhir:Patient.gender [ fhir:value "male"];
  fhir:Patient.birthDate [ fhir:value "1987-02-20"^^xsd:date];
  fhir:Patient.address [
     fhir:index 0;
     fhir:Address.line [
       fhir:value "2224 Century Ave";
       fhir:index 0     ];
     fhir:Address.city [ fhir:value "Minnetonka" ];
     fhir:Address.state [ fhir:value "MN" ];
     fhir:Address.postalCode [ fhir:value "55345" ];
     fhir:Address.country [ fhir:value "US" ]
  ];
  fhir:Patient.communication [
     fhir:index 0;
     fhir:Patient.communication.language [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "urn:ietf:bcp:47" ];
         fhir:Coding.code [ fhir:value "en-US" ];
         fhir:Coding.display [ fhir:value "English (Region=United States)" ]       ]     ]
  ].

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

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