{"_id":"@clinicemr/esm-billing-app","name":"@clinicemr/esm-billing-app","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@clinicemr/esm-billing-app","version":"1.0.1","description":"ClinicEMR billing module - O3 frontend module for handling billing concerns in healthcare settings","browser":"dist/openmrs-esm-billing-app.js","main":"src/index.ts","source":true,"license":"MPL-2.0","homepage":"https://github.com/Bwongo-Digital-Solutions/openmrs-esm-billing-app#readme","scripts":{"start":"openmrs develop","analyze":"webpack --mode=production --env.analyze=true","build":"webpack --mode production","coverage":"yarn test --coverage","debug":"npm run serve","extract-translations":"i18next 'src/**/*.component.tsx' 'src/**/*.workspace.tsx' 'src/**/*.modal.tsx' 'src/index.ts' --config ./tools/i18next-parser.config.js","lint":"eslint src --ext ts,tsx --max-warnings=0","postinstall":"husky install","prettier":"prettier --config prettier.config.js --write \"src/**/*.{ts,tsx,css,scss}\" \"e2e/**/*.ts\"","serve":"webpack serve --mode=development","test-e2e":"playwright test","test":"cross-env TZ=UTC jest --config jest.config.js --verbose false --passWithNoTests","test:watch":"cross-env TZ=UTC jest --watch --config jest.config.js","typescript":"tsc","verify":"turbo lint && turbo typescript && turbo test --color --concurrency=5"},"browserslist":["extends browserslist-config-openmrs"],"keywords":["openmrs","clinicemr","billing","healthcare","emr","medical-billing"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Bwongo-Digital-Solutions/openmrs-esm-billing-app.git#readme"},"bugs":{"url":"https://github.com/Bwongo-Digital-Solutions/openmrs-esm-billing-app/issues"},"dependencies":{"@carbon/react":"^1.83.0","@hookform/resolvers":"^3.3.4","classnames":"^2.5.1","fuzzy":"^0.1.3","lodash-es":"^4.17.21","react-hook-form":"^7.49.3","react-to-print":"^3.1.1","zod":"^3.22.4"},"peerDependencies":{"@openmrs/esm-framework":"8.x","@openmrs/esm-patient-common-lib":"11.x","react":"18.x","react-dom":"18.x","react-i18next":"16.x","rxjs":"6.x","swr":"2.x"},"devDependencies":{"@openmrs/esm-framework":"next","@openmrs/esm-patient-common-lib":"next","@playwright/test":"^1.49.0","@swc/cli":"^0.3.2","@swc/core":"^1.3.106","@swc/jest":"^0.2.31","@testing-library/dom":"^9.3.4","@testing-library/jest-dom":"^6.3.0","@testing-library/react":"^14.1.2","@testing-library/user-event":"^14.5.2","@types/jest":"^29.5.11","@types/lodash-es":"^4.17.12","@types/react":"^18.3.21","@types/react-dom":"^18.3.0","@types/webpack-env":"^1.18.4","@typescript-eslint/eslint-plugin":"^6.19.1","@typescript-eslint/parser":"^6.19.1","babel-preset-minify":"^0.5.2","concurrently":"^8.2.2","cross-env":"^7.0.3","css-loader":"^6.9.1","d3-selection":"^3.0.0","dayjs":"^1.11.10","dotenv":"^16.4.1","eslint":"^8.56.0","eslint-plugin-import":"^2.31.0","eslint-plugin-jest-dom":"^5.5.0","eslint-plugin-playwright":"^2.2.2","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-testing-library":"^7.13.1","husky":"^9.0.6","i18next":"^25.0.0","i18next-parser":"^9.3.0","identity-obj-proxy":"^3.0.0","jest":"^29.7.0","jest-cli":"^29.7.0","jest-environment-jsdom":"^29.7.0","lint-staged":"^15.2.10","lodash":"^4.17.21","openmrs":"next","pinst":"^3.0.0","prettier":"^3.2.4","react":"^18.3.1","react-dom":"^18.3.1","react-i18next":"^16.0.0","react-router-dom":"^6.21.3","rxjs":"^6.6.7","sass":"^1.70.0","swc-loader":"^0.2.3","swr":"^2.2.4","turbo":"^2.5.2","typescript":"^5.0.0","webpack":"^5.99.9","webpack-cli":"^6.0.1","webpack-dev-server":"^5.2.1"},"lint-staged":{"*.{ts,tsx}":"eslint --cache --fix --max-warnings 0","*.{css,scss,ts,tsx}":"prettier --write --list-different"},"packageManager":"yarn@4.10.3","gitHead":"2c6c523b4603f47a5e4d017e243b3056a3df91fb","_id":"@clinicemr/esm-billing-app@1.0.1","_nodeVersion":"22.13.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-D/3XRKK5v8ymx+6ggdeWqXAmOLr5wHJ1Uv9mnNoSbMCgFXtmuaJyHkIHicjzIRXD93dt/hZwazTeAYZDgtJpOg==","shasum":"ad42e50e3ea781bdf4607449e11372165f418498","tarball":"https://registry.npmjs.org/@clinicemr/esm-billing-app/-/esm-billing-app-1.0.1.tgz","fileCount":92,"unpackedSize":9649642,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAb5K90sP0vXoUTEnITeuXrs6KJT0VjoRRwgY0t6KL3nAiADZmwiekd3224AIwyDJWRdlzP2aKrDGATKKbd8TnK0Bg=="}]},"_npmUser":{"name":"tendomart","email":"tmkmart@gmail.com"},"directories":{},"maintainers":[{"name":"tendomart","email":"tmkmart@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/esm-billing-app_1.0.1_1762086974391_0.06746574572237063"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-02T12:36:14.213Z","1.0.1":"2025-11-02T12:36:14.694Z","modified":"2025-11-02T12:36:15.111Z"},"maintainers":[{"name":"tendomart","email":"tmkmart@gmail.com"}],"description":"ClinicEMR billing module - O3 frontend module for handling billing concerns in healthcare settings","homepage":"https://github.com/Bwongo-Digital-Solutions/openmrs-esm-billing-app#readme","keywords":["openmrs","clinicemr","billing","healthcare","emr","medical-billing"],"repository":{"type":"git","url":"git+https://github.com/Bwongo-Digital-Solutions/openmrs-esm-billing-app.git#readme"},"bugs":{"url":"https://github.com/Bwongo-Digital-Solutions/openmrs-esm-billing-app/issues"},"license":"MPL-2.0","readme":"# OpenMRS 3.x Billing ESM\n\n![OpenMRS CI](https://github.com/openmrs/openmrs-esm-billing-app/actions/workflows/ci.yml/badge.svg)\n\nThe OpenMRS Billing Module is designed to streamline the financial operations within healthcare settings by facilitating the management of patient billing, payments, and service pricing. This module integrates seamlessly with the OpenMRS platform, allowing healthcare providers to generate bills, track payments, and manage various billable services. It is an essential tool for ensuring transparency and accuracy in financial transactions within healthcare facilities, contributing to efficient service delivery.\n\nThe **Billing ESM** is a microfrontend for OpenMRS 3.x designed to manage healthcare billing workflows. It allows users to:\n\n- Generate and manage bills\n- Capture payments and insurance details\n- Configure billable services and categories\n- Integrate with visits and patient dashboards\n\nDependency: Note that this frontend module depends on the backend module called \"Billing Module\": <https://github.com/openmrs/openmrs-module-billing>\n\nFor more information, please see the\n[OpenMRS Frontend Developer Documentation](https://openmrs.atlassian.net/wiki/x/IABBHg).\n\n## Local development\n\nCheck out the developer documentation [in the OpenMRS Wiki](https://openmrs.atlassian.net/wiki/x/IABBHg).\n\nThis monorepo uses [yarn](https://yarnpkg.com).\n\nTo install the dependencies, run:\n\n```bash\nyarn\n```\n\nTo start a dev server, run:\n\n```bash\nyarn start\n```\n\nOnce the dev server launches, log in and select a location. You will get redirected to the home page. Once there:\n\n- Navigate to the Billing dashboard on the left panel to view the billing history. Additional billing functionality exists in the Patient Chart. You'll also find the Billable Services dashboard in the System Administration page.\n- For more information on how to navigate and use the billing module, please refer to this [documentation](https://www.notion.so/ucsf-ighs/Billing-User-Manual-7f0427617e714b7db14432312cbb7cad)\n\n## Running tests\n\nTo run tests for all packages, run:\n\n```bash\nyarn turbo run test\n```\n\nTo run tests in `watch` mode, run:\n\n```bash\nyarn turbo run test:watch\n```\n\nTo run a specific test file, run:\n\n```bash\nyarn turbo run test -- visit-notes-form\n```\n\nThe above command will only run tests in the file or files that match the provided string.\n\nYou can also run the matching tests from above in watch mode by running:\n\n```bash\nyarn turbo run test:watch -- visit-notes-form\n```\n\nTo generate a `coverage` report, run:\n\n```bash\nyarn turbo run coverage\n```\n\nBy default, `turbo` will cache test runs. This means that re-running tests wihout changing any of the related files will return the cached logs from the last run. To bypass the cache, run tests with the `force` flag, as follows:\n\n```bash\nyarn turbo run test --force\n```\n\nTo run end-to-end tests, run:\n\n```bash\nyarn test-e2e\n```\n\nRead the [e2e testing guide](https://openmrs.atlassian.net/wiki/x/Z8CEAQ) to learn more about End-to-End tests in this project.\n\n### Updating Playwright\n\nThe Playwright version in the [Bamboo e2e Dockerfile](e2e/support/bamboo/playwright.Dockerfile#L2) and the `package.json` file must match. If you update the Playwright version in one place, you must update it in the other.\n\n## ⚙️ Configuration\n\nYou can customize billing behavior using OpenMRS frontend config overrides.\n\n### 🔧 Example Config\n\n``` bash\n{\n  \"openmrs\": {\n    \"config\": {\n      \"billing\": {\n        \"defaultCurrency\": \"UGX\",\n        \"pageSize\": 20,\n        \"patientCatergory\": {\n          \"paymentDetails\": \"fbc0702d-...\",\n          \"insuranceScheme\": \"aac48226-...\"\n        },\n        \"nonPayingPatientCategories\": {\n          \"childUnder5\": \"1528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\"\n        }\n      }\n    }\n  }\n}\n```\n\n``` bash\n📌 Ensure all UUIDs used here exist in your OpenMRS instance.\n🧩 Configuration can be managed via your MF shell app or import-map-deployer\n```\n\n## Troubleshooting\n\nIf you notice that your local version of the application is not working or that there's a mismatch between what you see locally versus what's in [dev3](https://dev3.openmrs.org/openmrs/spa), you likely have outdated versions of core libraries. To update core libraries, run the following commands:\n\n```bash\n# Upgrade core libraries\nyarn up openmrs@next @openmrs/esm-framework@next\n```\n\n### Reset version specifiers to `next`. Don't commit actual version numbers\n\n```bash\ngit checkout package.json\n```\n\n### Run `yarn` to recreate the lockfile\n\n```bash\nyarn\n```\n\n## Design Patterns\n\nFor documentation about our design patterns, please visit our [design system](https://zeroheight.com/23a080e38/p/880723--introduction) documentation website.\n\n## Configuration\n\nPlease see the [Implementer Documentation](https://wiki.openmrs.org/pages/viewpage.action?pageId=224527013) for information about configuring modules.\n\n## Deployment\n\nSee [Creating a Distribution](https://openmrs.atlassian.net/wiki/x/IABBHg) for information about adding microfrontends to a distribution.\n\n## Contributing\n\nFor more information on how to get started, please refer to [OpenMRS Frontend Developer Documentation](https://openmrs.atlassian.net/wiki/x/94ABCQ).\n\nDetailed documentation on Billing Module can be found [in the OpenMRS Wiki](https://openmrs.atlassian.net/wiki/x/0w2bAQ)\n","readmeFilename":"README.md","_rev":"1-7a113a671e13b05844ebba286e152394"}