QA scenarios
Start with known synthetic patients and follow each request through the expected Gateway response, filtering behavior and document retrieval.
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.
PDRTEST-NP2-BRONX-QA02
- Obtain an access token.
- Query the patient using QE BRONX and assigning authority IFH.
- Confirm the response contains the expected CCD and TRN DocumentReferences.
- Repeat the query with a single docType to validate filtering.
- Use content[].attachment.url from a returned DocumentReference for Retrieve.
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
| Tag | Cohort | QE | Assigning authority | Test MRN | Purpose | Query returns |
|---|---|---|---|---|---|---|
| QA01 | Non-Part 2 | HECDCS | AUBURN-COMMUNITY | PDRTEST-NP2-HECDCS-QA01 | Rich standard patient | 4 CCD, 4 TRN |
| QA02 | Non-Part 2 | BRONX | IFH | PDRTEST-NP2-BRONX-QA02 | Standard patient, second QE | 3 CCD, 3 TRN |
| QA03 | Non-Part 2 | HIXNY | SPHPSJHDOC | PDRTEST-NP2-HIXNY-QA03 | One person with two linked MRNs (alias matching) | 4 CCD, 4 TRN in total across both MRNs |
| QA03 | Non-Part 2 | HEALTHIX | CHS | PDRTEST-NP2-HEALTHIX-QA03 | Second MRN of the same person | Same as above |
| QA05 | Non-Part 2 | GRRHIO | UR1649 | PDRTEST-NP2-GRRHIO-QA05 | Narrow mix, for docType filtering | 1 CCD, 3 TRN |
| QA06 | Non-Part 2 | TXD | ENNPC | PDRTEST-NP2-TXD-QA06 | Matched patient with no documents | HTTP 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. RequestingdocTypes: ["Lab"]or["Rad"]returns 0 documents. - docType filtering. For QA05,
docTypes: ["CCD"]returns 1 document anddocTypes: ["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.
| Cohort | QE | Assigning authority | Test MRN | Status |
|---|---|---|---|---|
| Non-Part 2 | HECDCS | AUBURN-COMMUNITY | PDRTEST-NP2-HECDCS-20260917-0001 | Unavailable |
| Non-Part 2 | GRRHIO | UR1649 | PDRTEST-NP2-GRRHIO-20260917-0002 | Unavailable |
| Non-Part 2 | TXD | ENNPC | PDRTEST-NP2-TXD-20260917-0003 | Unavailable |
| Non-Part 2 | HIXNY | SPHPSJHDOC | PDRTEST-NP2-HIXNY-20260917-0004 | Unavailable |
| Non-Part 2 | HEALTHIX | CHS | PDRTEST-NP2-HEALTHIX-20260917-0005 | Unavailable |
| Non-Part 2 | BRONX | IFH | PDRTEST-NP2-BRONX-20260917-0006 | Unavailable |
| Part 2 | HECDCS | AUBURN-COMMUNITY | PDRTEST-P2-HECDCS-20260917-0007 | Unavailable |
| Part 2 | GRRHIO | UR1649 | PDRTEST-P2-GRRHIO-20260917-0008 | Unavailable |
| Part 2 | TXD | ENNPC | PDRTEST-P2-TXD-20260917-0009 | Unavailable |
| Part 2 | HIXNY | SPHPSJHDOC | PDRTEST-P2-HIXNY-20260917-0010 | Unavailable |
| Part 2 | HEALTHIX | CHS | PDRTEST-P2-HEALTHIX-20260917-0011 | Unavailable |
| Part 2 | BRONX | IFH | PDRTEST-P2-BRONX-20260917-0012 | Unavailable |