@kenyaemr/esm-morgue-app 5.3.6-pre.1280 → 5.3.6-pre.1285
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/turbo-build.log +16 -30
- package/dist/20.js +1 -0
- package/dist/20.js.map +1 -0
- package/dist/214.js +1 -0
- package/dist/214.js.map +1 -0
- package/dist/300.js +1 -1
- package/dist/385.js +1 -1
- package/dist/385.js.map +1 -1
- package/dist/870.js +1 -1
- package/dist/870.js.map +1 -1
- package/dist/926.js +1 -0
- package/dist/926.js.map +1 -0
- package/dist/kenyaemr-esm-morgue-app.js +1 -1
- package/dist/kenyaemr-esm-morgue-app.js.buildmanifest.json +84 -84
- package/dist/kenyaemr-esm-morgue-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/card/avail-compartment.compartment.tsx +8 -14
- package/src/card/compartment.scss +6 -0
- package/src/hook/useMorgue.resource.ts +2 -2
- package/src/index.ts +0 -3
- package/src/root.component.tsx +0 -2
- package/src/tabs/tabs.scss +0 -8
- package/src/types/index.ts +0 -26
- package/translations/en.json +0 -16
- package/dist/323.js +0 -1
- package/dist/323.js.map +0 -1
- package/dist/473.js +0 -1
- package/dist/473.js.map +0 -1
- package/dist/909.js +0 -1
- package/dist/909.js.map +0 -1
- package/src/details/deceased-details.component.tsx +0 -88
- package/src/details/deceased-details.scss +0 -39
- package/src/panels/attachments.component.tsx +0 -23
- package/src/panels/autopsy.component.tsx +0 -37
- package/src/panels/billing-history.component.tsx +0 -17
- package/src/panels/encounter-obs.component.tsx +0 -63
- package/src/panels/medical-history.component.tsx +0 -203
- package/src/panels/panels.scss +0 -46
- package/src/workspaces/formEntry.workspace.tsx +0 -57
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { DefaultWorkspaceProps, ExtensionSlot, useConnectivity, usePatient } from '@openmrs/esm-framework';
|
|
2
|
-
import React, { useMemo } from 'react';
|
|
3
|
-
|
|
4
|
-
type FormEntryWorkspaceProps = DefaultWorkspaceProps & {
|
|
5
|
-
formUuid?: string;
|
|
6
|
-
patientUuid?: string;
|
|
7
|
-
encounterUuid?: string;
|
|
8
|
-
mutateForm: () => void;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const FormEntryWorkspace: React.FC<FormEntryWorkspaceProps> = (props) => {
|
|
12
|
-
const { formUuid, patientUuid, encounterUuid, mutateForm, closeWorkspace, closeWorkspaceWithSavedChanges } = props;
|
|
13
|
-
const { patient, isLoading } = usePatient(patientUuid);
|
|
14
|
-
const isOnline = useConnectivity();
|
|
15
|
-
const state = useMemo(
|
|
16
|
-
() => ({
|
|
17
|
-
...props,
|
|
18
|
-
view: 'form',
|
|
19
|
-
formUuid: formUuid ?? null,
|
|
20
|
-
visitUuid: '',
|
|
21
|
-
visitTypeUuid: '',
|
|
22
|
-
visitStartDatetime: null,
|
|
23
|
-
visitStopDatetime: null,
|
|
24
|
-
isOffline: !isOnline,
|
|
25
|
-
patientUuid: patientUuid ?? null,
|
|
26
|
-
patient,
|
|
27
|
-
encounterUuid: encounterUuid ?? null,
|
|
28
|
-
closeWorkspace: () => {
|
|
29
|
-
typeof mutateForm === 'function' && mutateForm();
|
|
30
|
-
closeWorkspace();
|
|
31
|
-
},
|
|
32
|
-
closeWorkspaceWithSavedChanges: () => {
|
|
33
|
-
typeof mutateForm === 'function' && mutateForm();
|
|
34
|
-
closeWorkspaceWithSavedChanges();
|
|
35
|
-
},
|
|
36
|
-
}),
|
|
37
|
-
[
|
|
38
|
-
props,
|
|
39
|
-
formUuid,
|
|
40
|
-
isOnline,
|
|
41
|
-
patientUuid,
|
|
42
|
-
patient,
|
|
43
|
-
encounterUuid,
|
|
44
|
-
mutateForm,
|
|
45
|
-
closeWorkspace,
|
|
46
|
-
closeWorkspaceWithSavedChanges,
|
|
47
|
-
],
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
if (isLoading) {
|
|
51
|
-
return <div>Loading...</div>;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return <ExtensionSlot name="form-widget-slot" state={state} />;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export default FormEntryWorkspace;
|