@openmrs/esm-bed-management-app 7.0.3-pre.94

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.
Files changed (102) hide show
  1. package/.turbo/turbo-build.log +36 -0
  2. package/README.md +8 -0
  3. package/dist/130.js +2 -0
  4. package/dist/130.js.LICENSE.txt +3 -0
  5. package/dist/130.js.map +1 -0
  6. package/dist/148.js +1 -0
  7. package/dist/148.js.map +1 -0
  8. package/dist/169.js +1 -0
  9. package/dist/169.js.map +1 -0
  10. package/dist/271.js +1 -0
  11. package/dist/319.js +1 -0
  12. package/dist/460.js +1 -0
  13. package/dist/501.js +1 -0
  14. package/dist/501.js.map +1 -0
  15. package/dist/542.js +1 -0
  16. package/dist/542.js.map +1 -0
  17. package/dist/574.js +1 -0
  18. package/dist/591.js +2 -0
  19. package/dist/591.js.LICENSE.txt +32 -0
  20. package/dist/591.js.map +1 -0
  21. package/dist/644.js +1 -0
  22. package/dist/668.js +2 -0
  23. package/dist/668.js.LICENSE.txt +15 -0
  24. package/dist/668.js.map +1 -0
  25. package/dist/729.js +1 -0
  26. package/dist/729.js.map +1 -0
  27. package/dist/757.js +1 -0
  28. package/dist/766.js +2 -0
  29. package/dist/766.js.LICENSE.txt +35 -0
  30. package/dist/766.js.map +1 -0
  31. package/dist/784.js +2 -0
  32. package/dist/784.js.LICENSE.txt +9 -0
  33. package/dist/784.js.map +1 -0
  34. package/dist/788.js +1 -0
  35. package/dist/805.js +1 -0
  36. package/dist/805.js.map +1 -0
  37. package/dist/807.js +1 -0
  38. package/dist/833.js +1 -0
  39. package/dist/main.js +1 -0
  40. package/dist/main.js.map +1 -0
  41. package/dist/openmrs-esm-bed-management-app.js +1 -0
  42. package/dist/openmrs-esm-bed-management-app.js.buildmanifest.json +579 -0
  43. package/dist/openmrs-esm-bed-management-app.js.map +1 -0
  44. package/dist/routes.json +1 -0
  45. package/jest.config.js +3 -0
  46. package/package.json +55 -0
  47. package/src/__mocks__/react-i18next.js +50 -0
  48. package/src/admin-card-link.component.tsx +24 -0
  49. package/src/bed-administration/bed-administration-form.component.tsx +292 -0
  50. package/src/bed-administration/bed-administration-form.scss +0 -0
  51. package/src/bed-administration/bed-administration-table.component.tsx +258 -0
  52. package/src/bed-administration/bed-administration-table.scss +112 -0
  53. package/src/bed-administration/bed-administration-types.ts +20 -0
  54. package/src/bed-administration/bed-administration.resource.ts +57 -0
  55. package/src/bed-administration/edit-bed-form.component.tsx +89 -0
  56. package/src/bed-administration/new-bed-form.component.tsx +96 -0
  57. package/src/bed-tag/bed-tag-administration-table.component.tsx +192 -0
  58. package/src/bed-tag/bed-tags-admin-form.component.tsx +127 -0
  59. package/src/bed-tag/edit-tag-form.component.tsx +72 -0
  60. package/src/bed-tag/new-tag-form.component.tsx +76 -0
  61. package/src/bed-type/bed-type-admin-form.component.tsx +166 -0
  62. package/src/bed-type/bed-type-administration-table.component.tsx +198 -0
  63. package/src/bed-type/edit-bed-type.component.tsx +72 -0
  64. package/src/bed-type/new-bed-type-form.component.tsx +80 -0
  65. package/src/card-header/card-header.component.tsx +20 -0
  66. package/src/card-header/card-header.scss +45 -0
  67. package/src/config-schema.ts +13 -0
  68. package/src/declarations.d.ts +7 -0
  69. package/src/empty-state/empty-state.component.tsx +54 -0
  70. package/src/empty-state/empty-state.scss +62 -0
  71. package/src/header/header.component.tsx +42 -0
  72. package/src/header/header.scss +72 -0
  73. package/src/header/illustration.component.tsx +13 -0
  74. package/src/home.component.tsx +15 -0
  75. package/src/home.scss +5 -0
  76. package/src/index.ts +51 -0
  77. package/src/left-panel/left-panel.component.tsx +23 -0
  78. package/src/left-panel/left-panel.scss +42 -0
  79. package/src/left-panel-link.component.tsx +39 -0
  80. package/src/root.component.tsx +39 -0
  81. package/src/root.scss +11 -0
  82. package/src/routes.json +56 -0
  83. package/src/setup-tests.ts +1 -0
  84. package/src/summary/summary.component.tsx +60 -0
  85. package/src/summary/summary.resource.ts +232 -0
  86. package/src/summary/summary.scss +74 -0
  87. package/src/types.ts +173 -0
  88. package/src/ward-card/ward-card.component.tsx +34 -0
  89. package/src/ward-card/ward-card.scss +51 -0
  90. package/src/ward-with-beds/ward-with-beds.component.tsx +167 -0
  91. package/src/ward-with-beds/ward-with-beds.scss +27 -0
  92. package/translations/am.json +52 -0
  93. package/translations/ar.json +52 -0
  94. package/translations/en.json +52 -0
  95. package/translations/es.json +52 -0
  96. package/translations/fr.json +52 -0
  97. package/translations/he.json +52 -0
  98. package/translations/km.json +52 -0
  99. package/translations/zh.json +52 -0
  100. package/translations/zh_CN.json +52 -0
  101. package/tsconfig.json +5 -0
  102. package/webpack.config.js +1 -0
@@ -0,0 +1,167 @@
1
+ import React, { useMemo, useState } from 'react';
2
+ import { useParams } from 'react-router-dom';
3
+ import { useTranslation } from 'react-i18next';
4
+ import {
5
+ Button,
6
+ DataTable,
7
+ DataTableSkeleton,
8
+ Pagination,
9
+ TableContainer,
10
+ Table,
11
+ TableHead,
12
+ TableRow,
13
+ TableHeader,
14
+ TableBody,
15
+ TableCell,
16
+ Tag,
17
+ } from '@carbon/react';
18
+ import { ArrowLeft } from '@carbon/react/icons';
19
+ import { navigate, usePagination } from '@openmrs/esm-framework';
20
+ import Header from '../header/header.component';
21
+ import { useBedsForLocation, useLocationName } from '../summary/summary.resource';
22
+ import styles from './ward-with-beds.scss';
23
+
24
+ type RouteParams = { location: string };
25
+
26
+ const WardWithBeds: React.FC = () => {
27
+ const { location } = useParams<RouteParams>();
28
+ const { isLoading, bedData } = useBedsForLocation(location);
29
+
30
+ const { name } = useLocationName(location);
31
+
32
+ const [pageSize, setPageSize] = useState(10);
33
+ const { results: paginatedData, goTo, currentPage } = usePagination(bedData, pageSize);
34
+
35
+ if (isLoading) {
36
+ <p>Loading...</p>;
37
+ }
38
+
39
+ const tableHeaders = [
40
+ {
41
+ id: 0,
42
+ header: 'ID',
43
+ key: 'id',
44
+ },
45
+ {
46
+ id: 1,
47
+ header: 'Number',
48
+ key: 'number',
49
+ },
50
+ {
51
+ id: 2,
52
+ header: 'Name',
53
+ key: 'name',
54
+ },
55
+ {
56
+ id: 3,
57
+ header: 'Description',
58
+ key: 'description',
59
+ },
60
+ {
61
+ id: 4,
62
+ header: 'Occupied',
63
+ key: 'occupied',
64
+ },
65
+ ];
66
+
67
+ const CustomTag = ({ condition }: { condition: boolean }) => {
68
+ const { t } = useTranslation();
69
+
70
+ if (condition) {
71
+ return (
72
+ <Tag type="green" size="md">
73
+ {t('yes', 'Yes')}
74
+ </Tag>
75
+ );
76
+ }
77
+
78
+ return (
79
+ <Tag type="red" size="md">
80
+ {t('no', 'No')}
81
+ </Tag>
82
+ );
83
+ };
84
+
85
+ const tableRows = useMemo(() => {
86
+ return paginatedData?.map((bed) => ({
87
+ id: bed.id,
88
+ number: bed.number,
89
+ name: bed.name,
90
+ description: bed.description,
91
+ occupied: <CustomTag condition={bed?.status === 'OCCUPIED'} />,
92
+ }));
93
+ }, [paginatedData]);
94
+
95
+ return (
96
+ <>
97
+ <Header route={name ? name : '--'} />
98
+ {isLoading && (
99
+ <div className={styles.container}>
100
+ <DataTableSkeleton role="progressbar" zebra />
101
+ </div>
102
+ )}
103
+
104
+ {bedData?.length ? (
105
+ <>
106
+ <div className={styles.backButton}>
107
+ <Button
108
+ kind="ghost"
109
+ renderIcon={(props) => <ArrowLeft size={24} {...props} />}
110
+ iconDescription="Return to summary"
111
+ onClick={() =>
112
+ navigate({
113
+ to: `${window.getOpenmrsSpaBase()}bed-management`,
114
+ })
115
+ }>
116
+ <span>Return to summary</span>
117
+ </Button>
118
+ </div>
119
+ <div className={styles.container}>
120
+ <DataTable rows={tableRows} headers={tableHeaders} useZebraStyles>
121
+ {({ rows, headers, getHeaderProps, getRowProps, getTableProps }) => (
122
+ <TableContainer>
123
+ <Table {...getTableProps()}>
124
+ <TableHead>
125
+ <TableRow>
126
+ {headers.map((header) => (
127
+ <TableHeader key={header.key} {...getHeaderProps({ header })}>
128
+ {header.header}
129
+ </TableHeader>
130
+ ))}
131
+ </TableRow>
132
+ </TableHead>
133
+ <TableBody>
134
+ {rows.map((row) => (
135
+ <TableRow key={row.id} {...getRowProps({ row })}>
136
+ {row.cells.map((cell) => (
137
+ <TableCell key={cell.id}>{cell.value?.content ?? cell.value}</TableCell>
138
+ ))}
139
+ </TableRow>
140
+ ))}
141
+ </TableBody>
142
+ </Table>
143
+ </TableContainer>
144
+ )}
145
+ </DataTable>
146
+ <Pagination
147
+ backwardText="Previous page"
148
+ forwardText="Next page"
149
+ itemsPerPageText="Items per page:"
150
+ page={currentPage}
151
+ pageNumberText="Page Number"
152
+ pageSize={pageSize}
153
+ onChange={({ page, pageSize }) => {
154
+ goTo(page);
155
+ setPageSize(pageSize);
156
+ }}
157
+ pageSizes={[10, 20, 30, 40, 50]}
158
+ totalItems={paginatedData?.length}
159
+ />
160
+ </div>
161
+ </>
162
+ ) : null}
163
+ </>
164
+ );
165
+ };
166
+
167
+ export default WardWithBeds;
@@ -0,0 +1,27 @@
1
+ @use '@carbon/layout';
2
+
3
+ .container {
4
+ margin: layout.$spacing-05;
5
+ }
6
+
7
+ .backButton {
8
+ align-items: center;
9
+ display: flex;
10
+ justify-content: flex-start;
11
+ margin-left: layout.$spacing-05;
12
+
13
+ button {
14
+ display: flex;
15
+ padding-left: 0 !important;
16
+
17
+ svg {
18
+ order: 1;
19
+ margin-right: layout.$spacing-03;
20
+ margin-left: 0.5 !important;
21
+ }
22
+
23
+ span {
24
+ order: 2;
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "cancel": "Cancel",
19
+ "checkFilters": "Check the filters above",
20
+ "chooseBedtype": "Choose a bed type",
21
+ "chooseOccupiedStatus": "Choose occupied status",
22
+ "createNewBed": "Create a new bed",
23
+ "description": "Description",
24
+ "displayName": "Display Name",
25
+ "displayNamePlaceholder": "",
26
+ "editBed": "Edit Tag",
27
+ "editBedTag": "Edit Bed Tag",
28
+ "editBedType": "Edit Bed Type",
29
+ "error": "Error",
30
+ "errorCreatingForm": "Error creating bed",
31
+ "errorFetchingbedInformation": "Error fetching bed information",
32
+ "filterByOccupancyStatus": "Filter by occupancy status",
33
+ "formCreated": "Add bed Type",
34
+ "formSaved": "Bed Type",
35
+ "headerTitle": "",
36
+ "ids": "Id",
37
+ "location": "Locations",
38
+ "manageBeds": "Manage Beds",
39
+ "name": "Name",
40
+ "no": "No",
41
+ "No data": "No data to display",
42
+ "occupancyStatus": "Occupied",
43
+ "or": "or",
44
+ "pleaseFillField": "",
45
+ "required": "Required",
46
+ "save": "Save",
47
+ "saveSuccessMessage": "was saved successfully.",
48
+ "selectBedLocation": "Select a bed location",
49
+ "viewBeds": "View beds",
50
+ "wardAllocation": "Ward Allocation",
51
+ "yes": "Yes"
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "cancel": "Cancel",
19
+ "checkFilters": "Check the filters above",
20
+ "chooseBedtype": "Choose a bed type",
21
+ "chooseOccupiedStatus": "Choose occupied status",
22
+ "createNewBed": "Create a new bed",
23
+ "description": "Description",
24
+ "displayName": "Display Name",
25
+ "displayNamePlaceholder": "",
26
+ "editBed": "Edit Tag",
27
+ "editBedTag": "Edit Bed Tag",
28
+ "editBedType": "Edit Bed Type",
29
+ "error": "Error",
30
+ "errorCreatingForm": "Error creating bed",
31
+ "errorFetchingbedInformation": "Error fetching bed information",
32
+ "filterByOccupancyStatus": "Filter by occupancy status",
33
+ "formCreated": "Add bed Type",
34
+ "formSaved": "Bed Type",
35
+ "headerTitle": "",
36
+ "ids": "Id",
37
+ "location": "Locations",
38
+ "manageBeds": "Manage Beds",
39
+ "name": "Name",
40
+ "no": "No",
41
+ "No data": "No data to display",
42
+ "occupancyStatus": "Occupied",
43
+ "or": "or",
44
+ "pleaseFillField": "",
45
+ "required": "Required",
46
+ "save": "Save",
47
+ "saveSuccessMessage": "was saved successfully.",
48
+ "selectBedLocation": "Select a bed location",
49
+ "viewBeds": "View beds",
50
+ "wardAllocation": "Ward Allocation",
51
+ "yes": "Yes"
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "cancel": "Cancel",
19
+ "checkFilters": "Check the filters above",
20
+ "chooseBedtype": "Choose a bed type",
21
+ "chooseOccupiedStatus": "Choose occupied status",
22
+ "createNewBed": "Create a new bed",
23
+ "description": "Description",
24
+ "displayName": "Display Name",
25
+ "displayNamePlaceholder": "",
26
+ "editBed": "Edit Tag",
27
+ "editBedTag": "Edit Bed Tag",
28
+ "editBedType": "Edit Bed Type",
29
+ "error": "Error",
30
+ "errorCreatingForm": "Error creating bed",
31
+ "errorFetchingbedInformation": "Error fetching bed information",
32
+ "filterByOccupancyStatus": "Filter by occupancy status",
33
+ "formCreated": "Add bed Type",
34
+ "formSaved": "Bed Type",
35
+ "headerTitle": "",
36
+ "ids": "Id",
37
+ "location": "Locations",
38
+ "manageBeds": "Manage Beds",
39
+ "name": "Name",
40
+ "no": "No",
41
+ "No data": "No data to display",
42
+ "occupancyStatus": "Occupied",
43
+ "or": "or",
44
+ "pleaseFillField": "",
45
+ "required": "Required",
46
+ "save": "Save",
47
+ "saveSuccessMessage": "was saved successfully.",
48
+ "selectBedLocation": "Select a bed location",
49
+ "viewBeds": "View beds",
50
+ "wardAllocation": "Ward Allocation",
51
+ "yes": "Yes"
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "cancel": "Cancel",
19
+ "checkFilters": "Check the filters above",
20
+ "chooseBedtype": "Choose a bed type",
21
+ "chooseOccupiedStatus": "Choose occupied status",
22
+ "createNewBed": "Create a new bed",
23
+ "description": "Description",
24
+ "displayName": "Display Name",
25
+ "displayNamePlaceholder": "",
26
+ "editBed": "Edit Tag",
27
+ "editBedTag": "Edit Bed Tag",
28
+ "editBedType": "Edit Bed Type",
29
+ "error": "Error",
30
+ "errorCreatingForm": "Error creating bed",
31
+ "errorFetchingbedInformation": "Error fetching bed information",
32
+ "filterByOccupancyStatus": "Filter by occupancy status",
33
+ "formCreated": "Add bed Type",
34
+ "formSaved": "Bed Type",
35
+ "headerTitle": "",
36
+ "ids": "Id",
37
+ "location": "Locations",
38
+ "manageBeds": "Manage Beds",
39
+ "name": "Name",
40
+ "no": "No",
41
+ "No data": "No data to display",
42
+ "occupancyStatus": "Occupied",
43
+ "or": "or",
44
+ "pleaseFillField": "",
45
+ "required": "Required",
46
+ "save": "Save",
47
+ "saveSuccessMessage": "was saved successfully.",
48
+ "selectBedLocation": "Select a bed location",
49
+ "viewBeds": "View beds",
50
+ "wardAllocation": "Ward Allocation",
51
+ "yes": "Yes"
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Ajouter lit",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Emplacement",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "cancel": "Annuler",
19
+ "checkFilters": "Check the filters above",
20
+ "chooseBedtype": "Choisir un type de lit",
21
+ "chooseOccupiedStatus": "Choose occupied status",
22
+ "createNewBed": "Create a new bed",
23
+ "description": "Description",
24
+ "displayName": "Display Name",
25
+ "displayNamePlaceholder": "",
26
+ "editBed": "Edit Tag",
27
+ "editBedTag": "Edit Bed Tag",
28
+ "editBedType": "Edit Bed Type",
29
+ "error": "Erreur",
30
+ "errorCreatingForm": "Error creating bed",
31
+ "errorFetchingbedInformation": "Error fetching bed information",
32
+ "filterByOccupancyStatus": "Filter by occupancy status",
33
+ "formCreated": "Add bed Type",
34
+ "formSaved": "Bed Type",
35
+ "headerTitle": "",
36
+ "ids": "Id",
37
+ "location": "Emplacements",
38
+ "manageBeds": "Manage Beds",
39
+ "name": "Nom",
40
+ "no": "Non",
41
+ "No data": "Pas de données à afficher",
42
+ "occupancyStatus": "Occupé",
43
+ "or": "ou",
44
+ "pleaseFillField": "",
45
+ "required": "Requis",
46
+ "save": "Enregistrer",
47
+ "saveSuccessMessage": "was saved successfully.",
48
+ "selectBedLocation": "Select a bed location",
49
+ "viewBeds": "Voir lits",
50
+ "wardAllocation": "Ward Allocation",
51
+ "yes": "Oui"
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "cancel": "Cancel",
19
+ "checkFilters": "Check the filters above",
20
+ "chooseBedtype": "Choose a bed type",
21
+ "chooseOccupiedStatus": "Choose occupied status",
22
+ "createNewBed": "Create a new bed",
23
+ "description": "Description",
24
+ "displayName": "Display Name",
25
+ "displayNamePlaceholder": "",
26
+ "editBed": "Edit Tag",
27
+ "editBedTag": "Edit Bed Tag",
28
+ "editBedType": "Edit Bed Type",
29
+ "error": "Error",
30
+ "errorCreatingForm": "Error creating bed",
31
+ "errorFetchingbedInformation": "Error fetching bed information",
32
+ "filterByOccupancyStatus": "Filter by occupancy status",
33
+ "formCreated": "Add bed Type",
34
+ "formSaved": "Bed Type",
35
+ "headerTitle": "",
36
+ "ids": "Id",
37
+ "location": "Locations",
38
+ "manageBeds": "Manage Beds",
39
+ "name": "Name",
40
+ "no": "No",
41
+ "No data": "No data to display",
42
+ "occupancyStatus": "Occupied",
43
+ "or": "or",
44
+ "pleaseFillField": "",
45
+ "required": "Required",
46
+ "save": "Save",
47
+ "saveSuccessMessage": "was saved successfully.",
48
+ "selectBedLocation": "Select a bed location",
49
+ "viewBeds": "View beds",
50
+ "wardAllocation": "Ward Allocation",
51
+ "yes": "Yes"
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "cancel": "Cancel",
19
+ "checkFilters": "Check the filters above",
20
+ "chooseBedtype": "Choose a bed type",
21
+ "chooseOccupiedStatus": "Choose occupied status",
22
+ "createNewBed": "Create a new bed",
23
+ "description": "Description",
24
+ "displayName": "Display Name",
25
+ "displayNamePlaceholder": "",
26
+ "editBed": "Edit Tag",
27
+ "editBedTag": "Edit Bed Tag",
28
+ "editBedType": "Edit Bed Type",
29
+ "error": "Error",
30
+ "errorCreatingForm": "Error creating bed",
31
+ "errorFetchingbedInformation": "Error fetching bed information",
32
+ "filterByOccupancyStatus": "Filter by occupancy status",
33
+ "formCreated": "Add bed Type",
34
+ "formSaved": "Bed Type",
35
+ "headerTitle": "",
36
+ "ids": "Id",
37
+ "location": "Locations",
38
+ "manageBeds": "Manage Beds",
39
+ "name": "Name",
40
+ "no": "No",
41
+ "No data": "No data to display",
42
+ "occupancyStatus": "Occupied",
43
+ "or": "or",
44
+ "pleaseFillField": "",
45
+ "required": "Required",
46
+ "save": "Save",
47
+ "saveSuccessMessage": "was saved successfully.",
48
+ "selectBedLocation": "Select a bed location",
49
+ "viewBeds": "View beds",
50
+ "wardAllocation": "Ward Allocation",
51
+ "yes": "Yes"
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "cancel": "Cancel",
19
+ "checkFilters": "Check the filters above",
20
+ "chooseBedtype": "Choose a bed type",
21
+ "chooseOccupiedStatus": "Choose occupied status",
22
+ "createNewBed": "Create a new bed",
23
+ "description": "Description",
24
+ "displayName": "Display Name",
25
+ "displayNamePlaceholder": "",
26
+ "editBed": "Edit Tag",
27
+ "editBedTag": "Edit Bed Tag",
28
+ "editBedType": "Edit Bed Type",
29
+ "error": "Error",
30
+ "errorCreatingForm": "Error creating bed",
31
+ "errorFetchingbedInformation": "Error fetching bed information",
32
+ "filterByOccupancyStatus": "Filter by occupancy status",
33
+ "formCreated": "Add bed Type",
34
+ "formSaved": "Bed Type",
35
+ "headerTitle": "",
36
+ "ids": "Id",
37
+ "location": "Locations",
38
+ "manageBeds": "Manage Beds",
39
+ "name": "Name",
40
+ "no": "No",
41
+ "No data": "No data to display",
42
+ "occupancyStatus": "Occupied",
43
+ "or": "or",
44
+ "pleaseFillField": "",
45
+ "required": "Required",
46
+ "save": "Save",
47
+ "saveSuccessMessage": "was saved successfully.",
48
+ "selectBedLocation": "Select a bed location",
49
+ "viewBeds": "View beds",
50
+ "wardAllocation": "Ward Allocation",
51
+ "yes": "Yes"
52
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "cancel": "Cancel",
19
+ "checkFilters": "Check the filters above",
20
+ "chooseBedtype": "Choose a bed type",
21
+ "chooseOccupiedStatus": "Choose occupied status",
22
+ "createNewBed": "Create a new bed",
23
+ "description": "Description",
24
+ "displayName": "Display Name",
25
+ "displayNamePlaceholder": "",
26
+ "editBed": "Edit Tag",
27
+ "editBedTag": "Edit Bed Tag",
28
+ "editBedType": "Edit Bed Type",
29
+ "error": "Error",
30
+ "errorCreatingForm": "Error creating bed",
31
+ "errorFetchingbedInformation": "Error fetching bed information",
32
+ "filterByOccupancyStatus": "Filter by occupancy status",
33
+ "formCreated": "Add bed Type",
34
+ "formSaved": "Bed Type",
35
+ "headerTitle": "",
36
+ "ids": "Id",
37
+ "location": "Locations",
38
+ "manageBeds": "Manage Beds",
39
+ "name": "Name",
40
+ "no": "No",
41
+ "No data": "No data to display",
42
+ "occupancyStatus": "Occupied",
43
+ "or": "or",
44
+ "pleaseFillField": "",
45
+ "required": "Required",
46
+ "save": "Save",
47
+ "saveSuccessMessage": "was saved successfully.",
48
+ "selectBedLocation": "Select a bed location",
49
+ "viewBeds": "View beds",
50
+ "wardAllocation": "Ward Allocation",
51
+ "yes": "Yes"
52
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "include": ["src/**/*"],
4
+ "exclude": ["src/**/*.test.tsx"]
5
+ }
@@ -0,0 +1 @@
1
+ module.exports = require('openmrs/default-webpack-config');