{"info":{"_postman_id":"6ab11a0b-bd33-410a-90fd-4e3e0562c97b","name":"RosettaHealth HealthBus APIs v2","description":"<html><head></head><body><hr>\n<h3 id=\"unleashing-healthcare-integration-with-the-rosettahealth-healthbus-platform\">Unleashing Healthcare Integration with the RosettaHealth HealthBus Platform</h3>\n<p>The RosettaHealth HealthBus Platform empowers developers with a robust suite of REST APIs, designed to streamline the integration of essential healthcare functionalities within your applications. These APIs adhere to industry-standard protocols for secure and efficient data exchange, ensuring seamless communication and information flow.</p>\n<p>This guide delves into the three core functionalities:</p>\n<ul>\n<li><p><strong>FHIR API:</strong> Embrace the power and flexibility of the HL7 FHIR standard. This API grants programmatic access to a wealth of patient health data, including demographics, medications, allergies, immunizations, and clinical documents. Leverage industry-standard formats and filtering capabilities to precisely target the information you need. Search for and retrieve patient records from across national networks like Carequality, enabling comprehensive patient data retrieval.</p>\n</li>\n<li><p><strong>Clinical Repository Search API:</strong> Facilitate efficient patient record retrieval. This API empowers you to search across a network of designated clinical repositories, streamlining access to relevant documents associated with a specific patient.</p>\n</li>\n<li><p><strong>Direct Secure Messaging API:</strong> <strong>Empower secure and efficient exchange of healthcare data.</strong> This API leverages the Direct Secure Messaging standard (ANSI/DS 2019-01-100-2021), enabling you to securely transmit clinical information to providers and organizations participating in the DirectTrust Network. This functionality transcends simple messaging, providing a reliable mechanism for efficient exchange of critical healthcare data.</p>\n</li>\n<li><p><strong>Event Notification Service.</strong> ENS via Direct Secure Messaging (DSM) provides a turnkey, standards-based way to “push” HL7-formatted event notifications—such as ADT messages, lab results, or care-coordination alerts—directly into your trading partners’ clinical systems. Because it speaks the language of DirectTrust-certified HISP networks, ENS via DSM guarantees secure, reliable delivery over existing healthcare messaging infrastructure</p>\n</li>\n<li><p><strong>Easy Responder Repository</strong>. EasyResponder Repostory is a turnkey interoperability clinical repository that enables healthcare organizations to participate in national health information networks—such as Carequality and CommonWell—even if they do not have the technical infrastructure to process complex patient information requests internally.</p>\n</li>\n</ul>\n<p>By leveraging these powerful APIs, developers can unlock a new level of healthcare integration within their applications.The following sections provide a comprehensive overview of getting started, authentication methods, and in-depth technical details for each API.</p>\n<h2 id=\"getting-started-guide\"><strong>Getting started guide</strong></h2>\n<p>To leverage the power of these APIs for your development needs, follow these initial steps:</p>\n<ul>\n<li><p><strong>Verification:</strong> Ensure your organization is registered as a legitimate healthcare orgainzation (contact <a href=\"https://mailto:sales@rosettahealth.com\">sales@rosettahealth.com</a> for details).</p>\n</li>\n<li><p><strong>Authentication:</strong> Obtain valid credentials specific to the API you intend to use. The specific authentication requirements for each API will be covered in their respective sections.</p>\n</li>\n<li><p><strong>Documentation &amp; Resources:</strong> Delve deeper into the technical specifics through our in-depth API documentation and readily available resources (code samples, tutorials).</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"5421679","collectionId":"6ab11a0b-bd33-410a-90fd-4e3e0562c97b","publishedId":"2sAYBVhrkK","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-05-16T19:06:13.000Z"},"item":[{"name":"FHIR","item":[{"name":"Get Patient Records","item":[{"name":"National Network Query Initiator","item":[{"name":"$find-docs-for-patient","event":[{"listen":"test","script":{"id":"7f75c64e-5822-4283-b30e-44b06f50f195","exec":["pm.test(\"Response status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Content-Type is application/json\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"application/json\");","});","","pm.test(\"Response body is an object with required properties\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData).to.be.an('object');","    pm.expect(jsonData).to.have.property('parameter');","});","","pm.test(\"Found Document S3.CB.doc1.3333\", function () {","    pm.expect(pm.response.text()).to.include(\"S3.CB.doc1.3333.93ce16d6-40ee-44e6-9560-7dd943d13d27\");","});","","pm.test(\"Patient not found for organization Test Source 1\", function () {","    pm.expect(pm.response.text()).to.include(\"Patient not found for organization Test Source 1\");","});","","var jsonData = pm.response.json()","parameter_list = jsonData.parameter","parameter_list.forEach((parameter) => {","    if (parameter.name == \"document_bundle\"){","        doc_ref = parameter","    }","});","","console.log(doc_ref)","","pm.collectionVariables.set(\"doc_ref\", JSON.stringify(doc_ref));"],"type":"text/javascript","packages":{}}}],"id":"991ff2fc-1963-4225-990d-398256d5a140","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"resourceType\": \"Parameters\",\n    \"id\": \"5e034c71-c097-4e18-adc0-c02c4009eeae\",\n    \"parameter\": [\n        {\n            \"name\": \"message_info\",\n            \"part\": [\n                {\n                    \"name\": \"urn:rosettahealth:rh_request_id\",\n                    \"valueString\": \"caller_request_id\"\n                }\n            ]\n        },\n        {\n            \"name\": \"organization_query\",\n            \"part\": [\n                {\n                    \"name\": \"organization_id\",\n                    \"valueString\": \"urn:oid:1.2.33.44.55.1111, urn:oid:1.2.33.44.55.3333\"\n                }\n            ]\n        },\n        {\n            \"name\": \"organization_query\",\n            \"part\": [\n                {\n                    \"name\": \"organization_name\",\n                    \"valueString\": \"Happy Sands Clinic, West Elm Urology\"\n                }\n            ]\n        },\n        {\n            \"name\": \"organization_query\",\n            \"part\": [\n                {\n                    \"name\": \"geographic\",\n                    \"valueString\": \"20878,10\"\n                }\n            ]\n        },\n        {\n            \"name\": \"saml_attributes\",\n            \"part\": [\n                {\n                    \"name\": \"purposeOfUseCode\",\n                    \"valueString\": \"TREATMENT\"\n                },\n                {\n                    \"name\": \"purposeOfUseDisplayName\",\n                    \"valueString\": \"Treatment\"\n                },\n                {\n                    \"name\": \"subjectId\",\n                    \"valueString\": \"Daffy Duck MD\"\n                },\n                {\n                    \"name\": \"subjectOrganization\",\n                    \"valueString\": \"Happy Valley Clinic\"\n                },\n                {\n                    \"name\": \"subjectOrganizationId\",\n                    \"valueString\": \"urn:oid: 1.2.3.4.5.6.7.8\"\n                },\n                {\n                    \"name\": \"subjectLocalityDNS\",\n                    \"valueString\": \"null.org\"\n                },\n                {\n                    \"name\": \"roleCode\",\n                    \"valueString\": \"224608005\"\n                },\n                {\n                    \"name\": \"roleDisplayName\",\n                    \"valueString\": \"Administrative healthcare staff\"\n                },\n                {\n                    \"name\": \"homeCommunityId\",\n                    \"valueString\": \"urn:oid:1.2.3.4.5.6.7.8\"\n                }\n            ]\n        },\n        {\n            \"name\": \"patient_demographics\",\n            \"resource\": {\n                \"resourceType\": \"Patient\",\n                \"id\": \"2ad8bd63-a904-42be-8a27-6639cb3ea4c0\",\n                \"identifier\": [\n                    {\n                        \"system\": \"1.2.3.4.5.6.7.8\",\n                        \"value\": \"11111\"\n                    }\n                ],\n                \"name\": [\n                    {\n                        \"family\": \"Mickey\",\n                        \"given\": [\n                            \"Mouse\"\n                        ]\n                    }\n                ],\n                \"gender\": \"male\",\n                \"birthDate\": \"1980-07-31\",\n                \"address\": [\n                    {\n                        \"line\": [\n                            \"8717 Main ST\",\n                            \"suite 777\"\n                        ],\n                        \"city\": \"SomeWhere\",\n                        \"state\": \"MD\",\n                        \"postalCode\": \"20878\",\n                        \"country\": \"USA\"\n                    }\n                ],\n                \"managingOrganization\": {\n                    \"reference\": \"urn:oid:1.2.3.4.5.6.7.8\"\n                }\n            }\n        },\n        {\n            \"name\": \"requested_doc_type\",\n            \"valueString\": \"BOTH\"\n        },\n                {\n            \"name\": \"found_orgs\",\n            \"valueBoolean\": true\n        },\n                {\n            \"name\": \"targeted_endpoints\",\n            \"valueBoolean\": true\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{hostname}}/fhir/gpr/{{env}}/$find-docs-for-patient?release=","description":"<h2 id=\"request\"><strong>Request</strong></h2>\n<p>The request body adheres to the FHIR Parameters resource format. Here's a breakdown of the key sections:</p>\n<ul>\n<li><p><strong>Patient Information (<strong><strong><code>message_info</code></strong></strong>)</strong></p>\n<ul>\n<li>This section provides a unique identifier for the request (<code>urn:rosettahealth:rh_request_id</code>) that you (the caller) assign. This ID will be returned in the response for tracking purposes.</li>\n</ul>\n</li>\n<li><p><strong>Organization Query (<strong><strong><code>organization_query</code></strong></strong>)</strong> (Required)</p>\n<ul>\n<li><p>This section instructs the API on how to find organizations that may have patient records. You can include one of the following options, but not multiples, within this section:</p>\n<ul>\n<li><p><strong>Search by OID (<strong><strong><code>organization_id</code></strong></strong>)</strong></p>\n<ul>\n<li>Provide a comma-separated list of OIDs for healthcare organizations to search.</li>\n</ul>\n</li>\n<li><p><strong>Search by Name (<strong><strong><code>organization_name</code></strong></strong>)</strong></p>\n<ul>\n<li>Provide a comma-separated list of organization names to search.</li>\n</ul>\n</li>\n<li><p><strong>Search by Geography (<strong><strong><code>geographic</code></strong></strong>)</strong></p>\n<ul>\n<li>Specify a postal code and a maximum search radius to target geographically relevant organizations.</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Security Attributes (<strong><strong><code>saml_attributes</code></strong></strong>)</strong></p>\n<ul>\n<li>Refer to the Security Considerations section for details on required SAML attributes.</li>\n</ul>\n</li>\n<li><p><strong>Patient Demographics (<strong><strong><code>patient_demographics</code></strong></strong>)</strong> (Required)</p>\n<ul>\n<li>This section provides demographic information about the patient you're searching for. It must be a valid Patient resource following the FHIR specification.</li>\n</ul>\n</li>\n<li><p><strong>Requested Document Type (<strong><strong><code>requested_doc_type</code></strong></strong>) (Optional)</strong></p>\n<ul>\n<li>This optional parameter allows you to specify the type of documents you're interested in. The supported value is <code>\"BOTH\"</code> to retrieve all available document types.</li>\n</ul>\n</li>\n<li><p><strong>Requested Found Organizations(</strong>** found_orgs ****) (Optional)**</p>\n<ul>\n<li><p>This optional parameter lets you specify whether to return the bundle of organizations identified by evaluating the initiating query parameters.</p>\n</li>\n<li><p>Type: valueBoolean</p>\n</li>\n<li><p>Default value: <code>false</code> - set <code>true</code> to return found orgs.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Requested Targetted Endpoints (</strong>** targeted_endpoints ****) (Optional)**</p>\n<ul>\n<li><p>This optional parameter lets you specify whether to return the bundle of endpoints targeted as a result of the initiating query.</p>\n</li>\n<li><p>Type: valueBoolean</p>\n</li>\n<li><p>Default value: <code>false</code> - set <code>true</code> to return targetted endpoints.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Example Request:</strong></p>\n<p>The provided example request demonstrates a scenario where you're searching for patient records using a combination of approaches:</p>\n<ul>\n<li><p>Searching by OID for two specific organizations (<code>urn:oid:1.2.33.44.55.1111</code> and <code>urn:oid:1.2.33.44.55.3333</code>).</p>\n</li>\n<li><p>Searching by name for two organizations (<code>Happy Sands Clinic</code> and <code>West Elm Urology</code>).</p>\n</li>\n<li><p>Searching for organizations within a 10-mile radius of zip code <code>20878</code>.</p>\n</li>\n</ul>\n<p>The example also showcases the inclusion of patient demographic information and the request to retrieve both clinical documents and referrals (<code>\"BOTH\"</code>).</p>\n<p>The following sections will delve deeper into the response structure for this initial call and the subsequent steps involved in retrieving the identified documents.</p>\n<p>This revised section incorporates your example request and explains the different sections within the request parameters. It also clarifies the purpose of each element and highlights the optional <code>requested_doc_type</code> parameter. Remember to replace the bracketed text <code>&lt;&gt;</code> in the <code>saml_attributes</code> section with the actual details about required security attributes once you have that information ready.</p>\n<h2 id=\"response\"><strong>Response</strong></h2>\n<p>The response to the first call adheres to the FHIR Parameters resource format and provides information about the transaction and the search results. Here's a breakdown of the key sections:</p>\n<ul>\n<li><p><strong>Transaction Information (<strong><strong><code>message_info</code></strong></strong>)</strong></p>\n<ul>\n<li><p>This section includes the following identifiers:</p>\n<ul>\n<li><p><code>urn:rosettahealth:rh_request_id</code>: The unique identifier you provided in the request for tracking purposes.</p>\n</li>\n<li><p><code>urn:rosettahealth:rh_transaction_id</code>: A unique identifier assigned by RosettaHealth for this specific transaction.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Document Bundle (<strong><strong><code>document_bundle</code></strong></strong>)</strong> (Optional)</p>\n<ul>\n<li><p>This section contains a FHIR Bundle that may include zero or more <code>DocumentReference</code> objects. Each <code>DocumentReference</code> object represents a document found for the patient at a queried organization.</p>\n</li>\n<li><p>If no documents are found across the queried organizations, this section will be absent from the response.</p>\n</li>\n<li><p>The <code>DocumentReference</code> resource itself contains details about the identified document, such as:</p>\n<ul>\n<li><p>Document type (e.g., Clinical Summary, Discharge Summary)</p>\n</li>\n<li><p>Document category (e.g., Outpatient Encounter, Progress Note)</p>\n</li>\n<li><p>A description of the document</p>\n</li>\n<li><p>Security labels associated with the document</p>\n</li>\n<li><p>Content attachment information (may include URL and format)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Patient Not Found (<strong><strong><code>patient_not_found</code></strong></strong>)</strong> (Optional)</p>\n<ul>\n<li>This section, represented by an <code>OperationOutcome</code> resource, details any organizations that were queried based on the provided search criteria (<code>organization_query</code>) but did not return a matching patient record for the supplied demographics.</li>\n</ul>\n</li>\n<li><p><strong>Document Not Found (<strong><strong><code>document_not_found</code></strong></strong>)</strong> (Optional)</p>\n<ul>\n<li>This section, represented by an <code>OperationOutcome</code> resource, details any organizations that identified a matching patient record but did not return any available documents associated with the patient.</li>\n</ul>\n</li>\n<li><p><strong>Errors (<strong><strong><code>errors</code></strong></strong>)</strong> (Optional)</p>\n<ul>\n<li>This section represented by an <code>OperationOutcome</code> resource details any errors or excpetions encountered in processing the transaction. The table below details the most common errors to be expected.</li>\n</ul>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>severity</th>\n<th>issue_code</th>\n<th>issue_details</th>\n<th>diagnostics</th>\n<th>Notes:</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>fatal</td>\n<td>exception</td>\n<td>UNEXPECTED_ERROR</td>\n<td>An unexptected error occured <em>error details</em></td>\n<td>An error within the GPR system has occurred. See the diagnostics for details.</td>\n</tr>\n<tr>\n<td>fatal</td>\n<td>Throttled</td>\n<td>MAX_NUMBER_ORGS_EXCEEDED</td>\n<td>Exceeded max organization threshold 100 attempted to return: <em>number of results</em> organizations</td>\n<td>If the organizational query parameters result in more than 100 facilities then the transaction is aborted. Please revise the query parameters (ex exact organization name, smaller radius from a zip code, exact organization OID)</td>\n</tr>\n<tr>\n<td>fatal</td>\n<td>not-found</td>\n<td>NO_ORGS_FOUND</td>\n<td>Unable to find any organizations using the provided parameters</td>\n<td>Check the query paramters such as spelling of the organization name or the OID or zip code</td>\n</tr>\n<tr>\n<td>fatal</td>\n<td>unknown</td>\n<td>MSG_AUTH_REQUIRED</td>\n<td>Invalid Oauth Token</td>\n<td>The OAuth token provided was invalid. This is usually due to an expired token.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>exception</td>\n<td>MSG_REMOTE_FAIL</td>\n<td><em>error information returned from the remote organization</em></td>\n<td>If the call to the organization fails (ex timeout) or they report an error in their processing of the transaction (ex RegistryError). Details are captured in the diagnostics field.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","name":"FHIR","type":"folder"}},"urlObject":{"path":["fhir","gpr","{{env}}","$find-docs-for-patient"],"host":["{{hostname}}"],"query":[{"key":"release","value":""}],"variable":[]}},"response":[{"id":"9ec316e8-80a7-43fe-bdb8-9af83e497f7a","name":"response","originalRequest":{"method":"POST","header":[{"key":"x-env","value":"TEST","type":"text"},{"key":"x-request-id","value":"hp.tc1.transactionid","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"resourceType\": \"Parameters\",\n    \"id\": \"5e034c71-c097-4e18-adc0-c02c4009eeae\",\n    \"parameter\": [\n        {\n            \"name\": \"message_info\",\n            \"part\": [\n                {\n                    \"name\": \"urn:rosettahealth:rh_request_id\",\n                    \"valueString\": \"caller.request.id\"\n                }\n            ]\n        },\n        {\n            \"name\": \"organization_query\",\n            \"part\": [\n                {\n                    \"name\": \"organization_id\",\n                    \"valueString\": \"urn:oid:1.2.33.44.55.1111, urn:oid:1.2.33.44.55.3333\"\n                }\n            ]\n        },\n        {\n            \"name\": \"organization_query\",\n            \"part\": [\n                {\n                    \"name\": \"organization_name\",\n                    \"valueString\": \"Happy Sands Clinic, West Elm Urology\"\n                }\n            ]\n        },\n        {\n            \"name\": \"organization_query\",\n            \"part\": [\n                {\n                    \"name\": \"geographic\",\n                    \"valueString\": \"20878,10\"\n                }\n            ]\n        },\n        {\n            \"name\": \"saml_attributes\",\n            \"part\": [\n                {\n                    \"name\": \"purposeOfUseCode\",\n                    \"valueString\": \"TREATMENT\"\n                },\n                {\n                    \"name\": \"purposeOfUseDisplayName\",\n                    \"valueString\": \"Treatment\"\n                },\n                {\n                    \"name\": \"subjectId\",\n                    \"valueString\": \"Daffy Duck MD\"\n                },\n                {\n                    \"name\": \"subjectOrganization\",\n                    \"valueString\": \"Happy Valley Clinic\"\n                },\n                {\n                    \"name\": \"subjectOrganizationId\",\n                    \"valueString\": \"urn:oid: 1.2.3.4.5.6.7.8\"\n                },\n                {\n                    \"name\": \"subjectLocalityDNS\",\n                    \"valueString\": \"null.org\"\n                },\n                {\n                    \"name\": \"roleCode\",\n                    \"valueString\": \"224608005\"\n                },\n                {\n                    \"name\": \"roleDisplayName\",\n                    \"valueString\": \"Administrative healthcare staff\"\n                },\n                {\n                    \"name\": \"homeCommunityId\",\n                    \"valueString\": \"urn:oid:1.2.3.4.5.6.7.8\"\n                }\n            ]\n        },\n        {\n            \"name\": \"patient_demographics\",\n            \"resource\": {\n                \"resourceType\": \"Patient\",\n                \"id\": \"2ad8bd63-a904-42be-8a27-6639cb3ea4c0\",\n                \"identifier\": [\n                    {\n                        \"system\": \"1.2.3.4.5.6.7.8\",\n                        \"value\": \"11111\"\n                    }\n                ],\n                \"name\": [\n                    {\n                        \"family\": \"Mickey\",\n                        \"given\": [\n                            \"Mouse\"\n                        ]\n                    }\n                ],\n                \"gender\": \"male\",\n                \"birthDate\": \"1980-07-31\",\n                \"address\": [\n                    {\n                        \"line\": [\n                            \"8717 Main ST\",\n                            \"suite 777\"\n                        ],\n                        \"city\": \"SomeWhere\",\n                        \"state\": \"MD\",\n                        \"postalCode\": \"20878\",\n                        \"country\": \"USA\"\n                    }\n                ],\n                \"managingOrganization\": {\n                    \"reference\": \"urn:oid:1.2.3.4.5.6.7.8\"\n                }\n            }\n        },\n        {\n            \"name\": \"requested_doc_type\",\n            \"valueString\": \"BOTH\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":""},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"resourceType\": \"Parameters\",\n    \"id\": \"0813c6b0-9092-49e5-9926-5123456789\",\n    \"parameter\": [\n        {\n            \"name\": \"message_info\",\n            \"part\": [\n                {\n                    \"name\": \"urn:rosettahealth:rh_request_id\",\n                    \"valueString\": \"027109d4-445f-4ab0-85ea-a123456789\"\n                },\n                {\n                    \"name\": \"urn:rosettahealth:rh_transaction_id\",\n                    \"valueString\": \"b18fee65678a3957123456789\"\n                }\n            ]\n        },\n        {\n            \"name\": \"document_bundle\",\n            \"resource\": {\n                \"resourceType\": \"Bundle\",\n                \"id\": \"5e377e47-abe9-4701-93d4-250c126a5f9f\",\n                \"meta\": {\n                    \"lastUpdated\": \"2024-12-17T04:43:55+00:00\"\n                },\n                \"type\": \"searchset\",\n                \"total\": 2,\n                \"entry\": [\n                    {\n                        \"resource\": {\n                            \"resourceType\": \"DocumentReference\",\n                            \"contained\": [\n                                {\n                                    \"resourceType\": \"Organization\",\n                                    \"id\": \"author\",\n                                    \"name\": \"na\"\n                                },\n                                {\n                                    \"resourceType\": \"Organization\",\n                                    \"id\": \"custodian\",\n                                    \"name\": \"Physician Group\"\n                                },\n                                {\n                                    \"resourceType\": \"Patient\",\n                                    \"id\": \"subject\",\n                                    \"identifier\": [\n                                        {\n                                            \"system\": \"1.2.3.4.5.6.7.8\",\n                                            \"value\": \"AAAABBBBCCCCCC\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"extension\": [\n                                {\n                                    \"url\": \"fhir/StructureDefinition/source-organization\",\n                                    \"valueReference\": {\n                                        \"reference\": \"fhir/Organization/urn:oid:1.2.3.4.5.6.7.8\",\n                                        \"type\": \"Organization\",\n                                        \"display\": \"Hospital A\"\n                                    }\n                                },\n                                {\n                                    \"url\": \"fhir/StructureDefinition/destination-endpoint\",\n                                    \"valueReference\": {\n                                        \"reference\": \"fhir/Organization/urn:oid:7e314137-a0b3-4ac3-aa0f-fe49efa008e4\",\n                                        \"type\": \"Endpoint\",\n                                        \"display\": \"https://endpoint.net/IHE/gateway/xcpd\"\n                                    }\n                                }\n                            ],\n                            \"identifier\": [\n                                {\n                                    \"system\": \"urn:rosettahealth:source_document_id\",\n                                    \"value\": \"AAAAAAAABBBB.r12345\"\n                                }\n                            ],\n                            \"version\": \"urn:uuid:ee94d795-da68-4aa0-a622-9597e96e295c\",\n                            \"status\": \"current\",\n                            \"type\": {\n                                \"coding\": [\n                                    {\n                                        \"system\": \"2.16.840.1.113883.6.1\",\n                                        \"code\": \"Continuity of Care Document\"\n                                    }\n                                ]\n                            },\n                            \"category\": [\n                                {\n                                    \"coding\": [\n                                        {\n                                            \"system\": \"2.16.840.1.113883.6.1\",\n                                            \"code\": \"Continuity of Care Document\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"subject\": {\n                                \"reference\": \"#subject\"\n                            },\n                            \"date\": \"2024-12-17T04:43:55+00:00\",\n                            \"author\": [\n                                {\n                                    \"reference\": \"#author\"\n                                }\n                            ],\n                            \"custodian\": {\n                                \"display\": \"#custodian\"\n                            },\n                            \"description\": \"Continuity of Care Document\",\n                            \"content\": [\n                                {\n                                    \"attachment\": {\n                                        \"contentType\": \"text/xml\",\n                                        \"language\": \"en\",\n                                        \"url\": \"http://example.com/nowhere.txt?repository=1.2.3.4.5.6.7.8&community=urn:oid:1.2.3.4.5.6.7.8\",\n                                        \"title\": \"Continuity of Care Document\"\n                                    },\n                                    \"profile\": [\n                                        {\n                                            \"valueCoding\": {\n                                                \"system\": \"1.3.6.1.4.1.19376.1.2.3\",\n                                                \"display\": \"Documents following C-CDA constraints using a structured body\"\n                                            }\n                                        }\n                                    ]\n                                }\n                            ]\n                        }\n                    },\n                    {\n                        \"resource\": {\n                            \"resourceType\": \"DocumentReference\",\n                            \"contained\": [\n                                {\n                                    \"resourceType\": \"Organization\",\n                                    \"id\": \"author\",\n                                    \"name\": \"na\"\n                                },\n                                {\n                                    \"resourceType\": \"Organization\",\n                                    \"id\": \"custodian\",\n                                    \"name\": \"Physician Group\"\n                                },\n                                {\n                                    \"resourceType\": \"Patient\",\n                                    \"id\": \"subject\",\n                                    \"identifier\": [\n                                        {\n                                            \"system\": \"1.2.3.4.5.6.7.8\",\n                                            \"value\": \"AAAABBBBCCCCCC\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"extension\": [\n                                {\n                                    \"url\": \"fhir/StructureDefinition/source-organization\",\n                                    \"valueReference\": {\n                                        \"reference\": \"fhir/Organization/urn:oid:1.2.3.4.5.6.7.8\",\n                                        \"type\": \"Organization\",\n                                        \"display\": \"Health Org\"\n                                    }\n                                },\n                                {\n                                    \"url\": \"fhir/StructureDefinition/destination-endpoint\",\n                                    \"valueReference\": {\n                                        \"reference\": \"fhir/Organization/urn:oid:7e314137-a0b3-4ac3-aa0f-fe49efa008e4\",\n                                        \"type\": \"Endpoint\",\n                                        \"display\": \"https://healthorg.net/IHE/gateway/xcpd\"\n                                    }\n                                }\n                            ],\n                            \"identifier\": [\n                                {\n                                    \"system\": \"urn:rosettahealth:source_document_id\",\n                                    \"value\": \"AAABCCCCCCCCC.r123456\"\n                                }\n                            ],\n                            \"version\": \"urn:uuid:a7a6063e-31a1-4091-8790-c0fd218c399e\",\n                            \"status\": \"current\",\n                            \"type\": {\n                                \"coding\": [\n                                    {\n                                        \"system\": \"2.16.840.1.113883.6.1\",\n                                        \"code\": \"Progress Note\"\n                                    }\n                                ]\n                            },\n                            \"category\": [\n                                {\n                                    \"coding\": [\n                                        {\n                                            \"system\": \"2.16.840.1.113883.6.1\",\n                                            \"code\": \"Progress Note\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"subject\": {\n                                \"reference\": \"#subject\"\n                            },\n                            \"date\": \"2024-12-17T04:43:55+00:00\",\n                            \"author\": [\n                                {\n                                    \"reference\": \"#author\"\n                                }\n                            ],\n                            \"custodian\": {\n                                \"display\": \"#custodian\"\n                            },\n                            \"description\": \"Progress Note\",\n                            \"content\": [\n                                {\n                                    \"attachment\": {\n                                        \"contentType\": \"text/xml\",\n                                        \"language\": \"en\",\n                                        \"url\": \"http://example.com/nowhere.txt?repository=1.2.3.4.5.6.7.8&community=urn:oid:1.2.3.4.5.6.7.8\",\n                                        \"title\": \"Progress Note\"\n                                    }\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        },\n        {\n            \"name\": \"patient_not_found\",\n            \"part\": [\n                {\n                    \"name\": \"Home_Training\",\n                    \"resource\": {\n                        \"resourceType\": \"OperationOutcome\",\n                        \"id\": \"ae3c893a-98aa-4a9a-bd76-97219b92441c\",\n                        \"extension\": [\n                            {\n                                \"url\": \"fhir/StructureDefinition/source-organization\",\n                                \"valueReference\": {\n                                    \"reference\": \"fhir/Organization/urn:oid:1.2.3.4.5.6.7.8\",\n                                    \"type\": \"Organization\",\n                                    \"display\": \"Home_Training\"\n                                }\n                            },\n                            {\n                                \"url\": \"fhir/StructureDefinition/destination-endpoint\",\n                                \"valueReference\": {\n                                    \"reference\": \"fhir/Organization/urn:oid:12fddd7e-35ad-4315-b977-8523ca3f47a6\",\n                                    \"type\": \"Endpoint\",\n                                    \"display\": \"https://medical.org:4437/cq/1.0.0/iti39/3.0?_eHxHubRouteTo=1.2.3.4.5.6.7.8\"\n                                }\n                            }\n                        ],\n                        \"issue\": [\n                            {\n                                \"severity\": \"information\",\n                                \"code\": \"not-found\",\n                                \"details\": {\n                                    \"text\": \"No Resource found matching the query\"\n                                },\n                                \"diagnostics\": \"Patient not found for Home Training\"\n                            }\n                        ]\n                    }\n                },\n                {\n                    \"name\": \"Health_Clinic\",\n                    \"resource\": {\n                        \"resourceType\": \"OperationOutcome\",\n                        \"id\": \"9ff36751-720a-4495-8aaa-e17c9812fa5e\",\n                        \"extension\": [\n                            {\n                                \"url\": \"fhir/StructureDefinition/source-organization\",\n                                \"valueReference\": {\n                                    \"reference\": \"fhir/Organization/urn:oid:1.2.3.4.5.6.7.8\",\n                                    \"type\": \"Organization\",\n                                    \"display\": \"HIE\"\n                                }\n                            },\n                            {\n                                \"url\": \"fhir/StructureDefinition/destination-endpoint\",\n                                \"valueReference\": {\n                                    \"reference\": \"fhir/Organization/urn:oid:de827e8c-149b-427d-92b5-30e8f93edfb9\",\n                                    \"type\": \"Endpoint\",\n                                    \"display\": \"https://medical.org/XCPD/RespondingGateway.svc\"\n                                }\n                            }\n                        ],\n                        \"issue\": [\n                            {\n                                \"severity\": \"information\",\n                                \"code\": \"not-found\",\n                                \"details\": {\n                                    \"text\": \"No Resource found matching the query\"\n                                },\n                                \"diagnostics\": \"Patient not found for organization Health Clinic\"\n                            }\n                        ]\n                    }\n                }\n            ]\n        },\n        {\n            \"name\": \"errors\",\n            \"part\": [\n                {\n                    \"name\": \"Emergency_Center\",\n                    \"resource\": {\n                        \"resourceType\": \"OperationOutcome\",\n                        \"id\": \"4223d9b1-e095-4417-9cb4-bec48c3c4f95\",\n                        \"extension\": [\n                            {\n                                \"url\": \"fhir/StructureDefinition/source-organization\",\n                                \"valueReference\": {\n                                    \"reference\": \"fhir/Organization/urn:oid:1.2.3.4.5.6.7.8\",\n                                    \"type\": \"Organization\",\n                                    \"display\": \"Medical System\"\n                                }\n                            },\n                            {\n                                \"url\": \"fhir/StructureDefinition/destination-endpoint\",\n                                \"valueReference\": {\n                                    \"reference\": \"fhir/Organization/urn:oid:16f32879-268a-4ce1-9d4f-67d430a3190d\",\n                                    \"type\": \"Endpoint\",\n                                    \"display\": \"https://medical.edu:14430/Interconnect-CareEverywhere/wcf/epic.community.hie/respondinggateway.svc/mtom-ceq\"\n                                }\n                            }\n                        ],\n                        \"issue\": [\n                            {\n                                \"severity\": \"error\",\n                                \"code\": \"exception\",\n                                \"details\": {\n                                    \"text\": \"MSG_REMOTE_FAIL\"\n                                },\n                                \"diagnostics\": \"Emergency Center : XDSRegistryOutOfResources Too many queries for the same patient today. Try again tomorrow. null urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error\"\n                            }\n                        ]\n                    }\n                },\n                {\n                    \"name\": \"Medical_Center\",\n                    \"resource\": {\n                        \"resourceType\": \"OperationOutcome\",\n                        \"id\": \"13fe45d2-c1e3-4320-a76a-53a838c50595\",\n                        \"extension\": [\n                            {\n                                \"url\": \"fhir/StructureDefinition/source-organization\",\n                                \"valueReference\": {\n                                    \"reference\": \"fhir/Organization/urn:oid:urn:oid:1.2.3.4.5.6.7.8\",\n                                    \"type\": \"Organization\",\n                                    \"display\": \"Medical Center\"\n                                }\n                            },\n                            {\n                                \"url\": \"fhir/StructureDefinition/destination-endpoint\",\n                                \"valueReference\": {\n                                    \"reference\": \"fhir/Organization/urn:oid:4de16a15-0a5c-4076-9371-d1d2e1b77396\",\n                                    \"type\": \"Endpoint\",\n                                    \"display\": \"https://medical.org:14430/Interconnect-CEPRD/wcf/epic.community.hie/respondinggateway.svc/mtom-ceq\"\n                                }\n                            }\n                        ],\n                        \"issue\": [\n                            {\n                                \"severity\": \"error\",\n                                \"code\": \"exception\",\n                                \"details\": {\n                                    \"text\": \"MSG_REMOTE_FAIL\"\n                                },\n                                \"diagnostics\": \"Medical Center : XDSRegistryOutOfResources Error processing documents. null urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error\"\n                            }\n                        ]\n                    }\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"991ff2fc-1963-4225-990d-398256d5a140"},{"name":"$retrieve-single-document","event":[{"listen":"prerequest","script":{"id":"493346b2-9103-41dc-8a85-4d9111f11144","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"a93eceab-cf2a-438d-b8c1-2655d9eef685","exec":["pm.test(\"Found Document S3.CB.doc1.3333\", function () {","    pm.expect(pm.response.text()).to.include(\"S3.CB.doc1.3333\");","});","","pm.test(\"Found Document Data\", function () {","    pm.expect(pm.response.text()).to.include(\"PD94bWwgdmVyc2lvbj0iM\");","});",""],"type":"text/javascript","packages":{}}}],"id":"7560e5a5-da7a-4ac5-a80c-9c9e4e8d6a6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"resourceType\": \"Parameters\",\n    \"id\": \"dbf71c05-7fe6-4d8f-9346-e4eb64f970dd\",\n    \"parameter\": [\n        {\n            \"name\": \"message_info\",\n            \"part\": [\n                {\n                    \"name\": \"urn:rosettahealth:rh_request_id\",\n                    \"valueString\": \"caller_request_id\"\n                }\n\n            ]\n        },\n                {\n            \"name\": \"saml_attributes\",\n            \"part\": [\n                {\n                    \"name\": \"purposeOfUseCode\",\n                    \"valueString\": \"TREATMENT\"\n                },\n                {\n                    \"name\": \"purposeOfUseDisplayName\",\n                    \"valueString\": \"Treatment\"\n                },\n                {\n                    \"name\": \"subjectId\",\n                    \"valueString\": \"Daffy Duck MD\"\n                },\n                {\n                    \"name\": \"subjectOrganization\",\n                    \"valueString\": \"Happy Valley Clinic\"\n                },\n                {\n                    \"name\": \"subjectOrganizationId\",\n                    \"valueString\": \"urn:oid: 1.2.3.4.5.6.7.8\"\n                },\n                {\n                    \"name\": \"subjectLocalityDNS\",\n                    \"valueString\": \"null.org\"\n                },\n                {\n                    \"name\": \"roleCode\",\n                    \"valueString\": \"224608005\"\n                },\n                {\n                    \"name\": \"roleDisplayName\",\n                    \"valueString\": \"Administrative healthcare staff\"\n                },\n                {\n                    \"name\": \"homeCommunityId\",\n                    \"valueString\": \"urn:oid:1.2.3.4.5.6.7.8\"\n                }\n            ]\n        },\n        {\n            \"name\": \"document_bundle\",\n            \"resource\": {\n                \"resourceType\": \"Bundle\",\n                \"id\": \"1acb5746-d875-4a91-a000-2d688c90c8c5\",\n                \"meta\": {\n                    \"lastUpdated\": \"2024-02-12T22:38:58.124125\"\n                },\n                \"type\": \"searchset\",\n                \"total\": 1,\n                \"entry\": [\n                    {\n                        \"resource\": {\n                            \"resourceType\": \"DocumentReference\",\n                            \"contained\": [\n                                {\n                                    \"resourceType\": \"Organization\",\n                                    \"id\": \"author\",\n                                    \"name\": \"authorPerson_1.2.33.44.55.3333\"\n                                },\n                                {\n                                    \"resourceType\": \"Organization\",\n                                    \"id\": \"custodian\",\n                                    \"name\": \"Test Source 3\"\n                                },\n                                {\n                                    \"resourceType\": \"Patient\",\n                                    \"id\": \"subject\",\n                                    \"identifier\": [\n                                        {\n                                            \"system\": \"1.2.33.44.55.3333\",\n                                            \"value\": \"CB.1c66fb84-6a74-43ac-bad8-08b548d35da8.3333\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"identifier\": [\n                                {\n                                    \"system\": \"urn:rosettahealth:source_document_id\",\n                                    \"value\": \"S3.CB.doc1.3333.93ce16d6-40ee-44e6-9560-7dd943d13d27.r7482763\"\n                                }\n                            ],\n                            \"version\": \"urn:uuid:66730bfb-c89e-4bf1-9b8e-8415b8edb4a7\",\n                            \"status\": \"current\",\n                            \"type\": {\n                                \"coding\": [\n                                    {\n                                        \"system\": \"2.16.840.1.113883.3.2966.10.3\",\n                                        \"code\": \"Clinical Summary (Deduplicated)\"\n                                    }\n                                ]\n                            },\n                            \"category\": [\n                                {\n                                    \"coding\": [\n                                        {\n                                            \"system\": \"2.16.840.1.113883.6.1\",\n                                            \"code\": \"Summarization of Episode Note - Single Doc Response\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"subject\": {\n                                \"reference\": \"#subject\"\n                            },\n                            \"facilityType\": {\n                                \"coding\": [\n                                    {\n                                        \"system\": \"2.16.840.1.113883.6.96\",\n                                        \"code\": \"Health Information Exchange\"\n                                    }\n                                ]\n                            },\n                            \"practiceSetting\": {\n                                \"coding\": [\n                                    {\n                                        \"system\": \"2.16.840.1.113883.6.9\",\n                                        \"code\": \"General medicine\"\n                                    }\n                                ]\n                            },\n                            \"author\": [\n                                {\n                                    \"reference\": \"#author\"\n                                }\n                            ],\n                            \"custodian\": {\n                                \"display\": \"#custodian\"\n                            },\n                            \"description\": \"DocName is S3.CB.doc1.3333\",\n                            \"securityLabel\": [\n                                {\n                                    \"coding\": [\n                                        {\n                                            \"system\": \"2.16.840.1.113883.5.25\",\n                                            \"code\": \"N\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"content\": [\n                                {\n                                    \"attachment\": {\n                                        \"contentType\": \"text/xml\",\n                                        \"language\": \"en\",\n                                        \"url\": \"http://example.com/nowhere.txt?repository=1.2.33.44.55.3333&community=urn:oid:1.2.33.44.55.3333\",\n                                        \"title\": \"DocName is S3.CB.doc1.3333\"\n                                    },\n                                    \"profile\": [\n                                        {\n                                            \"valueCoding\": {\n                                                \"system\": \"1.3.6.1.4.1.19376.1.2.3\",\n                                                \"display\": \"HL7 CCD Document\"\n                                            }\n                                        }\n                                    ]\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"{{hostname}}/fhir/gpr/{{env}}/$retrieve-docs?release=","description":"<h2 id=\"request\"><strong>Request</strong></h2>\n<p>The request for retrieving a single document uses the FHIR Parameters resource format and leverages similar elements to the first call. Here's a breakdown of the key sections:</p>\n<ul>\n<li><p><strong>Transaction Information (<strong><strong><code>message_info</code></strong></strong>)</strong></p>\n<ul>\n<li>This section provides a unique identifier for the request (<code>urn:rosettahealth:rh_request_id</code>) that you (the caller) assign. This ID will be returned in the response for tracking purposes.</li>\n</ul>\n</li>\n<li><p><strong>Security Attributes (<strong><strong><code>saml_attributes</code></strong></strong>)</strong> (Required)</p>\n<ul>\n<li>In order to query a national network certain information must be provided that is used by the target organization to better understand the nature of the search.</li>\n</ul>\n</li>\n<li><p><strong>Document Bundle (<strong><strong><code>document_bundle</code></strong></strong>)</strong> (Required)</p>\n<ul>\n<li>This section must contain a Bundle resource with a single <code>DocumentReference</code> object. The <code>DocumentReference</code> object should be one of the references returned in the <code>document_bundle</code> section of the first call's response. It acts as a reference to the specific document you want to retrieve.</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"response\"><strong>Response</strong></h2>\n<p>The response to the second call provides the content of the specific document referenced in the first call's <code>document_bundle</code>. It follows the FHIR Parameters resource format.</p>\n<p><strong>Structure:</strong></p>\n<p>The response typically includes the following sections:</p>\n<ul>\n<li><p><strong>Transaction Information (<strong><strong><code>message_info</code></strong></strong>)</strong></p>\n<ul>\n<li><p>This section provides two unique identifiers:</p>\n<ul>\n<li><p><code>urn:rosettahealth:rh_request_id</code>: The identifier you (the caller) assigned in the request, returned for tracking purposes.</p>\n</li>\n<li><p><code>urn:rosettahealth:rh_transaction_id</code>: A unique identifier assigned by RosettaHealth for this specific transaction.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Document Bundle (Required)</strong></p>\n<ul>\n<li><p>This section will always be present in a successful response and contains a single <code>Bundle</code> resource with a <code>searchset</code> type.</p>\n</li>\n<li><p>The <code>Bundle</code> resource includes a single <code>entry</code> referencing a <code>DocumentReference</code> resource.</p>\n</li>\n<li><p><strong>Document Reference (****<code>DocumentReference</code></strong> <strong>resource within the</strong> <strong><code>entry</code>****):</strong></p>\n<ul>\n<li><p>This resource contains the actual retrieved document content.</p>\n</li>\n<li><p>The base64 encoded document data resides within the <code>attachment.data</code> element of the <code>content</code>property within the <code>DocumentReference</code> resource.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>OperationOutcome (Optional)</strong></p>\n<ul>\n<li><p>This section will be present if there are any errors or issues encountered during document retrieval.</p>\n</li>\n<li><p>The <code>OperationOutcome</code> resource will contain details about the problem, such as:</p>\n<ul>\n<li><p>Error codes indicating the specific reason for failure (e.g., document not found, access denied).</p>\n</li>\n<li><p>Additional context about the error to help with troubleshooting.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>Errors (<strong><strong><code>errors</code></strong></strong>)</strong> (Optional)</p>\n<ul>\n<li>This section represented by an <code>OperationOutcome</code> resource details any errors or excpetions encountered in processing the transaction. The table below details the most common errors to be expected.</li>\n</ul>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>severity</th>\n<th>issue_code</th>\n<th>issue_details</th>\n<th>diagnostics</th>\n<th>Notes:</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>fatal</td>\n<td>exception</td>\n<td>UNEXPECTED_ERROR</td>\n<td>An unexptected error occured <em>see error details</em></td>\n<td>An error within the GPR system has occurred. See the diagnostics for details.</td>\n</tr>\n<tr>\n<td>fatal</td>\n<td>unknown</td>\n<td>MSG_AUTH_REQUIRED</td>\n<td>Invalid Oauth Token</td>\n<td>The OAuth token provided was invalid. This is usually due to an expired token.</td>\n</tr>\n<tr>\n<td>error</td>\n<td>exception</td>\n<td>MSG_REMOTE_FAIL</td>\n<td><em>error information returned from the remote organization</em></td>\n<td>If the call to the organization fails (ex timeout) or they report an error in their processing of the transaction (ex RegistryError). Details are captured in the diagnostics field.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Key Takeaways:</strong></p>\n<ul>\n<li><p>The <code>document_bundle</code> section is always present in a successful response and contains the <code>DocumentReference</code>resource with the retrieved document content.</p>\n</li>\n<li><p>The base64 encoded document data is located within the <code>attachment.data</code> element of the <code>content</code> property in the <code>DocumentReference</code> resource that's part of the mandatory <code>document_bundle</code>.</p>\n</li>\n<li><p>The presence of the <code>content</code> section with data indicates successful retrieval.</p>\n</li>\n</ul>\n<p>This revised explanation clarifies that the <code>document_bundle</code> section is a required element in a successful response, containing the <code>DocumentReference</code> resource with the retrieved document. The <code>OperationOutcome</code> section remains optional, appearing only in case of errors.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","name":"FHIR","type":"folder"}},"urlObject":{"path":["fhir","gpr","{{env}}","$retrieve-docs"],"host":["{{hostname}}"],"query":[{"key":"release","value":""}],"variable":[]}},"response":[{"id":"0b3acb9a-fe8c-430e-b96a-fe7f4d6b57f5","name":"response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"resourceType\": \"Parameters\",\n    \"id\": \"5e034c71-c097-4e18-adc0-c02c4009eeae\",\n    \"parameter\": [\n        {\n            \"name\": \"message_info\",\n            \"part\": [\n                {\n                    \"name\": \"urn:rosettahealth:rh_request_id\",\n                    \"valueString\": \"hp.tc1.requestid\"\n                }\n            ]\n        },\n        {\n            \"name\": \"saml_attributes\",\n            \"part\": [\n                {\n                    \"name\": \"purposeOfUse\",\n                    \"valueString\": \"TREATMENT\"\n                },\n                {\n                    \"name\": \"purposeOfUseDisplayName\",\n                    \"valueString\": \"Treatment\"\n                },\n                {\n                    \"name\": \"subjectId\",\n                    \"valueString\": \"Daffy Duck MD\"\n                },\n                {\n                    \"name\": \"subjectOrganization\",\n                    \"valueString\": \"Happy Valley Clinic\"\n                },\n                {\n                    \"name\": \"subjectOrganizationID\",\n                    \"valueString\": \"urn:oid: 1.2.3.4.5.6.7.8\"\n                },\n                {\n                    \"name\": \"subjectLocalityDNS\",\n                    \"valueString\": \"null.org\"\n                },\n                {\n                    \"name\": \"roleCode\",\n                    \"valueString\": \"224608005\"\n                },\n                {\n                    \"name\": \"roleDisplayName\",\n                    \"valueString\": \"Administrative healthcare staff\"\n                },\n                {\n                    \"name\": \"homeCommunityId\",\n                    \"valueString\": \"urn:oid: 1.2.3.4.5.6.7.8\"\n                }\n            ]\n        },\n        {\n            \"name\": \"document_bundle\",\n            \"resource\": {\n                \"resourceType\": \"Bundle\",\n                \"id\": \"426f781c-3dfd-4d66-80b1-aff4cd3e5cc0\",\n                \"meta\": {\n                    \"lastUpdated\": \"2024-03-12T13:55:32+00:00\"\n                },\n                \"type\": \"searchset\",\n                \"total\": 1,\n                \"entry\": [\n                    {\n                        \"resource\": {\n                            \"resourceType\": \"DocumentReference\",\n                            \"contained\": [\n                                {\n                                    \"resourceType\": \"Organization\",\n                                    \"id\": \"author\",\n                                    \"name\": \"authorPerson_1.2.33.44.55.3333\"\n                                },\n                                {\n                                    \"resourceType\": \"Organization\",\n                                    \"id\": \"custodian\",\n                                    \"name\": \"Test Source 3\"\n                                },\n                                {\n                                    \"resourceType\": \"Patient\",\n                                    \"id\": \"subject\",\n                                    \"identifier\": [\n                                        {\n                                            \"system\": \"1.2.33.44.55.3333\",\n                                            \"value\": \"CB.1c66fb84-6a74-43ac-bad8-08b548d35da8.3333\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"identifier\": [\n                                {\n                                    \"system\": \"urn:rosettahealth:source_document_id\",\n                                    \"value\": \"S3.CB.doc1.3333.93ce16d6-40ee-44e6-9560-7dd943d13d27.r1137502\"\n                                }\n                            ],\n                            \"version\": \"urn:uuid:a5a8a39d-90f2-459f-aee9-82ff2ed7e196\",\n                            \"status\": \"current\",\n                            \"type\": {\n                                \"coding\": [\n                                    {\n                                        \"system\": \"2.16.840.1.113883.3.2966.10.3\",\n                                        \"code\": \"Clinical Summary (Deduplicated)\"\n                                    }\n                                ]\n                            },\n                            \"category\": [\n                                {\n                                    \"coding\": [\n                                        {\n                                            \"system\": \"2.16.840.1.113883.6.1\",\n                                            \"code\": \"Summarization of Episode Note - Single Doc Response\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"subject\": {\n                                \"reference\": \"#subject\"\n                            },\n                            \"facilityType\": {\n                                \"coding\": [\n                                    {\n                                        \"system\": \"2.16.840.1.113883.6.96\",\n                                        \"code\": \"Health Information Exchange\"\n                                    }\n                                ]\n                            },\n                            \"practiceSetting\": {\n                                \"coding\": [\n                                    {\n                                        \"system\": \"2.16.840.1.113883.6.9\",\n                                        \"code\": \"General medicine\"\n                                    }\n                                ]\n                            },\n                            \"date\": \"2010-10-20T14:15:00+00:00\",\n                            \"author\": [\n                                {\n                                    \"reference\": \"#author\"\n                                }\n                            ],\n                            \"custodian\": {\n                                \"display\": \"#custodian\"\n                            },\n                            \"description\": \"DocName is S3.CB.doc1.3333\",\n                            \"securityLabel\": [\n                                {\n                                    \"coding\": [\n                                        {\n                                            \"system\": \"2.16.840.1.113883.5.25\",\n                                            \"code\": \"N\"\n                                        }\n                                    ]\n                                }\n                            ],\n                            \"content\": [\n                                {\n                                    \"attachment\": {\n                                        \"contentType\": \"text/xml\",\n                                        \"language\": \"en\",\n                                        \"url\": \"http://example.com/nowhere.txt?repository=1.2.33.44.55.3333&community=urn:oid:1.2.33.44.55.3333\",\n                                        \"title\": \"DocName is S3.CB.doc1.3333\",\n                                        \"creation\": \"1970-08-21T15:37:00.141500+00:00\"\n                                    },\n                                    \"profile\": [\n                                        {\n                                            \"valueCoding\": {\n                                                \"system\": \"1.3.6.1.4.1.19376.1.2.3\",\n                                                \"display\": \"HL7 CCD Document\"\n                                            }\n                                        }\n                                    ]\n                                }\n                            ]\n                        }\n                    }\n                ]\n            }\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":""},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"resourceType\": \"Parameters\",\n    \"id\": \"87240bb8-5086-4c56-bfeb-e69a1253eb83\",\n    \"parameter\": [\n        {\n            \"name\": \"message_info\",\n            \"part\": [\n                {\n                    \"name\": \"urn:rosettahealth:rh_request_id\",\n                    \"valueString\": \"caller_request_id\"\n                },\n                {\n                    \"name\": \"urn:rosettahealth:rh_transaction_id\",\n                    \"valueString\": \"rosetta_transaction_id\"\n                }\n            ]\n        },\n        {\n            \"name\": \"document_bundle\",\n            \"resource\": {\n                \"resourceType\": \"Bundle\",\n                \"id\": \"972648b2-1598-4976-bea8-e41eae808ad3\",\n                \"meta\": {\n                    \"lastUpdated\": \"2024-05-13T16:14:02.143473+00:00\"\n                },\n                \"type\": \"searchset\",\n                \"total\": 1,\n                \"entry\": [\n                    {\n                        \"resource\": {\n                            \"resourceType\": \"DocumentReference\",\n                            \"id\": \"11155724-53f7-4e23-bbab-82d6e7eb1097\",\n                            \"identifier\": [\n                                {\n                                    \"system\": \"urn:rosettahealth:source_document_id\",\n                                    \"value\": \"S3.CB.doc1.3333.r93ce16d6-40ee-44e6-9560-7dd943d13d27.r3302759\"\n                                }\n                            ],\n                            \"status\": \"current\",\n                            \"content\": [\n                                {\n                                    \"attachment\": {\n                                        \"contentType\": \"text/xml\",\n                                        \"data\": \"BASE 64 ENCODED STRING HERE\",\n                                        \"url\": \"http://example.com/nowhere.txt?repository=urn:oid:1.2.33.44.55.3333&community=1.2.3.4.5.6.7.8\"\n                                    }\n                                }\n                            ]\n                        },\n                        \"search\": {\n                            \"mode\": \"match\"\n                        }\n                    }\n                ]\n            }\n        }\n    ]\n}"}],"_postman_id":"7560e5a5-da7a-4ac5-a80c-9c9e4e8d6a6f"}],"id":"d28c7ee2-ff7b-48d1-b1e6-bcd735c31128","description":"<p>The RosettaHealth FHIR API offers a streamlined approach to retrieving patient health data across a vast network of healthcare organizations. This functionality leverages the power of HL7 FHIR v5 and national networks like Carequality to efficiently gather comprehensive patient information.</p>\n<p>Here's what makes \"Get Patient Records\" unique:</p>\n<ul>\n<li><p><strong>National Network Search:</strong> Search for relevant healthcare organizations participating in national networks based on various criteria. You can provide organization name, organization OID (Object Identifier), or specify a zip code with a search radius to target geographically relevant providers.</p>\n</li>\n<li><p><strong>Two-Step Retrieval:</strong> Streamline the retrieval process into two efficient REST API calls:</p>\n<ul>\n<li><p><strong>Initial Query</strong>: Provide patient demographics and organization/geographic search criteria. The RosettaHealth platform processes this input to perform a demographics query and a document search, returning identified documents, as well as any \"not found\" results and errors.</p>\n</li>\n<li><p><strong>Record Retrieval</strong>: Fetch the patient records from the identified organizations based on the initial query results.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>This two-step approach simplifies the data retrieval process and minimizes the number of API calls required, improving efficiency within your application.</p>\n<p>The following sections provide detailed instructions on using the \"Get Patient Records\" functionality, including:</p>\n<ul>\n<li><p>Supported search criteria for national network organizations</p>\n</li>\n<li><p>Request and response schemas for both steps of the retrieval process</p>\n</li>\n<li><p>Error handling and troubleshooting</p>\n</li>\n</ul>\n<h3 id=\"authentication\"><strong>Authentication</strong></h3>\n<p>The National Network Query Initiator uses oAuth 2.0 for authentication and authorization. Information on getting the necessary credentials and endpoints can be found in our support document <a href=\"https://nitorgroup.freshdesk.com/a/solutions/articles/6000275867\">GPR FHIR OAuth2.0</a></p>\n<h3 id=\"query-parameters\"><a href=\"https://nitorgroup.freshdesk.com/a/solutions/articles/6000275867\"></a>Query Parameters</h3>\n<p><strong>release</strong>: This parameter specifies the release you would like to target. Please note that all releases require specific authorization for both API and UI participants. <em><strong>Ex: GPRv2_1</strong></em></p>\n","_postman_id":"d28c7ee2-ff7b-48d1-b1e6-bcd735c31128","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","name":"FHIR","type":"folder"}}},{"name":"National Network Query Responder","item":[{"name":"Query For Patient Information","id":"cae6e20a-bf2e-4cbc-aecf-f2925c63fac2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"patientInfo\": {\n    \"dateOfBirth\": \"20010822\",\n    \"family\": \"Testpatient\",\n    \"gender\": \"M\",\n    \"given\": \"John\",\n    \"streetAddressLine1\": \"12345 Main St\",\n    \"streetAddressLine2\": \"suite 312\",\n    \"city\": \"SomeWheresVille\",\n    \"state\": \"Florida\",\n    \"zip\": \"22211-123\",\n    \"raceCode\": \"Other Race\",\n    \"ethnicGroupCode\": \"2186-2\",\n    \"localId\": \"MRN0001234\",\n    \"assigningAuthority\": \"1.2.3.4.5.6\",\n    \"providerOrganizationOid\": \"1.2.3.4.5.6\",\n    \"providerOrganizationName\": \"Good Health Clinic\",\n    \"custodianOid\": \"1.2.3.4.5.6\",\n    \"custodianName\": \"Good Health Regional\",\n    \"homeCommunityId\": \"urn:oid:4.5.6.7.8.9\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","description":"<h2 id=\"rosettahealth-clinical-repository---patient-demographics-search-api-implementation-guide\">RosettaHealth Clinical Repository - Patient Demographics Search API (Implementation Guide)</h2>\n<p>This document serves as a technical specification for implementing the RosettaHealth Clinical Repository's <code>Patient Demographics Search</code> API. This API enables external healthcare information systems to search for patients based on specific demographic criteria. The communication between RosettaHealth and your system utilizes JSON for both the request and response messages.</p>\n<p><strong>Target Audience:</strong></p>\n<p>Software developers and technical teams responsible for implementing the <code>Patient Demographics Search</code> API within their healthcare information systems.</p>\n<p><strong>API Overview:</strong></p>\n<p>The <code>Patient Demographics Search</code> API empowers external systems to efficiently query your system for patients based on demographic data. This standardized search mechanism facilitates seamless patient identification and data exchange across healthcare institutions, fostering improved care coordination.</p>\n<p><strong>API Request Structure:</strong></p>\n<p>The request message for the <code>Patient Demographics Search</code> API will be formatted in JSON and includes the following sections:</p>\n<ol>\n<li><strong>patientInfo (Required):</strong><ul>\n<li><strong>Data Type:</strong> Object</li>\n<li><strong>Description:</strong> This object encapsulates the demographic details of the patient being searched. It serves as the search criteria for the API.</li>\n<li><strong>Fields:</strong><ul>\n<li><strong>given (Required):</strong> Patient's given name (first name) (String).<ul>\n<li><strong>Example:</strong> <code>\"given\": \"John\"</code></li>\n</ul>\n</li>\n<li><strong>family (Required):</strong> Patient's family name (last name) (String).<ul>\n<li><strong>Example:</strong> <code>\"family\": \"Testpatient\"</code></li>\n</ul>\n</li>\n<li><strong>dateOfBirth (Required):</strong> Patient's date of birth in YYYYMMDD format (String).<ul>\n<li><strong>Example:</strong> <code>\"dateOfBirth\": \"20010822\"</code></li>\n</ul>\n</li>\n<li><strong>gender (Required):</strong> Patient's gender code (e.g., \"M\" for Male, \"F\" for Female, or other relevant code) (String).<ul>\n<li><strong>Example:</strong> <code>\"gender\": \"M\"</code></li>\n</ul>\n</li>\n</ul>\n</li>\n<li>_Optional Additional Fields:*_Your system can accommodate more comprehensive searches by accepting additional demographic details in the request:</li>\n<li><strong>streetAddressLine1:</strong> Patient's address - Street address line 1 (String).<ul>\n<li><strong>Example:</strong> <code>\"streetAddressLine1\": \"12345 Main St\"</code></li>\n</ul>\n</li>\n<li><strong>streetAddressLine2:</strong> Patient's address - Street address line 2 (String).<ul>\n<li><strong>Example:</strong> <code>\"streetAddressLine2\": \"suite 312\"</code></li>\n</ul>\n</li>\n<li><strong>city:</strong> Patient's address - City (String).<ul>\n<li><strong>Example:</strong> <code>\"city\": \"SomeWheresVille\"</code></li>\n</ul>\n</li>\n<li><strong>state:</strong> Patient's address - State (String).<ul>\n<li><strong>Example:</strong> <code>\"state\": \"Florida\"</code></li>\n</ul>\n</li>\n<li><strong>zip:</strong> Patient's address - Zip code (String).<ul>\n<li><strong>Example:</strong> <code>\"zip\": \"22211-123\"</code></li>\n</ul>\n</li>\n<li><strong>raceCode:</strong> Race code (e.g., SNOMED-CT code) (String).<ul>\n<li><strong>Example:</strong> <code>\"raceCode\": \"Other Race\"</code></li>\n</ul>\n</li>\n<li><strong>ethnicGroupCode:</strong> Ethnicity code (e.g., ISO 639-1 code) (String).<ul>\n<li><strong>Example:</strong> <code>\"ethnicGroupCode\": \"2186-2\"</code></li>\n</ul>\n</li>\n<li><strong>localId:</strong> Patient's local ID within your healthcare facility (e.g., Medical Record Number - MRN) (String).<ul>\n<li><strong>Example:</strong> <code>\"localId\": \"MRN0001234\"</code></li>\n</ul>\n</li>\n<li><strong>assigningAuthority:</strong> Assigning authority for the local ID (relevant OID) (String).<ul>\n<li><strong>Example:</strong> <code>\"assigningAuthority\": \"1.2.3.4.5.6\"</code></li>\n</ul>\n</li>\n<li><strong>providerOrganizationOid:</strong> OID of the patient's provider organization (String) (Optional).<ul>\n<li><strong>Example:</strong> <code>\"providerOrganizationOid\": \"1.2.3.4.5.6\"</code></li>\n</ul>\n</li>\n<li><strong>providerOrganizationName:</strong> Name of the patient's provider organization (String) (Optional).<ul>\n<li><strong>Example:</strong> <code>\"providerOrganizationName\": \"Good Health Clinic\"</code></li>\n</ul>\n</li>\n<li><strong>custodianOid:</strong> OID of the custodian organization (String) (Optional).<ul>\n<li><strong>Example:</strong> <code>\"custodianOid\": \"1.2.3.4.5.6\"</code></li>\n</ul>\n</li>\n<li><strong>custodianName:</strong> Name of the custodian organization (String) (Optional).<ul>\n<li><strong>Example:</strong> <code>\"custodianName\": \"Good Health Regional\"</code></li>\n</ul>\n</li>\n<li><strong>homeCommunityId:</strong> Home community ID (relevant OID) (String) (Optional).<ul>\n<li><strong>Example:</strong> <code>\"homeCommunityId\": \"urn:oid:4.5.6.7.8.9\"</code></li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>saml (Optional):</strong><ul>\n<li><strong>Data Type:</strong> JSON Object</li>\n<li><strong>Description:</strong> This optional section allows the initiating system to provide a Secure Assertion Markup Language (SAML) assertion containing information about the user requesting the document search. This information can be used by RosettaHealth for their own auditing and/or security considerations. The format of the SAML assertion is entirely at the discretion of the initiating system and is not defined by this specification.</li>\n</ul>\n</li>\n</ol>\n<p><strong>Response Structure:</strong></p>\n<p>Upon successful search completion, your system should respond with a JSON message containing an array of patients that match the demographic search critera provided. The response message must include all the following details for each matching patient:</p>\n<ul>\n<li><strong>Fields:</strong><ul>\n<li><strong>given (Required):</strong> Patient's given name (first name) (String).<ul>\n<li><strong>Example:</strong> <code>\"given\": \"John\"</code></li>\n</ul>\n</li>\n<li><strong>family (Required):</strong> Patient's family name (last name) (String).<ul>\n<li><strong>Example:</strong> <code>\"family\": \"Testpatient\"</code></li>\n</ul>\n</li>\n<li><strong>dateOfBirth (Required):</strong> Patient's date of birth in YYYYMMDD format (String).<ul>\n<li><strong>Example:</strong> <code>\"dateOfBirth\": \"20010822\"</code></li>\n</ul>\n</li>\n<li><strong>gender (Required):</strong> Patient's gender code (e.g., \"M\" for Male, \"F\" for Female, or other relevant code) (String).<ul>\n<li><strong>Example:</strong> <code>\"gender\": \"M\"</code></li>\n</ul>\n</li>\n<li><strong>streetAddressLine1:</strong> Patient's address - Street address line 1 (String).<ul>\n<li><strong>Example:</strong> <code>\"streetAddressLine1\": \"12345 Main St\"</code></li>\n</ul>\n</li>\n<li><strong>streetAddressLine2:</strong> Patient's address - Street address line 2 (String).<ul>\n<li><strong>Example:</strong> <code>\"streetAddressLine2\": \"suite 312\"</code></li>\n</ul>\n</li>\n<li><strong>city:</strong> Patient's address - City (String).<ul>\n<li><strong>Example:</strong> <code>\"city\": \"SomeWheresVille\"</code></li>\n</ul>\n</li>\n<li><strong>state:</strong> Patient's address - State (String).<ul>\n<li><strong>Example:</strong> <code>\"state\": \"Florida\"</code></li>\n</ul>\n</li>\n<li><strong>zip:</strong> Patient's address - Zip code (String).<ul>\n<li><strong>Example:</strong> <code>\"zip\": \"22211-123\"</code></li>\n</ul>\n</li>\n<li><strong>localId:</strong> Patient's local ID within your healthcare facility (e.g., Medical Record Number - MRN) (String).<ul>\n<li><strong>Example:</strong> <code>\"localId\": \"MRN0001234\"</code></li>\n</ul>\n</li>\n<li><strong>assigningAuthority:</strong> Assigning authority for the local ID (relevant OID) (String).<ul>\n<li><strong>Example:</strong> <code>\"assigningAuthority\": \"1.2.3.4.5.6\"</code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Error Handling:</strong></p>\n<p>Your system should implement appropriate error handling mechanisms to address invalid requests or unsuccessful searches. Error responses should follow standard JSON conventions and include a clear error code and human-readable error message.</p>\n<p><strong>Security Considerations:</strong></p>\n<ul>\n<li>Implement robust security measures to protect sensitive patient health information.</li>\n<li>Follow industry standards for data encryption and access control.</li>\n<li>Clearly define authorization requirements for accessing the API, including support for SAML if applicable.</li>\n</ul>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","name":"FHIR","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"856ccb36-885e-42e3-ad03-4b1e4eeb3f45","name":"array of patientInfo objects is returned, one for each matching patient. Note a blank JSON array [] indicates no match was found based on the provided demographic","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"requestedOrgOid\": \"urn:oid:1.23.45.678.1\",\n  \"patientInfo\": {\n    \"dateOfBirth\": \"20010822\",\n    \"family\": \"Testpatient\",\n    \"gender\": \"M\",\n    \"given\": \"John\",\n    \"streetAddressLine1\": \"12345 Main St\",\n    \"streetAddressLine2\": \"suite 312\",\n    \"city\": \"SomeWheresVille\",\n    \"state\": \"Florida\",\n    \"zip\": \"22211-123\",\n    \"raceCode\": \"Other Race\",\n    \"ethnicGroupCode\": \"2186-2\",\n    \"localId\": \"MRN0001234\",\n    \"assigningAuthority\": \"1.2.3.4.5.6\",\n    \"providerOrganizationOid\": \"1.2.3.4.5.6\",\n    \"providerOrganizationName\": \"Good Health Clinic\",\n    \"custodianOid\": \"1.2.3.4.5.6\",\n    \"custodianName\": \"Good Health Regional\",\n    \"homeCommunityId\": \"urn:oid:4.5.6.7.8.9\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  },\n  \"additionalInfo\": {\n    \"key1\": \"info1\",\n    \"key2\": \"info2\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/pdqueryForPatientInfo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"dateOfBirth\": \"20010822\",\n    \"family\": \"Testpatient\",\n    \"gender\": \"M\",\n    \"given\": \"John\",\n    \"streetAddressLine1\": \"12345 Main St\",\n    \"streetAddressLine2\": \"suite 312\",\n    \"city\": \"SomeWheresVille\",\n    \"state\": \"Florida\",\n    \"zip\": \"22211-123\",\n    \"raceCode\": \"Other Race\",\n    \"ethnicGroupCode\": \"2186-2\",\n    \"localId\": \"MRN0001234\",\n    \"assigningAuthority\": \"1.2.3.4.5.6\",\n    \"providerOrganizationOid\": \"1.2.3.4.5.6\",\n    \"providerOrganizationName\": \"Good Health Clinic\",\n    \"custodianOid\": \"1.2.3.4.5.6\",\n    \"custodianName\": \"Good Health Regional\",\n    \"homeCommunityId\": \"urn:oid:4.5.6.7.8.9\"\n  }\n]"}],"_postman_id":"cae6e20a-bf2e-4cbc-aecf-f2925c63fac2"},{"name":"Query For Documents","id":"1fb475f6-44e4-40e0-8004-b799f4fd32fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"XDSDocumentEntryPatientId\": \"ST-1000^^^&1.3.6.1.4.1.21367.2003.3.9&ISO\",\n  \"slots\": {\n    \"$XDSDocumentEntryStatus\": \"('urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Approved')\",\n    \"$XDSDocumentEntryHealthcareFacilityTypeCode\": \"(‘Emergency Department’)\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","description":"<h2 id=\"rosettahealth-clinical-repository---query-documents-api-integration-guide\">RosettaHealth Clinical Repository - Query Documents API (Integration Guide)</h2>\n<p>This document serves as an integration guide for your system to expose a programmatic interface enabling RosettaHealth to search for documents associated with patients within your system. The communication between RosettaHealth and your system utilizes JSON for both request and response messages.</p>\n<p><strong>Target Audience:</strong></p>\n<p>Software developers and architects responsible for developing APIs for integrating with external healthcare data repositories like RosettaHealth.</p>\n<p><strong>Benefits of Integration:</strong></p>\n<p>By implementing this API, you allow RosettaHealth to seamlessly retrieve document metadata associated with patients within your system. This streamlined data exchange fosters improved patient care coordination and information sharing across healthcare providers.</p>\n<p><strong>API Overview:</strong></p>\n<p>The <code>Query Documents</code> API enables RosettaHealth to submit search criteria and retrieve information about relevant documents in your system. It's important to note that this API provides document metadata, not the actual document content.</p>\n<p><strong>Request Structure:</strong></p>\n<p>Your system should expect RosettaHealth to send a JSON request message typically containing the following sections:</p>\n<ol>\n<li><strong>XDSDocumentEntryPatientId (Required):</strong><ul>\n<li><strong>Data Type:</strong> String</li>\n<li><strong>Description:</strong> This mandatory field specifies the unique identifier for the patient within your system, along with the relevant assigning authority OID. The format follows <code>ST-1000^^^&amp;&amp;ISO</code>.</li>\n<li><strong>Implementation Notes:</strong><ul>\n<li>Your system should be able to parse and interpret the patient identifier following the specified format.</li>\n<li>The assigning authority OID is essential to ensure unambiguous interpretation of the patient ID within the healthcare ecosystem.</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>slots (Optional):</strong><ul>\n<li><strong>Data Type:</strong> JSON Object</li>\n<li><strong>Description:</strong> This optional section provides a mechanism for RosettaHealth to refine their document search using additional criteria. It utilizes a key-value structure where the key represents an element defined by the Extensible Markup Language for Document Sharing (XDS) and the value specifies the search constraint.</li>\n<li><strong>Implementation Notes:</strong><ul>\n<li>You should define and document the specific XDS elements your system supports for filtering searches.</li>\n<li>Examples of potential search criteria using slots include document status (e.g., \"Approved\"),department (\"Cardiology\"), or document type (\"discharge summary\").</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>saml (Optional):</strong><ul>\n<li><strong>Data Type:</strong> JSON Object</li>\n<li><strong>Description:</strong> This optional section allows the initiating system to provide a Secure Assertion Markup Language (SAML) assertion containing information about the user requesting the document search. This information can be used by RosettaHealth for their own auditing and/or security considerations. The format of the SAML assertion is entirely at the discretion of the initiating system and is not defined by this specification.</li>\n</ul>\n</li>\n</ol>\n<p><strong>Response Structure:</strong></p>\n<p>Upon successful search completion, your system should respond with a JSON message containing information about documents matching the provided criteria. The response message must include all the following details for each matching document:</p>\n<ul>\n<li><strong>documentId:</strong> Unique identifier for the document within your system's repository.</li>\n<li><strong>repositoryId:</strong> Identifier for the specific document repository where the document is stored within your system.</li>\n<li><strong>homeCommunityId:</strong> Community identifier relevant for IHE transactions (may be used for routing purposes within the healthcare ecosystem).</li>\n<li><strong>sourcePatientId:</strong> Patient ID associated with the document, matching the format used in the request to confirm relevance.</li>\n<li><strong>documentName:</strong> Human-readable name of the document.</li>\n<li><strong>creationTime:</strong> Timestamp of when the document was created in your system.</li>\n<li><strong>size:</strong> Size of the document file in bytes.</li>\n<li><strong>mimeType:</strong> Document type (e.g., text/json, application/pdf).</li>\n<li><strong>typeCode</strong> (Required): The type code of the document according to the IHE transactions semantics.</li>\n<li><strong>authorInstitution</strong> (Required): The institution or organization that created the document.</li>\n</ul>\n<p><strong>Error Handling:</strong></p>\n<p>Your system should implement appropriate error handling mechanisms to address invalid requests or unsuccessful searches. Error responses should follow standard JSON conventions and include a clear error code and human-readable error message.</p>\n<p><strong>Security Considerations:</strong></p>\n<ul>\n<li>Implement robust security measures to protect sensitive patient health information.</li>\n<li>Follow industry standards for data encryption and access control.</li>\n<li>Clearly define authorization requirements for accessing the API, including support for SAML if applicable.</li>\n</ul>\n<p><strong>Next Steps:</strong></p>\n<ul>\n<li>Define and document the XDS elements your system supports for search criteria within the <code>slots</code> section.</li>\n<li>Implement robust error handling mechanisms for invalid requests or unsuccessful searches.</li>\n<li>Ensure your API adheres to industry security standards for protecting patient health information.</li>\n</ul>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","name":"FHIR","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"16b031ae-292f-4a20-ac45-0bbbe609049c","name":"array of documentInfo objects","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"XDSDocumentEntryPatientId\": \"ST-1000^^^&1.3.6.1.4.1.21367.2003.3.9&ISO\",\n  \"requestedOrgOid\": \"urn:oid:1.23.45.678.1\",\n  \"slots\": {\n    \"$XDSDocumentEntryStatus\": \"('urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Approved')\",\n    \"$XDSDocumentEntryHealthcareFacilityTypeCode\": \"(‘Emergency Department’)\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  },\n  \"additionalInfo\": {\n    \"key1\": \"info1\",\n    \"key2\": \"info2\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/queryForDocuments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"documentId\": \"1.2.aa.bb.12345\",\n  \"repositoryId\": \"wwqq3344\",\n  \"homeCommunityId\": \"1.2.3.4.5.6\",\n  \"sourcePatientId\": \"st3498702^^^&amp;1.3.6.1.4.1.21367.2005.3.7&amp;ISO\",\n  \"documentName\": \"Sample Document\",\n  \"creationTime\": 200412261119,\n  \"size\": 144,\n  \"mimeType\": \"text/json\",\n  \"typeCode\" : \"Summarization of Episode Note - Single Doc Response\",\n  \"authorInstitution\" :\"Happy Valley Clinic\"\n}"}],"_postman_id":"1fb475f6-44e4-40e0-8004-b799f4fd32fc"},{"name":"Retrieve Documents","id":"2fe08922-edb5-42a6-9b4e-1aadcc202804","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n  \"document\": {\n    \"documentId\": \"1.2.aa.bb.12345\",\n    \"repositoryId\": \"wwqq3344\",\n    \"homeCommunityId\": \"1.2.3.4.5.6\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","description":"<h2 id=\"rosettahealth-clinical-repository---query-documents-api-integration-guide\">RosettaHealth Clinical Repository - Query Documents API (Integration Guide)</h2>\n<p>This document serves as an integration guide for your system to expose a programmatic interface enabling RosettaHealth to search for documents associated with patients within your system. The communication between RosettaHealth and your system utilizes JSON for both request and response messages.</p>\n<p><strong>Target Audience:</strong></p>\n<p>Software developers and architects responsible for developing APIs for integrating with external healthcare data repositories like RosettaHealth.</p>\n<p><strong>Benefits of Integration:</strong></p>\n<p>By implementing this API, you allow RosettaHealth to seamlessly retrieve document metadata associated with patients within your system. This streamlined data exchange fosters improved patient care coordination and information sharing across healthcare providers.</p>\n<p><strong>API Overview:</strong></p>\n<p>The <code>Query Documents</code> API enables RosettaHealth to submit search criteria and retrieve information about relevant documents in your system. It's important to note that this API provides document metadata, not the actual document content.</p>\n<p><strong>Request Structure:</strong></p>\n<p>Your system should expect RosettaHealth to send a JSON request message typically containing the following sections:</p>\n<ol>\n<li><p><strong>XDSDocumentEntryPatientId (Required):</strong></p>\n<ul>\n<li><p><strong>Data Type:</strong> String</p>\n</li>\n<li><p><strong>Description:</strong> This mandatory field specifies the unique identifier for the patient within your system, along with the relevant assigning authority OID. The format follows <code>ST-1000^^^&amp;&amp;ISO</code>.</p>\n</li>\n<li><p><strong>Implementation Notes:</strong></p>\n<ul>\n<li><p>Your system should be able to parse and interpret the patient identifier following the specified format.</p>\n</li>\n<li><p>The assigning authority OID is essential to ensure unambiguous interpretation of the patient ID within the healthcare ecosystem.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>slots (Optional):</strong></p>\n<ul>\n<li><p><strong>Data Type:</strong> Object</p>\n</li>\n<li><p><strong>Description:</strong> This optional section provides a mechanism for RosettaHealth to refine their document search using additional criteria. It utilizes a key-value structure where the key represents an element defined by the Extensible Markup Language for Document Sharing (XDS) and the value specifies the search constraint.</p>\n</li>\n<li><p><strong>Implementation Notes:</strong></p>\n<ul>\n<li><p>You should define and document the specific XDS elements your system supports for filtering searches.</p>\n</li>\n<li><p>Examples of potential search criteria using slots include document status (e.g., \"Approved\"),department (\"Cardiology\"), or document type (\"discharge summary\").</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p><strong>saml (Optional):</strong></p>\n<ul>\n<li><p><strong>Data Type:</strong> Object (<strong>Not Base64 Encoded</strong>)</p>\n</li>\n<li><p><strong>Description:</strong> This optional section allows the initiating system to provide a Secure Assertion Markup Language (SAML) assertion containing information about the user requesting the document search. This information can be used for auditing and/or security considerations. The format of the SAML assertion is entirely at the discretion of the initiating system and is not defined by this specification.</p>\n</li>\n</ul>\n</li>\n</ol>\n<p><strong>Response Structure:</strong></p>\n<p>Upon successful search completion, your system should respond with a JSON message containing information about documents matching the provided criteria. The response message must include all the following details for each matching document:</p>\n<ul>\n<li><p><strong>documentId:</strong> Unique identifier for the document within your system's repository.</p>\n</li>\n<li><p><strong>repositoryId:</strong> Identifier for the specific document repository where the document is stored within your system.</p>\n</li>\n<li><p><strong>homeCommunityId:</strong> Community identifier relevant for IHE transactions (may be used for routing purposes within the healthcare ecosystem).</p>\n</li>\n<li><p><strong>sourcePatientId:</strong> Patient ID associated with the document, matching the format used in the request to confirm relevance.</p>\n</li>\n<li><p><strong>documentName:</strong> Human-readable name of the document.</p>\n</li>\n<li><p><strong>creationTime:</strong> Timestamp of when the document was created in your system.</p>\n</li>\n<li><p><strong>size:</strong> Size of the document file in bytes.</p>\n</li>\n<li><p><strong>mimeType:</strong> Document type (e.g., text/json, application/pdf).</p>\n</li>\n<li><p><strong>typeCode</strong> (Required): The type code of the document according to the IHE transactions semantics.</p>\n</li>\n<li><p><strong>authorInstitution</strong> (Required): The institution or organization that created the document.</p>\n</li>\n</ul>\n<p><strong>Error Handling:</strong></p>\n<p>Your system should implement appropriate error handling mechanisms to address invalid requests or unsuccessful searches. Error responses should follow standard JSON conventions and include a clear error code and human-readable error message.</p>\n<p><strong>Security Considerations:</strong></p>\n<ul>\n<li><p>Implement robust security measures to protect sensitive patient health information.</p>\n</li>\n<li><p>Follow industry standards for data encryption and access control.</p>\n</li>\n<li><p>Clearly define authorization requirements for accessing the API, including support for SAML if applicable.</p>\n</li>\n</ul>\n<p><strong>Next Steps:</strong></p>\n<ul>\n<li><p>Define and document the XDS elements your system supports for search criteria within the <code>slots</code> section.</p>\n</li>\n<li><p>Implement robust error handling mechanisms for invalid requests or unsuccessful searches.</p>\n</li>\n<li><p>Ensure your API adheres to industry security standards for protecting patient health information.</p>\n</li>\n</ul>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","name":"FHIR","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"95b2140a-936b-4cd2-9f7c-08889edd0481","name":"retrieve submission successful.","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"document\": {\n    \"documentId\": \"1.2.aa.bb.12345\",\n    \"repositoryId\": \"wwqq3344\",\n    \"homeCommunityId\": \"1.2.3.4.5.6\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  },\n  \"additionalInfo\": {\n    \"key1\": \"info1\",\n    \"key2\": \"info2\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/retrieveSingleDocument"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"binary data"}],"_postman_id":"2fe08922-edb5-42a6-9b4e-1aadcc202804"}],"id":"0d8bba78-ef5b-413e-af07-8fb588b54626","description":"<h2 id=\"rosettahealth-clinical-repository-search-api-specification\">RosettaHealth Clinical Repository Search API Specification</h2>\n<p>This document outlines the RosettaHealth Clinical Repository Search API specification, designed to enable you (the customer) to build your own solution for integrating with RosettaHealth's Patient Demographic Search, Query for Documents, and Retrieve Documents functionalities. By following these guidelines and implementing this API within your solution, you empower RosettaHealth to seamlessly connect with your system and leverage its capabilities for:</p>\n<ul>\n<li><p><strong>Patient Demographic Search:</strong> Allow RosettaHealth to search for patients within your system based on specific criteria you define.</p>\n</li>\n<li><p><strong>Query for Documents:</strong> Facilitate RosettaHealth's ability to identify relevant documents (e.g., clinical records, reports) associated with a particular patient within your system.</p>\n</li>\n<li><p><strong>Retrieve Documents:</strong> Enable RosettaHealth to download the content of identified documents from your system for further processing or integration within their platform.</p>\n</li>\n</ul>\n<p>This API specification serves as a blueprint for developing your solution, ensuring consistent and standardized communication between your system and RosettaHealth.</p>\n<p><strong>Benefits of Utilizing This API Specification:</strong></p>\n<ul>\n<li><p><strong>Effortless Integration:</strong> By adhering to this specification, you simplify the process for RosettaHealth to integrate with your system, fostering a smooth and efficient connection.</p>\n</li>\n<li><p><strong>Streamlined Development:</strong> Leverage the defined functionalities within this API to potentially reduce development time for your solution.</p>\n</li>\n<li><p><strong>Enhanced Interoperability:</strong> This approach promotes interoperability between your system and RosettaHealth, paving the way for potential future integrations with other healthcare systems that may also utilize RosettaHealth services.</p>\n</li>\n</ul>\n<p><strong>Next Steps:</strong></p>\n<ol>\n<li><p><strong>Explore the API Details:</strong> This document dives deeper into the technical specifications of the Clinical Repository Search API, including supported functionalities, data formats (request and response), and authentication mechanisms.</p>\n</li>\n<li><p><strong>Implement the API in Your Solution:</strong> Based on the provided information, integrate this API within your system to enable RosettaHealth to interact with your Patient Demographic Search, Query for Documents, and Retrieve Documents functionalities.</p>\n</li>\n<li><p><strong>RosettaHealth Integration:</strong> Once your solution is operational, RosettaHealth can leverage this API to seamlessly connect and exchange data with your system.</p>\n</li>\n</ol>\n<p>By following these steps and adhering to the outlined API specifications, you can establish a robust and standardized integration between your solution and RosettaHealth, empowering both parties to leverage the combined functionalities.</p>\n","_postman_id":"0d8bba78-ef5b-413e-af07-8fb588b54626","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","name":"FHIR","type":"folder"}}}],"id":"da75f68c-76ef-498c-b33b-569b82ca49e7","description":"<h2 id=\"rosettahealth-get-patient-records-api-guide\">RosettaHealth Get Patient Records API Guide</h2>\n<p>This guide provides a comprehensive overview of the RosettaHealth Get Patient Records functionality and its underlying APIs. It empowers you to integrate your system with national healthcare networks, enabling seamless exchange of patient clinical data.</p>\n<p>The Get Patient Records feature facilitates bidirectional communication between two key players in the healthcare data exchange landscape:</p>\n<ul>\n<li><p><strong>RosettaHealth Customers:</strong> Healthcare organizations or systems that leverage RosettaHealth to participate in national healthcare networks.</p>\n</li>\n<li><p><strong>National Network Participants:</strong> Institutions or systems participating in national healthcare networks like Carequality.</p>\n</li>\n</ul>\n<p>This guide explores the two essential APIs that orchestrate this data flow:</p>\n<ul>\n<li><p><strong>National Network Query Initiator API:</strong> This API empowers RosettaHealth customers to initiate queries across national healthcare networks, targeting specific institutions to retrieve relevant patient clinical information.</p>\n</li>\n<li><p><strong>National Network Query Responder API:</strong> This API allows RosettaHealth <strong>customers</strong> to implement a response mechanism within their systems. This enables them to respond to patient record queries initiated by national network participants seeking patient information. Implementing this responder functionality is a requirement for RosettaHealth customers to participate in these networks as a data source.</p>\n</li>\n</ul>\n<p>By integrating with both initiator and responder functionalities, RosettaHealth customers can become active participants within national healthcare networks. This unlocks the full potential of the Get Patient Records feature, enabling efficient retrieval and exchange of critical patient data across the healthcare landscape.</p>\n<p>The subsequent sections delve into the technical specifications of these APIs, providing a clear roadmap for successful integration and participation within the national healthcare network infrastructure.</p>\n","event":[{"listen":"prerequest","script":{"id":"515245bb-858b-4955-97b3-abc2c34e7833","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e003ab51-654a-41f6-bd48-496528a81e6c","type":"text/javascript","exec":[""]}}],"_postman_id":"da75f68c-76ef-498c-b33b-569b82ca49e7","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","name":"FHIR","type":"folder"}}}],"id":"0c928d6f-682d-488e-adf2-b115f5bc19d2","description":"<p>The RosettaHealth Platform provides a robust FHIR API that adheres to the HL7 FHIR v5 specification. This RESTful API empowers developers to programmatically access and manage patient health data within their applications.</p>\n<p>Here's a breakdown of the FHIR API's core functionalities:</p>\n<ul>\n<li><p><strong>HL7 FHIR v5 Compliance:</strong> Leverage the industry-standard HL7 FHIR v5 model for consistent data representation and exchange.</p>\n</li>\n<li><p><strong>RESTful Interface:</strong> Seamlessly integrate with your applications using the widely adopted RESTful architecture style.</p>\n</li>\n<li><p><strong>Programmatic Data Access:</strong> Gain programmatic control over patient health data retrieval, manipulation, and updates (subject to authorization).</p>\n</li>\n</ul>\n<p>The following sections delve deeper into the technical specifics of the FHIR API, including authentication mechanisms, supported resources, and common use cases.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"98a9aa3a-9d78-446a-aac4-bc42682fa9c2","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"fe6f0cb8-5f0a-4c78-84a1-541908a58e91","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"0c928d6f-682d-488e-adf2-b115f5bc19d2"},{"name":"Clinical Repository Search","item":[{"name":"Patient Demographic Search","item":[{"name":"Query For Patient Information","id":"46bee2a7-9731-413b-a0f6-00c6a176ab21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"requestedOrgOid\": \"urn:oid:1.23.45.678.1\",\n  \"patientInfo\": {\n    \"dateOfBirth\": \"20010822\",\n    \"family\": \"Testpatient\",\n    \"gender\": \"M\",\n    \"given\": \"John\",\n    \"streetAddressLine1\": \"12345 Main St\",\n    \"streetAddressLine2\": \"suite 312\",\n    \"city\": \"SomeWheresVille\",\n    \"state\": \"Florida\",\n    \"zip\": \"22211-123\",\n    \"raceCode\": \"Other Race\",\n    \"ethnicGroupCode\": \"2186-2\",\n    \"localId\": \"MRN0001234\",\n    \"assigningAuthority\": \"1.2.3.4.5.6\",\n    \"providerOrganizationOid\": \"1.2.3.4.5.6\",\n    \"providerOrganizationName\": \"Good Health Clinic\",\n    \"custodianOid\": \"1.2.3.4.5.6\",\n    \"custodianName\": \"Good Health Regional\",\n    \"homeCommunityId\": \"urn:oid:4.5.6.7.8.9\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  },\n  \"additionalInfo\": {\n    \"key1\": \"info1\",\n    \"key2\": \"info2\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","description":"<h2 id=\"request\"><strong>Request:</strong></h2>\n<p>The request uses JSON format and typically includes the following sections:</p>\n<ul>\n<li><strong>requestedOrgId (Optional):</strong><ul>\n<li>This field specifies the unique identifier (often an Organization Identifier - OID) for the healthcare facility where you want to search for the patient.</li>\n<li>Including this element helps target the search to a specific institution.</li>\n</ul>\n</li>\n<li><strong>patientInfo (Required):</strong><ul>\n<li>This section contains demographic information about the patient you're trying to locate. It acts as the search criteria. At a minimum, you must provide:<ul>\n<li><code>given</code>: Patient's given name (first name)</li>\n<li><code>family</code>: Patient's family name (last name)</li>\n<li><code>dateOfBirth</code>: Patient's date of birth in YYYYMMDD format</li>\n<li><code>gender</code>: Patient's gender (\"M\" for Male, \"F\" for Female, or other relevant code)</li>\n</ul>\n</li>\n<li>You can optionally include additional demographic details to improve search accuracy:<ul>\n<li><code>streetAddressLine1</code>: Patient's address - Street address line 1</li>\n<li><code>streetAddressLine2</code>: Patient's address - Street address line 2 (optional)</li>\n<li><code>city</code>: Patient's address - City</li>\n<li><code>state</code>: Patient's address - State</li>\n<li><code>zip</code>: Patient's address - Zip code</li>\n<li><code>raceCode</code>: Race code (e.g., SNOMED-CT code)</li>\n<li><code>ethnicGroupCode</code>: Ethnicity code (e.g., ISO 639-1 code)</li>\n<li><code>localId</code>: Patient's local ID within the healthcare facility (e.g., Medical Record Number - MRN)</li>\n<li><code>assigningAuthority</code>: Assigning authority for the local ID (relevant OID)</li>\n<li><code>providerOrganizationOid</code>: OID of the patient's provider organization (optional)</li>\n<li><code>providerOrganizationName</code>: Name of the patient's provider organization (optional)</li>\n<li><code>custodianOid</code>: OID of the custodian organization (e.g., the healthcare facility) (optional)</li>\n<li><code>custodianName</code>: Name of the custodian organization (e.g., the healthcare facility) (optional)</li>\n<li><code>homeCommunityId</code>: Home community ID (relevant OID) (optional)</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><strong>saml (Optional):</strong><ul>\n<li>This section contains security information in a Secure Assertion Markup Language (SAML) assertion format.</li>\n<li>It's optional, but some healthcare facilities might require it for authorization purposes.</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>The response to the Patient Demographic Search API indicates whether a matching patient was found based on the provided search criteria. Here's a breakdown of the structure and content:</p>\n<p><strong>Structure:</strong></p>\n<p>The response typically uses JSON format and may include the following sections:</p>\n<ul>\n<li><strong>Success Case:</strong><ul>\n<li>If a matching patient is identified within the specified healthcare facility (or without <code>requestedOrgId</code> if not specified), the response will include the patient's demographic information. This information matches the structure of the <code>patientInfo</code> section in the request.</li>\n</ul>\n</li>\n<li><strong>Error Case (Optional):</strong><ul>\n<li>If no matching patient is found or there's an error during the search, the response may include an error code and additional details explaining the issue. The specific format and content of error messages might vary depending on the implementation.</li>\n</ul>\n</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"38647af4-da1d-41f6-91ba-f07f70a37e16","id":"38647af4-da1d-41f6-91ba-f07f70a37e16","name":"Clinical Repository Search","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"0dbc38eb-a261-4584-973a-d21c1ddc1823","name":"array of patientInfo objects is returned, one for each matching patient. Note a blank JSON array [] indicates no match was found based on the provided demographic","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"requestedOrgOid\": \"urn:oid:1.23.45.678.1\",\n  \"patientInfo\": {\n    \"dateOfBirth\": \"20010822\",\n    \"family\": \"Testpatient\",\n    \"gender\": \"M\",\n    \"given\": \"John\",\n    \"streetAddressLine1\": \"12345 Main St\",\n    \"streetAddressLine2\": \"suite 312\",\n    \"city\": \"SomeWheresVille\",\n    \"state\": \"Florida\",\n    \"zip\": \"22211-123\",\n    \"raceCode\": \"Other Race\",\n    \"ethnicGroupCode\": \"2186-2\",\n    \"localId\": \"MRN0001234\",\n    \"assigningAuthority\": \"1.2.3.4.5.6\",\n    \"providerOrganizationOid\": \"1.2.3.4.5.6\",\n    \"providerOrganizationName\": \"Good Health Clinic\",\n    \"custodianOid\": \"1.2.3.4.5.6\",\n    \"custodianName\": \"Good Health Regional\",\n    \"homeCommunityId\": \"urn:oid:4.5.6.7.8.9\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  },\n  \"additionalInfo\": {\n    \"key1\": \"info1\",\n    \"key2\": \"info2\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/pdqueryForPatientInfo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"dateOfBirth\": \"20010822\",\n    \"family\": \"Testpatient\",\n    \"gender\": \"M\",\n    \"given\": \"John\",\n    \"streetAddressLine1\": \"12345 Main St\",\n    \"streetAddressLine2\": \"suite 312\",\n    \"city\": \"SomeWheresVille\",\n    \"state\": \"Florida\",\n    \"zip\": \"22211-123\",\n    \"raceCode\": \"Other Race\",\n    \"ethnicGroupCode\": \"2186-2\",\n    \"localId\": \"MRN0001234\",\n    \"assigningAuthority\": \"1.2.3.4.5.6\",\n    \"providerOrganizationOid\": \"1.2.3.4.5.6\",\n    \"providerOrganizationName\": \"Good Health Clinic\",\n    \"custodianOid\": \"1.2.3.4.5.6\",\n    \"custodianName\": \"Good Health Regional\",\n    \"homeCommunityId\": \"urn:oid:4.5.6.7.8.9\"\n  }\n]"}],"_postman_id":"46bee2a7-9731-413b-a0f6-00c6a176ab21"}],"id":"cede5e3d-4e17-427c-9471-846319c7ddcf","description":"<p>This API enables you to search for a patient across various healthcare organizations you regularly interact with. It leverages demographic data and other identifiers to identify potential matching patients within a specific healthcare facility.</p>\n","_postman_id":"cede5e3d-4e17-427c-9471-846319c7ddcf","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"38647af4-da1d-41f6-91ba-f07f70a37e16","id":"38647af4-da1d-41f6-91ba-f07f70a37e16","name":"Clinical Repository Search","type":"folder"}}},{"name":"Query For Documents","item":[{"name":"query for documents for a specific patient","id":"e27f6e10-dd24-4d21-939c-be86f71bf015","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"XDSDocumentEntryPatientId\": \"ST-1000^^^&1.3.6.1.4.1.21367.2003.3.9&ISO\",\n  \"requestedOrgOid\": \"urn:oid:1.23.45.678.1\",\n  \"slots\": {\n    \"$XDSDocumentEntryStatus\": \"('urn:oasis:names:tc:ebxml-regrep:StatusType:Approved')\",\n    \"$XDSDocumentEntryHealthcareFacilityTypeCode\": \"('Emergency Department')\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  },\n  \"additionalInfo\": {\n    \"key1\": \"info1\",\n    \"key2\": \"info2\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","description":"<h2 id=\"request-\"><strong>Request :</strong></h2>\n<p>The request uses JSON format and typically includes the following sections:</p>\n<ul>\n<li><p><strong>XDSDocumentEntryPatientId (Required):</strong></p>\n<ul>\n<li>This field specifies the unique identifier for the patient within the healthcare facility's system (often their Medical Record Number - MRN) along with the relevant assigning authority OID. The format follows <code>ST-1000^^^&amp;&lt; assigningAuthority OID &gt;&amp;ISO</code>.</li>\n</ul>\n</li>\n<li><p><strong>requestedOrgId (Optional):</strong></p>\n<ul>\n<li>This element specifies the unique identifier (usually an OID) for the specific healthcare facility where you want to search for documents. Including this helps target the search to a particular institution.</li>\n</ul>\n</li>\n<li><p><strong>slots (Optional):</strong></p>\n<ul>\n<li>This section allows you to provide additional criteria to refine your document search. It uses a key-value structure where the key represents an XDS (Extensible Markup Language for Document Sharing) element and the value specifies the search criteria.</li>\n<li>Examples include searching for documents with a specific status (\"Approved\") or documents associated with a particular department (\"Emergency Department\").</li>\n</ul>\n</li>\n<li><p><strong>saml (Optional):</strong></p>\n<ul>\n<li>This section contains security information in a Secure Assertion Markup Language (SAML) assertion format.</li>\n<li>It's optional, but some healthcare facilities might require it for authorization purposes.</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>A successful response to the Query for Documents API provides information about documents that match your search criteria. It does not include the actual document content.</p>\n<p><strong>Response Structure:</strong></p>\n<p>The response typically uses JSON format and includes the following details for each matching document:</p>\n<ul>\n<li><p><strong>documentId:</strong> Unique identifier for the document within the healthcare facility's repository.</p>\n</li>\n<li><p><strong>repositoryId:</strong> Identifier for the specific document repository where the document is stored.</p>\n</li>\n<li><p><strong>homeCommunityId:</strong> Community identifier relevant for IHE transactions (may not be relevant to all users).</p>\n</li>\n<li><p><strong>sourcePatientId:</strong> Patient ID associated with the document, matching the format used in the request to confirm relevance.</p>\n</li>\n<li><p><strong>documentName:</strong> Human-readable name of the document.</p>\n</li>\n<li><p><strong>creationTime:</strong> Timestamp of when the document was created in the system.</p>\n</li>\n<li><p><strong>size:</strong> Size of the document file in bytes.</p>\n</li>\n<li><p><strong>mimeType:</strong> Document type (e.g., text/json, application/pdf).</p>\n</li>\n</ul>\n<p><strong>Key Points:</strong></p>\n<ul>\n<li><p>This API helps you discover relevant documents based on your search criteria.</p>\n</li>\n<li><p>The response provides metadata about the documents, not the actual content.</p>\n</li>\n<li><p>Use the <code>documentId</code> retrieved here in the Retrieve Document API to fetch the content of a specific document.</p>\n</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"38647af4-da1d-41f6-91ba-f07f70a37e16","id":"38647af4-da1d-41f6-91ba-f07f70a37e16","name":"Clinical Repository Search","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"d8a0d9a8-c797-4946-acd3-c941410b8ce8","name":"array of documentInfo objects","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"XDSDocumentEntryPatientId\": \"ST-1000^^^&1.3.6.1.4.1.21367.2003.3.9&ISO\",\n  \"requestedOrgOid\": \"urn:oid:1.23.45.678.1\",\n  \"slots\": {\n    \"$XDSDocumentEntryStatus\": \"('urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Approved')\",\n    \"$XDSDocumentEntryHealthcareFacilityTypeCode\": \"(‘Emergency Department’)\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  },\n  \"additionalInfo\": {\n    \"key1\": \"info1\",\n    \"key2\": \"info2\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/queryForDocuments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"documentId\": \"1.2.aa.bb.12345\",\n  \"repositoryId\": \"wwqq3344\",\n  \"homeCommunityId\": \"1.2.3.4.5.6\",\n  \"sourcePatientId\": \"st3498702^^^&amp;1.3.6.1.4.1.21367.2005.3.7&amp;ISO\",\n  \"documentName\": \"Sample Document\",\n  \"creationTime\": 200412261119,\n  \"size\": 144,\n  \"mimeType\": \"text/json\"\n}"}],"_postman_id":"e27f6e10-dd24-4d21-939c-be86f71bf015"}],"id":"d73c01c1-8acc-4e6e-8574-313c1d8463f6","description":"<p>This API allows you to search for clinical documents associated with a specific patient within a healthcare facility's data repository. It helps you refine your search based on various criteria and provides information to identify relevant documents for further retrieval.</p>\n","_postman_id":"d73c01c1-8acc-4e6e-8574-313c1d8463f6","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"38647af4-da1d-41f6-91ba-f07f70a37e16","id":"38647af4-da1d-41f6-91ba-f07f70a37e16","name":"Clinical Repository Search","type":"folder"}}},{"name":"Retrieve Document","item":[{"name":"retrieve document based on previous query results","id":"8cfad9d1-6616-4279-9bd3-a4c3be0f0c30","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"text/plain"}],"body":{"mode":"raw","raw":"{\n  \"document\": {\n    \"documentId\": \"1.2.aa.bb.12345\",\n    \"repositoryId\": \"wwqq3344\",\n    \"homeCommunityId\": \"1.2.3.4.5.6\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  },\n  \"additionalInfo\": {\n    \"key1\": \"info1\",\n    \"key2\": \"info2\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"","description":"<h2 id=\"request-\"><strong>Request :</strong></h2>\n<p>The request uses JSON format and typically includes the following sections:</p>\n<ul>\n<li><strong>document (Required):</strong> This section contains information to identify the document you want to retrieve.<ul>\n<li><strong>documentId:</strong> Unique identifier for the document within the healthcare facility's repository.</li>\n<li><strong>repositoryId:</strong> Identifier for the specific document repository where the document is stored.</li>\n</ul>\n</li>\n<li><strong>saml (Optional):</strong> Security information required by some facilities in a Secure Assertion Markup Language (SAML) assertion format.</li>\n</ul>\n<h2 id=\"response\"><strong>Response:</strong></h2>\n<p>The response to this API will be the actual document content in a byte array format. The format of the byte array will depend on the document type (e.g., PDF, DOC). You will likely need to interpret the byte array based on the document's MIME type, which you can potentially obtain from the response to the Query for Documents API.</p>\n<p><strong>Key Points:</strong></p>\n<ul>\n<li>This API retrieves the actual document content after you identify it using the Query for Documents API.</li>\n<li>Basic authentication is likely required (unless explicitly stated otherwise).</li>\n<li>The response is a byte array representing the document content. You'll need to handle the byte array based on the document's MIME type.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"38647af4-da1d-41f6-91ba-f07f70a37e16","id":"38647af4-da1d-41f6-91ba-f07f70a37e16","name":"Clinical Repository Search","type":"folder"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"980ac492-9371-419b-902c-9fc81b5e380a","name":"retrieve submission successful.","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"document\": {\n    \"documentId\": \"1.2.aa.bb.12345\",\n    \"repositoryId\": \"wwqq3344\",\n    \"homeCommunityId\": \"1.2.3.4.5.6\"\n  },\n  \"saml\": {\n    \"SubjectId\": \"Dr. Who\",\n    \"SubjectOrganization\": \"Happy Valley Clinic\",\n    \"SubjectOrganizationID\": \"2.16.840.1.113883.2.22\",\n    \"HomeCommunityID\": \"urn:oid:2.16.840.1.113883.2.22.2\",\n    \"SubjectLocalityDNS\": \"happyvalleyclinic.org\",\n    \"RoleCode\": \"224608005\",\n    \"RoleDisplayName\": \"Administrative healthcare staff\",\n    \"PurposeOfUseCode\": \"TREATMENT\",\n    \"PurposeOfUseDisplayName\": \"Treatment\"\n  },\n  \"additionalInfo\": {\n    \"key1\": \"info1\",\n    \"key2\": \"info2\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/retrieveSingleDocument"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"binary data"}],"_postman_id":"8cfad9d1-6616-4279-9bd3-a4c3be0f0c30"}],"id":"f821df18-d77e-4a9e-86ad-faece3d23f54","description":"<p>This API allows you to retrieve the content of a specific clinical document from a healthcare facility's document repository. It requires the document identifier and repository identifier obtained from a successful response to the Query for Documents API.</p>\n","_postman_id":"f821df18-d77e-4a9e-86ad-faece3d23f54","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"38647af4-da1d-41f6-91ba-f07f70a37e16","id":"38647af4-da1d-41f6-91ba-f07f70a37e16","name":"Clinical Repository Search","type":"folder"}}}],"id":"38647af4-da1d-41f6-91ba-f07f70a37e16","description":"<p>The Clinical Repository Search API facilitates efficient retrieval of patient medical records across various healthcare organizations. It allows you to search for documents related to a specific patient within one or more pre-configured clinical repositories that you regularly access.</p>\n<p>This API offers a streamlined approach to patient record retrieval through three key functionalities:</p>\n<ol>\n<li><p><strong>Patient Demographic Search:</strong> This initial step helps you identify patients of interest using demographic criteria.</p>\n</li>\n<li><p><strong>Query for Documents:</strong> Once you've located the target patient, you can use this functionality to search for specific documents associated with that patient within a designated clinical repository.</p>\n</li>\n<li><p><strong>Retrieve Document:</strong> Finally, this function allows you to retrieve the actual content of a document identified during the previous search.</p>\n</li>\n</ol>\n<p><strong>IHE Transaction Compatibility:</strong></p>\n<p>The intuitive design of this API aligns with the established protocols for patient record exchange, mirroring the pattern used by IHE XCPD and XCA. This compatibility allows seamless integration with existing healthcare infrastructure.</p>\n<p><strong>Beyond Core Functionality:</strong> The underlying structure of this API can also serve as a template for developing access functions in any clinical repository seeking to participate in various IHE transactions, such as IHE XCPD and XCA.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"6c12a28a-8a79-4f2b-8780-f29e1e080367","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"0078ab55-74ca-4adb-9120-3459f50c534c","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"38647af4-da1d-41f6-91ba-f07f70a37e16"},{"name":"Direct Secure Messaging","item":[{"name":"Account Admin","item":[{"name":"Create and Update HISPDirect Account","id":"2aa7c557-0dcf-4463-b45e-6aca20d83774","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>(Required) password required to authenticate to the account being created</p>\n","key":"new_password","value":"somepassword"}]},"url":"/AccountManagement/ws/v2/mail/","description":"<p>This functionality allows you to either create a new Direct account or update the password for an existing account. The account you want to create or update is specified in the last segment of the URL.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> POST</p>\n</li>\n<li><p><strong>URL:</strong> <code>/AccountManagement/ws/v2/mail//{accountId}</code> (Replace <code>{accountId}</code> with the desired username for the new account or the username of the existing account you want to update the password for).</p>\n</li>\n<li><p><strong>Authentication:</strong> Requires a valid facility administrator account with appropriate privileges.</p>\n</li>\n<li><p><strong>Request Body:</strong></p>\n<ul>\n<li>Content-Type: application/x-www-form-urlencoded</li>\n<li>Parameters:<ul>\n<li><code>new_password</code>: The desired password for the new account (required for account creation) or the new password for an existing account (required for password updates).</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<p>The response will be in JSON format with the following fields:</p>\n<ul>\n<li><code>state</code> (string): Indicates the outcome of the operation. Possible values include:<ul>\n<li><code>PASS</code>: Account created successfully (for new account creation).</li>\n<li><code>UPDATED</code>: Password updated successfully (for existing account updates).</li>\n<li><code>FAIL</code>: Account creation failed. See <code>description</code> for details.</li>\n<li><code>ERROR</code>: Server-side error occurred. See <code>description</code> for details.</li>\n</ul>\n</li>\n<li><code>description</code> (string): Provides a detailed explanation of the outcome, including potential error messages.</li>\n<li><code>action</code> (string): Always set to <code>\"Account Creation\"</code> (even for password updates).</li>\n<li><code>resource</code> (string): The username associated with the account (matches the <code>{accountId}</code> value in the URL).</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["AccountManagement","ws","v2","mail",""],"query":[],"variable":[]}},"response":[{"id":"bf66be85-8de8-4a49-8fd9-82dc86729e4c","name":"queue successfully created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"new_password","value":"somepassword","type":"text"}]},"url":"/AccountManagement/ws/v2/mail/dsm_account_1@gpr.direct.hispdirect.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"state\": \"PASS\",\n  \"description\": \"queue created\",\n  \"action\": \"queue creation\",\n  \"resource\": \"dsm_account_1@gpr.direct.hispdirect.com\"\n}"}],"_postman_id":"2aa7c557-0dcf-4463-b45e-6aca20d83774"},{"name":"Delete A HISPdirect Account","id":"bc580cbe-36c5-441c-b43d-63820ac3c3ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"/AccountManagement/ws/v2/mail/","description":"<p>This functionality allows you to permanently delete a Direct account associated with your facility.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><strong>Method:</strong> DELETE</li>\n<li><strong>URL:</strong> <code>/AccountManagement/ws/v2/mail/{accountId}</code> (Replace <code>{accountId}</code> with the username of the account you want to delete).</li>\n</ul>\n<p><strong>Response:</strong></p>\n<p>The response will be in JSON format with the following fields:</p>\n<ul>\n<li><code>state</code> (string): Indicates the outcome of the operation. Possible values include:<ul>\n<li><code>PASS</code>: Account deleted successfully.</li>\n<li><code>FAIL</code>: Account deletion failed. See <code>description</code> for details.</li>\n<li><code>ERROR</code>: Server-side error occurred. See <code>description</code> for details.</li>\n</ul>\n</li>\n<li><code>description</code> (string): Provides a detailed explanation of the outcome, including potential error messages.</li>\n<li><code>action</code> (string): Always set to <code>\"Account Deletion\"</code>.</li>\n<li><code>resource</code> (string): The username associated with the deleted account (matches the <code>{accountId}</code> value in the URL).</li>\n</ul>\n<p><strong>Notes:</strong></p>\n<ul>\n<li>Deleting a Direct account is a permanent action. Use caution and ensure you have proper authorization before proceeding.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["AccountManagement","ws","v2","mail",""],"query":[],"variable":[]}},"response":[{"id":"f3a374fe-30e0-4d94-82a2-3d697020fb5d","name":"queue successfully deleted","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"/AccountManagement/ws/v2/mail/dsm_account_1@gpr.direct.hispdirect.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"state\": \"PASS\",\n  \"description\": \"queue updated\",\n  \"action\": \"queue updated\",\n  \"resource\": \"dsm_account_1@gpr.direct.hispdirect.com\"\n}"}],"_postman_id":"bc580cbe-36c5-441c-b43d-63820ac3c3ff"},{"name":"Add Callback to a HISPDirect Account","id":"804a3e85-dc60-4374-aec5-c0380ea732f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"add_url_notification","value":"https:// some.domain.com/endpoint","description":"<p>Endpoint to receive callback</p>\n","type":"text"}]},"url":"/AccountManagement/ws/v2/notify/individual/","description":"<p>This functionality allows you to associate a callback URL (webhook) with a Direct account to receive notifications about new messages.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> POST</p>\n</li>\n<li><p><strong>URL:</strong> <code>/AccountManagement/ws/v2/notify/individual/{accountId}</code> (Replace <code>{accountId}</code> with the username of the account).</p>\n</li>\n<li><p><strong>Request Body:</strong></p>\n<ul>\n<li>Content-Type: application/x-www-form-urlencoded</li>\n<li>Parameters:<ul>\n<li><code>add_url_notification</code>: The URL of the endpoint where you want to receive notifications. (e.g.,<code>add_url_notification=https://some.domain.com/endpoint</code>)</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<p>The response will be in JSON format with the following fields:</p>\n<ul>\n<li><code>state</code> (string): Indicates the outcome of the operation. Possible values include:<ul>\n<li><code>PASS</code>: Notification endpoint added successfully.</li>\n<li><code>FAIL</code>: Notification endpoint addition failed. See <code>description</code> for details.</li>\n<li><code>ERROR</code>: Server-side error occurred. See <code>description</code> for details.</li>\n</ul>\n</li>\n<li><code>description</code> (string): Provides a detailed explanation of the outcome, including potential error messages.</li>\n<li><code>action</code> (string): Always set to <code>\"Add Notification\"</code>.</li>\n<li><code>resource</code> (string): The username associated with the account (matches the <code>{accountId}</code> value in the URL).</li>\n</ul>\n<p><strong>Notes:</strong></p>\n<ul>\n<li>The callback URL must be a secure HTTPS endpoint to ensure data security.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["AccountManagement","ws","v2","notify","individual",""],"query":[],"variable":[]}},"response":[{"id":"5f867a84-7f5e-4f08-bb63-a1bb9f549662","name":"Notification callback successfully created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"add_url_notification","value":"https:// some.domain.com/endpoint","type":"text"}]},"url":"/AccountManagement/ws/v2/notify/individual/dsm_account_1@gpr.direct.hispdirect.com"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"state\": \"PASS\",\n  \"description\": \"Notification changes applied\",\n  \"action\": \"Notification update\",\n  \"resource\": \"dsm_account_1@gpr.direct.hispdirect.com\"\n}"}],"_postman_id":"804a3e85-dc60-4374-aec5-c0380ea732f8"}],"id":"008f4362-a7c4-433a-8a16-cb8c3dda0ded","description":"<h2 id=\"account-management-api\">Account Management API</h2>\n<p>The Account Management API provides a set of functionalities for managing Direct accounts and administrative user accounts within the HealthBus network. This API empowers:</p>\n<ul>\n<li><p><strong>Facility Administrators:</strong> To create, manage, and remove Direct accounts for healthcare providers and potentially patients within their facility.</p>\n</li>\n<li><p><strong>Domain Administrators:</strong> To create, manage, and view all administrative accounts within their domain, including facility administrators.</p>\n</li>\n</ul>\n<p><strong>Functionalities:</strong></p>\n<ul>\n<li><p><strong>Direct Account Management (Facility Administrators):</strong></p>\n<ul>\n<li><p><strong>Create Account:</strong> Establishes a new Direct account with a password.</p>\n</li>\n<li><p><strong>Update Account:</strong> Modifies the password for an existing Direct account.</p>\n</li>\n<li><p><strong>Remove Account:</strong> Deactivates a Direct account.</p>\n</li>\n<li><p><strong>Get Account:</strong> Confirms the existence of a specific Direct account.</p>\n</li>\n<li><p><strong>Add Notification Endpoint:</strong> Configures email or URL notifications for a Direct account to receive alerts about new messages.</p>\n</li>\n<li><p><strong>Remove Notification Endpoint:</strong> Disables email or URL notifications for a Direct account.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Administrative Account Management (Domain Administrators):</strong></p>\n<ul>\n<li><p><strong>Create Admin Account:</strong> Sets up a new administrative user account with a password.</p>\n</li>\n<li><p><strong>Update Admin Account:</strong> Modifies password or other attributes for an existing administrative user account.</p>\n</li>\n<li><p><strong>Remove Admin Account:</strong> Deactivates an administrative user account.</p>\n</li>\n<li><p><strong>Get Admin Account:</strong> Confirms the existence of a specific administrative user account.</p>\n</li>\n<li><p><strong>Get Account Listing:</strong> Retrieves a list of all administrative user accounts within the domain and their associated Direct accounts (if applicable).</p>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Authentication:</strong></p>\n<ul>\n<li><p>Facility and domain administrator accounts are required for most account management operations.</p>\n</li>\n<li><p>Domain administrator accounts are created by NitorGroup and cannot be removed, but password updates are allowed.</p>\n</li>\n</ul>\n<p><strong>Account Types:</strong></p>\n<ul>\n<li><p><strong>Domain Administrator:</strong> Has the highest privilege level, allowing creation and management of all account types within the domain. Cannot create Direct accounts directly.</p>\n</li>\n<li><p><strong>Facility Administrator:</strong> Manages Direct accounts for their facility and can create new facility administrator accounts.</p>\n</li>\n</ul>\n<p><strong>Refer to the following sections for further details:</strong></p>\n<ul>\n<li><p><strong>Authentication:</strong> Explains how to authenticate API calls for account management functions.</p>\n</li>\n<li><p><strong>Errors:</strong> Provides a reference guide for potential error codes and their meanings.</p>\n</li>\n<li><p><strong>Code Examples:</strong> Offers illustrative code snippets demonstrating common account management tasks.</p>\n</li>\n</ul>\n<p>For in-depth information or clarification on specific functionalities, please consult the relevant sections within this documentation.</p>\n","_postman_id":"008f4362-a7c4-433a-8a16-cb8c3dda0ded","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}}},{"name":"Creating and Sending a Message","item":[{"name":"Upload an Attachment","id":"bb58402f-860c-428d-8ffc-57f4114546c7","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"attachment","type":"file","uuid":"be8f7cbc-d565-4c6c-9b72-a6ece4af3f34","src":"/Users/kpuscas/working/adt_test.hl7"}]},"url":"/MailManagement/ws/v3/send/message/attachment","description":"<p>This functionality allows you to upload files to be attached to Direct messages sent through your HISP's Direct Messaging service. Uploading attachments separately from message creation improves efficiency, especially for large files or multiple attachments.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> PUT</p>\n</li>\n<li><p><strong>URL:</strong> <code>/MailManagement/ws/v3/send/message/attachment</code></p>\n</li>\n<li><p><strong>Request Body:</strong></p>\n<ul>\n<li><p>Content-Type: multipart/form-data</p>\n</li>\n<li><p>Parameters:</p>\n<ul>\n<li><code>attachment</code>: The file to upload (required). This parameter should be included as a form data part.</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Example:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">curl --location --request PUT '/MailManagement/ws/v3/send/message/attachment'/ \n--header 'Accept: application/json' --header 'Authorization: Basic Og==' /\n--form 'attachment=@\"adt_test.hl7\"'\n\n</code></pre>\n<p><strong>Response:</strong></p>\n<p>The response will be in JSON format with the following fields:</p>\n<ul>\n<li><p><code>state</code> (string): Indicates the outcome of the operation. Possible values include:</p>\n<ul>\n<li><p><code>PASS</code>: File uploaded successfully.</p>\n</li>\n<li><p><code>FAIL</code>: File upload failed. See <code>description</code> field for details.</p>\n</li>\n<li><p><code>ERROR</code>: Server-side error occurred. See <code>description</code> field for details.</p>\n</li>\n</ul>\n</li>\n<li><p><code>description</code> (string): Provides a detailed explanation of the outcome, including potential error messages.</p>\n</li>\n<li><p><code>attachmentID</code> (string - present only for successful uploads): A unique identifier for the uploaded file. Use this ID to reference the attachment when creating a Direct message (refer to \"Sending a Direct Message\" documentation).</p>\n</li>\n</ul>\n<p><strong>Notes:</strong></p>\n<ul>\n<li>You can upload multiple files in separate calls, storing their unique attachment IDs for referencing in a single message.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["MailManagement","ws","v3","send","message","attachment"],"query":[],"variable":[]}},"response":[{"id":"d8993213-59a4-4b67-9d31-62dde93f2954","name":"attachment uploaded","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"/MailManagement/ws/v3/send/message/attachment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"state\": \"PASS\",\n  \"description\": \"File uploaded\",\n  \"attachmentID\": \"1\"\n}"}],"_postman_id":"bb58402f-860c-428d-8ffc-57f4114546c7"},{"name":"Send  a Direct Message","id":"06a2769b-dc01-4bc6-b194-3fa5859bf8fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>(Required) the destination queue address</p>\n","key":"to","value":"myqueue@custId.healthbus.com"},{"description":"<p>the authenticated account sending the message</p>\n","key":"from","value":"myqueue@custId.healthbus.com"},{"description":"<p>short description of the message</p>\n","key":"subject","value":"message subject"},{"description":"<p>main text content of the message</p>\n","key":"body","value":"message body"},{"description":"<p>Id of the attachment to be associated with the message.</p>\n","key":"attachmentID","value":"00000000"}]},"url":"/MailManagement/ws/v3/send/message","description":"<p>This functionality allows you to send a Direct message from a Direct account within your HISP to another trusted Direct account over a secure HTTPS connection.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> PUT</p>\n</li>\n<li><p><strong>URL:</strong> <code>/MailManagement/ws/v3/send/message</code></p>\n</li>\n<li><p><strong>Request Body:</strong> (Content-Type: application/x-www-form-urlencoded)</p>\n<ul>\n<li><p><strong>Required Parameters:</strong></p>\n<ul>\n<li><p><code>to</code>: A list of recipient Direct addresses (must be provided).</p>\n</li>\n<li><p><code>subject</code>: The message subject (must be provided).</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Optional Parameters:</strong></p>\n<ul>\n<li><p><code>from</code>: A list of Direct addresses specifying the sender(s) (defaults to the authenticated user's Direct address).</p>\n</li>\n<li><p><code>cc</code>: A list of optional recipient Direct addresses for carbon copy.</p>\n</li>\n<li><p><code>bcc</code>: A list of optional recipient Direct addresses for blind carbon copy.</p>\n</li>\n<li><p><code>body</code>: The message body content (optional).</p>\n</li>\n<li><p><code>bodyMimeType</code>: The MIME type of the message body (defaults to <code>\"text/plain\"</code>).</p>\n</li>\n<li><p><code>attachmentId</code>: A list of attachment IDs to include with the message (refer to documentation for attachment management functionalities).</p>\n</li>\n<li><p><code>inReplyTo</code>: The message ID of a Direct message this message is a reply to (optional).</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li><p>The response format (JSON or XML) depends on the API specification.</p>\n</li>\n<li><p>The response will include a status field indicating the outcome. Possible values include:</p>\n<ul>\n<li><p><code>PASS</code>: Message sent successfully.</p>\n</li>\n<li><p><code>FAIL</code>: Message failed to send. See <code>description</code> field for details.</p>\n</li>\n<li><p><code>ERROR</code>: Server-side error occurred. See <code>description</code> field for details.</p>\n</li>\n</ul>\n</li>\n<li><p>A <code>description</code> field will be included for <code>FAIL</code> and <code>ERROR</code> responses, providing a detailed explanation of the issue.</p>\n</li>\n</ul>\n<p><strong>Notes:</strong></p>\n<ul>\n<li><p>Consult the API documentation for specific details on error codes and their meanings.</p>\n</li>\n<li><p>Ensure you have the necessary permissions on the sender's Direct account to send messages.</p>\n</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["MailManagement","ws","v3","send","message"],"query":[],"variable":[]}},"response":[{"id":"d81e5160-f241-4382-a056-3bc6ee25ca7f","name":"message successfully sent","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) the destination queue address","key":"to","value":"myqueue@custId.healthbus.com"},{"description":"the authenticated account sending the message","key":"from","value":"myqueue@custId.healthbus.com"},{"description":"short description of the message","key":"subject","value":"message subject"},{"description":"main text content of the message","key":"body","value":"message body"},{"description":"Id of the attachment to be associated with the message.","key":"attachmentID","value":"00000000"}]},"url":"/MailManagement/ws/v3/send/message"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"state\": \"PASS\",\n  \"description\": \"message sent\",\n  \"messageID\": \"<1754517290.123641.1682619511158@PROD-RH23>\"\n}"}],"_postman_id":"06a2769b-dc01-4bc6-b194-3fa5859bf8fc"}],"id":"3715baf6-35e4-490b-b652-aee41e9c84d7","description":"<p>This section details functionalities for sending Direct messages from a Direct account within your Health Information Service Provider (HISP) to other trusted Direct accounts over a secure HTTPS connection. The Direct Message Sending service offers a method for attaching files to messages:</p>\n<p><strong>Separate Attachment Upload:</strong> For files or multiple attachments, you can upload the files beforehand and reference them using unique identifiers in the subsequent message creation call. This method improves efficiency for handling large data transfers.</p>\n<p><strong>Authentication:</strong> All Direct message sending functionalities require a valid Direct account with appropriate permissions. Authentication is likely done via Basic Authentication with the sender's credentials included in the request header.</p>\n<p><strong>Sender Information:</strong> The sender of a message is automatically identified by the Direct account address used in the Basic Authentication of the REST API call. You don't need to explicitly specify the sender address within the request body.</p>\n<p>The following functionality is available for sending Direct messages:</p>\n<ul>\n<li><p><strong>Sending a Simple Message:</strong> This functionality allows you to send a message with routing information (recipient addresses and subject) and an optional message body, all within a single API call.</p>\n</li>\n<li><p><strong>Uploading Attachments:</strong> (Described elsewhere in the documentation) This functionality allows you to upload files to the server and obtain unique identifiers for referencing them in subsequent message creation calls.</p>\n</li>\n</ul>\n<p>By following the described method and utilizing the appropriate functionalities, you can effectively send Direct messages with attachments.</p>\n","_postman_id":"3715baf6-35e4-490b-b652-aee41e9c84d7","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}}},{"name":"Managing Received Messages","item":[{"name":"Retrieving A Summary List of Direct Messages","id":"760a33db-1adf-4b70-8d09-783f704a68ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/MailManagement/ws/v3/retrieve/message/list?offset=0&length=1&sortOrder=DATE","description":"<p>This functionality allows you to retrieve a summarized list of Direct messages in your inbox/queue. This provides a quick overview of available messages without retrieving full message details.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> GET</p>\n</li>\n<li><p><strong>URL:</strong> <code>/MailManagement/ws/v3/retrieve/message/list</code></p>\n</li>\n<li><p><strong>Request Parameters:</strong> (likely <code>application/x-www-form-urlencoded</code> content type)</p>\n<ul>\n<li><code>offset</code> (integer - optional): The starting index of the message list to be retrieved. Defaults to 0 (the first message).</li>\n<li><code>length</code> (integer - optional): The number of messages to retrieve in the response. Defaults to 10.</li>\n<li><code>sortOrder</code> (string - optional): The order in which to sort the retrieved messages. Possible values include:<ul>\n<li><code>ARRIVAL</code> (default): Sorts by received date (newest first).</li>\n<li><code>FROM</code>: Sorts by the sender's Direct address.</li>\n<li><code>SIZE</code>: Sorts by message size (largest first).</li>\n<li><code>DATE</code>: Sorts by sent date.</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<p>The response will be in JSON format with the following fields:</p>\n<ul>\n<li><code>totalMessages</code> (integer): The total number of Direct messages in your inbox/queue.</li>\n<li><code>offset</code> (integer): The starting index of the retrieved message list.</li>\n<li><code>messages</code> (array of objects): An array containing information about each message in the retrieved list. Each message object will have the following properties:<ul>\n<li><code>from</code> (array of strings): A list of Direct addresses of the message senders.</li>\n<li><code>subject</code> (string): The subject of the message.</li>\n<li><code>sentDate</code> (string): The date and time the message was sent.</li>\n<li><code>receivedDate</code> (string): The date and time the message was received.</li>\n<li><code>messageID</code> (string): The unique identifier of the message.</li>\n<li><code>uid</code> (string): A unique identifier for the message within your HISP (optional, depending on implementation).</li>\n</ul>\n</li>\n<li><code>state</code> (string): Indicates the outcome of the operation. Likely always set to <code>\"PASS\"</code> for successful retrieval.</li>\n<li><code>description</code> (string): A descriptive message, likely set to <code>\"Message list\"</code> for successful retrieval.</li>\n</ul>\n<p><strong>Notes:</strong></p>\n<ul>\n<li>The optional parameters (<code>offset</code>, <code>length</code>, and <code>sortOrder</code>) allow you to paginate through the message list, control the number of messages retrieved, and sort the results based on various criteria.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["MailManagement","ws","v3","retrieve","message","list"],"query":[{"key":"offset","value":"0"},{"key":"length","value":"1"},{"key":"sortOrder","value":"DATE"}],"variable":[]}},"response":[{"id":"9f1f020a-804b-4403-91f7-79990ac2e92e","name":"Retrieving A Summary List of Direct Messages","originalRequest":{"method":"GET","header":[],"url":{"raw":"/MailManagement/ws/v3/retrieve/message/list?offset=0&length=5&sortOrder=DATE","path":["MailManagement","ws","v3","retrieve","message","list"],"query":[{"key":"offset","value":"0"},{"key":"length","value":"5"},{"key":"sortOrder","value":"DATE"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n  \"totalMessages\": 100,\n  \"offset\": 0,\n  \"messages\": [\n    {\n      \"from\": [\n        \"Dr. Smith<smith@example.com>\"\n      ],\n      \"subject\": \"Your Lab Results are Ready\",\n      \"sentDate\": \"2024-05-14T10:00:00-04:00\",\n      \"receivedDate\": \"2024-05-14T10:05:00-04:00\",\n      \"messageID\": \"12345\",\n      \"uid\": \"XYZ123\"\n    },\n    {\n      \"from\": [\n        \"MyHealth Clinic<clinic@myhealth.org>\"\n      ],\n      \"subject\": \"Appointment Reminder: May 16th, 2:00 PM\",\n      \"sentDate\": \"2024-05-13T14:30:00-04:00\",\n      \"receivedDate\": \"2024-05-13T14:31:00-04:00\",\n      \"messageID\": \"67890\",\n      \"uid\": \"ABC456\"\n    }\n  ],\n  \"state\": \"PASS\",\n  \"description\": \"Message list\"\n}"}],"_postman_id":"760a33db-1adf-4b70-8d09-783f704a68ad"},{"name":"Retrieve a Message","id":"b658fdbc-c179-44ed-83f3-a0ea67f62831","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"/MailManagement/ws/v3/retrieve/message?messageID=123456&from=user@hisp.happyclinic.com","description":"<p>This functionality allows you to retrieve a specific Direct message from your inbox/queue based on its unique identifier and the sender's address.</p>\n<h2 id=\"request\"><strong>Request:</strong></h2>\n<ul>\n<li><p><strong>Method:</strong> GET</p>\n</li>\n<li><p><strong>URL:</strong> <code>/MailManagement/ws/v3/retrieve/message</code></p>\n</li>\n<li><p><strong>Request Parameters:</strong> (likely <code>application/x-www-form-urlencoded</code> content type)</p>\n<ul>\n<li><code>messageID</code> (string - required): The unique identifier of the message you want to retrieve.</li>\n<li><code>from</code> (string - required): The Direct address of the sender of the message you want to retrieve.</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"response\"><strong>Response:</strong></h2>\n<p>The response will be in JSON format with the following fields, depending on the message content:</p>\n<ul>\n<li><code>messageID</code> (string): The unique identifier of the retrieved message.</li>\n<li><code>from</code> (array of strings): A list of Direct addresses of the message senders.</li>\n<li><code>subject</code> (string): The subject of the message.</li>\n<li><code>body</code> (array of objects): An array containing body content objects, each with the following properties:<ul>\n<li><code>mimeType</code> (string): The MIME type of the body content (e.g., \"text/plain\", \"text/html\").</li>\n<li><code>content</code> (string): The actual content of the message body part.</li>\n</ul>\n</li>\n<li><code>attachment</code> (array of objects): An array containing attachment information objects, each with the following properties:<ul>\n<li><code>attachmentID</code> (integer): The unique identifier of the attachment.</li>\n<li><code>filename</code> (string): The filename of the attachment.</li>\n<li><code>mimeType</code> (string): The MIME type of the attachment (e.g., \"application/pdf\", \"image/jpeg\").</li>\n</ul>\n</li>\n<li><code>state</code> (string): Indicates the outcome of the operation. Likely always set to <code>\"PASS\"</code> for successful retrieval.</li>\n<li><code>description</code> (string): A descriptive message, likely set to <code>\"Mail message\"</code> for successful retrieval.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["MailManagement","ws","v3","retrieve","message"],"query":[{"description":{"content":"<p>(Required) ID of message to retrieve</p>\n","type":"text/plain"},"key":"messageID","value":"123456"},{"description":{"content":"<p>Sender of message to retrieve</p>\n","type":"text/plain"},"key":"from","value":"user@hisp.happyclinic.com"}],"variable":[]}},"response":[{"id":"ded0b9e7-ea24-4b66-8bc2-f4b65328e6dd","name":"array of documentInfo objects","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"/MailManagement/ws/v3/retrieve/message?messageID=123456&from=user@hisp.happyclinic.com","path":["MailManagement","ws","v3","retrieve","message"],"query":[{"key":"messageID","value":"123456","description":"(Required) ID of message to retrieve"},{"key":"from","value":"user@hisp.happyclinic.com","description":"Sender of message to retrieve"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"messageID\": \"123456\",\n    \"from\": [\n        \"user@hisp.happyclinic.com\"\n    ],\n    \"subject\": \"New Patient Record\",\n    \"body\": [\n        {\n            \"mimeType\": \"plain/text\",\n            \"content\": \"Please see that attached record\"\n        }\n    ],\n    \"attachment\": [\n        {\n            \"attachmentID\": 0,\n            \"filename\": \"new_rec.xml\",\n            \"mimeType\": \"text/xml\"\n        }\n    ],\n    \"state\": \"PASS\",\n    \"description\": \"Mail message\"\n}"}],"_postman_id":"b658fdbc-c179-44ed-83f3-a0ea67f62831"},{"name":"Retrieve an Attachment","id":"b6c75315-109a-4888-a0f2-4bc5c1f7a81a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"*/*"}],"url":"/MailManagement/ws/v3/retrieve/message/attachment?messageID=123456&from=user@hisp.happyclinic.com&attachmentID=0","description":"<p>This functionality allows you to download a specific attachment associated with a Direct message.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> GET</p>\n</li>\n<li><p><strong>URL:</strong> <code>/MailManagement/ws/v3/retrieve/message/attachment</code></p>\n</li>\n<li><p><strong>Request Parameters:</strong> (query parameters)</p>\n<ul>\n<li><code>messageID</code> (string - required): The unique identifier of the Direct message containing the attachment you want to retrieve.</li>\n<li><code>from</code> (string - required): The Direct address of the sender of the message containing the attachment you want to retrieve.</li>\n<li><code>attachmentID</code> (string - required): The unique identifier of the attachment within the specified message.</li>\n</ul>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<p>The response will the binary data of the attachment itself, not JSON formatted data. The appropriate content type header will be set in the response to indicate the type of attachment (e.g., \"text/xml\", \"image/jpeg\").</p>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["MailManagement","ws","v3","retrieve","message","attachment"],"query":[{"description":{"content":"<p>(Required) messageID of the message with the attachment</p>\n","type":"text/plain"},"key":"messageID","value":"123456"},{"description":{"content":"<p>sender of the message with the attachment</p>\n","type":"text/plain"},"key":"from","value":"user@hisp.happyclinic.com"},{"description":{"content":"<p>attachmentID for the specific attachment to be retrieved</p>\n","type":"text/plain"},"key":"attachmentID","value":"0"}],"variable":[]}},"response":[{"id":"7f48bcfc-6c31-4399-a0c8-fc9e7d8c2935","name":"array of documentInfo objects","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"*/*"}],"url":{"raw":"/MailManagement/ws/v3/retrieve/message/attachment?messageID=123456&from=user@hisp.happyclinic.com&attachmentID=0","path":["MailManagement","ws","v3","retrieve","message","attachment"],"query":[{"key":"messageID","value":"123456","description":"(Required) messageID of the message with the attachment"},{"key":"from","value":"user@hisp.happyclinic.com","description":"sender of the message with the attachment"},{"key":"attachmentID","value":"0","description":"(Required) "}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"*/*"}],"cookie":[],"responseTime":null,"body":"file_data"}],"_postman_id":"b6c75315-109a-4888-a0f2-4bc5c1f7a81a"},{"name":"Delete a Message","id":"80dc31fc-7c42-4a7b-be26-70c858afc1bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":"/MailManagement/ws/v3/remove/message?messageID=123456&from=user@hisp.happyclinic.com","description":"<p>This functionality allows you to permanently delete a Direct message from your inbox/queue.</p>\n<p><strong>Request:</strong></p>\n<ul>\n<li><p><strong>Method:</strong> DELETE</p>\n</li>\n<li><p><strong>URL:</strong> <code>/MailManagement/ws/v3/remove/message</code></p>\n</li>\n<li><p><strong>Request Parameters:</strong> (likely <code>application/x-www-form-urlencoded</code> content type)</p>\n<ul>\n<li><code>messageID</code>: The unique identifier of the message you want to delete (required). (Replaces <code>{messageID}</code> in your example).</li>\n<li><code>from</code>: The Direct address of the sender of the message you want to delete (required).</li>\n</ul>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<p>The response will be in JSON format with the following fields:</p>\n<ul>\n<li><code>state</code> (string): Indicates the outcome of the operation. Possible values include:<ul>\n<li><code>PASS</code>: Message deleted successfully.</li>\n<li><code>FAIL</code>: Message deletion failed. See <code>description</code> field for details.</li>\n<li><code>ERROR</code>: Server-side error occurred. See <code>description</code> field for details.</li>\n</ul>\n</li>\n<li><code>description</code> (string): Provides a detailed explanation of the outcome, including potential error messages.</li>\n</ul>\n<p><strong>Notes:</strong></p>\n<ul>\n<li>Deleting a Direct message is a permanent action. Use caution and ensure you have proper authorization before proceeding.</li>\n<li>Consult your API documentation for specific requirements and any additional parameters that might be necessary for deleting messages.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["MailManagement","ws","v3","remove","message"],"query":[{"description":{"content":"<p>(Required) messageID of the message to be deleted</p>\n","type":"text/plain"},"key":"messageID","value":"123456"},{"description":{"content":"<p>sender of the message</p>\n","type":"text/plain"},"key":"from","value":"user@hisp.happyclinic.com"}],"variable":[]}},"response":[{"id":"86066d96-9ae3-48c2-a1c6-6a1259937e6a","name":"response","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"/MailManagement/ws/v3/remove/message?messageID=123456&from=user@hisp.happyclinic.com","path":["MailManagement","ws","v3","remove","message"],"query":[{"key":"messageID","value":"123456","description":"(Required) messageID of the message to be deleted"},{"key":"from","value":"user@hisp.happyclinic.com","description":"sender of the message"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\n    \"state\": \"PASS\",\n    \"description\": \"Mail message removed\"\n}"}],"_postman_id":"80dc31fc-7c42-4a7b-be26-70c858afc1bc"}],"id":"48ca9db3-c731-4d8e-8eed-38ab80823ec8","description":"<p>This section details functionalities for managing Direct messages received by a Direct account within HISPDirect inbox or queue. The Direct Message Management service provides access to your received messages and enables actions such as retrieving message details, attachments, and deleting messages.</p>\n<p>Here's a breakdown of the available functionalities:</p>\n<ul>\n<li><strong>Retrieve Message Summary List:</strong> This functionality retrieves a summarized list of Direct messages within your inbox/queue, including basic details like sender, recipients, subject, and message arrival time.</li>\n<li><strong>Retrieve Single Message:</strong> This functionality allows you to retrieve a specific Direct message by its unique identifier, providing full message details including sender, recipients, subject, body, and timestamps.</li>\n<li><strong>Retrieve Message Attachment:</strong> This functionality enables downloading an attachment associated with a specific Direct message, given the message ID and attachment ID.</li>\n<li><strong>Delete Message:</strong> This functionality allows you to permanently delete a message from your inbox/queue. Use caution and ensure you have proper authorization before proceeding.</li>\n</ul>\n<p>By utilizing these functionalities, you can effectively manage and review your received Direct messages and their attachments. All of these operations require a valid HISPDirect account to access the messages associated with the account.</p>\n","_postman_id":"48ca9db3-c731-4d8e-8eed-38ab80823ec8","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}}},{"name":"Notifications","item":[{"name":"Set Callback","id":"f35fb163-5d00-48f3-840f-5ad1312deea7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"add_url_notification","value":"https://some.domain.com/endpoint","description":"<p>Callback Endpoint</p>\n","type":"text"}]},"url":"/AccountManagement/ws/v2/notify/individual/user@hisp.happyclinic.com","description":"<p><strong>Functionality:</strong></p>\n<ol>\n<li><strong>Configuration:</strong><ul>\n<li>Configure a notification endpoint URL within your HISPDirect account settings. This URL is where HISPDirect will send notification data when a new message arrives.</li>\n<li>Ensure your endpoint URL implements appropriate authentication mechanisms to validate requests originating from HISPDirect and prevent unauthorized access.</li>\n</ul>\n</li>\n<li>Receiving Notifications<ul>\n<li>Upon receiving a new Direct message, HISPDirect will send a POST request to your configured endpoint URL.</li>\n<li>The request body will contain a minimal set of data about the new message <strong>in form-encoded format</strong> . Here's an example of the form-encoded data structure:<ul>\n<li><code>from</code>: The Direct address(es) of the sender(e.g., <code>clinic@myhealthclinic.org</code>).</li>\n<li><code>to</code>: The Direct address of the recipient (e.g., <code>john.smith@example.com</code>).</li>\n<li><code>subject</code>: The subject line of the message (e.g., <code>New Patient History</code>).</li>\n<li><code>date</code>: The date and time the message was received (e.g., <code>2024-05-15T10:00:00-04:00</code>).</li>\n<li><code>messageID</code>: The unique identifier of the new message (e.g., <code>ABC123</code>).</li>\n</ul>\n</li>\n</ul>\n</li>\n</ol>\n<p><strong>Security Considerations:</strong></p>\n<ul>\n<li><strong>Endpoint Authentication:</strong> Implement appropriate authentication mechanisms on your endpoint to validate requests originating from HISPDirect and prevent unauthorized access.</li>\n<li><strong>Data Security:</strong> The notification data might contain sensitive patient information depending on the message content. Implement proper security measures on your side to protect this data during transmission and storage.</li>\n</ul>\n","urlObject":{"path":["AccountManagement","ws","v2","notify","individual","user@hisp.happyclinic.com"],"query":[],"variable":[]}},"response":[{"id":"1a95d97e-183a-4aa1-836f-9e772d1a593b","name":"Set Callback","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"add_url_notification","value":"https://some.domain.com/endpoint","description":"Callback Endpoint","type":"text"}]},"url":"/AccountManagement/ws/v2/notify/individual/user@hisp.happyclinic.com"},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"state\": \"PASS\",\n    \"description\": \"Notification changes applied\",\n    \"action\": \"Notification update\",\n    \"resource\": \"dr.peters@subdomain.direct.hispdirect.com\"\n}"}],"_postman_id":"f35fb163-5d00-48f3-840f-5ad1312deea7"},{"name":"Delete Callback","id":"cb3c289c-b5c5-4ef5-840c-91118e19da26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"remove_url_notification","value":"https://some.domain.com/endpoint","description":"<p>Callback Endpoint to Delete</p>\n","type":"text","uuid":"a486193e-aee2-4fb9-bd69-ed01d1fb54b2"}]},"url":"/AccountManagement/ws/v2/notify/individual/user@hisp.happyclinic.com","description":"<p>Callback setting for specific addresse can be deleted. Once deleted any DSM to that address will not trigger a REST Callback from the HISPDirect Service.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}},"urlObject":{"path":["AccountManagement","ws","v2","notify","individual","user@hisp.happyclinic.com"],"query":[],"variable":[]}},"response":[{"id":"fc3a1a92-adc9-4ad3-b87e-b8d4ce2745db","name":"Delete Callback","originalRequest":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"remove_url_notification","value":"https://some.domain.com/endpoint","description":"Callback Endpoint to Delete","type":"text","uuid":"a486193e-aee2-4fb9-bd69-ed01d1fb54b2"}]},"url":"/AccountManagement/ws/v2/notify/individual/user@hisp.happyclinic.com"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"state\": \"PASS\",\n    \"description\": \"Notification changes applied\",\n    \"action\": \"Notification update\",\n    \"resource\": \"dr.peters@subdomain.direct.hispdirect.com\"\n}"}],"_postman_id":"cb3c289c-b5c5-4ef5-840c-91118e19da26"}],"id":"47e4ab30-94a4-45cf-b0b7-5b126dd941c0","description":"<p>The HISPDirect notification functionality, which keeps accounts informed about new messages arriving in their inbox/queue. It utilizes a pre-configured endpoint URL within your HISPDirect account settings. Whenever a new Direct message is received, HISPDirect sends a notification to this endpoint, containing essential details about the message.</p>\n<p><strong>Benefits:</strong></p>\n<ul>\n<li><strong>Real-time awareness:</strong> Get notified instantly when new messages arrive, enabling quicker response times and improved workflow.</li>\n<li><strong>Reduced manual checking:</strong> Eliminate the need for constant manual checking of the inbox/queue.</li>\n<li><strong>Streamlined message handling:</strong> Integrate notifications with your existing systems or applications for centralized processing and handling of new messages.</li>\n</ul>\n<p><strong>Overall, HISPDirect notifications provide a valuable mechanism for staying up-to-date on new messages and integrating Direct messaging functionality seamlessly into your workflows.</strong></p>\n","_postman_id":"47e4ab30-94a4-45cf-b0b7-5b126dd941c0","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","name":"Direct Secure Messaging","type":"folder"}}}],"id":"9154db09-e3ec-4828-bc0d-b91d663f5c31","description":"<h2 id=\"direct-secure-messaging-api\">Direct Secure Messaging API</h2>\n<p>The Direct Secure Messaging API is a RESTful interface for interacting with the HealthBus messaging service, which facilitates Direct Secure Messaging (DSM) within our Health Information Service Provider (HISP) network. The HealthBus messaging service enables secure exchange of healthcare data between Direct accounts, both within our HISP and with other participating HISPs that are part of Direct Trust. Messages can contain structured or unstructured text data and optional document attachments.</p>\n<p>This API is divided into the following sections:</p>\n<ul>\n<li><p><strong>Account Administration:</strong> Functions for creating new accounts, managing passwords, adding callback endpoints, and deleting accounts (requires facility administrator credentials).</p>\n</li>\n<li><p><strong>Message Sending and Creation:</strong> Options for sending messages with routing information, content, and attachments.</p>\n</li>\n<li><p><strong>Message Retrieval:</strong> Functionality to retrieve messages and attachments from specific queues based on sender address and message ID.</p>\n</li>\n<li><p><strong>Message Deletion:</strong> Ability to delete messages from queues using sender address and message ID.</p>\n</li>\n<li><p><strong>Notifications:</strong> Details on the Topic/Subscriber mechanism for receiving notification messages when new messages arrive in a queue.</p>\n</li>\n</ul>\n<p><strong>Note:</strong></p>\n<ul>\n<li><p>Authentication for API calls is handled through Basic Authentication using the queue address.</p>\n</li>\n<li><p>Messages and attachments can only be retrieved from queues that match the address used for authentication.</p>\n</li>\n</ul>\n<p>This API reference guide assumes you have a basic understanding of REST APIs and Direct Secure Messaging protocols.</p>\n<p>We recommend reviewing the following sections to get started:</p>\n<ul>\n<li><p><strong>Authentication:</strong> Details on how to authenticate API calls using Basic Authentication.</p>\n</li>\n<li><p><strong>Errors:</strong> Explanation of potential error codes and their corresponding meanings.</p>\n</li>\n<li><p><strong>Code Examples:</strong> Illustrative code snippets demonstrating API usage for common operations.</p>\n</li>\n</ul>\n<p>For further information or clarification on specific functionalities, please refer to the relevant sections within this documentation.</p>\n","auth":{"type":"basic","basic":{"basicConfig":[]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"fe2a668d-65bc-4530-a869-25217d15e95d","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"5a6ecfbe-8166-4645-94cc-d08b92b10b54","type":"text/javascript","packages":{},"exec":[""]}}],"_postman_id":"9154db09-e3ec-4828-bc0d-b91d663f5c31"},{"name":"Event Notification Service","item":[{"name":"ENS via Direct Secure Messaging","item":[{"name":"Send ENS Message","id":"0b9e2386-867f-4770-96c7-3d8aac074d01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"recipient\": \"ens@direct.exampleorg.com\",\n  \"subject\": \"This is an event notification\",\n  \"body\": \"here is the body of this message\",\n  \"workflow\": \"ENS\",\n  \"attachments\": [\n    {\n      \"filename\": \"adt.hl7\",\n      \"contentType\": \"application/hl7-v2\",\n      \"data\": \"Base64file\"\n    }\n  ]\n}"},"url":"https://healthbus.rosettahealth.net/ens/dsm/send","description":"<p>The Send ENS API takes the following JSON paylaod</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"recipient\": \"ens@direct.exampleorg.com\",\n  \"subject\": \"This is an event notification\",\n  \"body\": \"here is the body of this message\",    // optional for ENS\n  \"workflow\": \"ENS\",                             // fixed value “ENS”\n  \"attachments\": [\n    {\n      \"filename\": \"adt.hl7\",\n      \"contentType\": \"application/hl7-v2\",\n      \"data\": \"Base64-encoded HL7 message\"\n    }\n  ]\n}\n﻿\n\n</code></pre>\n<ul>\n<li><p><strong>recipient</strong> (string, required)<br />  The destination Direct address (an email‐formatted URI) of the HISP or endpoint that will receive your XDM bundle.</p>\n</li>\n<li><p><strong>subject</strong> (string, required)<br />  The email subject line to accompany your notification.</p>\n</li>\n<li><p><strong>body</strong> (string, optional)<br />  A human‐readable message body. For the ENS workflow, this field is ignored—payload travels in the XDM ZIP.</p>\n</li>\n<li><p><strong>workflow</strong> (string, required)<br />  Identifies which notification flow to invoke. Today this must be <code>\"ENS\"</code> (Event Notification Service).</p>\n</li>\n<li><p><strong>attachments</strong> (array, required; length = 1)<br />  A single‐element list of objects representing the clinical/ADT file you wish to send:</p>\n<ul>\n<li><p><strong>filename</strong> (string) – the file name to use inside the XDM bundle (e.g. <code>\"adt.hl7\"</code>).</p>\n</li>\n<li><p><strong>contentType</strong> (string) – the MIME type of your attachment (e.g. <code>\"application/hl7-v2\"</code>).</p>\n</li>\n<li><p><strong>data</strong> (string) – the Base64‐encoded contents of the HL7 message to be converted into an XDM ZIP.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"example-responses\">Example Responses</h3>\n<h4 id=\"success-200\">Success 200</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": \"ENS message sent successfully\",\n  \"messageId\": \"123e4567-e89b-12d3-a456-426614174000\"\n}\n\n</code></pre>\n<h4 id=\"error-http-4xx-or-5xx\">Error (HTTP 4xx or 5xx)</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"error\": \"Invalid attachment: data field must be valid Base64\"\n}\n\n</code></pre>","urlObject":{"protocol":"https","path":["ens","dsm","send"],"host":["healthbus","rosettahealth","net"],"query":[],"variable":[]}},"response":[{"id":"b9ef1082-b572-4b23-a33c-2f959f7e4d5b","name":"Success Response","originalRequest":{"header":[],"url":""},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"ENS message sent successfully\",\n  \"messageId\": \"generated-message-id\"\n}"},{"id":"fafadec5-6318-43c8-9233-330bfbd9bdd8","name":"Error Response","originalRequest":{"header":[],"url":""},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Error message\"\n}"}],"_postman_id":"0b9e2386-867f-4770-96c7-3d8aac074d01"}],"id":"c48f031d-e8a4-47e2-bb8c-525c469cfd53","description":"<p>ENS via Direct Secure Messaging (DSM) provides a turnkey, standards-based way to “push” HL7-formatted event notifications—such as ADT messages, lab results, or care-coordination alerts—directly into your trading partners’ clinical systems. Under the covers, ENS wraps your JSON-driven payload in an ANSI DS 2020-03-100-2022 Event Notifications via the Direct Standard Version 1.0-compliant Direct Secure Message and handles authentication, encryption, and message logging for full end-to-end auditability. Because it speaks the language of DirectTrust-certified HISP networks, ENS via DSM guarantees secure, reliable delivery over existing healthcare messaging infrastructure</p>\n","_postman_id":"c48f031d-e8a4-47e2-bb8c-525c469cfd53"}],"id":"f57ee503-0916-4daa-ac6f-f53acc0cdd3d","description":"<p>In healthcare settings, ENS serves as the “push” backbone for critical clinical and administrative events—everything from patient admissions, discharges and transfers (ADT) to lab result notifications, medication updates, and care coordination alerts. By exposing a simple JSON-based API, ENS lets your systems or third-party applications trigger real-time event messages into providers’ EHRs, care management platforms, or population-health dashboards. This makes ENS an ideal solution for any healthcare organization that needs timely, reliable, and standards-driven event delivery across a heterogeneous ecosystem of systems and partners.</p>\n","_postman_id":"f57ee503-0916-4daa-ac6f-f53acc0cdd3d"},{"name":"Easy Responder Repository","item":[{"name":"Upload Document","id":"fa38bec9-7a0a-4d38-85f4-b9e920ddba11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fileName\": \"patient_report.pdf\",\n    \"contentType\": \"application/pdf\",\n    \"hasPatientGivenConsent\": true,\n    \"patientId\": \"12345QWERT\",\n    \"creationDate\": \"20230915\",\n    \"authorPerson\": \"Dr. Jane Smith\",\n    \"authorInstitution\": \"General Hospital\",\n    \"classCode\": \"11524-6\",\n    \"classCodeDescription\": \"EKG study (Image)\",\n    \"confidentialityCode\": \"N\",\n    \"data\": \"JVBERi0xLjUKJb/3ov4KNiAw...\"\n}","options":{"raw":{"language":"json"}}},"url":"{{hostname}}/ezr/{{env}}/upload","description":"<p>Send a document to the EasyResponder repository for processing and storage in a document repository that participates in IHE (Integrating the Healthcare Enterprise) exchanges.</p>\n<p>The request body must include metadata about the uploaded document and a base64-encoded file. The document and its metadata are validated and stored, making it available for future IHE-based registry and repository transactions. Descriptions for the metadata required is given below.</p>\n<ul>\n<li><p>Required for all documents</p>\n<ul>\n<li><p><strong>fileName</strong> (string, required): The original filename, used for storage and reference.</p>\n</li>\n<li><p><strong>contentType</strong> (string, required): The MIME type of the document (e.g., <code>application/pdf</code>).</p>\n</li>\n<li><p><strong>hasPatientGivenConsent</strong> (boolean, required): Indicates whether patient consent has been obtained. Must be <code>true</code>.</p>\n</li>\n<li><p><strong>patientId</strong> (string, required): The unique identifier of the patient. This is critical for IHE-based indexing and retrieval.</p>\n</li>\n<li><p><strong>data</strong> (string, required): The base64-encoded binary content of the document.</p>\n</li>\n</ul>\n</li>\n<li><p>Required for non-CCDA documents</p>\n<ul>\n<li><p><strong>creationDate</strong> (string, optional): The date the document was created (YYYYMMDD format) to support IHE metadata fields.</p>\n</li>\n<li><p><strong>authorPerson</strong> (string, optional): Name of the author of the document, often used in XDS metadata.</p>\n</li>\n<li><p><strong>authorInstitution</strong> (string, optional): Institution where the document was authored.</p>\n</li>\n<li><p><strong>classCode</strong> (string, optional): A coded value representing the document class (IHE XDS <code>classCode</code>).</p>\n</li>\n<li><p><strong>classCodeDescription</strong> (string, optional): A human-readable description of the document class.</p>\n</li>\n<li><p><strong>confidentialityCode</strong> (string, optional): Confidentiality classification for the document (e.g., <code>N</code> for normal).</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Here is a list of common classCodes and classCodeDescriptions (a complete list can be found at <a href=\"https://null\">https://loinc.org/downloads/loinc/)</a></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>LOINC Code</th>\n<th>Display Name</th>\n<th>Usage</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>34133-9</td>\n<td>Summarization of Episode Note</td>\n<td>General document summary</td>\n</tr>\n<tr>\n<td>18842-5</td>\n<td>Discharge Summary</td>\n<td>Discharge related documents</td>\n</tr>\n<tr>\n<td>11488-4</td>\n<td>Consult note</td>\n<td>Consultation notes</td>\n</tr>\n<tr>\n<td>11506-3</td>\n<td>Progress note</td>\n<td>Progress notes</td>\n</tr>\n<tr>\n<td>28570-0</td>\n<td>Provider-unspecified note</td>\n<td>General notes</td>\n</tr>\n<tr>\n<td>18748-4</td>\n<td>Diagnostic imaging study</td>\n<td>Radiology reports</td>\n</tr>\n<tr>\n<td>11502-2</td>\n<td>Laboratory report</td>\n<td>Lab reports</td>\n</tr>\n<tr>\n<td>34117-2</td>\n<td>History and physical note</td>\n<td>H&amp;P documents</td>\n</tr>\n<tr>\n<td>34745-0</td>\n<td>Emergency department note</td>\n<td>ED notes</td>\n</tr>\n<tr>\n<td>28655-9</td>\n<td>Nursing note</td>\n<td>Nursing documentation</td>\n</tr>\n</tbody>\n</table>\n</div><p>List of common confidentialityCodes</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Display Name</th>\n<th>Meaning / Usage Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>N</td>\n<td>Normal</td>\n<td>Standard, routine clinical documents (no special restriction)</td>\n</tr>\n<tr>\n<td>R</td>\n<td>Restricted</td>\n<td>Restricted access (e.g., mental health notes, sensitive info)</td>\n</tr>\n<tr>\n<td>V</td>\n<td>Very Restricted</td>\n<td>Highly sensitive (e.g., VIP patient, legal hold)</td>\n</tr>\n<tr>\n<td>U</td>\n<td>Unrestricted</td>\n<td>No restriction at all (often not used in healthcare)</td>\n</tr>\n<tr>\n<td>L</td>\n<td>Low</td>\n<td>Low confidentiality (e.g., patient education materials)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["ezr","{{env}}","upload"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[{"id":"4d2030f4-dfb1-48da-ae8a-9d2368dc8a7e","name":"Success Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fileName\": \"patient_report.pdf\",\n    \"contentType\": \"application/pdf\",\n    \"hasPatientGivenConsent\": true,\n    \"patientId\": \"12345QWERT\",\n    \"creationDate\": \"20230915\",\n    \"authorPerson\": \"Dr. Jane Smith\",\n    \"authorInstitution\": \"General Hospital\",\n    \"classCode\": \"11524-6\",\n    \"classCodeDescription\": \"EKG study (Image)\",\n    \"confidentialityCode\": \"N\",\n    \"data\": \"JVBERi0xLjUKJb/3ov4KNiAw...\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/ezr/upload"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"documentId\": \"45aee949-6b55-425d-9067-fc71643e1abb\",\n  \"message\": \"File uploaded and processing completed successfully\"\n}"},{"id":"480507f4-3176-4c16-a86f-acdaa40a3e1f","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fileName\": \"patient_report.pdf\",\n    \"hasPatientGivenConsent\": true,\n    \"patientId\": \"12345QWERT\",\n    \"creationDate\": \"20230915\",\n    \"authorPerson\": \"Dr. Jane Smith\",\n    \"authorInstitution\": \"General Hospital\",\n    \"classCode\": \"11524-6\",\n    \"classCodeDescription\": \"EKG study (Image)\",\n    \"confidentialityCode\": \"N\",\n    \"data\": \"JVBERi0xLjUKJb/3ov4KNiAw...\"\n}","options":{"raw":{"language":"json"}}},"url":"{{host}}/ezr/upload"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Missing required metadata fields in source JSON: fileName, contentType, patientId\",\n  \"message\": \"Failed to process file upload\",\n  \"requiredFields\": [\n    \"fileName\",\n    \"contentType\",\n    \"hasPatientGivenConsent\",\n    \"patientId\",\n    \"data\"\n  ]\n}"}],"_postman_id":"fa38bec9-7a0a-4d38-85f4-b9e920ddba11"},{"name":"Add Patient","id":"2bf8a7ce-9893-433c-adcc-4f72d1d362fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\n    \"dateOfBirth\": \"19991201\",\n    \"family\": \"Testpatient\",\n    \"gender\": \"M\",\n    \"given\": \"John\",\n    \"streetAddressLine1\": \"123 Mouse Hollow\",\n    \"streetAddressLine2\": \"suite 312\",\n    \"city\": \"Annapolis\",\n    \"state\": \"MD\",\n    \"zip\": \"21401\",\n    \"patientId\": \"MRN0001234\"\n  }","options":{"raw":{"language":"json"}}},"url":"{{host}}/ezr/{{env}}/addpatient","description":"<h2 id=\"add-patient-endpoint\">Add Patient Endpoint</h2>\n<p>This endpoint allows you to add a new patient to the system. It is designed to accept patient information, which will be stored in the database for further processing and management.</p>\n<h3 id=\"request-format\">Request Format</h3>\n<p><strong>HTTP Method:</strong> <code>POST</code><br /><strong>Endpoint:</strong> <code>{{host}}/ezr/addpatient</code></p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>The request body must be in JSON format and should include the following parameters:</p>\n<ul>\n<li><p><code>dateOfBirth</code> (string): The date of birth of the patient in the format YYYYMMDD.</p>\n</li>\n<li><p><code>family</code> (string): The family name of the patient.</p>\n</li>\n<li><p><code>gender</code> (string): The gender of the patient (e.g., 'M' for male, 'F' for female).</p>\n</li>\n<li><p><code>given</code> (string): The given name of the patient.</p>\n</li>\n<li><p><code>streetAddressLine1</code> (string): The primary street address of the patient.</p>\n</li>\n<li><p><code>streetAddressLine2</code> (string): The secondary street address of the patient (optional).</p>\n</li>\n<li><p><code>city</code> (string): The city where the patient resides.</p>\n</li>\n<li><p><code>state</code> (string): The state where the patient resides.</p>\n</li>\n<li><p><code>zip</code> (string): The ZIP code of the patient's address.</p>\n</li>\n<li><p><code>patientId</code> (string): A unique identifier for the patient (e.g., Medical Record Number).</p>\n</li>\n</ul>\n<h4 id=\"example-request-body\">Example Request Body</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"dateOfBirth\": \"20010822\",\n  \"family\": \"Testpatient\",\n  \"gender\": \"M\",\n  \"given\": \"John\",\n  \"streetAddressLine1\": \"12345 Main St\",\n  \"streetAddressLine2\": \"suite 312\",\n  \"city\": \"SomeWheresVille\",\n  \"state\": \"Florida\",\n  \"zip\": \"22211-123\",\n  \"patientId\": \"MRN0001234\"\n}\n\n</code></pre>\n<h3 id=\"response-structure\">Response Structure</h3>\n<p>Upon a successful request, the response will typically include:</p>\n<ul>\n<li><p>A status code indicating the success or failure of the operation.</p>\n</li>\n<li><p>A message providing additional information about the result of the request.</p>\n</li>\n</ul>\n<p>The exact structure of the response may vary based on the implementation but will generally confirm the addition of the patient or describe any errors encountered during the process.</p>\n<p>Ensure that all required fields are included in the request body to avoid validation errors.</p>\n","urlObject":{"path":["ezr","{{env}}","addpatient"],"host":["{{host}}"],"query":[],"variable":[]}},"response":[{"id":"41e040eb-e17f-4302-b5ea-f0113b3624a5","name":"Success Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\n    \"dateOfBirth\": \"20010822\",\n    \"family\": \"Testpatient\",\n    \"gender\": \"M\",\n    \"given\": \"John\",\n    \"streetAddressLine1\": \"12345 Main St\",\n    \"streetAddressLine2\": \"suite 312\",\n    \"city\": \"SomeWheresVille\",\n    \"state\": \"Florida\",\n    \"zip\": \"22211-123\",\n    \"patientId\": \"MRN0001234\",\n  }","options":{"raw":{"language":"json"}}}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \n    \"patientId\" : \"b50275c6-955b-428f-b8cf-5dbf6ade4fe9\"\n    \"message\" : \"patient successfully added\"\n\n}"},{"id":"788a2615-3428-444d-8ddf-87eb80448e75","name":"Error Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":" {\n    \"dateOfBirth\": \"20010822\",\n    \"family\": \"Testpatient\",\n    \"gender\": \"M\",\n    \"given\": \"John\",\n    \"streetAddressLine1\": \"12345 Main St\",\n    \"streetAddressLine2\": \"suite 312\",\n    \"city\": \"SomeWheresVille\",\n    \"state\": \"Florida\",\n    \"zip\": \"22211-123\",\n    \"patientId\": \"MRN0001234\",\n  }","options":{"raw":{"language":"json"}}}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"Missing required data fields in source JSON: dateOfBirth\"\n}"}],"_postman_id":"2bf8a7ce-9893-433c-adcc-4f72d1d362fd"}],"id":"f42a7fa9-bd5a-4c9a-8009-f84ba7f93e2e","description":"<h1 id=\"overview\">Overview</h1>\n<p>EasyResponder Repostory is a turnkey interoperability clinical repository that enables healthcare organizations to participate in national health information networks—such as Carequality and CommonWell—even if they do not have the technical infrastructure to process complex patient information requests internally.</p>\n<h2 id=\"what-does-easyresponder-do\">What Does EasyResponder Do?</h2>\n<ul>\n<li><p><strong>National Network Connectivity:</strong><br />  EasyResponder responds to queries for patient records from national networks (e.g., Carequality, CommonWell) on behalf of your organization.</p>\n</li>\n<li><p><strong>Patient Index and Clinical Repository:</strong><br />  The service acts as both a Master Patient Index (MPI) and a clinical document repository for your organization.</p>\n</li>\n<li><p><strong>Simple Onboarding:</strong><br />  Customers upload their patient data and documents to EasyResponder via a simple to use REST API. We manage and fulfill queries from the national networks using your data.</p>\n</li>\n</ul>\n<h2 id=\"why-use-easyresponder\">Why Use EasyResponder?</h2>\n<p>Organizations without robust health IT infrastructure can use EasyResponder to seamlessly participate in nationwide clinical data exchange. By managing network queries and responding on your behalf,</p>\n","_postman_id":"f42a7fa9-bd5a-4c9a-8009-f84ba7f93e2e"}],"variable":[{"key":"version","value":"","type":"default"}]}