@openmrs/esm-dispensing-app 1.9.2-pre.1358 → 1.9.2-pre.1361
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/.turbo/cache/91369b8cb2c493f8-meta.json +1 -0
- package/.turbo/cache/91369b8cb2c493f8.tar.zst +0 -0
- package/.turbo/turbo-build.log +12 -13
- package/dist/1043.js +1 -0
- package/dist/1043.js.map +1 -0
- package/dist/1704.js +1 -1
- package/dist/1704.js.map +1 -1
- package/dist/1856.js +1 -1
- package/dist/1856.js.map +1 -1
- package/dist/3568.js +1 -0
- package/dist/3568.js.map +1 -0
- package/dist/4300.js +1 -1
- package/dist/6825.js +1 -0
- package/dist/6825.js.map +1 -0
- package/dist/7240.js +1 -0
- package/dist/7240.js.map +1 -0
- package/dist/8885.js +1 -0
- package/dist/8885.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-dispensing-app.js +1 -1
- package/dist/openmrs-esm-dispensing-app.js.buildmanifest.json +116 -41
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/fill-prescription/fill-prescription-button.component.tsx +70 -68
- package/src/fill-prescription/on-prescription-filled.modal.tsx +111 -0
- package/src/fill-prescription/on-prescription-filled.scss +19 -0
- package/src/history/history-and-comments.scss +2 -0
- package/src/index.ts +9 -2
- package/src/medication-dispense/medication-dispense.resource.tsx +2 -2
- package/src/prescriptions/prescription-details.scss +3 -1
- package/src/routes.json +29 -9
- package/translations/en.json +4 -3
- package/.turbo/cache/385f44ce66cfe6ac-meta.json +0 -1
- package/.turbo/cache/385f44ce66cfe6ac.tar.zst +0 -0
- package/dist/6867.js +0 -1
- package/dist/6867.js.map +0 -1
- package/dist/9072.js +0 -1
- package/dist/9072.js.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use '@carbon/layout';
|
|
2
|
+
@use '@carbon/type';
|
|
3
|
+
@use '@openmrs/esm-styleguide/src/vars' as *;
|
|
4
|
+
|
|
5
|
+
.modalDescription {
|
|
6
|
+
margin-bottom: layout.$spacing-05;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.prescriptionTile {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
width: 100%;
|
|
13
|
+
margin: layout.$spacing-01 0 layout.$spacing-03;
|
|
14
|
+
padding: 0;
|
|
15
|
+
background-color: #fff;
|
|
16
|
+
border-left: layout.$spacing-03 solid var(--brand-03);
|
|
17
|
+
color: $text-02;
|
|
18
|
+
margin-bottom: layout.$spacing-05 !important;
|
|
19
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -7,7 +7,6 @@ import DispensingDashboardComponent from './dashboard/dispensing-dashboard.compo
|
|
|
7
7
|
import DispensingLinkComponent from './dispensing-link.component';
|
|
8
8
|
import DispensingLinkHomepageComponent from './dashboard/dispensing-dashboard-link.component';
|
|
9
9
|
import PauseActionButton from './components/prescription-actions/pause-action-button.component';
|
|
10
|
-
import PrescriptionPrintPreviewModal from './print-prescription/prescription-print-preview.modal';
|
|
11
10
|
|
|
12
11
|
export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');
|
|
13
12
|
|
|
@@ -43,8 +42,16 @@ export const dispenseWorkspace = getAsyncLifecycle(() => import('./forms/dispens
|
|
|
43
42
|
// t('pausePrescription', 'Pause prescription')
|
|
44
43
|
export const pauseDispenseWorkspace = getAsyncLifecycle(() => import('./forms/pause-dispense-form.workspace'), options);
|
|
45
44
|
|
|
46
|
-
export const printPrescriptionPreviewModal =
|
|
45
|
+
export const printPrescriptionPreviewModal = getAsyncLifecycle(
|
|
46
|
+
() => import('./print-prescription/prescription-print-preview.modal'),
|
|
47
|
+
options,
|
|
48
|
+
);
|
|
47
49
|
export const deleteConfirmModal = getAsyncLifecycle(() => import('./history/delete-confirm.modal'), options);
|
|
48
50
|
|
|
49
51
|
export const patientDiagnoses = getAsyncLifecycle(() => import('./diagnoses/diagnoses.component'), options);
|
|
50
52
|
export const patientConditions = getAsyncLifecycle(() => import('./conditions/conditions.component'), options);
|
|
53
|
+
|
|
54
|
+
export const onPrescriptionFilledModal = getAsyncLifecycle(
|
|
55
|
+
() => import('./fill-prescription/on-prescription-filled.modal'),
|
|
56
|
+
options,
|
|
57
|
+
);
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
export function saveMedicationDispense(
|
|
15
15
|
medicationDispense: MedicationDispense,
|
|
16
16
|
medicationDispenseStatus: MedicationDispenseStatus,
|
|
17
|
-
abortController
|
|
17
|
+
abortController?: AbortController,
|
|
18
18
|
) {
|
|
19
19
|
// if we have an id, this is an update, otherwise it's a create
|
|
20
20
|
const url = medicationDispense.id
|
|
@@ -30,7 +30,7 @@ export function saveMedicationDispense(
|
|
|
30
30
|
|
|
31
31
|
return openmrsFetch(url, {
|
|
32
32
|
method: method,
|
|
33
|
-
signal: abortController
|
|
33
|
+
signal: abortController?.signal,
|
|
34
34
|
headers: {
|
|
35
35
|
'Content-Type': 'application/json',
|
|
36
36
|
},
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
@use '@openmrs/esm-styleguide/src/vars' as *;
|
|
4
4
|
|
|
5
5
|
.prescriptionTile {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
6
8
|
width: 100%;
|
|
7
9
|
margin: layout.$spacing-01 0 layout.$spacing-03;
|
|
8
10
|
padding: 0;
|
|
9
11
|
background-color: #fff;
|
|
10
|
-
border-left: layout.$spacing-
|
|
12
|
+
border-left: layout.$spacing-03 solid var(--brand-03);
|
|
11
13
|
color: $text-02;
|
|
12
14
|
margin-bottom: layout.$spacing-05 !important;
|
|
13
15
|
}
|
package/src/routes.json
CHANGED
|
@@ -70,30 +70,46 @@
|
|
|
70
70
|
{
|
|
71
71
|
"name": "close-dispense-workspace",
|
|
72
72
|
"component": "closeDispenseWorkspace",
|
|
73
|
-
"window": "
|
|
73
|
+
"window": "dispensing-window"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"name": "pause-dispense-workspace",
|
|
77
77
|
"component": "pauseDispenseWorkspace",
|
|
78
|
-
"window": "
|
|
78
|
+
"window": "dispensing-window"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"name": "dispense-workspace",
|
|
82
82
|
"component": "dispenseWorkspace",
|
|
83
|
-
"window": "
|
|
83
|
+
"window": "dispensing-window"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "dispensing-patient-search-workspace",
|
|
87
|
+
"component": "@openmrs/esm-patient-search-app#patientSearchWorkspace2",
|
|
88
|
+
"window": "fill-prescription-window"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "dispensing-start-visit-workspace",
|
|
92
|
+
"component": "@openmrs/esm-patient-chart-app#exportedVisitForm",
|
|
93
|
+
"window": "fill-prescription-window"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "dispensing-order-basket-workspace",
|
|
97
|
+
"component": "@openmrs/esm-patient-orders-app#exportedOrderBasketWorkspace",
|
|
98
|
+
"window": "fill-prescription-window"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "dispensing-order-basket-add-drug-order-workspace",
|
|
102
|
+
"component": "@openmrs/esm-patient-medications-app#exportedAddDrugOrderWorkspace",
|
|
103
|
+
"window": "fill-prescription-window"
|
|
84
104
|
}
|
|
85
105
|
],
|
|
86
106
|
"workspaceWindows2": [
|
|
87
107
|
{
|
|
88
|
-
"name": "
|
|
89
|
-
"group": "dispensing-group"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "pause-dispense-window",
|
|
108
|
+
"name": "dispensing-window",
|
|
93
109
|
"group": "dispensing-group"
|
|
94
110
|
},
|
|
95
111
|
{
|
|
96
|
-
"name": "
|
|
112
|
+
"name": "fill-prescription-window",
|
|
97
113
|
"group": "dispensing-group"
|
|
98
114
|
}
|
|
99
115
|
],
|
|
@@ -112,6 +128,10 @@
|
|
|
112
128
|
"name": "delete-confirm-modal",
|
|
113
129
|
"component": "deleteConfirmModal"
|
|
114
130
|
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "on-prescription-filled-modal",
|
|
134
|
+
"component": "onPrescriptionFilledModal"
|
|
115
135
|
}
|
|
116
136
|
]
|
|
117
137
|
}
|
package/translations/en.json
CHANGED
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"editRecord": "Edit Record",
|
|
50
50
|
"error": "Error",
|
|
51
51
|
"errorLoadingInventoryItems": "Error fetching inventory items",
|
|
52
|
-
"errorLoadingPrescriptionDetails": "Error loading prescription details",
|
|
53
52
|
"expired": "Expired",
|
|
54
53
|
"fillPrescription": "Fill prescription",
|
|
54
|
+
"fillPrescriptionForPatient": "Fill prescription for patient",
|
|
55
55
|
"filterByLocations": "Filter by locations",
|
|
56
56
|
"finalDiagnoses": "Final Diagnoses",
|
|
57
57
|
"for": "for",
|
|
@@ -117,8 +117,9 @@
|
|
|
117
117
|
"success": "Success",
|
|
118
118
|
"tabList": "Tab List",
|
|
119
119
|
"today": "Today",
|
|
120
|
-
"tryRefreshingThePage": "Try refreshing the page.",
|
|
121
120
|
"updateStatusFailed": "Update Status Failed",
|
|
122
121
|
"view": "View",
|
|
123
|
-
"visitFinalDiagnoses": "Visit final diagnoses"
|
|
122
|
+
"visitFinalDiagnoses": "Visit final diagnoses",
|
|
123
|
+
"visitRequired": "Visit required",
|
|
124
|
+
"visitRequiredForPatientToFillPrescription": "Visit required for patient to fill prescription"
|
|
124
125
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"385f44ce66cfe6ac","duration":44869}
|
|
Binary file
|