Sandbox/FHIR Server

Test FHIR R4 endpoints with synthetic Malaysian patient data. Use this environment for integration development and conformance testing.

Endpoint

https://sandbox.dhd.moh.gov.my/fhir/R4

Base FHIR endpoint

https://sandbox.dhd.moh.gov.my/fhir/R4/metadata

CapabilityStatement

https://sandbox.dhd.moh.gov.my/fhir/R4/Patient

Patient resources

https://sandbox.dhd.moh.gov.my/fhir/R4/Observation

Observations (labs, vitals)

https://sandbox.dhd.moh.gov.my/oauth/token

OAuth token endpoint

Authentication & Tokens

Request access tokens using OAuth 2.0 client credentials flow. Sandbox credentials are available after partner registration.

curl -X POST https://sandbox.dhd.moh.gov.my/oauth/token \

-H “Content-Type: application/x-www-form-urlencoded” \

-d “grant_type=client_credentials” \

-d “client_id=YOUR_CLIENT_ID” \

-d “client_secret=YOUR_CLIENT_SECRET” \

-d “scope=system/*.read”

Postman & REST Collections

Download pre-configured API collections for quick testing:

Synthetic Datasets

Sandbox contains realistic Malaysian patient data generated using Synthea with local demographics and clinical patterns.

FHIR Resource
Count
Description
Patient
1,247
Synthetic patients with Malaysian demographics
Encounter
8,932
Outpatient and inpatient episodes
Observation
45,678
Vital signs, lab results (LOINC)
MedicationRequest
12,456
Prescriptions (MDC codes)
Condition
6,234
Diagnoses (ICD-10, SNOMED)