This page is part of the FHIR Specification (v0.0.82: DSTU 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Query-example-request.json

Request Message Example

{
  "resourceType": "Bundle",
  "title": "Query Message",
  "id": "urn:uuid:13daadee-26e1-4d6a-9e6a-7f4af9b58877",
  "updated": "2013-05-18T08:14:00+10:00",
  "category": [
    {
      "scheme": "http://hl7.org/fhir/tag",
      "term": "http://hl7.org/fhir/tag/message"
    }
  ],
  "author": [
    {
      "name": "HL7 FHIR project"
    }
  ],
  "entry": [
    {
      "title": "Message Header Resource",
      "id": "urn:uuid:35b9cc1b-bf67-4cfd-9177-5b6422f7d84e",
      "updated": "2013-05-18T08:14:00+10:00",
      "content": {
        "resourceType": "MessageHeader",
        "text": {
          "status": "generated",
          "div": "<div>\n            <p>\n              <b>Generated Narrative</b>\n            </p>\n            <p>\n              <b>identifier</b>: bd5a062a-9d5c-4cb2-bcc8-1836618c5226\n            </p>\n            <p>\n              <b>timestamp</b>: 18-May 2013 8:14\n            </p>\n            <p>\n              <b>event</b>: \n              <span title=\"{http://hl7.org/fhir/message-type query}\">query</span>\n            </p>\n            <h3>Sources</h3>\n            <table class=\"grid\">\n              <tr>\n                <td>\n                  <b>Name</b>\n                </td>\n                <td>\n                  <b>Software</b>\n                </td>\n                <td>\n                  <b>Version</b>\n                </td>\n                <td>\n                  <b>Contact</b>\n                </td>\n                <td>\n                  <b>Endpoint</b>\n                </td>\n              </tr>\n              <tr>\n                <td> </td>\n                <td>notepad</td>\n                <td> </td>\n                <td> </td>\n                <td>\n                  <a href=\"http://localhost\">http://localhost</a>\n                </td>\n              </tr>\n            </table>\n            <h3>Destinations</h3>\n            <table class=\"grid\">\n              <tr>\n                <td>\n                  <b>Name</b>\n                </td>\n                <td>\n                  <b>Target</b>\n                </td>\n                <td>\n                  <b>Endpoint</b>\n                </td>\n              </tr>\n              <tr>\n                <td>Health Intersections Server</td>\n                <td> </td>\n                <td>\n                  <a href=\"http://hl7connect.healthintersections.com.au/svc/fhir/Mailbox\">http://hl7connect.healthintersections.com.au/svc/fhir/Mailbox</a>\n                </td>\n              </tr>\n            </table>\n            <p>\n              <b>data</b>: \n              <a href=\"urn:uuid:7cb73a48-090d-469a-a2b2-04f1e6b11ea2\">urn:uuid:7cb73a48-090d-469a-a2b2-04f1e6b11ea2</a>\n            </p>\n          </div>"
        },
        "identifier": "bd5a062a-9d5c-4cb2-bcc8-1836618c5226",
        "timestamp": "2013-05-18T08:14:00+10:00",
        "event": {
          "system": "http://hl7.org/fhir/message-type",
          "code": "query"
        },
        "source": {
          "software": "notepad",
          "endpoint": "http://localhost"
        },
        "destination": [
          {
            "name": "Health Intersections Server",
            "endpoint": "http://hl7connect.healthintersections.com.au/svc/fhir/Mailbox"
          }
        ],
        "data": [
          {
            "reference": "urn:uuid:7cb73a48-090d-469a-a2b2-04f1e6b11ea2"
          }
        ]
      }
    },
    {
      "title": "Query Resource",
      "id": "urn:uuid:7cb73a48-090d-469a-a2b2-04f1e6b11ea2",
      "updated": "2013-05-18T08:14:00+10:00",
      "content": {
        "resourceType": "Query",
        "text": {
          "status": "generated",
          "div": "<div>\n            <p>\n              <b>Generated Narrative</b>\n            </p>\n            <p>\n              <b>identifier</b>: \n              <a href=\"urn:uuid:7cb73a48-090d-469a-a2b2-04f1e6b11ea2\">urn:uuid:7cb73a48-090d-469a-a2b2-04f1e6b11ea2</a>\n            </p>\n            <p>\n              <b>parameter</b>: Extensions: Todo, Extensions: Todo\n            </p>\n          </div>"
        },
        "identifier": "urn:uuid:7cb73a48-090d-469a-a2b2-04f1e6b11ea2",
        "parameter": [
          {
            "url": "http://hl7.org/fhir/query#_type",
            "valueString": "patient"
          },
          {
            "url": "http://hl7.org/fhir/query#gender",
            "valueString": "m"
          }
        ]
      }
    }
  ]
}