{
    "resourceType": "Bundle",
    "id": "7e042689-ef95-4dfd-808b-91de7e67a39f",
    "identifier": {
        "system": "https://thims/pharmacy-invoice-record-bundles",
        "value": "PHARMACY-INVOICE-7001"
    },
    "type": "document",
    "timestamp": "2026-10-11T18:30:00+00:00",
    "entry": [
        {
            "fullUrl": "urn:uuid:d14be02d-8cbf-4728-942f-bf35e4798c54",
            "resource": {
                "resourceType": "Composition",
                "id": "d14be02d-8cbf-4728-942f-bf35e4798c54",
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/InvoiceRecord"
                    ]
                },
                "language": "en-IN",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>Pharmacy Invoice Record - I/2627/38</p></div>"
                },
                "status": "final",
                "type": {
                    "text": "Invoice Record"
                },
                "subject": {
                    "reference": "urn:uuid:06e2a141-1a76-4782-a909-1fbf0c263a2a",
                    "display": "Patient"
                },
                "encounter": {
                    "reference": "urn:uuid:11fd011e-07c3-465a-8ca3-dc19dfa41237",
                    "display": "Encounter"
                },
                "date": "2026-10-11T18:30:00+00:00",
                "author": [
                    {
                        "reference": "urn:uuid:8c1cce91-98b7-4e9a-9480-c4c2a6ccf7c7",
                        "display": "Dr. PATHOLOGY"
                    }
                ],
                "title": "Pharmacy Invoice Record - I/2627/38",
                "custodian": {
                    "reference": "urn:uuid:37e52838-c4d0-4d9f-b234-19215ce4bd72",
                    "display": "Organization"
                },
                "section": [
                    {
                        "title": "Pharmacy Invoice Details",
                        "text": {
                            "status": "generated",
                            "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>Bill Number: I/2627/38<br />\nBill Date: 12/10/2026 12:00 AM<br />\nPatient: KRISHNABEN R PATEL<br />\nDoctor: Dr. PATHOLOGY<br />\nInvoice Type: Pharmacy<br />\nGross Amount: INR 100.00<br />\nDiscount Total: INR 0.00<br />\nGST Total: INR 0.00<br />\nInvoice Amount: INR 100.00<br />\nTotal Amount: INR 100.00</p></div>"
                        },
                        "entry": [
                            {
                                "reference": "urn:uuid:f6d0f813-d96e-4c2e-b1c7-c691d581758a",
                                "type": "Invoice"
                            }
                        ]
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:06e2a141-1a76-4782-a909-1fbf0c263a2a",
            "resource": {
                "resourceType": "Patient",
                "id": "06e2a141-1a76-4782-a909-1fbf0c263a2a",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>KRISHNABEN R PATEL, Female, DoB: 1952-04-09, Medical record number: 2526</p></div>"
                },
                "identifier": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "MR",
                                    "display": "Medical record number"
                                }
                            ],
                            "text": "Medical record number"
                        },
                        "system": "https://thims/patient-id",
                        "value": "2526"
                    }
                ],
                "name": [
                    {
                        "text": "KRISHNABEN R PATEL"
                    }
                ],
                "gender": "female",
                "birthDate": "1952-04-09",
                "telecom": [
                    {
                        "system": "phone",
                        "value": "+109368",
                        "use": "mobile"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:8c1cce91-98b7-4e9a-9480-c4c2a6ccf7c7",
            "resource": {
                "resourceType": "Practitioner",
                "id": "8c1cce91-98b7-4e9a-9480-c4c2a6ccf7c7",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>Dr. PATHOLOGY</p></div>"
                },
                "identifier": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "MD",
                                    "display": "Medical License number"
                                }
                            ],
                            "text": "Medical License number"
                        },
                        "system": "https://thims/doctor-id",
                        "value": "8"
                    }
                ],
                "name": [
                    {
                        "text": "Dr. PATHOLOGY"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:37e52838-c4d0-4d9f-b234-19215ce4bd72",
            "resource": {
                "resourceType": "Organization",
                "id": "37e52838-c4d0-4d9f-b234-19215ce4bd72",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>DEMO SAVE LIFE HOSPITAL</p></div>"
                },
                "identifier": [
                    {
                        "type": {
                            "coding": [
                                {
                                    "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                                    "code": "PRN",
                                    "display": "Provider number"
                                }
                            ],
                            "text": "Provider number"
                        },
                        "system": "https://thims/facility",
                        "value": "0-0"
                    }
                ],
                "name": "DEMO SAVE LIFE HOSPITAL",
                "address": [
                    {
                        "text": "A 501 Titanium Square,, Thaltej,, Ahmedabad, 380054"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:11fd011e-07c3-465a-8ca3-dc19dfa41237",
            "resource": {
                "resourceType": "Encounter",
                "id": "11fd011e-07c3-465a-8ca3-dc19dfa41237",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>Encounter for visit 9529</p></div>"
                },
                "identifier": [
                    {
                        "system": "https://thims/visit-id",
                        "value": "9529"
                    },
                    {
                        "system": "https://thims/opd-reg-id",
                        "value": "0"
                    },
                    {
                        "system": "https://thims/ipd-reg-id",
                        "value": "1471"
                    }
                ],
                "status": "finished",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "IMP",
                    "display": "inpatient encounter"
                },
                "subject": {
                    "reference": "urn:uuid:06e2a141-1a76-4782-a909-1fbf0c263a2a",
                    "display": "Patient"
                },
                "participant": [
                    {
                        "individual": {
                            "reference": "urn:uuid:8c1cce91-98b7-4e9a-9480-c4c2a6ccf7c7",
                            "display": "Dr. PATHOLOGY"
                        }
                    }
                ],
                "period": {
                    "start": "2026-10-06T18:30:00+00:00",
                    "end": "2026-10-06T18:30:00+00:00"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Encounter"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:f6d0f813-d96e-4c2e-b1c7-c691d581758a",
            "resource": {
                "resourceType": "Invoice",
                "id": "f6d0f813-d96e-4c2e-b1c7-c691d581758a",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>I/2627/38</p></div>"
                },
                "identifier": [
                    {
                        "system": "https://thims/pharmacy-sales-bill",
                        "value": "I/2627/38"
                    }
                ],
                "status": "issued",
                "type": {
                    "coding": [
                        {
                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-billing-codes",
                            "code": "01",
                            "display": "Pharmacy"
                        }
                    ],
                    "text": "Pharmacy"
                },
                "subject": {
                    "reference": "urn:uuid:06e2a141-1a76-4782-a909-1fbf0c263a2a",
                    "display": "Patient"
                },
                "recipient": {
                    "reference": "urn:uuid:06e2a141-1a76-4782-a909-1fbf0c263a2a",
                    "display": "Patient"
                },
                "date": "2026-10-11T18:30:00+00:00",
                "participant": [
                    {
                        "actor": {
                            "reference": "urn:uuid:8c1cce91-98b7-4e9a-9480-c4c2a6ccf7c7",
                            "display": "Dr. PATHOLOGY"
                        }
                    }
                ],
                "issuer": {
                    "reference": "urn:uuid:37e52838-c4d0-4d9f-b234-19215ce4bd72",
                    "display": "DEMO SAVE LIFE HOSPITAL"
                },
                "lineItem": [
                    {
                        "sequence": 1,
                        "chargeItemReference": {
                            "reference": "urn:uuid:d3df326f-4fe3-4fc6-9c72-affc2bb38753",
                            "display": "#ACILOC 300 MG TAB / RANITIDINE 300 MG..."
                        },
                        "priceComponent": [
                            {
                                "type": "base",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-price-components",
                                            "code": "01",
                                            "display": "Rate"
                                        }
                                    ],
                                    "text": "Rate"
                                },
                                "amount": {
                                    "value": 20,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "informational",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://thims/pharmacy-invoice-price-components",
                                            "code": "GROSS_TOTAL",
                                            "display": "Gross Total"
                                        }
                                    ],
                                    "text": "Gross Total"
                                },
                                "amount": {
                                    "value": 100,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "discount",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-price-components",
                                            "code": "02",
                                            "display": "Discount Amount"
                                        }
                                    ],
                                    "text": "Discount Amount"
                                },
                                "amount": {
                                    "value": 0,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "informational",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://thims/pharmacy-invoice-price-components",
                                            "code": "NET_TOTAL",
                                            "display": "Net Total"
                                        }
                                    ],
                                    "text": "Net Total"
                                },
                                "amount": {
                                    "value": 100,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "tax",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-price-components",
                                            "code": "03",
                                            "display": "CGST"
                                        }
                                    ],
                                    "text": "CGST"
                                },
                                "amount": {
                                    "value": 0,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "tax",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-price-components",
                                            "code": "04",
                                            "display": "SGST"
                                        }
                                    ],
                                    "text": "SGST"
                                },
                                "amount": {
                                    "value": 0,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "informational",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://thims/pharmacy-invoice-price-components",
                                            "code": "TOTAL",
                                            "display": "Total"
                                        }
                                    ],
                                    "text": "Total"
                                },
                                "amount": {
                                    "value": 100,
                                    "currency": "INR"
                                }
                            }
                        ]
                    }
                ],
                "totalPriceComponent": [
                    {
                        "type": "discount",
                        "code": {
                            "coding": [
                                {
                                    "system": "https://thims/pharmacy-invoice-price-components",
                                    "code": "DISCOUNT_TOTAL",
                                    "display": "Discount Total"
                                }
                            ],
                            "text": "Discount Total"
                        },
                        "amount": {
                            "value": 0,
                            "currency": "INR"
                        }
                    },
                    {
                        "type": "tax",
                        "code": {
                            "coding": [
                                {
                                    "system": "https://thims/pharmacy-invoice-price-components",
                                    "code": "GST_TOTAL",
                                    "display": "GST Total"
                                }
                            ],
                            "text": "GST Total"
                        },
                        "amount": {
                            "value": 0,
                            "currency": "INR"
                        }
                    }
                ],
                "totalNet": {
                    "value": 100,
                    "currency": "INR"
                },
                "totalGross": {
                    "value": 100,
                    "currency": "INR"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Invoice"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:468e4b1c-645b-4ea3-a7d4-7059470ea9cf",
            "resource": {
                "resourceType": "Medication",
                "id": "468e4b1c-645b-4ea3-a7d4-7059470ea9cf",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>#ACILOC 300 MG TAB / RANITIDINE 300 MG...</p></div>"
                },
                "status": "active",
                "code": {
                    "coding": [
                        {
                            "system": "https://thims/products",
                            "code": "7615",
                            "display": "#ACILOC 300 MG TAB / RANITIDINE 300 MG..."
                        }
                    ],
                    "text": "#ACILOC 300 MG TAB / RANITIDINE 300 MG..."
                },
                "identifier": [
                    {
                        "type": {
                            "text": "Harmonized System of Nomenclature"
                        },
                        "system": "https://thims/product-hsn",
                        "value": "2115511"
                    }
                ],
                "batch": {
                    "lotNumber": "A3MT11",
                    "expirationDate": "2030-03-31"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Medication"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:d3df326f-4fe3-4fc6-9c72-affc2bb38753",
            "resource": {
                "resourceType": "ChargeItem",
                "id": "d3df326f-4fe3-4fc6-9c72-affc2bb38753",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>#ACILOC 300 MG TAB / RANITIDINE 300 MG...<br />\nQty: 5 NUM<br />\nRate: INR 20.00<br />\nTotal: INR 100.00</p></div>"
                },
                "status": "billed",
                "code": {
                    "coding": [
                        {
                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-billing-codes",
                            "code": "05",
                            "display": "Medicines"
                        }
                    ],
                    "text": "#ACILOC 300 MG TAB / RANITIDINE 300 MG..."
                },
                "subject": {
                    "reference": "urn:uuid:06e2a141-1a76-4782-a909-1fbf0c263a2a",
                    "display": "Patient"
                },
                "context": {
                    "reference": "urn:uuid:11fd011e-07c3-465a-8ca3-dc19dfa41237",
                    "display": "Encounter"
                },
                "performer": [
                    {
                        "actor": {
                            "reference": "urn:uuid:8c1cce91-98b7-4e9a-9480-c4c2a6ccf7c7",
                            "display": "Dr. PATHOLOGY"
                        }
                    }
                ],
                "occurrenceDateTime": "2026-10-11T18:30:00+00:00",
                "productReference": {
                    "reference": "urn:uuid:468e4b1c-645b-4ea3-a7d4-7059470ea9cf",
                    "display": "#ACILOC 300 MG TAB / RANITIDINE 300 MG..."
                },
                "quantity": {
                    "value": 5,
                    "unit": "NUM"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/ChargeItem"
                    ]
                }
            }
        }
    ],
    "meta": {
        "versionId": "1",
        "lastUpdated": "2026-10-11T18:30:00+00:00",
        "profile": [
            "https://nrces.in/ndhm/fhir/r4/StructureDefinition/DocumentBundle"
        ]
    }
}