Skip to content

Op-consultation: Missing "medications" Block is missing in the fhir bundle. #154

@systimanx-itsol

Description

@systimanx-itsol

Hi team,
I'm using the postman collection with the following endpoint v1/bundle/op-consultation to generate the OP consultation FHIR bundle.

What i have missing is the Medication list not showing in the Output. here is the example.. And i have attached the PHR app output.

Image

{
"bundleType": "OPConsultRecord",
"careContextReference": "visit-2025-04-25T10:50:31.166Z",
"visitDate": "2025-04-25T10:50:31.166Z",
"patient": {
"name": "AjithKumarAnguraj",
"patientReference": "ajithak233@sbx",
"gender": "male",
"birthDate": "1999-11-04"
},
"practitioners": [
{
"name": "Arun A",
"practitionerId": "71-7631-8444-3528"
}
],
"organisation": {
"facilityName": "vadamalayan Hospital",
"facilityId": "IN3310001038"
},
"chiefComplaints": [
{
"complaint": "Cough",
"recordedDate": "2025-04-25",
"dateRange": {
"from": "2025-03-25",
"to": "2025-04-25"
}
}
],
"physicalExaminations": [],
"allergies": [],
"medicalHistories": [],
"familyHistories": [],
"serviceRequests": [
{
"status": "ACTIVE",
"details": "ECG",
"specimen": "test"
},
{
"status": "ACTIVE",
"details": "X-ray",
"specimen": "test"
},
{
"status": "ACTIVE",
"details": "Insulin Fasting",
"specimen": "test"
}
],
"medications": [
{
"medicine": "Cefixime",
"dosage": "1-1-1",
"timing": "1-1-D",
"route": "Oral route",
"method": "swallow",
"additionalInstructions": "Before Food"
}
],
"followups": [
{
"serviceType": "OPConsultation",
"appointmentTime": "2025-05-01",
"reason": "Follow-up"
}
],
"procedures": [],
"referrals": [],
"otherObservations": []
}

Output

{
"resourceType": "Bundle",
"id": "1f53b3da-45af-4c18-a708-be1e157de597",
"meta": {
"versionId": "1",
"lastUpdated": "2025-04-25T15:59:56.741Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/DocumentBundle"
],
"security": [
{
"system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
"code": "V",
"display": "very restricted"
}
]
},
"identifier": {
"system": "https://ABDM_WRAPPER/bundle",
"value": "visit-2025-04-25T10:50:31.166Z"
},
"type": "document",
"timestamp": "2025-04-25T15:59:56.741Z",
"entry": [
{
"fullUrl": "Composition/da63e974-4d64-4593-b054-dc55cec09562",
"resource": {
"resourceType": "Composition",
"id": "da63e974-4d64-4593-b054-dc55cec09562",
"identifier": {
"system": "https://ABDM_WRAPPER/bundle",
"value": "573cfcd5-5ba8-4eea-b5ea-bf90695c90bc"
},
"status": "final",
"type": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "371530004",
"display": "Clinical consultation report"
}
]
},
"subject": {
"reference": "Patient/78c412f2-eb33-42ab-8c93-056016d96496",
"display": "AjithKumarAnguraj"
},
"encounter": {
"reference": "Encounter/15a728f8-cedf-4c4c-848e-7bdc66f76997"
},
"date": "2025-04-25T10:50:31Z",
"author": [
{
"reference": "Practitioner/71-7631-8444-3528",
"display": "Arun A"
}
],
"title": "Clinical consultation report",
"custodian": {
"reference": "Organisation/96dd5415-29c0-4aac-a5a8-e5e2d47cc6b4",
"display": "vadamalayan Hospital"
},
"section": [
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "422843007",
"display": "Chief complaint section"
}
],
"text": "Chief complaint section"
},
"entry": [
{
"reference": "ChiefComplaints/1ed1a148-a4d9-4082-ba16-2283891b25f8"
}
]
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "425044008",
"display": "Physical exam section"
}
],
"text": "Physical exam section"
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "Allergy record",
"display": "Allergy record"
}
],
"text": "Allergy record"
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "Medication history section",
"display": "Medication history section"
}
],
"text": "Medication history section"
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "422432008",
"display": "Family history section"
}
],
"text": "Family history section"
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "721963009",
"display": "Order document"
}
],
"text": "Order document"
},
"entry": [
{
"reference": "InvestigationAdvice/ec1afd9a-2436-4351-a660-ff6662ae4ecc"
},
{
"reference": "InvestigationAdvice/fe36fbb5-0618-475e-975f-c5d5c0839ce5"
},
{
"reference": "InvestigationAdvice/20ab86bf-85d9-47da-8664-c8d25122773c"
}
]
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "721912009",
"display": "Medication summary document"
}
],
"text": "Medication summary document"
},
"entry": [
{
"reference": "FamilyHistory/69d89850-aec5-4397-a7f5-38d47f94a900"
}
]
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "390906007",
"display": "Follow-up encounter"
}
],
"text": "Follow-up encounter"
},
"entry": [
{
"reference": "FollowUp/d5231bcf-a613-4273-9aa3-0963aab4f4c1"
}
]
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "371525003",
"display": "Clinical procedure report"
}
],
"text": "Clinical procedure report"
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "306206005",
"display": "Referral to service"
}
],
"text": "Referral to service"
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "404684003",
"display": "Clinical finding"
}
],
"text": "Clinical finding"
}
},
{
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "371530004",
"display": "Clinical consultation report"
}
],
"text": "Clinical consultation report"
}
}
]
}
},
{
"fullUrl": "Patient/78c412f2-eb33-42ab-8c93-056016d96496",
"resource": {
"resourceType": "Patient",
"id": "78c412f2-eb33-42ab-8c93-056016d96496",
"meta": {
"versionId": "1",
"lastUpdated": "2025-04-25T15:59:56.707Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient"
]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR",
"display": "Medical record number"
}
]
},
"system": "https://healthid.abdm.gov.in",
"value": "ajithak233@sbx"
}
],
"name": [
{
"text": "AjithKumarAnguraj"
}
],
"gender": "male",
"birthDate": "1999-11-04"
}
},
{
"fullUrl": "Practitioner/71-7631-8444-3528",
"resource": {
"resourceType": "Practitioner",
"id": "71-7631-8444-3528",
"meta": {
"versionId": "1",
"lastUpdated": "2025-04-25T15:59:56.707Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner"
]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR",
"display": "Medical record number"
}
]
},
"system": "https://doctor.abdm.gov.in",
"value": "71-7631-8444-3528"
}
],
"name": [
{
"text": "Arun A"
}
]
}
},
{
"fullUrl": "Encounter/15a728f8-cedf-4c4c-848e-7bdc66f76997",
"resource": {
"resourceType": "Encounter",
"id": "15a728f8-cedf-4c4c-848e-7bdc66f76997",
"meta": {
"lastUpdated": "2025-04-25T15:59:56.707Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/Encounter"
]
},
"status": "in-progress",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
"code": "AMB",
"display": "Ambulatory"
},
"subject": {
"reference": "Patient/78c412f2-eb33-42ab-8c93-056016d96496",
"display": "AjithKumarAnguraj"
},
"period": {
"start": "2025-04-25T10:50:31Z"
}
}
},
{
"fullUrl": "Organisation/96dd5415-29c0-4aac-a5a8-e5e2d47cc6b4",
"resource": {
"resourceType": "Organization",
"id": "96dd5415-29c0-4aac-a5a8-e5e2d47cc6b4",
"meta": {
"versionId": "1",
"lastUpdated": "2025-04-25T15:59:56.707Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization"
]
},
"identifier": [
{
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "PRN",
"display": "Provider number"
}
]
},
"system": "https://facility.abdm.gov.in",
"value": "IN3310001038"
}
],
"name": "vadamalayan Hospital"
}
},
{
"fullUrl": "ChiefComplaints/1ed1a148-a4d9-4082-ba16-2283891b25f8",
"resource": {
"resourceType": "Condition",
"id": "1ed1a148-a4d9-4082-ba16-2283891b25f8",
"meta": {
"lastUpdated": "2025-04-25T15:59:56.710Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/Condition"
]
},
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "261665006",
"display": "Cough"
}
],
"text": "Cough"
},
"subject": {
"reference": "Patient/78c412f2-eb33-42ab-8c93-056016d96496",
"display": "AjithKumarAnguraj"
},
"onsetPeriod": {
"start": "2025-03-25",
"end": "2025-04-25"
},
"recordedDate": "2025-04-25"
}
},
{
"fullUrl": "InvestigationAdvice/ec1afd9a-2436-4351-a660-ff6662ae4ecc",
"resource": {
"resourceType": "ServiceRequest",
"id": "ec1afd9a-2436-4351-a660-ff6662ae4ecc",
"meta": {
"lastUpdated": "2025-04-25T15:59:56.710Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/ServiceRequest"
]
},
"status": "active",
"intent": "proposal",
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "261665006",
"display": "ECG"
}
],
"text": "ECG"
},
"subject": {
"reference": "Patient/78c412f2-eb33-42ab-8c93-056016d96496",
"display": "AjithKumarAnguraj"
},
"authoredOn": "2025-04-25T10:50:31Z",
"requester": {
"reference": "Practitioner/71-7631-8444-3528",
"display": "Arun A"
},
"performer": [
{
"reference": "Practitioner/71-7631-8444-3528",
"display": "Arun A"
}
],
"specimen": [
{
"display": "Testis cytologic material"
}
]
}
},
{
"fullUrl": "InvestigationAdvice/fe36fbb5-0618-475e-975f-c5d5c0839ce5",
"resource": {
"resourceType": "ServiceRequest",
"id": "fe36fbb5-0618-475e-975f-c5d5c0839ce5",
"meta": {
"lastUpdated": "2025-04-25T15:59:56.718Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/ServiceRequest"
]
},
"status": "active",
"intent": "proposal",
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "261665006",
"display": "X-ray"
}
],
"text": "X-ray"
},
"subject": {
"reference": "Patient/78c412f2-eb33-42ab-8c93-056016d96496",
"display": "AjithKumarAnguraj"
},
"authoredOn": "2025-04-25T10:50:31Z",
"requester": {
"reference": "Practitioner/71-7631-8444-3528",
"display": "Arun A"
},
"performer": [
{
"reference": "Practitioner/71-7631-8444-3528",
"display": "Arun A"
}
],
"specimen": [
{
"display": "Testis cytologic material"
}
]
}
},
{
"fullUrl": "InvestigationAdvice/20ab86bf-85d9-47da-8664-c8d25122773c",
"resource": {
"resourceType": "ServiceRequest",
"id": "20ab86bf-85d9-47da-8664-c8d25122773c",
"meta": {
"lastUpdated": "2025-04-25T15:59:56.721Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/ServiceRequest"
]
},
"status": "active",
"intent": "proposal",
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "261665006",
"display": "Insulin Fasting"
}
],
"text": "Insulin Fasting"
},
"subject": {
"reference": "Patient/78c412f2-eb33-42ab-8c93-056016d96496",
"display": "AjithKumarAnguraj"
},
"authoredOn": "2025-04-25T10:50:31Z",
"requester": {
"reference": "Practitioner/71-7631-8444-3528",
"display": "Arun A"
},
"performer": [
{
"reference": "Practitioner/71-7631-8444-3528",
"display": "Arun A"
}
],
"specimen": [
{
"display": "Testis cytologic material"
}
]
}
},
{
"fullUrl": "MedicationRequest/69d89850-aec5-4397-a7f5-38d47f94a900",
"resource": {
"resourceType": "MedicationRequest",
"id": "69d89850-aec5-4397-a7f5-38d47f94a900",
"meta": {
"lastUpdated": "2025-04-25T15:59:56.728Z",
"profile": [
"https://nrces.in/ndhm/fhir/r4/StructureDefinition/MedicationRequest"
]
},
"status": "completed",
"intent": "order",
"medicationCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "261665006",
"display": "Cefixime"
}
],
"text": "Cefixime"
},
"subject": {
"reference": "Patient/78c412f2-eb33-42ab-8c93-056016d96496",
"display": "AjithKumarAnguraj"
},
"authoredOn": "2025-04-25T10:50:31Z",
"requester": {
"reference": "Practitioner/71-7631-8444-3528",
"display": "Arun A"
},
"dosageInstruction": [
{
"text": "1-1-1",
"additionalInstruction": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "261665006",
"display": "Before Food"
}
],
"text": "Before Food"
}
],
"timing": {
"repeat": {
"frequency": 1,
"period": 1,
"periodUnit": "d"
}
},
"route": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "26643006",
"display": "Cefixime"
}
],
"text": "Oral route"
},
"method": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "26643006",
"display": "Oral route"
}
],
"text": "swallow"
}
}
]
}
},
{
"fullUrl": "FollowUp/d5231bcf-a613-4273-9aa3-0963aab4f4c1",
"resource": {
"resourceType": "Appointment",
"id": "d5231bcf-a613-4273-9aa3-0963aab4f4c1",
"status": "proposed",
"serviceType": [
{
"text": "OPConsultation"
}
],
"reasonCode": [
{
"text": "Follow-up"
}
],
"start": "2025-05-01T00:00:00.000+00:00",
"participant": [
{
"actor": {
"reference": "Patient/78c412f2-eb33-42ab-8c93-056016d96496"
},
"status": "accepted"
}
]
}
}
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions