Skip to main content
Draft - pending technical reviewOwner PDR Engineering (owner to be confirmed)Last verified 2026-11-20

QA scenarios

Start with known synthetic patients and follow each request through the expected Gateway response, filtering behavior and document retrieval.

QA contract

Scenarios marked Validated have been exercised against the Gateway. Scenarios marked Unavailable cannot currently be run. Do not treat any scenario as available until it has been seeded and verified.

Scenarios​

Standard Document Query

Use a known non-Part 2 QA patient to validate the complete Query response and inspect returned DocumentReferences.

Expected document inventory
3CCD
0Lab
0Rad
3TRN
Test MRN
PDRTEST-NP2-BRONX-QA02
Walkthrough
  1. Obtain an access token.
  2. Query the patient using QE BRONX and assigning authority IFH.
  3. Confirm the response contains the expected CCD and TRN DocumentReferences.
  4. Repeat the query with a single docType to validate filtering.
  5. Use content[].attachment.url from a returned DocumentReference for Retrieve.
Example queries and expected results
Query all supported document types

Expected result: 6 DocumentReferences: 3 CCD + 3 TRN

{
"qe": "BRONX",
"assigningAuthority": "IFH",
"mrn": "PDRTEST-NP2-BRONX-QA02",
"docTypes": [
"CCD",
"Lab",
"Rad",
"TRN"
],
"part2": false
}
Query CCD only

Expected result: 3 CCD DocumentReferences

{
"qe": "BRONX",
"assigningAuthority": "IFH",
"mrn": "PDRTEST-NP2-BRONX-QA02",
"docTypes": [
"CCD"
],
"part2": false
}
Query TRN only

Expected result: 3 TRN DocumentReferences

{
"qe": "BRONX",
"assigningAuthority": "IFH",
"mrn": "PDRTEST-NP2-BRONX-QA02",
"docTypes": [
"TRN"
],
"part2": false
}

QA test patients​

These synthetic patients are available in the QA environment for testing Document Query and Retrieve. All names, MRNs and clinical content are synthetic. None of it is real patient data.

Available patients​

TagCohortQEAssigning authorityTest MRNPurposeQuery returns
QA01Non-Part 2HECDCSAUBURN-COMMUNITYPDRTEST-NP2-HECDCS-QA01Rich standard patient4 CCD, 4 TRN
QA02Non-Part 2BRONXIFHPDRTEST-NP2-BRONX-QA02Standard patient, second QE3 CCD, 3 TRN
QA03Non-Part 2HIXNYSPHPSJHDOCPDRTEST-NP2-HIXNY-QA03One person with two linked MRNs (alias matching)4 CCD, 4 TRN in total across both MRNs
QA03Non-Part 2HEALTHIXCHSPDRTEST-NP2-HEALTHIX-QA03Second MRN of the same personSame as above
QA05Non-Part 2GRRHIOUR1649PDRTEST-NP2-GRRHIO-QA05Narrow mix, for docType filtering1 CCD, 3 TRN
QA06Non-Part 2TXDENNPCPDRTEST-NP2-TXD-QA06Matched patient with no documentsHTTP 200, 0 documents

Each patient's documents carry clinical dates spread between March 2025 and October 2026, so results span a realistic timeline rather than a single day.

Notes for testers​

  • Count unique documents. Every query returns one result row per matched alias, and the same documents can appear in more than one row. Deduplicate on QE + documentUri.
  • QA03 (linked MRNs). Querying either MRN returns rows for both: 2 CCD and 2 TRN belong to each MRN, 4 CCD and 4 TRN in total. Use it to test alias handling.
  • Lab and Rad. QA01 and QA02 were also loaded with Lab and Rad (HL7 v2 ORU^R01) documents, but these types don't currently index in QA, so they aren't returned. Requesting docTypes: ["Lab"] or ["Rad"] returns 0 documents.
  • docType filtering. For QA05, docTypes: ["CCD"] returns 1 document and docTypes: ["TRN"] returns 3.
  • Unknown patients. Querying an MRN that isn't registered in Patient Match currently returns HTTP 502 with status: PATIENT_MATCH_ERROR, not a 404 or an empty 200. This is not yet in the OpenAPI spec.

Currently unavailable​

Part 2 patients​

No Part 2 test patient currently returns documents in QA. A Part 2 test patient (PDRTEST-P2-HECDCS-QA04, HECDCS / AUBURN-COMMUNITY) is registered, but its documents can't be loaded until a QA intake configuration issue is resolved. Until then, a Part 2 query (part2: true) for it returns HTTP 200 with 0 documents.

September 2026 test patients​

The 12 test patients published in September 2026 are unavailable. They still match through Patient Match, but their documents no longer come back from Query. This is under investigation. Don't use them for testing until this page lists them as available again.

CohortQEAssigning authorityTest MRNStatus
Non-Part 2HECDCSAUBURN-COMMUNITYPDRTEST-NP2-HECDCS-20260917-0001Unavailable
Non-Part 2GRRHIOUR1649PDRTEST-NP2-GRRHIO-20260917-0002Unavailable
Non-Part 2TXDENNPCPDRTEST-NP2-TXD-20260917-0003Unavailable
Non-Part 2HIXNYSPHPSJHDOCPDRTEST-NP2-HIXNY-20260917-0004Unavailable
Non-Part 2HEALTHIXCHSPDRTEST-NP2-HEALTHIX-20260917-0005Unavailable
Non-Part 2BRONXIFHPDRTEST-NP2-BRONX-20260917-0006Unavailable
Part 2HECDCSAUBURN-COMMUNITYPDRTEST-P2-HECDCS-20260917-0007Unavailable
Part 2GRRHIOUR1649PDRTEST-P2-GRRHIO-20260917-0008Unavailable
Part 2TXDENNPCPDRTEST-P2-TXD-20260917-0009Unavailable
Part 2HIXNYSPHPSJHDOCPDRTEST-P2-HIXNY-20260917-0010Unavailable
Part 2HEALTHIXCHSPDRTEST-P2-HEALTHIX-20260917-0011Unavailable
Part 2BRONXIFHPDRTEST-P2-BRONX-20260917-0012Unavailable