API Name: MedicationRequest.$submit


This API creates a bundle of medication order records representing medication orders for both supply of the medications and the instructions for administration of the medications to a patient.

Specification


Endpoint [baseurl]/MedicationRequest/$submit
Protocol HTTPS
HTTP Method Post
HTTP Header Content-Type: application/fhir+json

Request Body

Remarks:

  • (All Slices) is an automatically generated section and should be ignored. Do not pass this as an input parameter. It will also not be part of response.
  • Medications in the bundle can be organized into groups using groupIdentifier and connected using the orderSetConnectingTerm extension for step doses (THEN) and variable doses (AND).
idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemΣ0..1uriFixed Value
valueΣ C0..1string
periodΣ C0..1Period
assignerΣ C0..1Reference(Organization)
typeΣ C1..1codeBindingPattern
timestampΣ C0..0instant
totalΣ C0..0unsignedInt
id0..0string
extensionC0..0Extension
modifierExtensionΣ ?! C0..0Extension
fullUrlΣ C1..1uri
resourceΣ C1..1MedicationRequest
id0..0string
extensionC0..0Extension
modifierExtensionΣ ?! C0..0Extension
methodΣ C1..1codeBinding
urlΣ1..1uri
ifNoneMatchΣ0..1string
ifModifiedSinceΣ0..1instant
ifMatchΣ0..1string
ifNoneExistΣ0..1string
signatureΣ0..0Signature
issuesΣ C0..0OperationOutcome

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
textC0..1Narrative
medicationC0..1Medication
orderingLocationC0..1Extension(string)
orderSetConnectingTermC0..1Extension(CodeableConcept)
changesMadeC0..*Extension(Complex)
authorizerC0..*Extension(Reference(Practitioner))
orderingInstitutionC0..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)
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
priorPrescriptionC0..0Reference(MedicationRequest)
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
statusΣ ?!1..1codeBinding
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
statusChanged0..1dateTime
intentΣ ?!1..1codeBindingPattern
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
priorityΣ0..0codeBinding
doNotPerformΣ ?!0..0boolean
id0..0string
extensionC0..0Extension
id0..0string
extensionC0..0Extension
referenceΣ C0..1string
typeΣ0..0uriBinding
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uri
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
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
informationSourceC0..0Reference(Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
encounterC0..1Reference(Encounter)
supportingInformationC0..0Reference(Resource)
authoredOnΣ1..1dateTime
id0..0string
extensionC0..0Extension
referenceΣ C0..0string
typeΣ1..1uriBindingFixed Value
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uri
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
displayΣ C0..0string
reportedΣ0..0boolean
performerTypeΣ0..0CodeableConceptBinding
device0..0CodeableReference(DeviceDefinition)
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..1Reference
courseOfTherapyType0..0CodeableConceptBinding
insuranceC0..0Reference(ClaimResponse | Coverage)
note0..1Annotation
renderedDosageInstruction0..0markdown
id0..0string
extensionC0..0Extension
startΣ C1..1dateTime
endΣ C1..1dateTime
id0..0string
extensionC0..0Extension
modifierExtensionΣ ?! C0..0Extension
sequenceΣ1..1integer
textΣ0..1string
id0..0string
extensionC0..0Extension
codingΣ C0..0Coding
textΣ1..1string
patientInstructionΣ0..0string
id0..0string
extensionC0..0Extension
modifierExtensionΣ ?! C0..0Extension
eventΣ0..1dateTime
id0..0string
extensionC0..0Extension
boundsPeriodPeriod
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
codeΣ0..1CodeableConceptBinding
asNeededΣ C0..0boolean
id0..1string
extensionC0..0Extension
codingΣ C0..0Coding
textΣ1..1string
siteΣ0..0CodeableConcept
id0..0string
extensionC0..0Extension
id0..0string
extensionC0..0Extension
systemΣ1..1uri
versionΣ0..0string
codeΣ C1..1code
displayΣ C1..1string
userSelectedΣ0..0boolean
textΣ0..0string
methodΣ0..0CodeableConcept
id0..0string
extensionC0..0Extension
typeΣ0..0CodeableConcept
doseQuantitySimpleQuantity
doseRangeRange
rateQuantitySimpleQuantity
rateRangeRange
rateRatioRatio
maxDosePerPeriodΣ C0..0Ratio
maxDosePerAdministrationΣ C0..0SimpleQuantity
maxDosePerLifetimeΣ C0..0SimpleQuantity
id0..0string
extensionC0..0Extension
modifierExtensionΣ ?! C0..0Extension
dispenseIntervalC0..0Duration
validityPeriodC0..0Period
numberOfRepeatsAllowed0..0unsignedInt
id0..0string
extensionC0..0Extension
valueΣ1..1decimal
comparatorΣ ?!0..0codeBinding
unitΣ1..1string
systemΣ C1..1uri
codeΣ C1..1code
id0..0string
extensionC0..0Extension
referenceΣ C0..0string
typeΣ1..1uriBindingFixed Value
id0..0string
extensionC0..0Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uri
valueΣ C1..1string
periodΣ C0..0Period
assignerΣ C0..0Reference(Organization)
displayΣ C1..1string
dispenserInstruction0..0Annotation
doseAdministrationAid0..0CodeableConcept
eventHistoryC0..0Reference(Provenance)
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"fullUrl": "a2b3c4d5-e6f7-4a8b-9c0d-1e2f3a4b5c6d",
"resourceType": "MedicationRequest",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
},
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Example Medication Request</div>"
},
{
"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"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "421026006",
"display": "Oral tablet"
}
]
}
}
],
{
"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-orderingInstitution",
"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/order-no",
"value": "ORD-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": "active",
"intent": "order",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-type",
"code": "outpatient",
"display": "Outpatient Order"
}
]
}
],
"reference": "#med-001"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
"authoredOn": "2026-03-19T10:00:00+08:00",
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
},
{
"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}"
}
}
]
}
]
},
"request": {
"method": "POST",
"url": "MedicationRequest"
}
},
{
"fullUrl": "b3c4d5e6-f7a8-4b9c-0d1e-2f3a4b5c6d7e",
"resourceType": "MedicationRequest",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
},
{
"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"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "421026006",
"display": "Oral tablet"
}
]
}
}
],
{
"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-orderingInstitution",
"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/order-no",
"value": "ORD-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": "active",
"intent": "order",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-type",
"code": "outpatient",
"display": "Outpatient Order"
}
]
}
],
"reference": "#med-002"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
"authoredOn": "2026-03-19T10:00:00+08:00",
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
},
{
"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}"
}
}
]
}
]
},
"request": {
"method": "POST",
"url": "MedicationRequest"
}
},
{
"fullUrl": "c4d5e6f7-a8b9-4c0d-1e2f-3a4b5c6d7e8f",
"resourceType": "MedicationRequest",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
},
{
"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"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "421026006",
"display": "Oral tablet"
}
]
}
}
],
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-orderingInstitution",
"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/order-no",
"value": "ORD-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": "active",
"intent": "order",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-type",
"code": "outpatient",
"display": "Outpatient Order"
}
]
}
],
"reference": "#med-003"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
"authoredOn": "2026-03-19T10:00:00+08:00",
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
},
{
"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}"
}
}
]
}
]
},
"request": {
"method": "POST",
"url": "MedicationRequest"
}
},
{
"fullUrl": "d5e6f7a8-b9c0-4d1e-2f3a-4b5c6d7e8f9a",
"resourceType": "MedicationRequest",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
},
{
"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"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "421026006",
"display": "Oral tablet"
}
]
}
}
],
{
"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-orderingInstitution",
"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/order-no",
"value": "ORD-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": "active",
"intent": "order",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-type",
"code": "outpatient",
"display": "Outpatient Order"
}
]
}
],
"reference": "#med-004"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
"authoredOn": "2026-03-19T10:00:00+08:00",
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
},
{
"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}"
}
}
]
}
]
},
"request": {
"method": "POST",
"url": "MedicationRequest"
}
},
{
"fullUrl": "e6f7a8b9-c0d1-4e2f-3a4b-5c6d7e8f9a0b",
"resourceType": "MedicationRequest",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
},
{
"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"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "421026006",
"display": "Oral tablet"
}
]
}
}
],
{
"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-orderingInstitution",
"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/order-no",
"value": "ORD-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": "active",
"intent": "order",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-type",
"code": "outpatient",
"display": "Outpatient Order"
}
]
}
],
"reference": "#med-005"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
"authoredOn": "2026-03-19T10:00:00+08:00",
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
},
{
"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}"
}
}
]
}
]
},
"request": {
"method": "POST",
"url": "MedicationRequest"
}
},
{
"fullUrl": "f7a8b9c0-d1e2-4f3a-4b5c-6d7e8f9a0b1c",
"resourceType": "MedicationRequest",
"meta": {
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
},
{
"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"
}
]
},
"coding": [
{
"system": "http://snomed.info/sct",
"code": "421026006",
"display": "Oral tablet"
}
]
}
}
],
{
"url": "https://fhir.synapxe.sg/StructureDefinition/ext-orderingInstitution",
"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/order-no",
"value": "ORD-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": "active",
"intent": "order",
{
"coding": [
{
"system": "https://fhir.synapxe.sg/CodeSystem/order-type",
"code": "outpatient",
"display": "Outpatient Order"
}
]
}
],
"reference": "#med-006"
}
},
"subject": {
"type": "Patient",
"system": "https://fhir.synapxe.sg/NamingSystem/nric",
"value": "S1234567A"
}
},
"type": "Encounter",
"system": "https://fhir.synapxe.sg/NamingSystem/event-id",
"value": "EVT-2026-112233"
}
},
"authoredOn": "2026-03-19T10:00:00+08:00",
"type": "Practitioner",
"system": "https://fhir.synapxe.sg/NamingSystem/prn",
"value": "PRN-56789"
}
},
{
"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}"
}
}
]
}
]
},
"request": {
"method": "POST",
"url": "MedicationRequest"
}
}
]
}
{
"resourceType": "Bundle",
"type": "transaction-response",
"entry": [
{
"fullUrl": "https://fhir.synapxe.sg/MedicationRequest/medicationrequest-stepdose-001",
"resourceType": "MedicationRequest",
"id": "medicationrequest-stepdose-001",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.1+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
}
},
"status": "201 Created",
"location": "MedicationRequest/medicationrequest-stepdose-001/_history/1"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationRequest/medicationrequest-stepdose-002",
"resourceType": "MedicationRequest",
"id": "medicationrequest-stepdose-002",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.101+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
}
},
"status": "201 Created",
"location": "MedicationRequest/medicationrequest-stepdose-002/_history/1"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationRequest/medicationrequest-stepdose-003",
"resourceType": "MedicationRequest",
"id": "medicationrequest-stepdose-003",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.102+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
}
},
"status": "201 Created",
"location": "MedicationRequest/medicationrequest-stepdose-003/_history/1"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationRequest/medicationrequest-vardose-001",
"resourceType": "MedicationRequest",
"id": "medicationrequest-vardose-001",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.103+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
}
},
"status": "201 Created",
"location": "MedicationRequest/medicationrequest-vardose-001/_history/1"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationRequest/medicationrequest-vardose-002",
"resourceType": "MedicationRequest",
"id": "medicationrequest-vardose-002",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.104+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
}
},
"status": "201 Created",
"location": "MedicationRequest/medicationrequest-vardose-002/_history/1"
}
},
{
"fullUrl": "https://fhir.synapxe.sg/MedicationRequest/medicationrequest-vardose-003",
"resourceType": "MedicationRequest",
"id": "medicationrequest-vardose-003",
"meta": {
"lastUpdated": "2026-03-19T10:00:00.105+08:00",
"profile": [
"https://fhir.synapxe.sg/StructureDefinition/profile-medicationrequest"
]
}
},
"status": "201 Created",
"location": "MedicationRequest/medicationrequest-vardose-003/_history/1"
}
}
]
}

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