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, 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
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=LAB

Successful Response

The response is a searchset Bundle containing the matching DiagnosticReport resource(s), each conforming to the profile for the requested report type.

{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 1,
"link": [
{
"relation": "self",
"url": "[baseurl]/DiagnosticReport/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S9876543D&category=LAB"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/DiagnosticReport/labresult-001",
"resourceType": "DiagnosticReport",
"id": "labresult-001",
"meta": {
"lastUpdated": "2026-02-10T16:15:00.1+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "LAB-RPT-2026-002345"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/accession-no",
"value": "ACC-LAB-2026-002345"
}
],
"status": "final",
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0074",
"code": "LAB",
"display": "Laboratory"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "24331-1",
"display": "Lipid panel - Serum or Plasma"
}
]
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S9876543D"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "VN-2026-002345"
}
},
"effectiveDateTime": "2026-02-10T08:30:00+08:00",
"issued": "2026-02-10T16:15:00+08:00",
{
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/mcr",
"value": "M23456"
}
}
]
},
"search": {
"mode": "match"
}
}
]
}
{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 1,
"link": [
{
"relation": "self",
"url": "[baseurl]/DiagnosticReport/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S1234567A&category=RAD"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/DiagnosticReport/radiologyreport-001",
"resourceType": "DiagnosticReport",
"id": "radiologyreport-001",
"meta": {
"lastUpdated": "2026-02-10T14:45:00.1+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "RAD-RPT-2026-001234"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/accession-no",
"value": "ACC-RAD-2026-001234"
}
],
"status": "final",
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0074",
"code": "RAD",
"display": "Radiology"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "30746-2",
"display": "Chest X-ray"
}
]
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "VN-2026-001234"
}
},
"effectiveDateTime": "2026-02-10T10:30:00+08:00",
"issued": "2026-02-10T14:45:00+08:00",
{
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/mcr",
"value": "M12345"
}
}
]
},
"search": {
"mode": "match"
}
}
]
}
{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 1,
"link": [
{
"relation": "self",
"url": "[baseurl]/DiagnosticReport/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S1234567A&category=breast-screen"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/DiagnosticReport/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"resourceType": "DiagnosticReport",
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"meta": {
"lastUpdated": "2026-04-01T09:00:00.1+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "BS-RPT-2026-001234"
}
],
"status": "final",
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/screen-type",
"code": "breast-screen",
"display": "Breast Screening Report"
}
]
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"effectiveDateTime": "2026-04-01T09:00:00+08:00",
"issued": "2026-04-01T09:00:00+08:00",
{
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "11329-0",
"display": "History general Narrative - Reported"
}
]
},
"reference": "Observation/observation-history-001"
}
}
]
},
"search": {
"mode": "match"
}
}
]
}
{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 1,
"link": [
{
"relation": "self",
"url": "[baseurl]/DiagnosticReport/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S1234567A&category=cervical-screen"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/DiagnosticReport/diagnosticreport-cvs-001",
"resourceType": "DiagnosticReport",
"id": "diagnosticreport-cvs-001",
"meta": {
"lastUpdated": "2026-02-10T16:00:00.1+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "CVS-RPT-2026-001234"
}
],
"status": "final",
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/screen-type",
"code": "cervical-screen",
"display": "Cervical Screening Report"
}
]
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"effectiveDateTime": "2026-02-09T09:00:00+08:00",
"issued": "2026-02-09T09:00:00+08:00",
{
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "11329-0",
"display": "History general Narrative - Reported"
}
]
},
"reference": "Observation/observation-history-001"
}
}
],
{
"text": "Negative for intraepithelial lesion or malignancy. HPV not detected. Routine screening recommended in 3 years."
}
]
},
"search": {
"mode": "match"
}
}
]
}
{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 1,
"link": [
{
"relation": "self",
"url": "[baseurl]/DiagnosticReport/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S1234567A&category=screen-for-life-chronic-disease"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/DiagnosticReport/diagnosticreport-cd-001",
"resourceType": "DiagnosticReport",
"id": "diagnosticreport-cd-001",
"meta": {
"lastUpdated": "2026-02-10T16:00:00.1+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "CD-RPT-2026-001234"
}
],
"status": "final",
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/screen-type",
"code": "screen-for-life-chronic-disease",
"display": "Screen For Life - Chronic Disease Screening Report"
}
]
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"effectiveDateTime": "2026-02-09T09:00:00+08:00",
"issued": "2026-02-09T09:30:00+08:00",
{
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "11234"
}
}
]
},
"search": {
"mode": "match"
}
}
]
}
{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 1,
"link": [
{
"relation": "self",
"url": "[baseurl]/DiagnosticReport/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S1234567A&category=screen-for-life-colorectal"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/DiagnosticReport/diagnosticreport-colo-001",
"resourceType": "DiagnosticReport",
"id": "diagnosticreport-colo-001",
"meta": {
"lastUpdated": "2026-02-10T16:00:00.1+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "COLO-RPT-2026-001234"
}
],
"status": "final",
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/screen-type",
"code": "screen-for-life-colorectal",
"display": "Screen For Life - Colorectal Screening Report"
}
]
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"effectiveDateTime": "2026-02-09T09:00:00+08:00",
"issued": "2026-02-09T10:00:00+08:00",
{
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "11234"
}
}
],
{
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "11329-0",
"display": "History general Narrative - Reported"
}
]
},
"reference": "Observation/observation-history-001"
}
},
{
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "57829-2",
"display": "Follow-up visit note"
}
]
},
"reference": "Observation/observation-followup-001"
}
}
]
},
"search": {
"mode": "match"
}
}
]
}
{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 1,
"link": [
{
"relation": "self",
"url": "[baseurl]/DiagnosticReport/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S8234567D&category=screen-for-life-pap-smear"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/DiagnosticReport/dr-ps-001",
"resourceType": "DiagnosticReport",
"id": "dr-ps-001",
"meta": {
"lastUpdated": "2026-02-10T16:00:00.1+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/diagnosticreport-id",
"value": "PS-2026-000123"
}
],
"status": "final",
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/screen-type",
"code": "screen-for-life-pap-smear",
"display": "Screen For Life - Pap Smear Screening Report"
}
]
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S8234567D"
}
},
"effectiveDateTime": "2026-02-09T09:15:00+08:00",
"issued": "2026-02-09T14:30:00+08:00",
{
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "11111111"
}
}
],
{
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/mcr",
"value": "M12345A"
}
}
],
{
"type": {
"coding": [
{
"system": "http://loinc.org",
"code": "11329-0",
"display": "History general Narrative - Reported"
}
]
},
"reference": "Observation/observation-history-001"
}
}
]
},
"search": {
"mode": "match"
}
}
]
}

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 the provided identifier
404 not-found E-10001 Institution code for group organization is not found
404 not-found E-10002 Group Organization code is not found
400 invalid E-10003 Missing required parameter: patient.identifier
400 invalid E-10004 Invalid patient identifier format. Expected system|value
400 business-rule E-10005 Patient is not currently enrolled to the organization