API Name: List.$retrieve


This API retrieves list Bundle(s) containing Problem List or Patient Medication List data associated with a patient, identified by the patient's identifier.

Specification


Endpoint [baseurl]/List/$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>.
type token 0..1 Filter by list type. Use problem-list for Problem List or medication-list for Patient Medication List.
date date 0..2 Filter by list date. Supports ge and le prefixes for date range (e.g. ge2026-01-01&date=le2026-06-30).
status token 0..1 Filter by list status (e.g. current).
_count number 0..1 Maximum number of results to return per page.

List Type Codes

List Type System Code
Problem List http://loinc.org 11450-4
Patient Medication List http://loinc.org 10160-0

Example Request

GET [baseurl]/List/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S1234567A

Successful Response

The response is a searchset Bundle containing the matching List resource(s) and their associated resources, each conforming to the respective allowed profile.

Profile Name StructureDefinition StructureDefinition URL
Problem List BundleProblemList https://fhir.synapxe.sg/StructureDefinition/profile-bundle-problemlist
Patient Medication List BundlePatientMedicationList https://fhir.synapxe.sg/StructureDefinition/profile-bundle-patientmedicationlist
{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 1,
"link": [
{
"relation": "self",
"url": "[baseurl]/List/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S1234567A&type=problem-list"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/List/list-problemlist-001",
"resourceType": "List",
"id": "list-problemlist-001",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.1+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/list-id",
"value": "LIST-20260101-001"
}
],
"status": "current",
"mode": "working",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "11450-4",
"display": "Problem list - Reported"
}
]
},
"subject": [
{
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
}
],
"date": "2026-01-01T08:00:00+08:00",
"source": {
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "SGH001"
}
},
"entry": [
{
"item": {
"reference": "Condition/condition-001"
}
},
{
"item": {
"reference": "Condition/condition-002"
}
}
]
}
},
{
"fullUrl": "https://fhir.synapxe.sg/Condition/condition-001",
"resourceType": "Condition",
"id": "condition-001",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.101+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "COND-20260101-001"
}
],
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "active",
"display": "Active"
}
]
},
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "44054006",
"display": "Diabetes mellitus type 2"
}
]
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
{
"actor": {
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/mcr",
"value": "M12345"
}
}
}
]
}
},
{
"fullUrl": "https://fhir.synapxe.sg/Condition/condition-002",
"resourceType": "Condition",
"id": "condition-002",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.102+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "COND-20260101-002"
}
],
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "active",
"display": "Active"
}
]
},
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "38341003",
"display": "Hypertensive disorder"
}
]
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
{
"actor": {
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/mcr",
"value": "M12345"
}
}
}
]
}
}
]
}
{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 1,
"link": [
{
"relation": "self",
"url": "[baseurl]/List/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S1234567A&type=medication-list"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/List/list-001",
"resourceType": "List",
"id": "list-001",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.1+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/pml-id",
"value": "PML-2026-001"
}
],
"status": "current",
"mode": "working",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "10160-0",
"display": "Medication List"
}
]
},
"subject": [
{
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
}
],
"date": "2026-02-13T10:30:00+08:00",
"source": {
"type": "PractitionerRole",
"system": "https://fhir.synapxe.sg/NamingSystem/mcr",
"value": "M12345"
}
},
"entry": [
{
"date": "2026-01-15T10:00:00+08:00",
"item": {
"reference": "MedicationStatement/medicationstatement-001"
}
},
{
"date": "2026-02-01T14:30:00+08:00",
"item": {
"reference": "MedicationStatement/medicationstatement-002"
}
}
]
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationStatement/medicationstatement-001",
"resourceType": "MedicationStatement",
"id": "medicationstatement-001",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.101+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/sequence-no",
"value": "SEQ-001"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-no",
"value": "GRP-001"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-sequence-no",
"value": "GRPSEQ-001"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "REC-MS-2026-001"
}
],
"status": "recorded",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/medication-statement-category",
"code": "admission",
"display": "Admission"
}
]
}
],
"reference": "Medication/medication-001"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"dateAsserted": "2026-01-15T10:00:00+08:00",
{
"reference": "PractitionerRole/practitionerrole-001",
"type": "PractitionerRole"
}
],
"dosage": [
{
"text": "Take one tablet twice daily",
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "22253000",
"display": "Pain"
}
]
}
],
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "26643006",
"display": "Oral route"
}
]
},
{
"low": {
"value": 1,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tablet}"
},
"high": {
"value": 2,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tablet}"
}
}
}
]
}
]
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationStatement/medicationstatement-002",
"resourceType": "MedicationStatement",
"id": "medicationstatement-002",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.102+08:00"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/sequence-no",
"value": "SEQ-002"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-no",
"value": "GRP-002"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-sequence-no",
"value": "GRPSEQ-002"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "REC-MS-2026-002"
}
],
"status": "recorded",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/medication-statement-category",
"code": "discharge",
"display": "Discharge"
}
]
}
],
"reference": "Medication/medication-002"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"dateAsserted": "2026-02-01T14:30:00+08:00",
{
"reference": "PractitionerRole/practitionerrole-001",
"type": "PractitionerRole"
},
{
"type": "RelatedPerson",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S9876543B"
}
}
],
"dosage": [
{
"text": "Apply to affected area twice daily",
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "64572001",
"display": "Disease"
}
]
}
],
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "6064005",
"display": "Topical route"
}
]
},
{
"low": {
"value": 1,
"unit": "application",
"system": "http://unitsofmeasure.org",
"code": "{application}"
},
"high": {
"value": 2,
"unit": "application",
"system": "http://unitsofmeasure.org",
"code": "{application}"
}
}
}
]
}
]
}
},
{
"fullUrl": "https://fhir.synapxe.sg/Medication/medication-001",
"resourceType": "Medication",
"id": "medication-001",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.103+08:00"
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/med-code",
"code": "PARA500MG",
"display": "Paracetamol 500 mg"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "385055001",
"display": "Tablet"
}
]
}
}
},
{
"fullUrl": "https://fhir.synapxe.sg/Medication/medication-002",
"resourceType": "Medication",
"id": "medication-002",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.104+08:00"
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/med-code",
"code": "PRED5MG",
"display": "Prednisolone 5 mg"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "385099005",
"display": "Cream"
}
]
}
}
},
{
"fullUrl": "https://fhir.synapxe.sg/PractitionerRole/practitionerrole-001",
"resourceType": "PractitionerRole",
"id": "practitionerrole-001",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.105+08:00"
},
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/mcr",
"value": "M12345"
}
},
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "SGH001"
}
}
}
},
{
"fullUrl": "https://fhir.synapxe.sg/RelatedPerson/relatedperson-001",
"resourceType": "RelatedPerson",
"id": "relatedperson-001",
"meta": {
"lastUpdated": "2026-03-31T10:00:00.106+08:00"
},
"patient": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
"code": "WIFE",
"display": "Wife"
}
]
}
],
"name": [
{
"use": "official",
"family": "Doe",
"given": [
"Jane"
]
}
]
}
}
]
}

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