Specialty Medication Enrollment
2.1.0 - CI Build

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 Response 3 with operation outcome - 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 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 "specialty-rx-query-response-3-w-op-outcome"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query-response"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query-response>     ] )
      ] ; #
      fhir:type [ fhir:v "message"] ; #
      fhir:timestamp [ fhir:v "2020-03-11T13:10:17-05:00"^^xsd:dateTime] ; #
      fhir:entry ( [
    fhir:fullUrl [ fhir:v "http://example.org/MyEHR/MessageHeader/msgheader1"^^xsd:anyURI ] ;
        ( fhir:resource <http://example.org/MyEHR/MessageHeader/msgheader1> )
      ] [
    fhir:fullUrl [ fhir:v "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c"^^xsd:anyURI ] ;
        ( fhir:resource <urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c> )
      ] [
    fhir:fullUrl [ fhir:v "http://example.org/MyPharmacyApp/Patient/patient1"^^xsd:anyURI ] ;
        ( fhir:resource <http://example.org/MyPharmacyApp/Patient/patient1> )
      ] [
    fhir:fullUrl [ fhir:v "http://example.org/MyEHR/Patient/patientEHR"^^xsd:anyURI ] ;
        ( fhir:resource <http://example.org/MyEHR/Patient/patientEHR> )
      ] [
    fhir:fullUrl [ fhir:v "http://example.org/MyEHR/Bundle/3456789"^^xsd:anyURI ] ;
        ( fhir:resource <http://example.org/MyEHR/Bundle/3456789> )
      ] [
    fhir:fullUrl [ fhir:v "http://example.org/MyEHR/Bundle/987654"^^xsd:anyURI ] ;
        ( fhir:resource <http://example.org/MyEHR/Bundle/987654> )
      ] ) . #

    <http://example.org/MyEHR/MessageHeader/msgheader1> a fhir:MessageHeader ;
      fhir:id [ fhir:v "res2"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-messageheader-query-response"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-messageheader-query-response>     ] )
      ] ; #
      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=\"res2\"> </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;res2&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-specialty-rx-messageheader-query-response.html\">Specialty Rx Query Response MessageHeader</a></p></div><p><b>event</b>: Query Response (Details: http://hl7.org/fhir/us/specialty-rx/CodeSystem/specialty-rx-event-type code query-response = 'Query Response', 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>MyEHR</td><td><a href=\"http://example.org/MyEHR\">http://example.org/MyEHR</a></td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td>-</td><td><b>Identifier</b></td><td><b>Code</b></td></tr><tr><td>*</td><td>req2</td><td>ok</td></tr></table><p><b>focus</b>: <a href=\"#Parameters_61ebe359-bfdc-4613-8bf2-c5e300945f0c\">See above (urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c)</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-response" ]
      ] ; #
      fhir:source [
    fhir:name [ fhir:v "MyEHR" ] ;
    fhir:endpoint [ fhir:v "http://example.org/MyEHR"^^xsd:anyURI ]
      ] ; #
      fhir:response [
    fhir:identifier [ fhir:v "req2" ] ;
    fhir:code [ fhir:v "ok" ]
      ] ; #
      fhir:focus ( [
    fhir:reference [ fhir:v "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c" ]
      ] ) . #

    <urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c> a fhir:Parameters ;
      fhir:id [ fhir:v "61ebe359-bfdc-4613-8bf2-c5e300945f0c"] ; #
      fhir:parameter ( [
    fhir:name [ fhir:v "requester-patient" ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:link <http://example.org/MyPharmacyApp/Patient/patient1> ;
    fhir:reference [ fhir:v "http://example.org/MyPharmacyApp/Patient/patient1" ]     ]
      ] [
    fhir:name [ fhir:v "responder-patient" ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:link <http://example.org/MyEHR/Patient/patientEHR> ;
    fhir:reference [ fhir:v "http://example.org/MyEHR/Patient/patientEHR" ]     ]
      ] [
    fhir:name [ fhir:v "search-result" ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:link <http://example.org/MyEHR/Bundle/3456789> ;
    fhir:reference [ fhir:v "http://example.org/MyEHR/Bundle/3456789" ]     ]
      ] [
    fhir:name [ fhir:v "search-result" ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:link <http://example.org/MyEHR/Bundle/987654> ;
    fhir:reference [ fhir:v "http://example.org/MyEHR/Bundle/987654" ]     ]
      ] ) . #

    <http://example.org/MyPharmacyApp/Patient/patient1> a fhir:Patient ;
      fhir:id [ fhir:v "patient1"] ; #
      fhir:meta [
    fhir:source [ fhir:v "http://example.org/MyPharmacyApp"^^xsd:anyURI ] ;
        ( 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\">Information Source: http://example.org/MyPharmacyApp!</p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-specialty-rx-patient.html\">Specialty Rx Patient</a></p></div><p><b>identifier</b>: id: 1234</p><p><b>active</b>: true</p><p><b>name</b>: Timothy V. 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:system [ fhir:v "http://example.org/patient-id"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "1234" ]
      ] ) ; #
      fhir:active [ fhir:v "true"^^xsd:boolean] ; #
      fhir:name ( [
    fhir:family [ fhir:v "Doe" ] ;
        ( fhir:given [ fhir:v "Timothy" ] [ fhir:v "V." ] )
      ] ) ; #
      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)" ]       ] )     ]
      ] ) . #

    <http://example.org/MyEHR/Patient/patientEHR> a fhir:Patient ;
      fhir:id [ fhir:v "patientEHR"] ; #
      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=\"patientEHR\"> </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;patientEHR&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>: Medical record number: 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 Avenue 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 "MR" ] ;
    fhir:display [ fhir:v "Medical record number" ]       ] ) ;
    fhir:text [ fhir:v "Medical record number" ]     ] ;
    fhir:system [ fhir:v "http://example.org/MyEHR"^^xsd:anyURI ] ;
    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 Avenue" ] ) ;
    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)" ]       ] )     ]
      ] ) . #

    <http://example.org/MyEHR/Bundle/3456789> a fhir:Bundle ;
      fhir:id [ fhir:v "3456789"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-search-result"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-search-result>     ] )
      ] ; #
      fhir:type [ fhir:v "searchset"] ; #
      fhir:timestamp [ fhir:v "2020-03-11T13:10:17-05:00"^^xsd:dateTime] ; #
      fhir:total [ fhir:v "3"^^xsd:nonNegativeInteger] ; #
      fhir:link ( [
    fhir:relation [ fhir:v "self" ] ;
    fhir:url [ fhir:v "Condition?patient=patientEHR"^^xsd:anyURI ]
      ] ) ; #
      fhir:entry ( [
    fhir:fullUrl [ fhir:v "http://example.org/MyEHR/Condition/1"^^xsd:anyURI ] ;
        ( fhir:resource <http://example.org/MyEHR/Condition/1> ) ;
    fhir:search [
    fhir:mode [ fhir:v "match" ]     ]
      ] [
    fhir:fullUrl [ fhir:v "http://example.org/MyEHR/Condition/2"^^xsd:anyURI ] ;
        ( fhir:resource <http://example.org/MyEHR/Condition/2> ) ;
    fhir:search [
    fhir:mode [ fhir:v "match" ]     ]
      ] [
    fhir:fullUrl [ fhir:v "http://example.org/MyEHR/Condition/3"^^xsd:anyURI ] ;
        ( fhir:resource <http://example.org/MyEHR/Condition/3> ) ;
    fhir:search [
    fhir:mode [ fhir:v "match" ]     ]
      ] ) . #

    <http://example.org/MyEHR/Condition/1> a fhir:Condition ;
      fhir:id [ fhir:v "1"] ; #
      fhir:clinicalStatus [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "active" ] ;
    fhir:display [ fhir:v "Active" ]     ] ) ;
    fhir:text [ fhir:v "Active" ]
      ] ; #
      fhir:verificationStatus [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-ver-status"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "confirmed" ] ;
    fhir:display [ fhir:v "Confirmed" ]     ] ) ;
    fhir:text [ fhir:v "Confirmed" ]
      ] ; #
      fhir:category ( [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-category"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "problem-list-item" ] ;
    fhir:display [ fhir:v "Problem List Item" ]     ] ) ;
    fhir:text [ fhir:v "Problem" ]
      ] ) ; #
      fhir:code [
        ( fhir:coding [
    a sct:13644009 ;
    fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "13644009" ] ;
    fhir:display [ fhir:v "Hypercholesterolemia (disorder)" ]     ] ) ;
    fhir:text [ fhir:v "Hypercholesterolemia (disorder)" ]
      ] ; #
      fhir:subject [
    fhir:reference [ fhir:v "Patient/patientEHR" ]
      ] . #

    <http://example.org/MyEHR/Condition/2> a fhir:Condition ;
      fhir:id [ fhir:v "2"] ; #
      fhir:clinicalStatus [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "active" ] ;
    fhir:display [ fhir:v "Active" ]     ] ) ;
    fhir:text [ fhir:v "Active" ]
      ] ; #
      fhir:verificationStatus [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-ver-status"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "confirmed" ] ;
    fhir:display [ fhir:v "Confirmed" ]     ] ) ;
    fhir:text [ fhir:v "Confirmed" ]
      ] ; #
      fhir:category ( [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-category"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "problem-list-item" ] ;
    fhir:display [ fhir:v "Problem List Item" ]     ] ) ;
    fhir:text [ fhir:v "Problem" ]
      ] ) ; #
      fhir:code [
        ( fhir:coding [
    a sct:84172003 ;
    fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "84172003" ] ;
    fhir:display [ fhir:v "Spondylitis (disorder)" ]     ] ) ;
    fhir:text [ fhir:v "Spondylitis (disorder)" ]
      ] ; #
      fhir:subject [
    fhir:reference [ fhir:v "Patient/patientEHR" ]
      ] . #

    <http://example.org/MyEHR/Condition/3> a fhir:Condition ;
      fhir:id [ fhir:v "3"] ; #
      fhir:clinicalStatus [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "active" ] ;
    fhir:display [ fhir:v "Active" ]     ] ) ;
    fhir:text [ fhir:v "Active" ]
      ] ; #
      fhir:verificationStatus [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-ver-status"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "confirmed" ] ;
    fhir:display [ fhir:v "Confirmed" ]     ] ) ;
    fhir:text [ fhir:v "Confirmed" ]
      ] ; #
      fhir:category ( [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-category"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "problem-list-item" ] ;
    fhir:display [ fhir:v "Problem List Item" ]     ] ) ;
    fhir:text [ fhir:v "Problem" ]
      ] ) ; #
      fhir:code [
        ( fhir:coding [
    a sct:427603009 ;
    fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "427603009" ] ;
    fhir:display [ fhir:v "Intermittent asthma (disorder)" ]     ] ) ;
    fhir:text [ fhir:v "Intermittent asthma (disorder)" ]
      ] ; #
      fhir:subject [
    fhir:reference [ fhir:v "Patient/patientEHR" ]
      ] . #

    <http://example.org/MyEHR/Bundle/987654> a fhir:Bundle ;
      fhir:id [ fhir:v "987654"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-search-result"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-search-result>     ] )
      ] ; #
      fhir:type [ fhir:v "searchset"] ; #
      fhir:timestamp [ fhir:v "2020-03-11T13:10:17-05:00"^^xsd:dateTime] ; #
      fhir:total [ fhir:v "0"^^xsd:nonNegativeInteger] ; #
      fhir:link ( [
    fhir:relation [ fhir:v "self" ] ;
    fhir:url [ fhir:v "AllergyIn?patient=patientEHR"^^xsd:anyURI ]
      ] ) ; #
      fhir:entry ( [
    fhir:fullUrl [ fhir:v "http://example.org/MyEHR/OperationOutcome/100"^^xsd:anyURI ] ;
        ( fhir:resource <http://example.org/MyEHR/OperationOutcome/100> ) ;
    fhir:search [
    fhir:mode [ fhir:v "outcome" ]     ]
      ] ) . #

    <http://example.org/MyEHR/OperationOutcome/100> a fhir:OperationOutcome ;
      fhir:id [ fhir:v "100"] ; #
      fhir:issue ( [
    fhir:severity [ fhir:v "error" ] ;
    fhir:code [ fhir:v "processing" ] ;
    fhir:diagnostics [ fhir:v "Unknown resource type 'AllergyIn' - Server knows how to handle: [RiskAssessment, Provenance, Organization, CareTeam, MedicationDispense, DiagnosticReport, ImagingStudy, HealthcareService, Specimen, CarePlan, FamilyMemberHistory, Goal, AllergyIntolerance, StructureDefinition, Medication, Procedure, Encounter, OperationDefinition, DocumentReference, Condition, MedicationRequest, Immunization, Device, Patient, PractitionerRole, ServiceRequest, Practitioner, Observation, MedicationAdministration, MedicationStatement, Location]" ]
      ] ) . #