API Name: MedicationDispense.$retrieve


This API retrieves MedicationDispense record(s) associated with a patient, identified by the patient's NRIC identifier.

Specification


Endpoint [baseurl]/MedicationDispense/$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>.
date date 0..2 Filter by dispense date. Supports ge and le prefixes for date range (e.g. ge2026-01-01&date=le2026-06-30).
status token 0..1 Filter by dispense status (e.g. completed, in-progress).
_count number 0..1 Maximum number of results to return per page.

Example Request

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

Successful Response

The response is a searchset Bundle containing the matching MedicationDispense resource(s), each conforming to MedicationDispense.

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
textC0..1Narrative
medicationC0..1Medication
medicationrequestC0..1MedicationRequest
changesMadeC0..*Extension(Complex)
orderSetConnectingTermC0..1Extension(CodeableConcept)
dispensingInstitutionC0..1Extension(Reference(Organization))
modifierExtensionΣ ?! C0..0Extension
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uri
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
basedOnC0..0Reference(CarePlan)
partOfC0..0Reference(MedicationAdministration | Procedure)
statusΣ ?!1..1codeBinding
id0..0string
extensionC0..0Extension
id0..0string
extensionC0..0Extension
id0..0string
extensionC0..0Extension
systemΣ1..1uriFixed Value
versionΣ0..0string
codeΣ C1..1code
displayΣ C1..1string
userSelectedΣ0..0boolean
textΣ0..0string
referenceΣ C0..0Reference
statusChanged0..0dateTime
id0..0string
extensionC0..0Extension
id0..0string
extensionC0..0Extension
systemΣ1..1uriFixed Value
versionΣ0..1string
codeΣ C1..1code
displayΣ C1..1string
userSelectedΣ0..0boolean
textΣ0..0string
id0..0string
extensionC0..0Extension
id0..0string
extensionC0..0Extension
referenceΣ C0..1string
typeΣ0..1uriBinding
identifierΣ C0..1Identifier
displayΣ C0..1string
id0..0string
extensionC0..0Extension
referenceΣ C0..0string
typeΣ1..1uriBindingFixed Value
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
displayΣ C0..0string
id0..0string
extensionC0..0Extension
referenceΣ C0..0string
typeΣ1..1uriBindingFixed Value
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
displayΣ C0..0string
supportingInformationC0..0Reference(Resource)
id0..0string
extensionC0..0Extension
modifierExtensionΣ ?! C0..0Extension
function0..0CodeableConcept
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..1uriBinding
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uriFixed Value
valueΣ C0..1string
periodΣ C0..1Period
assignerΣ C0..1Reference(Organization)
displayΣ C0..0string
id0..0string
extensionC0..0Extension
referenceΣ C0..0string
typeΣ1..1uriBindingFixed Value
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
displayΣ C0..0string
id0..0string
extensionC0..0Extension
referenceΣ C0..0string
typeΣ1..1uriBindingFixed Value
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
displayΣ C0..0string
id0..0string
extensionC0..0Extension
valueΣ1..1decimal
comparatorΣ ?!0..0codeBinding
unitΣ1..1string
systemΣ C1..1uri
codeΣ C1..1code
recorded1..1dateTime
whenPreparedΣ C1..1dateTime
whenHandedOverC0..0dateTime
id0..0string
extensionC0..0Extension
referenceΣ C0..0string
typeΣ1..1uriBindingPattern
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriPattern
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
displayΣ C1..1string
receiverC0..0Reference(Location | Patient | Practitioner | PractitionerRole | RelatedPerson)
note0..0Annotation
renderedDosageInstruction0..0markdown
id0..0string
extensionC0..0Extension
modifierExtensionΣ ?! C0..0Extension
sequenceΣ1..1integer
textΣ0..1string
id0..0string
extensionC0..0Extension
textΣ1..1string
patientInstructionΣ0..0string
id0..0string
extensionC0..0Extension
modifierExtensionΣ ?! C0..0Extension
eventΣ0..0dateTime
id0..0string
extensionC0..0Extension
id0..0string
extensionC0..0Extension
startΣ C1..1dateTime
endΣ C1..1dateTime
countΣ C0..1positiveInt
countMaxΣ C0..1positiveInt
durationΣ C0..1decimal
durationMaxΣ C0..1decimal
durationUnitΣ C0..1codeBinding
frequencyΣ0..1positiveInt
frequencyMaxΣ0..1positiveInt
periodΣ C0..1decimal
periodMaxΣ C0..1decimal
periodUnitΣ C0..1codeBinding
dayOfWeekΣ0..1codeBinding
timeOfDayΣ C0..1time
whenΣ C0..1codeBinding
offsetΣ C0..1unsignedInt
id0..0string
extensionC0..0Extension
id0..0string
extensionC0..0Extension
systemΣ1..1uri
versionΣ0..1string
codeΣ C1..1code
displayΣ C1..1string
userSelectedΣ0..0boolean
textΣ0..0string
asNeededΣ C0..0boolean
id0..0string
extensionC0..0Extension
codingΣ C0..0Coding
textΣ1..1string
siteΣ0..0CodeableConcept
id0..0string
extensionC0..0Extension
id0..0string
extensionC0..0Extension
systemΣ1..1uri
versionΣ0..1string
codeΣ C1..1code
displayΣ C1..1string
userSelectedΣ0..0boolean
textΣ0..0string
methodΣ0..0CodeableConcept
id0..0string
extensionC0..0Extension
typeΣ0..0CodeableConcept
doseQuantitySimpleQuantity
doseRangeRange
maxDosePerPeriodΣ C0..0Ratio
maxDosePerAdministrationΣ C0..0SimpleQuantity
maxDosePerLifetimeΣ C0..0SimpleQuantity
eventHistoryC0..0Reference(Provenance)
{
"resourceType": "Bundle",
"type": "searchset",
"timestamp": "2026-03-31T10:00:00+08:00",
"total": 6,
"link": [
{
"relation": "self",
"url": "[baseurl]/MedicationDispense/$retrieve?patient.identifier=https://fhir.synapxe.sg/NamingSystem/nric|S9876543B"
}
],
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/MedicationDispense/medicationdispense-stepdose-001",
"resourceType": "MedicationDispense",
"id": "medicationdispense-stepdose-001",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.1+08:00"
},
{
"resourceType": "Medication",
"id": "med-001",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medication"
]
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/med-code",
"code": "PRED10MG",
"display": "Prednisolone 10 mg"
}
]
}
}
],
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-orderSetConnectingTerm",
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-set-connecting-term",
"code": "THEN",
"display": "THEN"
}
]
}
},
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-dispensingInstitution",
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "HCI-98765"
},
"display": "Tan Tock Seng Hospital"
}
}
],
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "REC-2026-00111"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/dispense-id",
"value": "DISP-2026-00111"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/source-grouping-id",
"value": "SGI-2026-00456"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/sequence-no",
"value": "1.1"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-no",
"value": "SDSGH103599"
}
],
"status": "completed",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/dispense-type",
"code": "outpatient",
"display": "Outpatient Dispense"
}
]
}
],
"reference": "#med-001"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S9876543B"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
{
"actor": {
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
}
}
],
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/dispensing-location-id",
"value": "DISP-LOC-001"
}
},
{
"type": "MedicationRequest",
"system": "https://fhir.synapxe.sg/NamingSystem/order-no",
"value": "ORD-2026-00111"
}
}
],
"value": 3,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
},
"recorded": "2026-03-19T10:00:00+08:00",
"whenPrepared": "2026-03-19T10:15:00+08:00",
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/facility-unit-id",
"value": "FAC-WARD-5A"
},
"display": "Ward 5A"
},
{
"sequence": 1,
"timing": {
"repeat": {
"start": "2026-03-19T00:00:00+08:00",
"end": "2026-03-21T23:59:59+08:00"
}
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/frequency",
"code": "OD",
"display": "Once Daily"
}
]
}
},
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "26643006",
"display": "Oral route"
}
]
},
{
"value": 1,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
}
}
]
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationDispense/medicationdispense-stepdose-002",
"resourceType": "MedicationDispense",
"id": "medicationdispense-stepdose-002",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.101+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense"
]
},
{
"resourceType": "Medication",
"id": "med-002",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medication"
]
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/med-code",
"code": "PRED5MG",
"display": "Prednisolone 5 mg"
}
]
}
}
],
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-orderSetConnectingTerm",
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-set-connecting-term",
"code": "THEN",
"display": "THEN"
}
]
}
},
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-dispensingInstitution",
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "HCI-98765"
},
"display": "Tan Tock Seng Hospital"
}
}
],
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "REC-2026-00112"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/dispense-id",
"value": "DISP-2026-00112"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/source-grouping-id",
"value": "SGI-2026-00456"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/sequence-no",
"value": "1.2"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-no",
"value": "SDSGH103599"
}
],
"status": "completed",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/dispense-type",
"code": "outpatient",
"display": "Outpatient Dispense"
}
]
}
],
"reference": "#med-002"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S9876543B"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
{
"actor": {
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
}
}
],
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/dispensing-location-id",
"value": "DISP-LOC-001"
}
},
{
"type": "MedicationRequest",
"system": "https://fhir.synapxe.sg/NamingSystem/order-no",
"value": "ORD-2026-00112"
}
}
],
"value": 5,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
},
"recorded": "2026-03-19T10:00:00+08:00",
"whenPrepared": "2026-03-19T10:15:00+08:00",
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/facility-unit-id",
"value": "FAC-WARD-5A"
},
"display": "Ward 5A"
},
{
"sequence": 2,
"timing": {
"repeat": {
"start": "2026-03-22T00:00:00+08:00",
"end": "2026-03-26T23:59:59+08:00"
}
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/frequency",
"code": "OD",
"display": "Once Daily"
}
]
}
},
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "26643006",
"display": "Oral route"
}
]
},
{
"value": 1,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
}
}
]
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationDispense/medicationdispense-stepdose-003",
"resourceType": "MedicationDispense",
"id": "medicationdispense-stepdose-003",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.102+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense"
]
},
{
"resourceType": "Medication",
"id": "med-003",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medication"
]
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/med-code",
"code": "PRED2MG",
"display": "Prednisolone 2 mg"
}
]
}
}
],
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-dispensingInstitution",
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "HCI-98765"
},
"display": "Tan Tock Seng Hospital"
}
}
],
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "REC-2026-00113"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/dispense-id",
"value": "DISP-2026-00113"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/source-grouping-id",
"value": "SGI-2026-00456"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/sequence-no",
"value": "1.3"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-no",
"value": "SDSGH103599"
}
],
"status": "completed",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/dispense-type",
"code": "outpatient",
"display": "Outpatient Dispense"
}
]
}
],
"reference": "#med-003"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S9876543B"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
{
"actor": {
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
}
}
],
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/dispensing-location-id",
"value": "DISP-LOC-001"
}
},
{
"type": "MedicationRequest",
"system": "https://fhir.synapxe.sg/NamingSystem/order-no",
"value": "ORD-2026-00113"
}
}
],
"value": 8,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
},
"recorded": "2026-03-19T10:00:00+08:00",
"whenPrepared": "2026-03-19T10:15:00+08:00",
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/facility-unit-id",
"value": "FAC-WARD-5A"
},
"display": "Ward 5A"
},
{
"sequence": 3,
"timing": {
"repeat": {
"start": "2026-03-27T00:00:00+08:00",
"end": "2026-04-03T23:59:59+08:00"
}
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/frequency",
"code": "OD",
"display": "Once Daily"
}
]
}
},
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "26643006",
"display": "Oral route"
}
]
},
{
"value": 1,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
}
}
]
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationDispense/medicationdispense-vardose-001",
"resourceType": "MedicationDispense",
"id": "medicationdispense-vardose-001",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.103+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense"
]
},
{
"resourceType": "Medication",
"id": "med-004",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medication"
]
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/med-code",
"code": "PARA1000MG",
"display": "Paracetamol 1000 mg"
}
]
}
}
],
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-orderSetConnectingTerm",
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-set-connecting-term",
"code": "AND",
"display": "AND"
}
]
}
},
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-dispensingInstitution",
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "HCI-98765"
},
"display": "Tan Tock Seng Hospital"
}
}
],
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "REC-2026-00114"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/dispense-id",
"value": "DISP-2026-00114"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/source-grouping-id",
"value": "SGI-2026-00456"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/sequence-no",
"value": "1.4"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-no",
"value": "SDSGH103599"
}
],
"status": "completed",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/dispense-type",
"code": "outpatient",
"display": "Outpatient Dispense"
}
]
}
],
"reference": "#med-004"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S9876543B"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
{
"actor": {
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
}
}
],
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/dispensing-location-id",
"value": "DISP-LOC-001"
}
},
{
"type": "MedicationRequest",
"system": "https://fhir.synapxe.sg/NamingSystem/order-no",
"value": "ORD-2026-00114"
}
}
],
"value": 28,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
},
"recorded": "2026-03-19T10:00:00+08:00",
"whenPrepared": "2026-03-19T10:15:00+08:00",
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/facility-unit-id",
"value": "FAC-WARD-5A"
},
"display": "Ward 5A"
},
{
"sequence": 1,
"timing": {
"repeat": {
"start": "2026-03-19T00:00:00+08:00",
"end": "2026-04-15T23:59:59+08:00"
},
"when": [
"MORN"
]
}
},
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "26643006",
"display": "Oral route"
}
]
},
{
"value": 1,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
}
}
]
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationDispense/medicationdispense-vardose-002",
"resourceType": "MedicationDispense",
"id": "medicationdispense-vardose-002",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.104+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense"
]
},
{
"resourceType": "Medication",
"id": "med-005",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medication"
]
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/med-code",
"code": "PARA500MG",
"display": "Paracetamol 500 mg"
}
]
}
}
],
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-orderSetConnectingTerm",
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-set-connecting-term",
"code": "AND",
"display": "AND"
}
]
}
},
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-dispensingInstitution",
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "HCI-98765"
},
"display": "Tan Tock Seng Hospital"
}
}
],
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "REC-2026-00115"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/dispense-id",
"value": "DISP-2026-00115"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/source-grouping-id",
"value": "SGI-2026-00456"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/sequence-no",
"value": "1.5"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-no",
"value": "SDSGH103599"
}
],
"status": "completed",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/dispense-type",
"code": "outpatient",
"display": "Outpatient Dispense"
}
]
}
],
"reference": "#med-005"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S9876543B"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
{
"actor": {
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
}
}
],
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/dispensing-location-id",
"value": "DISP-LOC-001"
}
},
{
"type": "MedicationRequest",
"system": "https://fhir.synapxe.sg/NamingSystem/order-no",
"value": "ORD-2026-00115"
}
}
],
"value": 28,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
},
"recorded": "2026-03-19T10:00:00+08:00",
"whenPrepared": "2026-03-19T10:15:00+08:00",
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/facility-unit-id",
"value": "FAC-WARD-5A"
},
"display": "Ward 5A"
},
{
"sequence": 2,
"timing": {
"repeat": {
"start": "2026-03-19T00:00:00+08:00",
"end": "2026-04-15T23:59:59+08:00"
},
"when": [
"AFT"
]
}
},
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "26643006",
"display": "Oral route"
}
]
},
{
"value": 1,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
}
}
]
}
]
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationDispense/medicationdispense-vardose-003",
"resourceType": "MedicationDispense",
"id": "medicationdispense-vardose-003",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.105+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationdispense"
]
},
{
"resourceType": "Medication",
"id": "med-006",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medication"
]
},
"code": {
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/med-code",
"code": "PARA100MG",
"display": "Paracetamol 100 mg"
}
]
}
}
],
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-dispensingInstitution",
"type": "Organization",
"system": "https://fhir.synapxe.sg/NamingSystem/hci-code",
"value": "HCI-98765"
},
"display": "Tan Tock Seng Hospital"
}
}
],
{
"system": "https://fhir.synapxe.sg/NamingSystem/record-id",
"value": "REC-2026-00116"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/dispense-id",
"value": "DISP-2026-00116"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/source-grouping-id",
"value": "SGI-2026-00456"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/sequence-no",
"value": "1.6"
},
{
"system": "https://fhir.synapxe.sg/NamingSystem/group-no",
"value": "SDSGH103599"
}
],
"status": "completed",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/dispense-type",
"code": "outpatient",
"display": "Outpatient Dispense"
}
]
}
],
"reference": "#med-006"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S9876543B"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
{
"actor": {
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
}
}
],
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/dispensing-location-id",
"value": "DISP-LOC-001"
}
},
{
"type": "MedicationRequest",
"system": "https://fhir.synapxe.sg/NamingSystem/order-no",
"value": "ORD-2026-00116"
}
}
],
"value": 28,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
},
"recorded": "2026-03-19T10:00:00+08:00",
"whenPrepared": "2026-03-19T10:15:00+08:00",
"type": "Location",
"system": "https://fhir.synapxe.sg/NamingSystem/facility-unit-id",
"value": "FAC-WARD-5A"
},
"display": "Ward 5A"
},
{
"sequence": 3,
"timing": {
"repeat": {
"start": "2026-03-19T00:00:00+08:00",
"end": "2026-04-15T23:59:59+08:00"
},
"when": [
"NIGHT"
]
}
},
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "26643006",
"display": "Oral route"
}
]
},
{
"value": 1,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tbl}"
}
}
]
}
]
},
"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 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