{
    "resourceType": "Bundle",
    "id": "d113c494-9ebc-40e6-a352-a0d51dcf206d",
    "identifier": {
        "system": "https://thims/pharmacy-invoice-record-bundles",
        "value": "PHARMACY-INVOICE-6958"
    },
    "type": "document",
    "timestamp": "2026-09-11T18:30:00+00:00",
    "entry": [
        {
            "fullUrl": "urn:uuid:2823f516-aca4-4115-a81c-bd18f079fef5",
            "resource": {
                "resourceType": "Composition",
                "id": "2823f516-aca4-4115-a81c-bd18f079fef5",
                "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/12</p></div>"
                },
                "status": "final",
                "type": {
                    "text": "Invoice Record"
                },
                "subject": {
                    "reference": "urn:uuid:89362051-8514-4a0f-ac7c-7d91ff27a1ab",
                    "display": "Patient"
                },
                "encounter": {
                    "reference": "urn:uuid:f9a5d940-e73b-4146-b871-cce0c639dadb",
                    "display": "Encounter"
                },
                "date": "2026-09-11T18:30:00+00:00",
                "author": [
                    {
                        "reference": "urn:uuid:a1649def-e3a0-4747-9802-45a98f935252",
                        "display": "DR. RADIOLOGIST PANDYA"
                    }
                ],
                "title": "Pharmacy Invoice Record - DC/2627/12",
                "custodian": {
                    "reference": "urn:uuid:3ba3ed97-e146-465b-80da-7cd2dea922e0",
                    "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/12<br />\nBill Date: 12/09/2026 12:00 AM<br />\nPatient: MEHUL TRIVEDI<br />\nDoctor: DR. RADIOLOGIST PANDYA<br />\nInvoice Type: Pharmacy<br />\nGross Amount: INR 160.00<br />\nDiscount Total: INR 0.00<br />\nGST Total: INR 0.00<br />\nInvoice Amount: INR 160.00<br />\nTotal Amount: INR 160.00</p></div>"
                        },
                        "entry": [
                            {
                                "reference": "urn:uuid:ecbe1470-04c3-4bc6-b207-c6782b6ce847",
                                "type": "Invoice"
                            }
                        ]
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:89362051-8514-4a0f-ac7c-7d91ff27a1ab",
            "resource": {
                "resourceType": "Patient",
                "id": "89362051-8514-4a0f-ac7c-7d91ff27a1ab",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>MEHUL TRIVEDI, Male, DoB: 1980-03-22, Medical record number: 1500</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": "1500"
                    }
                ],
                "name": [
                    {
                        "text": "MEHUL TRIVEDI"
                    }
                ],
                "gender": "male",
                "birthDate": "1980-03-22",
                "telecom": [
                    {
                        "system": "phone",
                        "value": "+918989400000",
                        "use": "mobile"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:a1649def-e3a0-4747-9802-45a98f935252",
            "resource": {
                "resourceType": "Practitioner",
                "id": "a1649def-e3a0-4747-9802-45a98f935252",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>DR. RADIOLOGIST PANDYA</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": "1"
                    }
                ],
                "name": [
                    {
                        "text": "DR. RADIOLOGIST PANDYA"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:3ba3ed97-e146-465b-80da-7cd2dea922e0",
            "resource": {
                "resourceType": "Organization",
                "id": "3ba3ed97-e146-465b-80da-7cd2dea922e0",
                "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:f9a5d940-e73b-4146-b871-cce0c639dadb",
            "resource": {
                "resourceType": "Encounter",
                "id": "f9a5d940-e73b-4146-b871-cce0c639dadb",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>Encounter for visit 9481</p></div>"
                },
                "identifier": [
                    {
                        "system": "https://thims/visit-id",
                        "value": "9481"
                    },
                    {
                        "system": "https://thims/opd-reg-id",
                        "value": "0"
                    },
                    {
                        "system": "https://thims/ipd-reg-id",
                        "value": "1457"
                    }
                ],
                "status": "finished",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "IMP",
                    "display": "inpatient encounter"
                },
                "subject": {
                    "reference": "urn:uuid:89362051-8514-4a0f-ac7c-7d91ff27a1ab",
                    "display": "Patient"
                },
                "participant": [
                    {
                        "individual": {
                            "reference": "urn:uuid:a1649def-e3a0-4747-9802-45a98f935252",
                            "display": "DR. RADIOLOGIST PANDYA"
                        }
                    }
                ],
                "period": {
                    "start": "2026-09-11T18:30:00+00:00",
                    "end": "2026-09-11T18:30:00+00:00"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Encounter"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:ecbe1470-04c3-4bc6-b207-c6782b6ce847",
            "resource": {
                "resourceType": "Invoice",
                "id": "ecbe1470-04c3-4bc6-b207-c6782b6ce847",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>DC/2627/12</p></div>"
                },
                "identifier": [
                    {
                        "system": "https://thims/pharmacy-sales-bill",
                        "value": "DC/2627/12"
                    }
                ],
                "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:89362051-8514-4a0f-ac7c-7d91ff27a1ab",
                    "display": "Patient"
                },
                "recipient": {
                    "reference": "urn:uuid:89362051-8514-4a0f-ac7c-7d91ff27a1ab",
                    "display": "Patient"
                },
                "date": "2026-09-11T18:30:00+00:00",
                "participant": [
                    {
                        "actor": {
                            "reference": "urn:uuid:a1649def-e3a0-4747-9802-45a98f935252",
                            "display": "DR. RADIOLOGIST PANDYA"
                        }
                    }
                ],
                "issuer": {
                    "reference": "urn:uuid:3ba3ed97-e146-465b-80da-7cd2dea922e0",
                    "display": "DEMO SAVE LIFE HOSPITAL"
                },
                "lineItem": [
                    {
                        "sequence": 1,
                        "chargeItemReference": {
                            "reference": "urn:uuid:b05fb1ff-e93d-42f5-98b4-e2e33ecfdeef",
                            "display": "BIGSPAS INJ / (ACTH) CORTICOTROPIN  CARBOXYMETHYLCELLULOSE"
                        },
                        "priceComponent": [
                            {
                                "type": "base",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-price-components",
                                            "code": "01",
                                            "display": "Rate"
                                        }
                                    ],
                                    "text": "Rate"
                                },
                                "amount": {
                                    "value": 80,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "informational",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://thims/pharmacy-invoice-price-components",
                                            "code": "GROSS_TOTAL",
                                            "display": "Gross Total"
                                        }
                                    ],
                                    "text": "Gross Total"
                                },
                                "amount": {
                                    "value": 160,
                                    "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": 160,
                                    "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": 160,
                                    "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": 160,
                    "currency": "INR"
                },
                "totalGross": {
                    "value": 160,
                    "currency": "INR"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Invoice"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:5b9edb2c-bccf-4a20-82ec-fd7111d41e1c",
            "resource": {
                "resourceType": "Medication",
                "id": "5b9edb2c-bccf-4a20-82ec-fd7111d41e1c",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>BIGSPAS INJ / (ACTH) CORTICOTROPIN  CARBOXYMETHYLCELLULOSE</p></div>"
                },
                "status": "active",
                "code": {
                    "coding": [
                        {
                            "system": "https://thims/products",
                            "code": "168",
                            "display": "BIGSPAS INJ / (ACTH) CORTICOTROPIN  CARBOXYMETHYLCELLULOSE"
                        }
                    ],
                    "text": "BIGSPAS INJ / (ACTH) CORTICOTROPIN  CARBOXYMETHYLCELLULOSE"
                },
                "identifier": [
                    {
                        "type": {
                            "text": "Harmonized System of Nomenclature"
                        },
                        "system": "https://thims/product-hsn",
                        "value": "30049099"
                    }
                ],
                "batch": {
                    "lotNumber": "B22"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Medication"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:b05fb1ff-e93d-42f5-98b4-e2e33ecfdeef",
            "resource": {
                "resourceType": "ChargeItem",
                "id": "b05fb1ff-e93d-42f5-98b4-e2e33ecfdeef",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>BIGSPAS INJ / (ACTH) CORTICOTROPIN  CARBOXYMETHYLCELLULOSE<br />\nQty: 2 NUM<br />\nRate: INR 80.00<br />\nTotal: INR 160.00</p></div>"
                },
                "status": "billed",
                "code": {
                    "coding": [
                        {
                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-billing-codes",
                            "code": "05",
                            "display": "Medicines"
                        }
                    ],
                    "text": "BIGSPAS INJ / (ACTH) CORTICOTROPIN  CARBOXYMETHYLCELLULOSE"
                },
                "subject": {
                    "reference": "urn:uuid:89362051-8514-4a0f-ac7c-7d91ff27a1ab",
                    "display": "Patient"
                },
                "context": {
                    "reference": "urn:uuid:f9a5d940-e73b-4146-b871-cce0c639dadb",
                    "display": "Encounter"
                },
                "performer": [
                    {
                        "actor": {
                            "reference": "urn:uuid:a1649def-e3a0-4747-9802-45a98f935252",
                            "display": "DR. RADIOLOGIST PANDYA"
                        }
                    }
                ],
                "occurrenceDateTime": "2026-09-11T18:30:00+00:00",
                "productReference": {
                    "reference": "urn:uuid:5b9edb2c-bccf-4a20-82ec-fd7111d41e1c",
                    "display": "BIGSPAS INJ / (ACTH) CORTICOTROPIN  CARBOXYMETHYLCELLULOSE"
                },
                "quantity": {
                    "value": 2,
                    "unit": "NUM"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/ChargeItem"
                    ]
                }
            }
        }
    ],
    "meta": {
        "versionId": "1",
        "lastUpdated": "2026-09-11T18:30:00+00:00",
        "profile": [
            "https://nrces.in/ndhm/fhir/r4/StructureDefinition/DocumentBundle"
        ]
    }
}