@ohmaorg/esm-billing-app 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/12.js +1 -0
- package/dist/144.js +2 -0
- package/dist/16.js +2 -0
- package/dist/194.js +1 -0
- package/dist/196.js +1 -0
- package/dist/221.js +1 -0
- package/dist/244.js +1 -0
- package/dist/246.js +2 -0
- package/dist/281.js +1 -0
- package/dist/289.js +1 -0
- package/dist/300.js +1 -0
- package/dist/304.js +1 -0
- package/dist/338.js +1 -0
- package/dist/41.js +2 -0
- package/dist/437.js +1 -0
- package/dist/526.js +1 -0
- package/dist/537.js +1 -0
- package/dist/579.js +2 -0
- package/dist/609.js +1 -0
- package/dist/622.js +1 -0
- package/dist/711.js +1 -0
- package/dist/795.js +1 -0
- package/dist/848.js +1 -0
- package/dist/87.js +2 -0
- package/dist/913.js +2 -0
- package/dist/92.js +2 -0
- package/dist/939.js +1 -0
- package/dist/main.js +2 -0
- package/dist/openmrs-esm-billing-app.js +1 -0
- package/dist/routes.json +1 -0
- package/package.json +87 -0
- package/src/index.ts +56 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineConfigSchema, getSyncLifecycle, registerBreadcrumbs } from '@openmrs/esm-framework';
|
|
2
|
+
import { configSchema } from './config-schema';
|
|
3
|
+
import { moduleName } from './constants';
|
|
4
|
+
import rootComponent from './root.component';
|
|
5
|
+
import PatientBillsWidget from './components/patient-chart/patient-bills-widget.component';
|
|
6
|
+
import CreateBillAction from './components/encounter-actions/create-bill-action.component';
|
|
7
|
+
import BillingNavLink from './components/navigation/billing-nav-link.component';
|
|
8
|
+
|
|
9
|
+
export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');
|
|
10
|
+
|
|
11
|
+
const options = {
|
|
12
|
+
featureName: 'billing',
|
|
13
|
+
moduleName,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const billing = getSyncLifecycle(rootComponent, options);
|
|
17
|
+
|
|
18
|
+
export const patientBillsWidget = getSyncLifecycle(PatientBillsWidget, {
|
|
19
|
+
featureName: 'patient-bills-widget',
|
|
20
|
+
moduleName,
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export const createBillAction = getSyncLifecycle(CreateBillAction, {
|
|
24
|
+
featureName: 'create-bill-action',
|
|
25
|
+
moduleName,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export const billingNavLink = getSyncLifecycle(BillingNavLink, {
|
|
29
|
+
featureName: 'billing-nav-link',
|
|
30
|
+
moduleName,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function startupApp() {
|
|
34
|
+
defineConfigSchema(moduleName, configSchema);
|
|
35
|
+
registerBreadcrumbs([
|
|
36
|
+
{
|
|
37
|
+
path: `${window.getOpenmrsSpaBase()}billing`,
|
|
38
|
+
title: 'Billing',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: `${window.getOpenmrsSpaBase()}billing/bills`,
|
|
42
|
+
title: 'Bills',
|
|
43
|
+
parent: `${window.getOpenmrsSpaBase()}billing`,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
path: `${window.getOpenmrsSpaBase()}billing/payments`,
|
|
47
|
+
title: 'Payments',
|
|
48
|
+
parent: `${window.getOpenmrsSpaBase()}billing`,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
path: `${window.getOpenmrsSpaBase()}billing/reports`,
|
|
52
|
+
title: 'Reports',
|
|
53
|
+
parent: `${window.getOpenmrsSpaBase()}billing`,
|
|
54
|
+
},
|
|
55
|
+
]);
|
|
56
|
+
}
|