API Name: DiagnosticReport.$retrieve
This API retrieves DiagnosticReport record(s) associated with a patient, identified by the patient's NRIC identifier. Supported report types include Lab Results, Radiology Reports, Genomics Reports, and Screening Reports (Breast, Cervical, Chronic Disease, Colorectal, and Pap Smear).
Specification
| Endpoint | [baseurl]/DiagnosticReport/$retrieve |
|---|---|
| Protocol | HTTPS |
| HTTP Method | GET |
| HTTP Header | Accept: application/fhir+json |
Request Parameters
| Parameter | Type | Cardinality | Description |
|---|---|---|---|
patient.identifier |
token | 1..1 | The patient's identifier in system\|value format. Use https://fhir.synapxe.sg/NamingSystem/nric\|<NRIC>. |
category |
token | 0..1 | Filter by report category. Use a code from the table below to retrieve a specific report type. |
date |
date | 0..2 | Filter by report date. Supports ge and le prefixes for date range (e.g. ge2026-01-01&date=le2026-06-30). |
status |
token | 0..1 | Filter by report status (e.g. final, preliminary). |
_count |
number | 0..1 | Maximum number of results to return per page. |
Category Codes
| Report Type | System | Code |
|---|---|---|
| Lab Result | http://terminology.hl7.org/CodeSystem/v2-0074 | LAB |
| Radiology Report | http://terminology.hl7.org/CodeSystem/v2-0074 | RAD |
| Genomics Report | http://terminology.hl7.org/CodeSystem/v2-0074 | GE |
| Breast Screening Report | https://fhir.synapxe.sg/CodeSystem/screen-type | breast-screen |
| Cervical Screening Report | https://fhir.synapxe.sg/CodeSystem/screen-type | cervical-screen |
| Chronic Disease Screening Report | https://fhir.synapxe.sg/CodeSystem/screen-type | screen-for-life-chronic-disease |
| Colorectal Screening Report | https://fhir.synapxe.sg/CodeSystem/screen-type | colorectal-screen |
| Pap Smear Report | https://fhir.synapxe.sg/CodeSystem/screen-type | screen-for-life-pap-smear |
Example Request
GET [baseurl]/DiagnosticReport/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S9876543D&category=GE
Successful Response
The response is a searchset Bundle containing the matching DiagnosticReport resource(s), each conforming to the profile for the requested report type.
Business Level Errors
This section details the business level errors exposed by OperationOutcome resource for this operation. Refer to API Error Handling for framework level errors.
For illustration only
| http status code | code | details.coding.code | details.text |
|---|---|---|---|
| 404 | not-found | E-10000 | No matching patient found based on NRIC, Date of Birth and Gender |
| 404 | not-found | E-10001 | Institution code for organization is not found |
| 404 | not-found | E-10002 | Organization code is not found |
| 400 | business-rule | E-10003 | Patient is not currently enrolled to the organization |
| 400 | duplicate | E-10004 | An attempt was made to create a duplicate record |
| 400 | invalid | E-10005 | Invalid allergy intolerance identifier |
| 400 | invalid | E-10006 | Invalid clinical or verification status |