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 Response 3 with operation outcome - JSON Representation

Raw json | Download


{
  "resourceType" : "Bundle",
  "id" : "specialty-rx-query-response-3-w-op-outcome",
  "meta" : {
    "profile" : [
      "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-query-response"
    ]
  },
  "type" : "message",
  "timestamp" : "2020-03-11T13:10:17-05:00",
  "entry" : [
    {
      "fullUrl" : "http://example.org/MyEHR/MessageHeader/msgheader1",
      "resource" : {
        "resourceType" : "MessageHeader",
        "id" : "res2",
        "meta" : {
          "profile" : [
            "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-messageheader-query-response"
          ]
        },
        "text" : {
          "status" : "generated",
          "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>"
        },
        "eventCoding" : {
          "system" : "http://hl7.org/fhir/us/specialty-rx/CodeSystem/specialty-rx-event-type",
          "code" : "query-response"
        },
        "source" : {
          "name" : "MyEHR",
          "endpoint" : "http://example.org/MyEHR"
        },
        "response" : {
          "identifier" : "req2",
          "code" : "ok"
        },
        "focus" : [
          {
            "reference" : "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c"
          }
        ]
      }
    },
    {
      "fullUrl" : "urn:uuid:61ebe359-bfdc-4613-8bf2-c5e300945f0c",
      "resource" : {
        "resourceType" : "Parameters",
        "id" : "61ebe359-bfdc-4613-8bf2-c5e300945f0c",
        "parameter" : [
          {
            "name" : "requester-patient",
            "valueReference" : {
              "reference" : "http://example.org/MyPharmacyApp/Patient/patient1"
            }
          },
          {
            "name" : "responder-patient",
            "valueReference" : {
              "reference" : "http://example.org/MyEHR/Patient/patientEHR"
            }
          },
          {
            "name" : "search-result",
            "valueReference" : {
              "reference" : "http://example.org/MyEHR/Bundle/3456789"
            }
          },
          {
            "name" : "search-result",
            "valueReference" : {
              "reference" : "http://example.org/MyEHR/Bundle/987654"
            }
          }
        ]
      }
    },
    {
      "fullUrl" : "http://example.org/MyPharmacyApp/Patient/patient1",
      "resource" : {
        "resourceType" : "Patient",
        "id" : "patient1",
        "meta" : {
          "source" : "http://example.org/MyPharmacyApp",
          "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\">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:\u00a01234</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>"
        },
        "identifier" : [
          {
            "system" : "http://example.org/patient-id",
            "value" : "1234"
          }
        ],
        "active" : true,
        "name" : [
          {
            "family" : "Doe",
            "given" : [
              "Timothy",
              "V."
            ]
          }
        ],
        "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)"
                }
              ]
            }
          }
        ]
      }
    },
    {
      "fullUrl" : "http://example.org/MyEHR/Patient/patientEHR",
      "resource" : {
        "resourceType" : "Patient",
        "id" : "patientEHR",
        "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=\"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:\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 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>"
        },
        "identifier" : [
          {
            "type" : {
              "coding" : [
                {
                  "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
                  "code" : "MR",
                  "display" : "Medical record number"
                }
              ],
              "text" : "Medical record number"
            },
            "system" : "http://example.org/MyEHR",
            "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 Avenue"
            ],
            "city" : "Minnetonka",
            "state" : "MN",
            "postalCode" : "55345",
            "country" : "US"
          }
        ],
        "communication" : [
          {
            "language" : {
              "coding" : [
                {
                  "system" : "urn:ietf:bcp:47",
                  "code" : "en-US",
                  "display" : "English (Region=United States)"
                }
              ]
            }
          }
        ]
      }
    },
    {
      "fullUrl" : "http://example.org/MyEHR/Bundle/3456789",
      "resource" : {
        "resourceType" : "Bundle",
        "id" : "3456789",
        "meta" : {
          "profile" : [
            "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-search-result"
          ]
        },
        "type" : "searchset",
        "timestamp" : "2020-03-11T13:10:17-05:00",
        "total" : 3,
        "link" : [
          {
            "relation" : "self",
            "url" : "Condition?patient=patientEHR"
          }
        ],
        "entry" : [
          {
            "fullUrl" : "http://example.org/MyEHR/Condition/1",
            "resource" : {
              "resourceType" : "Condition",
              "id" : "1",
              "clinicalStatus" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                    "code" : "active",
                    "display" : "Active"
                  }
                ],
                "text" : "Active"
              },
              "verificationStatus" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                    "code" : "confirmed",
                    "display" : "Confirmed"
                  }
                ],
                "text" : "Confirmed"
              },
              "category" : [
                {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/condition-category",
                      "code" : "problem-list-item",
                      "display" : "Problem List Item"
                    }
                  ],
                  "text" : "Problem"
                }
              ],
              "code" : {
                "coding" : [
                  {
                    "system" : "http://snomed.info/sct",
                    "code" : "13644009",
                    "display" : "Hypercholesterolemia (disorder)"
                  }
                ],
                "text" : "Hypercholesterolemia (disorder)"
              },
              "subject" : {
                "reference" : "Patient/patientEHR"
              }
            },
            "search" : {
              "mode" : "match"
            }
          },
          {
            "fullUrl" : "http://example.org/MyEHR/Condition/2",
            "resource" : {
              "resourceType" : "Condition",
              "id" : "2",
              "clinicalStatus" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                    "code" : "active",
                    "display" : "Active"
                  }
                ],
                "text" : "Active"
              },
              "verificationStatus" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                    "code" : "confirmed",
                    "display" : "Confirmed"
                  }
                ],
                "text" : "Confirmed"
              },
              "category" : [
                {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/condition-category",
                      "code" : "problem-list-item",
                      "display" : "Problem List Item"
                    }
                  ],
                  "text" : "Problem"
                }
              ],
              "code" : {
                "coding" : [
                  {
                    "system" : "http://snomed.info/sct",
                    "code" : "84172003",
                    "display" : "Spondylitis (disorder)"
                  }
                ],
                "text" : "Spondylitis (disorder)"
              },
              "subject" : {
                "reference" : "Patient/patientEHR"
              }
            },
            "search" : {
              "mode" : "match"
            }
          },
          {
            "fullUrl" : "http://example.org/MyEHR/Condition/3",
            "resource" : {
              "resourceType" : "Condition",
              "id" : "3",
              "clinicalStatus" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
                    "code" : "active",
                    "display" : "Active"
                  }
                ],
                "text" : "Active"
              },
              "verificationStatus" : {
                "coding" : [
                  {
                    "system" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
                    "code" : "confirmed",
                    "display" : "Confirmed"
                  }
                ],
                "text" : "Confirmed"
              },
              "category" : [
                {
                  "coding" : [
                    {
                      "system" : "http://terminology.hl7.org/CodeSystem/condition-category",
                      "code" : "problem-list-item",
                      "display" : "Problem List Item"
                    }
                  ],
                  "text" : "Problem"
                }
              ],
              "code" : {
                "coding" : [
                  {
                    "system" : "http://snomed.info/sct",
                    "code" : "427603009",
                    "display" : "Intermittent asthma (disorder)"
                  }
                ],
                "text" : "Intermittent asthma (disorder)"
              },
              "subject" : {
                "reference" : "Patient/patientEHR"
              }
            },
            "search" : {
              "mode" : "match"
            }
          }
        ]
      }
    },
    {
      "fullUrl" : "http://example.org/MyEHR/Bundle/987654",
      "resource" : {
        "resourceType" : "Bundle",
        "id" : "987654",
        "meta" : {
          "profile" : [
            "http://hl7.org/fhir/us/specialty-rx/StructureDefinition/specialty-rx-bundle-search-result"
          ]
        },
        "type" : "searchset",
        "timestamp" : "2020-03-11T13:10:17-05:00",
        "total" : 0,
        "link" : [
          {
            "relation" : "self",
            "url" : "AllergyIn?patient=patientEHR"
          }
        ],
        "entry" : [
          {
            "fullUrl" : "http://example.org/MyEHR/OperationOutcome/100",
            "resource" : {
              "resourceType" : "OperationOutcome",
              "id" : "100",
              "issue" : [
                {
                  "severity" : "error",
                  "code" : "processing",
                  "diagnostics" : "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]"
                }
              ]
            },
            "search" : {
              "mode" : "outcome"
            }
          }
        ]
      }
    }
  ]
}