Specialty Medication Enrollment
2.0.0 - STU2 US United States of America flag

This page is part of the Specialty Medication Enrollment (v2.0.0: STU2) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: Specialty Rx Query 1 - JSON Representation

Raw json | Download


{
  "resourceType" : "Bundle",
  "id" : "specialty-rx-query-1",
  "meta" : {
    "profile" : [
      "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query"
    ]
  },
  "type" : "message",
  "timestamp" : "2020-03-11T08:10:13-05:00",
  "entry" : [
    {
      "fullUrl" : "https://example.org/MyPharmacyApp/MessageHeader/reqheader1",
      "resource" : {
        "resourceType" : "MessageHeader",
        "id" : "req1",
        "meta" : {
          "profile" : [
            "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-messageheader-query"
          ]
        },
        "text" : {
          "status" : "generated",
          "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>"
        },
        "eventCoding" : {
          "system" : "http://hl7.org/fhir/us/specialty-rx/CodeSystem/specialty-rx-event-type",
          "code" : "query"
        },
        "source" : {
          "name" : "MyPharmacyApp",
          "endpoint" : "http://example.org/MyPharmacyApp"
        },
        "focus" : [
          {
            "reference" : "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b"
          }
        ]
      }
    },
    {
      "fullUrl" : "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0b",
      "resource" : {
        "resourceType" : "Parameters",
        "id" : "61ebe359-bfdc-4613-8bf2-c5e300945f0b",
        "meta" : {
          "profile" : [
            "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-parameters-query"
          ]
        },
        "parameter" : [
          {
            "name" : "query-string",
            "valueString" : "AllergyIntolerance?clinical-status=active"
          },
          {
            "name" : "query-string",
            "valueString" : "Condition?clinical-status=active"
          },
          {
            "name" : "query-string",
            "valueString" : "Coverage"
          },
          {
            "name" : "query-string",
            "valueString" : "Observation?category=vital-signs"
          },
          {
            "name" : "query-string",
            "valueString" : "Observation?category=laboratory"
          },
          {
            "name" : "query-string",
            "valueString" : "MedicationRequest"
          },
          {
            "name" : "requester-patient",
            "valueReference" : {
              "reference" : "http://example.org/MyEHR/Patient/patient1"
            }
          }
        ]
      }
    },
    {
      "fullUrl" : "http://example.org/MyEHR/Patient/patient1",
      "resource" : {
        "resourceType" : "Patient",
        "id" : "patient1",
        "meta" : {
          "profile" : [
            "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-patient"
          ]
        },
        "text" : {
          "status" : "generated",
          "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:\u00a030455</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>"
        },
        "identifier" : [
          {
            "type" : {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
                  "code" : "PI",
                  "display" : "Patient internal identifier"
                }
              ]
            },
            "system" : "http://example.org/MyPharmacyApp/patient-id",
            "value" : "540002"
          },
          {
            "type" : {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
                  "code" : "MR",
                  "display" : "Medical record number"
                }
              ],
              "text" : "MRN from prescription"
            },
            "_system" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
                  "valueCode" : "unknown"
                }
              ]
            },
            "value" : "30455"
          }
        ],
        "active" : true,
        "name" : [
          {
            "family" : "Doe",
            "given" : [
              "Tim"
            ]
          }
        ],
        "telecom" : [
          {
            "system" : "phone",
            "value" : "555-555-5555",
            "use" : "home"
          },
          {
            "system" : "email",
            "value" : "tim.doe@example.com"
          }
        ],
        "gender" : "male",
        "birthDate" : "1987-02-20",
        "address" : [
          {
            "line" : [
              "2224 Century Ave"
            ],
            "city" : "Minnetonka",
            "state" : "MN",
            "postalCode" : "55345",
            "country" : "US"
          }
        ],
        "communication" : [
          {
            "language" : {
              "coding" : [
                {
                  "system" : "urn:ietf:bcp:47",
                  "code" : "en-US",
                  "display" : "English (Region=United States)"
                }
              ]
            }
          }
        ]
      }
    }
  ]
}