{
    "resourceType": "Bundle",
    "id": "12339263-e375-4dd5-8a8c-e09baab5d32d",
    "identifier": {
        "system": "https://thims/pharmacy-invoice-record-bundles",
        "value": "PHARMACY-INVOICE-6962"
    },
    "type": "document",
    "timestamp": "2026-09-20T18:30:00+00:00",
    "entry": [
        {
            "fullUrl": "urn:uuid:b7fe715d-6101-4502-ae8f-bc1ce887a037",
            "resource": {
                "resourceType": "Composition",
                "id": "b7fe715d-6101-4502-ae8f-bc1ce887a037",
                "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 - DC/2627/13</p></div>"
                },
                "status": "final",
                "type": {
                    "text": "Invoice Record"
                },
                "subject": {
                    "reference": "urn:uuid:784c3b7a-e251-4e50-b349-47ae8cc6de71",
                    "display": "Patient"
                },
                "encounter": {
                    "reference": "urn:uuid:7c0f5921-7a38-41b2-9b36-a64d9a16df2b",
                    "display": "Encounter"
                },
                "date": "2026-09-20T18:30:00+00:00",
                "author": [
                    {
                        "reference": "urn:uuid:61985fec-df79-4b89-b686-3899f7dd1f47",
                        "display": "DR.ORTHOPEDIC"
                    }
                ],
                "title": "Pharmacy Invoice Record - DC/2627/13",
                "custodian": {
                    "reference": "urn:uuid:2d6f2145-7a62-4df4-a9c1-a92386f36de1",
                    "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: DC/2627/13<br />\nBill Date: 21/09/2026 12:00 AM<br />\nPatient: DR ACHAL PATEL<br />\nDoctor: DR.ORTHOPEDIC<br />\nInvoice Type: Pharmacy<br />\nGross Amount: INR 420.00<br />\nDiscount Total: INR 0.00<br />\nGST Total: INR 0.00<br />\nInvoice Amount: INR 420.00<br />\nTotal Amount: INR 420.00</p></div>"
                        },
                        "entry": [
                            {
                                "reference": "urn:uuid:7c142b34-2db1-45b3-a293-e48fc5c76919",
                                "type": "Invoice"
                            }
                        ]
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:784c3b7a-e251-4e50-b349-47ae8cc6de71",
            "resource": {
                "resourceType": "Patient",
                "id": "784c3b7a-e251-4e50-b349-47ae8cc6de71",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>DR ACHAL PATEL , Male, DoB: 1988-12-19, Medical record number: 1408</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": "1408"
                    }
                ],
                "name": [
                    {
                        "text": "DR ACHAL PATEL"
                    }
                ],
                "gender": "male",
                "birthDate": "1988-12-19",
                "telecom": [
                    {
                        "system": "phone",
                        "value": "+89898",
                        "use": "mobile"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:61985fec-df79-4b89-b686-3899f7dd1f47",
            "resource": {
                "resourceType": "Practitioner",
                "id": "61985fec-df79-4b89-b686-3899f7dd1f47",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>DR.ORTHOPEDIC</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": "7"
                    }
                ],
                "name": [
                    {
                        "text": "DR.ORTHOPEDIC"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:2d6f2145-7a62-4df4-a9c1-a92386f36de1",
            "resource": {
                "resourceType": "Organization",
                "id": "2d6f2145-7a62-4df4-a9c1-a92386f36de1",
                "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:7c0f5921-7a38-41b2-9b36-a64d9a16df2b",
            "resource": {
                "resourceType": "Encounter",
                "id": "7c0f5921-7a38-41b2-9b36-a64d9a16df2b",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>Encounter for visit 9505</p></div>"
                },
                "identifier": [
                    {
                        "system": "https://thims/visit-id",
                        "value": "9505"
                    },
                    {
                        "system": "https://thims/opd-reg-id",
                        "value": "0"
                    },
                    {
                        "system": "https://thims/ipd-reg-id",
                        "value": "1464"
                    }
                ],
                "status": "finished",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "IMP",
                    "display": "inpatient encounter"
                },
                "subject": {
                    "reference": "urn:uuid:784c3b7a-e251-4e50-b349-47ae8cc6de71",
                    "display": "Patient"
                },
                "participant": [
                    {
                        "individual": {
                            "reference": "urn:uuid:61985fec-df79-4b89-b686-3899f7dd1f47",
                            "display": "DR.ORTHOPEDIC"
                        }
                    }
                ],
                "period": {
                    "start": "2026-09-15T18:30:00+00:00",
                    "end": "2026-09-15T18:30:00+00:00"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Encounter"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:7c142b34-2db1-45b3-a293-e48fc5c76919",
            "resource": {
                "resourceType": "Invoice",
                "id": "7c142b34-2db1-45b3-a293-e48fc5c76919",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>DC/2627/13</p></div>"
                },
                "identifier": [
                    {
                        "system": "https://thims/pharmacy-sales-bill",
                        "value": "DC/2627/13"
                    }
                ],
                "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:784c3b7a-e251-4e50-b349-47ae8cc6de71",
                    "display": "Patient"
                },
                "recipient": {
                    "reference": "urn:uuid:784c3b7a-e251-4e50-b349-47ae8cc6de71",
                    "display": "Patient"
                },
                "date": "2026-09-20T18:30:00+00:00",
                "participant": [
                    {
                        "actor": {
                            "reference": "urn:uuid:61985fec-df79-4b89-b686-3899f7dd1f47",
                            "display": "DR.ORTHOPEDIC"
                        }
                    }
                ],
                "issuer": {
                    "reference": "urn:uuid:2d6f2145-7a62-4df4-a9c1-a92386f36de1",
                    "display": "DEMO SAVE LIFE HOSPITAL"
                },
                "lineItem": [
                    {
                        "sequence": 1,
                        "chargeItemReference": {
                            "reference": "urn:uuid:b355ca46-4146-4a90-9061-b6ae530da0a8",
                            "display": "ADOLOR AQ INJ / L ARGININE,VITAMIN C & VITAMIN E GRANULES.,"
                        },
                        "priceComponent": [
                            {
                                "type": "base",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-price-components",
                                            "code": "01",
                                            "display": "Rate"
                                        }
                                    ],
                                    "text": "Rate"
                                },
                                "amount": {
                                    "value": 110,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "informational",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://thims/pharmacy-invoice-price-components",
                                            "code": "GROSS_TOTAL",
                                            "display": "Gross Total"
                                        }
                                    ],
                                    "text": "Gross Total"
                                },
                                "amount": {
                                    "value": 220,
                                    "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": 220,
                                    "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": 220,
                                    "currency": "INR"
                                }
                            }
                        ]
                    },
                    {
                        "sequence": 2,
                        "chargeItemReference": {
                            "reference": "urn:uuid:6eda8ea6-04f7-4be3-bf47-e9accbf940ba",
                            "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": 200,
                                    "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": 200,
                                    "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": 200,
                                    "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": 420,
                    "currency": "INR"
                },
                "totalGross": {
                    "value": 420,
                    "currency": "INR"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Invoice"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:139049ef-b842-4cbf-8436-db2d1e62f70b",
            "resource": {
                "resourceType": "Medication",
                "id": "139049ef-b842-4cbf-8436-db2d1e62f70b",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>ADOLOR AQ INJ / L ARGININE,VITAMIN C &amp; VITAMIN E GRANULES.,</p></div>"
                },
                "status": "active",
                "code": {
                    "coding": [
                        {
                            "system": "https://thims/products",
                            "code": "44855",
                            "display": "ADOLOR AQ INJ / L ARGININE,VITAMIN C & VITAMIN E GRANULES.,"
                        }
                    ],
                    "text": "ADOLOR AQ INJ / L ARGININE,VITAMIN C & VITAMIN E GRANULES.,"
                },
                "identifier": [
                    {
                        "type": {
                            "text": "Harmonized System of Nomenclature"
                        },
                        "system": "https://thims/product-hsn",
                        "value": "0"
                    }
                ],
                "batch": {
                    "lotNumber": "4846",
                    "expirationDate": "2031-12-31"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Medication"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:4cecde98-beab-4c61-ac11-d49c72851d64",
            "resource": {
                "resourceType": "Medication",
                "id": "4cecde98-beab-4c61-ac11-d49c72851d64",
                "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:b355ca46-4146-4a90-9061-b6ae530da0a8",
            "resource": {
                "resourceType": "ChargeItem",
                "id": "b355ca46-4146-4a90-9061-b6ae530da0a8",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>ADOLOR AQ INJ / L ARGININE,VITAMIN C &amp; VITAMIN E GRANULES.,<br />\nQty: 2 BT<br />\nRate: INR 110.00<br />\nTotal: INR 220.00</p></div>"
                },
                "status": "billed",
                "code": {
                    "coding": [
                        {
                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-billing-codes",
                            "code": "05",
                            "display": "Medicines"
                        }
                    ],
                    "text": "ADOLOR AQ INJ / L ARGININE,VITAMIN C & VITAMIN E GRANULES.,"
                },
                "subject": {
                    "reference": "urn:uuid:784c3b7a-e251-4e50-b349-47ae8cc6de71",
                    "display": "Patient"
                },
                "context": {
                    "reference": "urn:uuid:7c0f5921-7a38-41b2-9b36-a64d9a16df2b",
                    "display": "Encounter"
                },
                "performer": [
                    {
                        "actor": {
                            "reference": "urn:uuid:61985fec-df79-4b89-b686-3899f7dd1f47",
                            "display": "DR.ORTHOPEDIC"
                        }
                    }
                ],
                "occurrenceDateTime": "2026-09-20T18:30:00+00:00",
                "productReference": {
                    "reference": "urn:uuid:139049ef-b842-4cbf-8436-db2d1e62f70b",
                    "display": "ADOLOR AQ INJ / L ARGININE,VITAMIN C & VITAMIN E GRANULES.,"
                },
                "quantity": {
                    "value": 2,
                    "unit": "BT"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/ChargeItem"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:6eda8ea6-04f7-4be3-bf47-e9accbf940ba",
            "resource": {
                "resourceType": "ChargeItem",
                "id": "6eda8ea6-04f7-4be3-bf47-e9accbf940ba",
                "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: 10 NUM<br />\nRate: INR 20.00<br />\nTotal: INR 200.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:784c3b7a-e251-4e50-b349-47ae8cc6de71",
                    "display": "Patient"
                },
                "context": {
                    "reference": "urn:uuid:7c0f5921-7a38-41b2-9b36-a64d9a16df2b",
                    "display": "Encounter"
                },
                "performer": [
                    {
                        "actor": {
                            "reference": "urn:uuid:61985fec-df79-4b89-b686-3899f7dd1f47",
                            "display": "DR.ORTHOPEDIC"
                        }
                    }
                ],
                "occurrenceDateTime": "2026-09-20T18:30:00+00:00",
                "productReference": {
                    "reference": "urn:uuid:4cecde98-beab-4c61-ac11-d49c72851d64",
                    "display": "#ACILOC 300 MG TAB / RANITIDINE 300 MG..."
                },
                "quantity": {
                    "value": 10,
                    "unit": "NUM"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/ChargeItem"
                    ]
                }
            }
        }
    ],
    "meta": {
        "versionId": "1",
        "lastUpdated": "2026-09-20T18:30:00+00:00",
        "profile": [
            "https://nrces.in/ndhm/fhir/r4/StructureDefinition/DocumentBundle"
        ]
    }
}