@kenyaemr/esm-care-panel-app 5.4.1-pre.1957 → 5.4.1-pre.1964
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 -16
- package/dist/165.js +2 -0
- package/dist/165.js.map +1 -0
- package/dist/196.js +1 -0
- package/dist/196.js.map +1 -0
- package/dist/287.js +1 -0
- package/dist/287.js.map +1 -0
- package/dist/300.js +1 -1
- package/dist/kenyaemr-esm-care-panel-app.js +1 -1
- package/dist/kenyaemr-esm-care-panel-app.js.buildmanifest.json +68 -68
- package/dist/kenyaemr-esm-care-panel-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/dispensing-patient-details/patient-info.scss +9 -0
- package/src/dispensing-patient-details/patient-vitals.component.tsx +5 -4
- package/src/index.ts +0 -5
- package/src/routes.json +2 -12
- package/translations/en.json +0 -10
- package/dist/207.js +0 -1
- package/dist/207.js.map +0 -1
- package/dist/83.js +0 -2
- package/dist/83.js.map +0 -1
- package/dist/856.js +0 -1
- package/dist/856.js.map +0 -1
- package/src/dispensing-patient-details/conditions.component.tsx +0 -55
- package/src/dispensing-patient-details/conditions.resource.ts +0 -97
- package/src/dispensing-patient-details/diagnoses.component.tsx +0 -55
- package/src/dispensing-patient-details/diagnoses.resource.ts +0 -30
- package/src/dispensing-patient-details/dispensing-patient-details.scss +0 -47
- /package/dist/{83.js.LICENSE.txt → 165.js.LICENSE.txt} +0 -0
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[],"extensions":[{"name":"care-panel-patient-summary","component":"carePanelPatientSummary","slot":"patient-chart-care-panel-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"care-panel-summary-dashboard-link","component":"carePanelSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":3,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-care-panel-dashboard-slot","layoutMode":"anchored","path":"Care panel"}},{"name":"delete-regimen-confirmation-dialog","component":"deleteRegimenConfirmationDialog"},{"name":"hiv-patient-visit-summary-dashboard-link","component":"hivPatientSummaryDashboardLink","slot":"hiv-care-and-treatment-slot","meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-hiv-patient-summary-slot","path":"HIV Patient Summary","layoutMode":"anchored"}},{"name":"hiv-patient-visit-summary","slot":"patient-chart-hiv-patient-summary-slot","component":"hivPatientSummary","order":3,"online":true,"offline":false},{"name":"
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[],"extensions":[{"name":"care-panel-patient-summary","component":"carePanelPatientSummary","slot":"patient-chart-care-panel-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"care-panel-summary-dashboard-link","component":"carePanelSummaryDashboardLink","slot":"patient-chart-dashboard-slot","order":3,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-care-panel-dashboard-slot","layoutMode":"anchored","path":"Care panel"}},{"name":"delete-regimen-confirmation-dialog","component":"deleteRegimenConfirmationDialog"},{"name":"hiv-patient-visit-summary-dashboard-link","component":"hivPatientSummaryDashboardLink","slot":"hiv-care-and-treatment-slot","meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-hiv-patient-summary-slot","path":"HIV Patient Summary","layoutMode":"anchored"}},{"name":"hiv-patient-visit-summary","slot":"patient-chart-hiv-patient-summary-slot","component":"hivPatientSummary","order":3,"online":true,"offline":false},{"name":"dispensing-patient-vitals","component":"dispensingPaentientVitals","slot":"dispensing-condition-and-diagnoses","order":1,"online":true,"offline":true}],"workspaces":[{"name":"patient-regimen-workspace","title":"Patient Regimen","component":"regimenFormWorkspace","type":"form","canMaximize":true,"canHide":true,"width":"wider"}],"version":"5.4.1-pre.1964"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tile } from '@carbon/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { usePatientVitals } from './dispensing-patient-vitals.resources';
|
|
4
|
+
import styles from './patient-info.scss';
|
|
4
5
|
|
|
5
6
|
type PatientVitalsProps = {
|
|
6
7
|
patientUuid: string;
|
|
@@ -9,18 +10,18 @@ type PatientVitalsProps = {
|
|
|
9
10
|
const DispensingPatientVitals: React.FC<PatientVitalsProps> = ({ encounterUuid, patientUuid }) => {
|
|
10
11
|
const { vitals, error, isLoading } = usePatientVitals(patientUuid, encounterUuid);
|
|
11
12
|
|
|
12
|
-
if (isLoading || error) {
|
|
13
|
+
if (isLoading || error || !vitals.length) {
|
|
13
14
|
return null;
|
|
14
15
|
}
|
|
15
16
|
return (
|
|
16
|
-
<
|
|
17
|
+
<Tile className={styles.container}>
|
|
17
18
|
{vitals.map((vital) => (
|
|
18
19
|
<div>
|
|
19
20
|
<strong>{vital?.display}: </strong>
|
|
20
21
|
<span>{vital?.value}</span>
|
|
21
22
|
</div>
|
|
22
23
|
))}
|
|
23
|
-
</
|
|
24
|
+
</Tile>
|
|
24
25
|
);
|
|
25
26
|
};
|
|
26
27
|
|
package/src/index.ts
CHANGED
|
@@ -8,8 +8,6 @@ import deleteRegimenConfirmationDialogComponent from './regimen-editor/delete-re
|
|
|
8
8
|
import regimenFormComponent from './regimen-editor/regimen-form.component';
|
|
9
9
|
import CarePanelDashboard from './care-panel-dashboard/care-panel-dashboard.component';
|
|
10
10
|
import PatientSummary from './patient-summary/patient-summary.component';
|
|
11
|
-
import PatientDiagnoses from './dispensing-patient-details/diagnoses.component';
|
|
12
|
-
import PatientConditions from './dispensing-patient-details/conditions.component';
|
|
13
11
|
import DispensingPatientVitals from './dispensing-patient-details/patient-vitals.component';
|
|
14
12
|
|
|
15
13
|
const moduleName = '@kenyaemr/esm-care-panel-app';
|
|
@@ -49,7 +47,4 @@ export const hivPatientSummaryDashboardLink = getSyncLifecycle(
|
|
|
49
47
|
export const hivPatientSummary = getSyncLifecycle(PatientSummary, options);
|
|
50
48
|
export const regimenFormWorkspace = getSyncLifecycle(regimenFormComponent, options);
|
|
51
49
|
|
|
52
|
-
// TODO Clean when community version gets merged
|
|
53
|
-
export const patientDiagnoses = getSyncLifecycle(PatientDiagnoses, options);
|
|
54
|
-
export const patientConditions = getSyncLifecycle(PatientConditions, options);
|
|
55
50
|
export const dispensingPaentientVitals = getSyncLifecycle(DispensingPatientVitals, options);
|
package/src/routes.json
CHANGED
|
@@ -51,21 +51,11 @@
|
|
|
51
51
|
"online": true,
|
|
52
52
|
"offline": false
|
|
53
53
|
},
|
|
54
|
-
{
|
|
55
|
-
"name": "patient-diagnoses",
|
|
56
|
-
"component": "patientDiagnoses",
|
|
57
|
-
"online": true,
|
|
58
|
-
"offline": true
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "patient-conditions",
|
|
62
|
-
"component": "patientConditions",
|
|
63
|
-
"online": true,
|
|
64
|
-
"offline": true
|
|
65
|
-
},
|
|
66
54
|
{
|
|
67
55
|
"name": "dispensing-patient-vitals",
|
|
68
56
|
"component": "dispensingPaentientVitals",
|
|
57
|
+
"slot": "dispensing-condition-and-diagnoses",
|
|
58
|
+
"order": 1,
|
|
69
59
|
"online": true,
|
|
70
60
|
"offline": true
|
|
71
61
|
}
|
package/translations/en.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"activeConditionsCount_one": "{{ count }} conditions",
|
|
3
|
-
"activeConditionsCount_other": "{{ count }} conditions",
|
|
4
2
|
"age": "Age",
|
|
5
3
|
"artInterruptionReason": "ART interruptions reason",
|
|
6
4
|
"birthDate": "Birth date",
|
|
@@ -24,7 +22,6 @@
|
|
|
24
22
|
"clinicianSignature": "Clinician signature",
|
|
25
23
|
"clinicName": "Clinic name",
|
|
26
24
|
"clinicsEnrolled": "Clinics enrolled",
|
|
27
|
-
"conditionsError": "Error loading conditions",
|
|
28
25
|
"currentArtRegimen": "Current Art regimen",
|
|
29
26
|
"currentArtRegimenDate": "Current Art regimen date",
|
|
30
27
|
"currentFeedingOption": "Current feeding option",
|
|
@@ -42,9 +39,6 @@
|
|
|
42
39
|
"deleteRegimen": "Delete Regimen",
|
|
43
40
|
"deleteRegimenModalConfirmationText": "Are you sure you want to delete regimen?",
|
|
44
41
|
"description": "Description",
|
|
45
|
-
"diagnosesCount_one": "{{ count }} diagnoses",
|
|
46
|
-
"diagnosesCount_other": "{{ count }} diagnoses",
|
|
47
|
-
"diagnosesError": "Error loading diagnoses",
|
|
48
42
|
"discard": "Discard",
|
|
49
43
|
"discontinue": "Discontinue",
|
|
50
44
|
"diseaseClassification": "Disease classification",
|
|
@@ -77,8 +71,6 @@
|
|
|
77
71
|
"lastWhoStage": "Last WHO stage",
|
|
78
72
|
"lmp": "LMP",
|
|
79
73
|
"loading": "Loading",
|
|
80
|
-
"loadingConditions": "Loading active Conditions ...",
|
|
81
|
-
"loadingDiagnoses": "Loading Diagnoses ...",
|
|
82
74
|
"machineLearning": "Machine Learning",
|
|
83
75
|
"maritalStatus": "Marital status",
|
|
84
76
|
"mflCode": "MFL code",
|
|
@@ -90,8 +82,6 @@
|
|
|
90
82
|
"neverOnArvRegimen": "Never on ARVs",
|
|
91
83
|
"neverOnTbRegimen": "Never on TB regimen",
|
|
92
84
|
"nextAppointmentDate": " Next appointment",
|
|
93
|
-
"noActiveConditions": "No active Conditions",
|
|
94
|
-
"noFinalDiagnoses": "No patient final diagnosis for this visit",
|
|
95
85
|
"none": "None",
|
|
96
86
|
"onART": "On ART",
|
|
97
87
|
"oxygenSaturation": "Oxygen saturation",
|