{
    "resourceType": "Bundle",
    "id": "ddb8312a-554c-40f2-93d0-ce3031ecde30",
    "identifier": {
        "system": "https://thims/pharmacy-invoice-record-bundles",
        "value": "PHARMACY-INVOICE-6318"
    },
    "type": "document",
    "timestamp": "2026-08-02T18:30:00+00:00",
    "entry": [
        {
            "fullUrl": "urn:uuid:2bf8b3ef-937a-4385-9043-6d1349f57ab5",
            "resource": {
                "resourceType": "Composition",
                "id": "2bf8b3ef-937a-4385-9043-6d1349f57ab5",
                "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/2</p></div>"
                },
                "status": "final",
                "type": {
                    "text": "Invoice Record"
                },
                "subject": {
                    "reference": "urn:uuid:522c4a30-35e6-403f-84dc-27f11f252c0f",
                    "display": "Patient"
                },
                "encounter": {
                    "reference": "urn:uuid:f03bd22c-c32d-4dca-8431-ac3e9d77d351",
                    "display": "Encounter"
                },
                "date": "2026-08-02T18:30:00+00:00",
                "author": [
                    {
                        "reference": "urn:uuid:066565b2-50b6-46ad-8eb1-846ba983d829",
                        "display": "DR. MEDICINE"
                    }
                ],
                "title": "Pharmacy Invoice Record - I/2627/2",
                "custodian": {
                    "reference": "urn:uuid:ce3223bf-5321-4c9b-9e17-f2fc53c5aadd",
                    "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/2<br />\nBill Date: 03/08/2026 12:00 AM<br />\nPatient: JAINAM P SHAH<br />\nDoctor: DR. MEDICINE<br />\nInvoice Type: Pharmacy<br />\nGross Amount: INR 100.00<br />\nDiscount Total: INR 2.00<br />\nGST Total: INR 0.00<br />\nInvoice Amount: INR 98.00<br />\nTotal Amount: INR 98.00</p></div>"
                        },
                        "entry": [
                            {
                                "reference": "urn:uuid:66e85722-3701-4e58-b0c0-9e0fa860b140",
                                "type": "Invoice"
                            }
                        ]
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:522c4a30-35e6-403f-84dc-27f11f252c0f",
            "resource": {
                "resourceType": "Patient",
                "id": "522c4a30-35e6-403f-84dc-27f11f252c0f",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>JAINAM P SHAH, Male, DoB: 1999-02-12, Medical record number: 501</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": "501"
                    }
                ],
                "name": [
                    {
                        "text": "JAINAM P SHAH"
                    }
                ],
                "gender": "male",
                "birthDate": "1999-02-12",
                "telecom": [
                    {
                        "system": "phone",
                        "value": "+917600303648",
                        "use": "mobile"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Patient"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:066565b2-50b6-46ad-8eb1-846ba983d829",
            "resource": {
                "resourceType": "Practitioner",
                "id": "066565b2-50b6-46ad-8eb1-846ba983d829",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>DR. MEDICINE</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": "3"
                    }
                ],
                "name": [
                    {
                        "text": "DR. MEDICINE"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Practitioner"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:ce3223bf-5321-4c9b-9e17-f2fc53c5aadd",
            "resource": {
                "resourceType": "Organization",
                "id": "ce3223bf-5321-4c9b-9e17-f2fc53c5aadd",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>TECHSMITH SOLUTIONS PVT LTD</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": "TECHSMITH SOLUTIONS PVT LTD",
                "address": [
                    {
                        "text": "A 501 Titanium Square,, Thaltej,, Ahmedabad, 380054"
                    }
                ],
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Organization"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:f03bd22c-c32d-4dca-8431-ac3e9d77d351",
            "resource": {
                "resourceType": "Encounter",
                "id": "f03bd22c-c32d-4dca-8431-ac3e9d77d351",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>Encounter for visit 7862</p></div>"
                },
                "identifier": [
                    {
                        "system": "https://thims/visit-id",
                        "value": "7862"
                    },
                    {
                        "system": "https://thims/opd-reg-id",
                        "value": "5538"
                    },
                    {
                        "system": "https://thims/ipd-reg-id",
                        "value": "1139"
                    }
                ],
                "status": "finished",
                "class": {
                    "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
                    "code": "IMP",
                    "display": "inpatient encounter"
                },
                "subject": {
                    "reference": "urn:uuid:522c4a30-35e6-403f-84dc-27f11f252c0f",
                    "display": "Patient"
                },
                "participant": [
                    {
                        "individual": {
                            "reference": "urn:uuid:066565b2-50b6-46ad-8eb1-846ba983d829",
                            "display": "DR. MEDICINE"
                        }
                    }
                ],
                "period": {
                    "start": "2026-08-01T18:30:00+00:00",
                    "end": "2026-08-01T18:30:00+00:00"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Encounter"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:66e85722-3701-4e58-b0c0-9e0fa860b140",
            "resource": {
                "resourceType": "Invoice",
                "id": "66e85722-3701-4e58-b0c0-9e0fa860b140",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>I/2627/2</p></div>"
                },
                "identifier": [
                    {
                        "system": "https://thims/pharmacy-sales-bill",
                        "value": "I/2627/2"
                    }
                ],
                "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:522c4a30-35e6-403f-84dc-27f11f252c0f",
                    "display": "Patient"
                },
                "recipient": {
                    "reference": "urn:uuid:522c4a30-35e6-403f-84dc-27f11f252c0f",
                    "display": "Patient"
                },
                "date": "2026-08-02T18:30:00+00:00",
                "participant": [
                    {
                        "actor": {
                            "reference": "urn:uuid:066565b2-50b6-46ad-8eb1-846ba983d829",
                            "display": "DR. MEDICINE"
                        }
                    }
                ],
                "issuer": {
                    "reference": "urn:uuid:ce3223bf-5321-4c9b-9e17-f2fc53c5aadd",
                    "display": "TECHSMITH SOLUTIONS PVT LTD"
                },
                "lineItem": [
                    {
                        "sequence": 1,
                        "chargeItemReference": {
                            "reference": "urn:uuid:2a157733-5c8b-489c-aa7d-9963f12a3e85",
                            "display": "#ANDROSURE CAP / TESTOSTERONE 40MG"
                        },
                        "priceComponent": [
                            {
                                "type": "base",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-price-components",
                                            "code": "01",
                                            "display": "Rate"
                                        }
                                    ],
                                    "text": "Rate"
                                },
                                "amount": {
                                    "value": 10,
                                    "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": 2,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "informational",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://thims/pharmacy-invoice-price-components",
                                            "code": "NET_TOTAL",
                                            "display": "Net Total"
                                        }
                                    ],
                                    "text": "Net Total"
                                },
                                "amount": {
                                    "value": 98,
                                    "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": 2,
                            "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": 98,
                    "currency": "INR"
                },
                "totalGross": {
                    "value": 100,
                    "currency": "INR"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Invoice"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:8fd34279-7c3d-449f-8bfa-a6460d8516f1",
            "resource": {
                "resourceType": "Medication",
                "id": "8fd34279-7c3d-449f-8bfa-a6460d8516f1",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>#ANDROSURE CAP / TESTOSTERONE 40MG</p></div>"
                },
                "status": "active",
                "code": {
                    "coding": [
                        {
                            "system": "https://thims/products",
                            "code": "7625",
                            "display": "#ANDROSURE CAP / TESTOSTERONE 40MG"
                        }
                    ],
                    "text": "#ANDROSURE CAP / TESTOSTERONE 40MG"
                },
                "identifier": [
                    {
                        "type": {
                            "text": "Harmonized System of Nomenclature"
                        },
                        "system": "https://thims/product-hsn",
                        "value": "0"
                    }
                ],
                "batch": {
                    "lotNumber": "ABCD",
                    "expirationDate": "2030-02-28"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Medication"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:2a157733-5c8b-489c-aa7d-9963f12a3e85",
            "resource": {
                "resourceType": "ChargeItem",
                "id": "2a157733-5c8b-489c-aa7d-9963f12a3e85",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>#ANDROSURE CAP / TESTOSTERONE 40MG<br />\nQty: 10 STRP<br />\nRate: INR 10.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": "#ANDROSURE CAP / TESTOSTERONE 40MG"
                },
                "subject": {
                    "reference": "urn:uuid:522c4a30-35e6-403f-84dc-27f11f252c0f",
                    "display": "Patient"
                },
                "context": {
                    "reference": "urn:uuid:f03bd22c-c32d-4dca-8431-ac3e9d77d351",
                    "display": "Encounter"
                },
                "performer": [
                    {
                        "actor": {
                            "reference": "urn:uuid:066565b2-50b6-46ad-8eb1-846ba983d829",
                            "display": "DR. MEDICINE"
                        }
                    }
                ],
                "occurrenceDateTime": "2026-08-02T18:30:00+00:00",
                "productReference": {
                    "reference": "urn:uuid:8fd34279-7c3d-449f-8bfa-a6460d8516f1",
                    "display": "#ANDROSURE CAP / TESTOSTERONE 40MG"
                },
                "quantity": {
                    "value": 10,
                    "unit": "STRP"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/ChargeItem"
                    ]
                }
            }
        }
    ],
    "meta": {
        "versionId": "1",
        "lastUpdated": "2026-08-02T18:30:00+00:00",
        "profile": [
            "https://nrces.in/ndhm/fhir/r4/StructureDefinition/DocumentBundle"
        ]
    }
}