Skip to content

Instantly share code, notes, and snippets.

@brianraila
Created September 3, 2025 11:47
Show Gist options
  • Save brianraila/0149a3827eef5afc354eecc2f22d4a8a to your computer and use it in GitHub Desktop.
Save brianraila/0149a3827eef5afc354eecc2f22d4a8a to your computer and use it in GitHub Desktop.
{
"resourceType": "Bundle",
"id": "bundle-transaction",
"meta": {
"lastUpdated": "2024-10-11T11:22:16Z"
},
"type": "transaction",
"entry": [
{
"resource": {
"resourceType": "Patient",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/patient-nationality",
"valueCodeableConcept": {
"coding": [
{
"system": "urn:iso:std:iso:3166",
"code": "KE",
"display": "Kenya"
}
]
}
}
],
"identifier": [
{
"type": {
"coding": [
{
"system": "https://terminology.hl7.org/CodeSystem-v2-0203",
"code": "NI"
}
]
},
"value": "28934190"
},
{
"use": "usual",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR",
"display": "Medical Record Number"
}
],
"text": "Medical Record Number"
},
"system": "http://sanitas.org",
"value": "1032702"
}
],
"active": true,
"name": [
{
"use": "official",
"family": "Kamau",
"given": [
"Wanjiku",
"Ruth"
]
}
],
"telecom": [
{
"use": "mobile"
},
{
"system": "phone",
"value": "+254719697171",
"use": "mobile",
"rank": 1
}
],
"gender": "female",
"birthDate": "1989-12-24"
},
"request": {
"method": "POST",
"url": "Patient"
},
"fullUrl": "urn:uuid:05efabf0-4be2-4561-91ce-patient"
},
{
"fullUrl": "urn:uuid:2ba985a6-dccc-499b-a4ff-22d-encounter",
"resource": {
"resourceType": "Encounter",
"identifier": [
{
"system": "http://sys-ids.kemkes.go.id/encounter/{{Org_id}}",
"value": "P20240001"
}
],
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "AMB",
"display": "ambulatory"
},
"subject": {
"reference": "urn:uuid:05efabf0-4be2-4561-91ce-patient"
},
"period": {
"start": "2023-08-31T00:00:00+00:00",
"end": "2023-08-31T02:00:00+00:00"
},
"serviceProvider": {
"reference": "Organization/{{Org_id}}"
}
},
"request": {
"method": "POST",
"url": "Encounter"
}
},
{
"resource": {
"resourceType": "Observation",
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "11778-8",
"display": "Estimated date of delivery"
}
]
},
"subject": {
"reference": "urn:uuid:05efabf0-4be2-4561-91ce-patient"
},
"effectiveDateTime": "2024-09-25T09:30:00+03:00",
"valueDateTime": "2025-03-01T00:00:00+03:00"
},
"request": {
"method": "POST",
"url": "Observation"
}
},
{
"resource": {
"resourceType": "Observation",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "survey",
"display": "Survey"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "11996-6",
"display": "[#] Pregnancies"
},
{
"system": "http://fhir.org/guides/who/anc-cds/CodeSystem/anc-custom-codes",
"code": "ANC.B6.DE24",
"display": "Number of pregnancies (gravida)"
}
]
},
"subject": {
"reference": "urn:uuid:05efabf0-4be2-4561-91ce-patient"
},
"encounter": {
"reference": "urn:uuid:2ba985a6-dccc-499b-a4ff-22d-encounter"
},
"effectiveDateTime": "2023-06-14T00:00:00+00:00",
"issued": "2023-06-14T14:30:10+00:00",
"valueInteger": 2
},
"request": {
"method": "POST",
"url": "Observation"
}
},
{
"resource": {
"resourceType": "Observation",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "exam"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "386661006",
"display": "Fever greater than 37 degrees Celsius (finding)"
},
{
"system": "http://fhir.org/guides/who/anc-cds/CodeSystem/anc-custom-codes",
"code": "ANC.B5.DE17",
"display": "Woman has a fever (body temperature of 37 degrees Celsius or higher)"
}
]
},
"effectiveDateTime": "2021-09-21",
"issued": "2021-09-20T13:28:17.239+08:00",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "52101004",
"display": "Present (qualifier value)"
}
]
}
}
},
{
"resource": {
"resourceType": "Observation",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "survey",
"display": "Survey"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "161765003",
"display": "History of premature delivery (situation)"
},
{
"system": "http://fhir.org/guides/who/anc-cds/CodeSystem/anc-custom-codes",
"code": "ANC.B6.DE27",
"display": "Whether last live birth was preterm"
}
]
},
"subject": {
"reference": "urn:uuid:05efabf0-4be2-4561-91ce-patient"
},
"encounter": {
"reference": "urn:uuid:2ba985a6-dccc-499b-a4ff-22d-encounter"
},
"effectiveDateTime": "2023-06-14T00:00:00+00:00",
"issued": "2023-06-14T14:30:10+00:00",
"valueBoolean": true
},
"request": {
"method": "POST",
"url": "Observation"
}
},
{
"resource": {
"resourceType": "Observation",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "exam"
}
]
}
],
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "45007003",
"display": "Low blood pressure (disorder)"
},
{
"system": "http://fhir.org/guides/who/anc-cds/CodeSystem/anc-custom-codes",
"code": "ANC.B5.DE8",
"display": "Woman has changes in blood pressure – decrease in blood pressure"
}
]
},
"effectiveDateTime": "2021-09-21",
"issued": "2021-09-20T13:28:17.239+08:00",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "52101004",
"display": "Present (qualifier value)"
}
]
}
}
},
{
"resource": {
"resourceType": "Observation",
"status": "final",
"category": [
{
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/observation-category",
"code": "vital-signs",
"display": "Vital Signs"
}
]
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "85354-9",
"display": "Blood pressure panel with all children optional"
}
]
},
"subject": {
"reference": "urn:uuid:05efabf0-4be2-4561-91ce-patient"
},
"encounter": {
"reference": "urn:uuid:2ba985a6-dccc-499b-a4ff-22d-encounter"
},
"effectiveDateTime": "2024-09-25T09:15:00+03:00",
"valueQuantity": {
"value": 120,
"unit": "mmHg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
}
},
"request": {
"method": "POST",
"url": "Observation"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment