{
    "resourceType": "Bundle",
    "id": "858f4809-f04c-409b-a57d-d9a0b44e5766",
    "identifier": {
        "system": "https://thims/pharmacy-invoice-record-bundles",
        "value": "PHARMACY-INVOICE-6317"
    },
    "type": "document",
    "timestamp": "2026-08-02T18:30:00+00:00",
    "entry": [
        {
            "fullUrl": "urn:uuid:af54a64f-6ed1-4a63-9dad-50bc7270f421",
            "resource": {
                "resourceType": "Composition",
                "id": "af54a64f-6ed1-4a63-9dad-50bc7270f421",
                "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/1</p></div>"
                },
                "status": "final",
                "type": {
                    "text": "Invoice Record"
                },
                "subject": {
                    "reference": "urn:uuid:f3f44c48-a4ee-4ae1-ba70-7b015d57ba26",
                    "display": "Patient"
                },
                "encounter": {
                    "reference": "urn:uuid:df85ffd7-ad5c-4bc6-b5f9-658b0522f495",
                    "display": "Encounter"
                },
                "date": "2026-08-02T18:30:00+00:00",
                "author": [
                    {
                        "reference": "urn:uuid:657537a3-ea95-45fb-9011-c7058f652d49",
                        "display": "DR. MEDICINE"
                    }
                ],
                "title": "Pharmacy Invoice Record - I/2627/1",
                "custodian": {
                    "reference": "urn:uuid:3bd2388c-e191-4843-a95b-a143ad813978",
                    "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/1<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 93.80<br />\nDiscount Total: INR 0.00<br />\nGST Total: INR 4.46<br />\nInvoice Amount: INR 93.80<br />\nTotal Amount: INR 94.00</p></div>"
                        },
                        "entry": [
                            {
                                "reference": "urn:uuid:2712035f-0d01-4594-9a64-7a679fb83c5b",
                                "type": "Invoice"
                            }
                        ]
                    }
                ]
            }
        },
        {
            "fullUrl": "urn:uuid:f3f44c48-a4ee-4ae1-ba70-7b015d57ba26",
            "resource": {
                "resourceType": "Patient",
                "id": "f3f44c48-a4ee-4ae1-ba70-7b015d57ba26",
                "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:657537a3-ea95-45fb-9011-c7058f652d49",
            "resource": {
                "resourceType": "Practitioner",
                "id": "657537a3-ea95-45fb-9011-c7058f652d49",
                "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:3bd2388c-e191-4843-a95b-a143ad813978",
            "resource": {
                "resourceType": "Organization",
                "id": "3bd2388c-e191-4843-a95b-a143ad813978",
                "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:df85ffd7-ad5c-4bc6-b5f9-658b0522f495",
            "resource": {
                "resourceType": "Encounter",
                "id": "df85ffd7-ad5c-4bc6-b5f9-658b0522f495",
                "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:f3f44c48-a4ee-4ae1-ba70-7b015d57ba26",
                    "display": "Patient"
                },
                "participant": [
                    {
                        "individual": {
                            "reference": "urn:uuid:657537a3-ea95-45fb-9011-c7058f652d49",
                            "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:2712035f-0d01-4594-9a64-7a679fb83c5b",
            "resource": {
                "resourceType": "Invoice",
                "id": "2712035f-0d01-4594-9a64-7a679fb83c5b",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>I/2627/1</p></div>"
                },
                "identifier": [
                    {
                        "system": "https://thims/pharmacy-sales-bill",
                        "value": "I/2627/1"
                    }
                ],
                "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:f3f44c48-a4ee-4ae1-ba70-7b015d57ba26",
                    "display": "Patient"
                },
                "recipient": {
                    "reference": "urn:uuid:f3f44c48-a4ee-4ae1-ba70-7b015d57ba26",
                    "display": "Patient"
                },
                "date": "2026-08-02T18:30:00+00:00",
                "participant": [
                    {
                        "actor": {
                            "reference": "urn:uuid:657537a3-ea95-45fb-9011-c7058f652d49",
                            "display": "DR. MEDICINE"
                        }
                    }
                ],
                "issuer": {
                    "reference": "urn:uuid:3bd2388c-e191-4843-a95b-a143ad813978",
                    "display": "TECHSMITH SOLUTIONS PVT LTD"
                },
                "lineItem": [
                    {
                        "sequence": 1,
                        "chargeItemReference": {
                            "reference": "urn:uuid:e50f6c0e-f0a7-4d25-912a-cd7e1443453b",
                            "display": "DOLO 600 TEST 16MAR21 / Paracitamol"
                        },
                        "priceComponent": [
                            {
                                "type": "base",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-price-components",
                                            "code": "01",
                                            "display": "Rate"
                                        }
                                    ],
                                    "text": "Rate"
                                },
                                "amount": {
                                    "value": 8.92999999999999971578290569595992565155029296875,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "informational",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://thims/pharmacy-invoice-price-components",
                                            "code": "GROSS_TOTAL",
                                            "display": "Gross Total"
                                        }
                                    ],
                                    "text": "Gross Total"
                                },
                                "amount": {
                                    "value": 89.3299999999999982946974341757595539093017578125,
                                    "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": 89.3299999999999982946974341757595539093017578125,
                                    "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": 2.229999999999999982236431605997495353221893310546875,
                                    "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": 2.229999999999999982236431605997495353221893310546875,
                                    "currency": "INR"
                                }
                            },
                            {
                                "type": "informational",
                                "code": {
                                    "coding": [
                                        {
                                            "system": "https://thims/pharmacy-invoice-price-components",
                                            "code": "TOTAL",
                                            "display": "Total"
                                        }
                                    ],
                                    "text": "Total"
                                },
                                "amount": {
                                    "value": 93.7999999999999971578290569595992565155029296875,
                                    "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": 4.45999999999999996447286321199499070644378662109375,
                            "currency": "INR"
                        }
                    }
                ],
                "totalNet": {
                    "value": 89.3299999999999982946974341757595539093017578125,
                    "currency": "INR"
                },
                "totalGross": {
                    "value": 93.7999999999999971578290569595992565155029296875,
                    "currency": "INR"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Invoice"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:8ba90eb1-aefe-4d5d-84ea-e6f8249fe967",
            "resource": {
                "resourceType": "Medication",
                "id": "8ba90eb1-aefe-4d5d-84ea-e6f8249fe967",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>DOLO 600 TEST 16MAR21 / Paracitamol</p></div>"
                },
                "status": "active",
                "code": {
                    "coding": [
                        {
                            "system": "https://thims/products",
                            "code": "45405",
                            "display": "DOLO 600 TEST 16MAR21 / Paracitamol"
                        }
                    ],
                    "text": "DOLO 600 TEST 16MAR21 / Paracitamol"
                },
                "batch": {
                    "lotNumber": "MAYB2",
                    "expirationDate": "2030-10-31"
                },
                "meta": {
                    "profile": [
                        "https://nrces.in/ndhm/fhir/r4/StructureDefinition/Medication"
                    ]
                }
            }
        },
        {
            "fullUrl": "urn:uuid:e50f6c0e-f0a7-4d25-912a-cd7e1443453b",
            "resource": {
                "resourceType": "ChargeItem",
                "id": "e50f6c0e-f0a7-4d25-912a-cd7e1443453b",
                "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-IN\" xml:lang=\"en-IN\"><p>DOLO 600 TEST 16MAR21 / Paracitamol<br />\nQty: 10 STRP<br />\nRate: INR 8.93<br />\nTotal: INR 93.80</p></div>"
                },
                "status": "billed",
                "code": {
                    "coding": [
                        {
                            "system": "https://nrces.in/ndhm/fhir/r4/CodeSystem/ndhm-billing-codes",
                            "code": "05",
                            "display": "Medicines"
                        }
                    ],
                    "text": "DOLO 600 TEST 16MAR21 / Paracitamol"
                },
                "subject": {
                    "reference": "urn:uuid:f3f44c48-a4ee-4ae1-ba70-7b015d57ba26",
                    "display": "Patient"
                },
                "context": {
                    "reference": "urn:uuid:df85ffd7-ad5c-4bc6-b5f9-658b0522f495",
                    "display": "Encounter"
                },
                "performer": [
                    {
                        "actor": {
                            "reference": "urn:uuid:657537a3-ea95-45fb-9011-c7058f652d49",
                            "display": "DR. MEDICINE"
                        }
                    }
                ],
                "occurrenceDateTime": "2026-08-02T18:30:00+00:00",
                "productReference": {
                    "reference": "urn:uuid:8ba90eb1-aefe-4d5d-84ea-e6f8249fe967",
                    "display": "DOLO 600 TEST 16MAR21 / Paracitamol"
                },
                "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"
        ]
    }
}