@bahmni/clinical-app 0.0.1-dev.347 → 0.0.1-dev.349
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/{ConsultationPage-C3T8THlO.js → ConsultationPage-3qK8RV6o.js} +12794 -12401
- package/dist/{DocumentsTable-D-yL-evA-B1fwtgFW.js → DocumentsTable-CUERw540-DNwq47jg.js} +56 -56
- package/dist/FormsTable-BiSt9X9y-GfSnOhAP.js +293 -0
- package/dist/{LNWAZHJI-imGBWvAi.js → LNWAZHJI-DklJAly_.js} +2 -2
- package/dist/{MWZ6AO7Z-CaczTOj3.js → MWZ6AO7Z-pJNxlx6T.js} +2 -2
- package/dist/{Observations-CiATLznu-n-AeVz43.js → Observations-DG-AmCpd-BuJ3kLZo.js} +51 -51
- package/dist/{YPM2AS64-BSKjhDOv.js → YPM2AS64-CWWMfFV2.js} +181 -181
- package/dist/components/dashboardSection/DashboardSection.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationForms.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts +85 -0
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationFormsPanel.d.ts.map +1 -1
- package/dist/components/patientHeader/ConsultationActionButton.d.ts.map +1 -1
- package/dist/events/startConsultation/models.d.ts +4 -0
- package/dist/events/startConsultation/models.d.ts.map +1 -1
- package/dist/hook-Dfbe9Yfh.js +12 -0
- package/dist/hooks/useObservationFormData.d.ts.map +1 -1
- package/dist/{index-C9yfr1HV.js → index-BmPRpoe2.js} +25 -24
- package/dist/{index-CjEhPxaX.js → index-DhSka-Il.js} +4 -3
- package/dist/{index-DUVzEfOd.js → index-aVz5vm6R.js} +56194 -59858
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +5 -0
- package/dist/locales/locale_es.json +5 -0
- package/dist/services/encounterBundleService.d.ts.map +1 -1
- package/dist/utils/fhir/observationResourceCreator.d.ts +19 -5
- package/dist/utils/fhir/observationResourceCreator.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/FormsTable-BbwKhyCn-DTJMxF2E.js +0 -232
- package/dist/hook-CQJXPLXP.js +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardSection.d.ts","sourceRoot":"","sources":["../../../src/components/dashboardSection/DashboardSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAiB,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAG3E,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,sBAAsB,CAAC;IAChC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"DashboardSection.d.ts","sourceRoot":"","sources":["../../../src/components/dashboardSection/DashboardSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAiB,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAG3E,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,sBAAsB,CAAC;IAChC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAwFrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAyC,MAAM,OAAO,CAAC;AAc9D,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,oBAAoB,EAAE,OAAO,CAAC;IAE9B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,GAAG,IAAI,CAAC;IACpC,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ObservationForms.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationForms.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAyC,MAAM,OAAO,CAAC;AAc9D,UAAU,qBAAqB;IAC7B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/C,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,oBAAoB,EAAE,OAAO,CAAC;IAE9B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,KAAK,GAAG,IAAI,CAAC;IACpC,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAgTrD,CAAC;AAIF,eAAe,gBAAgB,CAAC"}
|
|
@@ -16,5 +16,90 @@ interface ObservationFormsContainerProps {
|
|
|
16
16
|
encounterSessionStartContext?: EncounterSessionStartContext;
|
|
17
17
|
}
|
|
18
18
|
declare const ObservationFormsContainer: React.FC<ObservationFormsContainerProps>;
|
|
19
|
+
/**
|
|
20
|
+
* NOTE: This function — like mergeObservationStatuses and restoreComplexValues —
|
|
21
|
+
* mutates `transformed` in place. All three are called sequentially in
|
|
22
|
+
* validateAndSave/continueAnyway just before the final handleSaveForm call,
|
|
23
|
+
* so the mutation window is intentionally narrow and controlled.
|
|
24
|
+
*
|
|
25
|
+
* When an addMore file-upload item is deleted, form2-controls removes it from
|
|
26
|
+
* the list entirely instead of keeping it as voided. CarbonContainer.getValue()
|
|
27
|
+
* no longer returns it, so the uuid is lost and no DELETE entry is generated.
|
|
28
|
+
*
|
|
29
|
+
* This function diffs `transformed` (what CarbonContainer returned) against
|
|
30
|
+
* `original` (the FHIR-fetched observations in statusSourceRef). Any uuid
|
|
31
|
+
* present in original but absent from transformed is injected as a synthetic
|
|
32
|
+
* voided entry so createObservationEntries emits a DELETE.
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* OpenMRS FHIR2 performs partial updates on PUT: an absent `note` field leaves
|
|
36
|
+
* the existing comment unchanged in the database. The only reliable way to clear
|
|
37
|
+
* a note is to DELETE the existing obs and POST a new one with the same value
|
|
38
|
+
* but no comment. This function finds obs where the note was cleared (original
|
|
39
|
+
* had comment, current does not) and replaces them in-place with the DELETE+POST
|
|
40
|
+
* pair so createObservationEntries emits the correct bundle entries.
|
|
41
|
+
*/
|
|
42
|
+
export declare const replaceNoteRemovedObs: (transformed: Form2Observation[], original: Form2Observation[]) => void;
|
|
43
|
+
/**
|
|
44
|
+
* OpenMRS FHIR2 performs partial updates on PUT: an absent `interpretation`
|
|
45
|
+
* element leaves the existing interpretation coding unchanged in the database.
|
|
46
|
+
* The only reliable way to clear an interpretation is to DELETE the existing obs
|
|
47
|
+
* and POST a new one with the same value but no interpretation. This mirrors
|
|
48
|
+
* replaceNoteRemovedObs which handles the same problem for comments.
|
|
49
|
+
*
|
|
50
|
+
* Applies to both top-level obs AND group members (obsGroup children are each
|
|
51
|
+
* processed as individual leaf Observations in the bundle, so the same
|
|
52
|
+
* partial-update issue affects them — e.g. Blood Pressure → Systolic / Diastolic).
|
|
53
|
+
*/
|
|
54
|
+
export declare const replaceInterpretationRemovedObs: (transformed: Form2Observation[], original: Form2Observation[]) => void;
|
|
55
|
+
export declare const injectMissingDeleteObs: (transformed: Form2Observation[], original: Form2Observation[]) => void;
|
|
56
|
+
/**
|
|
57
|
+
* CarbonContainer receives Complex observation values as plain string URLs
|
|
58
|
+
* (OBJECT values are stripped in observationsWithValues to avoid the
|
|
59
|
+
* value.indexOf crash). This function restores the original ComplexValue
|
|
60
|
+
* OBJECT (which carries fileName) from the frozen statusSource so that
|
|
61
|
+
* createObservationResource can persist valueAttachment.title to the DB.
|
|
62
|
+
*
|
|
63
|
+
* For newly uploaded files (not in source), the value remains a string and
|
|
64
|
+
* FhirObservationTransformer's FileNameCache handles the title on save.
|
|
65
|
+
*/
|
|
66
|
+
export declare const restoreComplexValues: (transformed: Form2Observation[], source: Form2Observation[]) => void;
|
|
67
|
+
/**
|
|
68
|
+
* CarbonContainer does not pass the `status` field through getValue().
|
|
69
|
+
* This function copies the FHIR status from pre-loaded existingObservations
|
|
70
|
+
* into the transformed observations (matched by uuid) so that PUT requests
|
|
71
|
+
* in the bundle echo back the same status OpenMRS currently has stored.
|
|
72
|
+
* Without it, sending no status causes a null error; sending a different
|
|
73
|
+
* status causes "Editing the fields [status] on Obs is not allowed".
|
|
74
|
+
*/
|
|
75
|
+
export declare const mergeObservationStatuses: (transformed: Form2Observation[], existing: Form2Observation[]) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Converts a single observation value to a stable, comparable string.
|
|
78
|
+
*
|
|
79
|
+
* Handles:
|
|
80
|
+
* - Coded values ({uuid}) — keyed by uuid only, ignoring display/name drift
|
|
81
|
+
* - Complex ({url}) and URL strings — normalised to the URL string
|
|
82
|
+
* - Date objects and ISO date strings — reduced to YYYY-MM-DD (timezone-safe).
|
|
83
|
+
* The regex match is validated with `new Date()` so numeric-looking strings
|
|
84
|
+
* like "2024" are never misidentified as dates. (Issue #1)
|
|
85
|
+
* - Primitives — String()
|
|
86
|
+
*/
|
|
87
|
+
export declare const valueFingerprint: (v: unknown) => string;
|
|
88
|
+
/**
|
|
89
|
+
* Compares current form observations (from useObservationFormData, keyed by
|
|
90
|
+
* formFieldPath) against the baseline. Returns true when any field was added,
|
|
91
|
+
* removed, or changed.
|
|
92
|
+
*
|
|
93
|
+
* Multiselect fields produce several observations with the same formFieldPath.
|
|
94
|
+
* Collecting into sorted string arrays per path (Issue #3) makes the comparison
|
|
95
|
+
* order-independent and avoids Map overwrites that caused the last value to win.
|
|
96
|
+
*/
|
|
97
|
+
export declare const detectFormChanges: (current: Form2Observation[], original: Form2Observation[]) => boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Extracts the form version string from an observation's formFieldPath.
|
|
100
|
+
* formFieldPath format: "FormName.version/controlId-instance"
|
|
101
|
+
* Returns null when the path is absent or does not contain version info.
|
|
102
|
+
*/
|
|
103
|
+
export declare function extractVersionFromFormFieldPath(formFieldPath: string | undefined): string | null;
|
|
19
104
|
export default ObservationFormsContainer;
|
|
20
105
|
//# sourceMappingURL=ObservationFormsContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAYA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAYA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAYjB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAQ,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAiBtF,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,mBAAmB,CAAC,EAChB,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,EACxC,OAAO,CAAC,EAAE,SAAS,KAChB,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;CAC7D;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA+qBvE,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,aAAa,gBAAgB,EAAE,EAC/B,UAAU,gBAAgB,EAAE,KAC3B,IAoCF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,+BAA+B,GAC1C,aAAa,gBAAgB,EAAE,EAC/B,UAAU,gBAAgB,EAAE,KAC3B,IAiCF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,aAAa,gBAAgB,EAAE,EAC/B,UAAU,gBAAgB,EAAE,KAC3B,IAiCF,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,GAC/B,aAAa,gBAAgB,EAAE,EAC/B,QAAQ,gBAAgB,EAAE,KACzB,IAyBF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GACnC,aAAa,gBAAgB,EAAE,EAC/B,UAAU,gBAAgB,EAAE,KAC3B,IAWF,CAAC;AAuBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,GAAI,GAAG,OAAO,KAAG,MAiB7C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,gBAAgB,EAAE,EAC3B,UAAU,gBAAgB,EAAE,KAC3B,OAsDF,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,MAAM,GAAG,IAAI,CAQf;AAED,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationFormsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObservationFormsPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsPanel.tsx"],"names":[],"mappings":"AASA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAQtF,UAAU,0BAA0B;IAClC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;CAC7D;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAyO/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsultationActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/ConsultationActionButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,6BAA6B;IACrC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,
|
|
1
|
+
{"version":3,"file":"ConsultationActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/ConsultationActionButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,6BAA6B;IACrC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA4CrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -6,6 +6,10 @@ export interface EncounterSessionStartContext {
|
|
|
6
6
|
editOnly?: string;
|
|
7
7
|
/** Translation key for the ConsultationPad panel title when in edit mode. */
|
|
8
8
|
editTitle?: string;
|
|
9
|
+
/** UUID of the encounter being edited (used by edit flows for all input controls). */
|
|
10
|
+
editEncounterUuid?: string;
|
|
11
|
+
/** Form name to auto-open in the observation forms panel when editing. */
|
|
12
|
+
editFormName?: string;
|
|
9
13
|
[key: string]: unknown;
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/events/startConsultation/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,WAAW,4BAA4B;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,gGAAgG;IAChG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/events/startConsultation/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,WAAW,4BAA4B;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,gGAAgG;IAChG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useObservationFormData.d.ts","sourceRoot":"","sources":["../../src/hooks/useObservationFormData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,gBAAgB,EAChB,YAAY,EAKb,MAAM,kBAAkB,CAAC;AAU1B,UAAU,2BAA2B;IACnC,eAAe,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,4BAA4B;IACpC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,oBAAoB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB,YAAY,EAAE,YAAY,GAAG,SAAS,CAAC;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"useObservationFormData.d.ts","sourceRoot":"","sources":["../../src/hooks/useObservationFormData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,gBAAgB,EAChB,YAAY,EAKb,MAAM,kBAAkB,CAAC;AAU1B,UAAU,2BAA2B;IACnC,eAAe,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,4BAA4B;IACpC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,oBAAoB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB,YAAY,EAAE,YAAY,GAAG,SAAS,CAAC;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B;AAuDD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,CAAC,EAAE,2BAA2B,GAClC,4BAA4B,CAqJ9B"}
|
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { bD as m, u, M as p, bA as f, bK as b, aG as _, bG as x } from "./index-aVz5vm6R.js";
|
|
3
3
|
import { lazy as N, useMemo as r, Suspense as h } from "react";
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import "@tanstack/react-query";
|
|
5
|
+
import { u as E } from "./hook-Dfbe9Yfh.js";
|
|
6
|
+
const P = (s) => {
|
|
6
7
|
const i = /* @__PURE__ */ new Map();
|
|
7
8
|
for (const e of s) {
|
|
8
9
|
const o = i.get(e.extensionPointId) ?? [];
|
|
9
10
|
o.push(e), i.set(e.extensionPointId, o);
|
|
10
11
|
}
|
|
11
12
|
return i;
|
|
12
|
-
},
|
|
13
|
+
}, v = (s, i) => s.filter(
|
|
13
14
|
(e) => !e.requiredPrivileges || e.requiredPrivileges.length === 0 || m(i, e.requiredPrivileges)
|
|
14
|
-
),
|
|
15
|
+
), C = {
|
|
15
16
|
"org.bahmni.clinical.v2.search": N(
|
|
16
|
-
() => import("./index-
|
|
17
|
+
() => import("./index-DhSka-Il.js")
|
|
17
18
|
)
|
|
18
|
-
}, L = "index-module_page__16xxw", I = "index-module_loading__wNI-4", y = "index-module_tabs__ZZv8Y",
|
|
19
|
+
}, L = "index-module_page__16xxw", I = "index-module_loading__wNI-4", y = "index-module_tabs__ZZv8Y", A = "index-module_message__Ib5Iw", l = {
|
|
19
20
|
page: L,
|
|
20
21
|
loading: I,
|
|
21
22
|
tabs: y,
|
|
22
|
-
message:
|
|
23
|
+
message: A
|
|
23
24
|
}, S = () => {
|
|
24
|
-
const { t: s } = u(), { clinicalConfig: i } = E(), { userPrivileges: e } =
|
|
25
|
+
const { t: s } = u(), { clinicalConfig: i } = E(), { userPrivileges: e } = p(), o = r(
|
|
25
26
|
() => [
|
|
26
|
-
{ id: "home", label: s("HOME_LABEL"), href:
|
|
27
|
+
{ id: "home", label: s("HOME_LABEL"), href: f },
|
|
27
28
|
{ id: "clinical", label: s("CLINICAL_LABEL"), isCurrentPage: !0 }
|
|
28
29
|
],
|
|
29
30
|
[s]
|
|
30
31
|
), c = r(
|
|
31
|
-
() =>
|
|
32
|
+
() => P(i?.extensions ?? []),
|
|
32
33
|
[i]
|
|
33
34
|
), d = r(
|
|
34
|
-
() => Array.from(c.entries()).map(([n,
|
|
35
|
+
() => Array.from(c.entries()).map(([n, a]) => ({
|
|
35
36
|
pointId: n,
|
|
36
|
-
Handler:
|
|
37
|
-
filtered:
|
|
38
|
-
})).filter(({ Handler: n, filtered:
|
|
37
|
+
Handler: C[n],
|
|
38
|
+
filtered: v(a, e)
|
|
39
|
+
})).filter(({ Handler: n, filtered: a }) => !!n && a.length > 0),
|
|
39
40
|
[c, e]
|
|
40
41
|
);
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ t(
|
|
42
43
|
b,
|
|
43
44
|
{
|
|
44
|
-
header: /* @__PURE__ */
|
|
45
|
-
main: /* @__PURE__ */
|
|
45
|
+
header: /* @__PURE__ */ t(x, { breadcrumbItems: o }),
|
|
46
|
+
main: /* @__PURE__ */ t(
|
|
46
47
|
"div",
|
|
47
48
|
{
|
|
48
49
|
id: "clinical-list-page",
|
|
49
50
|
"data-testid": "clinical-list-page-test-id",
|
|
50
51
|
"aria-label": "Clinical List Page",
|
|
51
52
|
className: l.page,
|
|
52
|
-
children: d.length > 0 ? d.map(({ pointId: n, Handler:
|
|
53
|
+
children: d.length > 0 ? d.map(({ pointId: n, Handler: a, filtered: g }) => /* @__PURE__ */ t(
|
|
53
54
|
"div",
|
|
54
55
|
{
|
|
55
56
|
id: n,
|
|
56
57
|
"data-testid": `${n}-test-id`,
|
|
57
58
|
className: l.tabs,
|
|
58
|
-
children: /* @__PURE__ */
|
|
59
|
+
children: /* @__PURE__ */ t(
|
|
59
60
|
h,
|
|
60
61
|
{
|
|
61
|
-
fallback: /* @__PURE__ */
|
|
62
|
+
fallback: /* @__PURE__ */ t(
|
|
62
63
|
_,
|
|
63
64
|
{
|
|
64
65
|
type: "multi",
|
|
65
66
|
className: l.loading
|
|
66
67
|
}
|
|
67
68
|
),
|
|
68
|
-
children: /* @__PURE__ */ a
|
|
69
|
+
children: /* @__PURE__ */ t(a, { extensions: g })
|
|
69
70
|
}
|
|
70
71
|
)
|
|
71
72
|
},
|
|
72
73
|
n
|
|
73
|
-
)) : /* @__PURE__ */
|
|
74
|
+
)) : /* @__PURE__ */ t(
|
|
74
75
|
"p",
|
|
75
76
|
{
|
|
76
77
|
id: "no-extensions-configured",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as r,
|
|
2
|
+
import { u as r, cz as o, cA as l, cB as c, b7 as m, b8 as g, cC as h, cD as b, cE as p, aG as u } from "./index-aVz5vm6R.js";
|
|
3
3
|
import { Suspense as E } from "react";
|
|
4
|
+
import "@tanstack/react-query";
|
|
4
5
|
const _ = "index-module_loading__FAL7n", $ = "index-module_message__KjCnF", t = {
|
|
5
6
|
loading: _,
|
|
6
7
|
message: $
|
|
7
|
-
},
|
|
8
|
+
}, N = ({ extensions: i }) => {
|
|
8
9
|
const { t: s } = r();
|
|
9
10
|
return i.length === 0 ? null : /* @__PURE__ */ d(o, { children: [
|
|
10
11
|
/* @__PURE__ */ e(
|
|
@@ -74,5 +75,5 @@ const _ = "index-module_loading__FAL7n", $ = "index-module_message__KjCnF", t =
|
|
|
74
75
|
] });
|
|
75
76
|
};
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
N as default
|
|
78
79
|
};
|