@bahmni/widgets 0.0.1-dev.147 → 0.0.1-dev.148
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/{FormsTable-j_uo-nfJ.js → FormsTable-qV6L_PQt.js} +1 -1
- package/dist/Observations-CzfBOJhf.js +164 -0
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -1
- package/dist/genericServiceRequest/models.d.ts +7 -0
- package/dist/genericServiceRequest/models.d.ts.map +1 -1
- package/dist/{index-dsfoXKAL.js → index-CfnOIq6g.js} +18026 -17558
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -15
- package/dist/labinvestigation/LabInvestigation.d.ts.map +1 -1
- package/dist/labinvestigation/models.d.ts +2 -0
- package/dist/labinvestigation/models.d.ts.map +1 -1
- package/dist/labinvestigation/utils.d.ts +2 -16
- package/dist/labinvestigation/utils.d.ts.map +1 -1
- package/dist/observations/__mocks__/observationTestData.d.ts.map +1 -1
- package/dist/observations/components/ObsByEncounter.d.ts.map +1 -1
- package/dist/observations/models.d.ts +4 -11
- package/dist/observations/models.d.ts.map +1 -1
- package/dist/observations/utils.d.ts +2 -2
- package/dist/observations/utils.d.ts.map +1 -1
- package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts.map +1 -1
- package/dist/radiologyInvestigation/__mocks__/mocks.d.ts.map +1 -1
- package/dist/radiologyInvestigation/models.d.ts +4 -0
- package/dist/radiologyInvestigation/models.d.ts.map +1 -1
- package/dist/radiologyInvestigation/utils.d.ts.map +1 -1
- package/dist/radiologyInvestigationReport/RadiologyInvestigationReport.d.ts +7 -0
- package/dist/radiologyInvestigationReport/RadiologyInvestigationReport.d.ts.map +1 -0
- package/dist/radiologyInvestigationReport/index.d.ts +2 -0
- package/dist/radiologyInvestigationReport/index.d.ts.map +1 -0
- package/dist/utils/Investigations.d.ts +18 -0
- package/dist/utils/Investigations.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/Observations-GyA59xrS.js +0 -339
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { ConditionsTable } from './conditions';
|
|
|
5
5
|
export { DiagnosesTable } from './diagnoses';
|
|
6
6
|
export { MedicationsTable } from './medications';
|
|
7
7
|
export { RadiologyInvestigationTable } from './radiologyInvestigation';
|
|
8
|
+
export { RadiologyInvestigationReport } from './radiologyInvestigationReport';
|
|
8
9
|
export { LabInvestigation } from './labinvestigation';
|
|
9
10
|
export { SearchPatient } from './searchPatient';
|
|
10
11
|
export { VitalFlowSheet } from './vitalFlowSheet';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EACL,e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C;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAG/E,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,6BAA6B,GACnC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,cAAc,EACd,SAAS,EACT,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as t, T as s, A as o, w as r, C as n, y as g, G as l, B as P, M as c, N as d, K as v, P as T, F as b, I as A, z as W, R as m, S as p, U as f, E as u, a2 as C, a1 as R, Z as y, $ as I, a0 as S, Y as U, a3 as D, W as N, m as h, u as w, Q as x } from "./index-CfnOIq6g.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
t as ActivePractitionerContext,
|
|
@@ -15,19 +15,20 @@ export {
|
|
|
15
15
|
T as PatientDetails,
|
|
16
16
|
b as PatientProgramsTable,
|
|
17
17
|
A as ProgramDetails,
|
|
18
|
-
W as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
u as
|
|
23
|
-
C as
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
W as RadiologyInvestigationReport,
|
|
19
|
+
m as RadiologyInvestigationTable,
|
|
20
|
+
p as SearchPatient,
|
|
21
|
+
f as UserPrivilegeProvider,
|
|
22
|
+
u as VitalFlowSheet,
|
|
23
|
+
C as getAllWidgetConfigs,
|
|
24
|
+
R as getAllWidgetTypes,
|
|
25
|
+
y as getWidget,
|
|
26
|
+
I as getWidgetConfig,
|
|
27
|
+
S as hasWidget,
|
|
28
|
+
U as registerWidget,
|
|
29
|
+
D as resetWidgetRegistry,
|
|
29
30
|
N as useActivePractitioner,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
h as useNotification,
|
|
32
|
+
w as usePatientUUID,
|
|
33
|
+
x as useUserPrivilege
|
|
33
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"LabInvestigation.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/LabInvestigation.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgChD,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuM3C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -19,6 +19,8 @@ export interface FormattedLabInvestigations {
|
|
|
19
19
|
readonly note?: string;
|
|
20
20
|
readonly reportId?: string;
|
|
21
21
|
readonly attachments?: Attachment[];
|
|
22
|
+
readonly reportedBy?: string;
|
|
23
|
+
readonly reportedDate?: string;
|
|
22
24
|
}
|
|
23
25
|
export interface LabInvestigationsByDate {
|
|
24
26
|
readonly date: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/models.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IAClC,I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,CAAC;IAC5C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,aAAa,EAAE,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,0BAA0B,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bundle, ServiceRequest,
|
|
2
|
-
import { FormattedLabInvestigations, LabInvestigationPriority, LabInvestigationsByDate, LabTestResult
|
|
1
|
+
import { Bundle, ServiceRequest, Observation } from 'fhir/r4';
|
|
2
|
+
import { FormattedLabInvestigations, LabInvestigationPriority, LabInvestigationsByDate, LabTestResult } from './models';
|
|
3
3
|
export declare enum REFERENCE_RANGE_CODE {
|
|
4
4
|
NORMAL = "normal"
|
|
5
5
|
}
|
|
@@ -15,21 +15,7 @@ export declare function groupLabInvestigationsByDate(labTests: FormattedLabInves
|
|
|
15
15
|
* Sorts tests within each date group to show urgent tests first
|
|
16
16
|
*/
|
|
17
17
|
export declare function sortLabInvestigationsByPriority(labTestsByDate: LabInvestigationsByDate[]): LabInvestigationsByDate[];
|
|
18
|
-
/**
|
|
19
|
-
* Enriches lab investigation tests with diagnostic report information (reportId and attachments)
|
|
20
|
-
* @param tests - Array of formatted lab tests
|
|
21
|
-
* @param diagnosticReports - Array of diagnostic reports
|
|
22
|
-
* @returns Enriched array of tests with reportId and attachments populated
|
|
23
|
-
*/
|
|
24
|
-
export declare function updateInvestigationsWithReportInfo(tests: FormattedLabInvestigations[], diagnosticReports: DiagnosticReport[] | undefined): FormattedLabInvestigations[];
|
|
25
|
-
export declare function extractDiagnosticReportsFromBundle(bundle: Bundle<DiagnosticReport> | undefined): DiagnosticReport[];
|
|
26
18
|
export declare function extractObservationsFromBundle(bundle: Bundle | undefined): Observation[];
|
|
27
|
-
/**
|
|
28
|
-
* Extracts attachments from DiagnosticReport's presentedForm array
|
|
29
|
-
* @param diagnosticReport - The diagnostic report resource
|
|
30
|
-
* @returns Array of attachments or undefined if none exist
|
|
31
|
-
*/
|
|
32
|
-
export declare function extractAttachmentsFromDiagnosticReport(diagnosticReport: DiagnosticReport | undefined): Attachment[] | undefined;
|
|
33
19
|
export declare function formatObservationsAsLabTestResults(observations: Observation[], t: (key: string) => string): LabTestResult[];
|
|
34
20
|
/**
|
|
35
21
|
* Maps a single diagnostic report bundle to test results
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/labinvestigation/utils.ts"],"names":[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UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,GACvC,0BAA0B,EAAE,CAW9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observationTestData.d.ts","sourceRoot":"","sources":["../../../src/observations/__mocks__/observationTestData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"observationTestData.d.ts","sourceRoot":"","sources":["../../../src/observations/__mocks__/observationTestData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,WAAW,CAgE3D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,WAAW,CAI/C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,WAAW,CAGvD,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CA2B1E,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,WAAW,CAuBvD,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,WAAW,CAa1D,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,WAAW,CAgBnE,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAkEzE,CAAC;AAEJ,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAmD1E,CAAC;AAEJ,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CA4DzE,CAAC;AAEJ,eAAO,MAAM,qCAAqC,EAAE,MAAM,CACxD,WAAW,GAAG,SAAS,CAwExB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAyCxE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAyC1E,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CACpD,WAAW,GAAG,SAAS,CA0CxB,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,WAAW,CAsElE,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,WAAW,CAyDrE,CAAC;AAEF,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;CAYpD,CAAC;AAEF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;CAYrD,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;CAYzC,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;CAW9C,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;CAWlD,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;CAW/C,CAAC;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;CAWnD,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;CAO/C,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;CASlD,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;CAWtC,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;CAIlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObsByEncounter.d.ts","sourceRoot":"","sources":["../../../src/observations/components/ObsByEncounter.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"ObsByEncounter.d.ts","sourceRoot":"","sources":["../../../src/observations/components/ObsByEncounter.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAwB,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAG1E,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+CxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -30,24 +30,17 @@ export interface ExtractedObservation {
|
|
|
30
30
|
issued?: string;
|
|
31
31
|
encounter?: EncounterDetails;
|
|
32
32
|
members?: ExtractedObservation[];
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
id: string;
|
|
36
|
-
display: string;
|
|
37
|
-
observationValue?: ObservationValue;
|
|
38
|
-
effectiveDateTime?: string;
|
|
39
|
-
issued?: string;
|
|
40
|
-
encounter?: EncounterDetails;
|
|
41
|
-
children: ExtractedObservation[];
|
|
33
|
+
sortId?: string;
|
|
34
|
+
conceptId?: string;
|
|
42
35
|
}
|
|
43
36
|
export interface ExtractedObservationsResult {
|
|
44
37
|
observations: ExtractedObservation[];
|
|
45
|
-
groupedObservations:
|
|
38
|
+
groupedObservations: ExtractedObservation[];
|
|
46
39
|
}
|
|
47
40
|
export interface ObservationsByEncounter {
|
|
48
41
|
encounterId: string;
|
|
49
42
|
encounterDetails?: EncounterDetails;
|
|
50
43
|
observations: ExtractedObservation[];
|
|
51
|
-
groupedObservations:
|
|
44
|
+
groupedObservations: ExtractedObservation[];
|
|
52
45
|
}
|
|
53
46
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/observations/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;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,7 @@
|
|
|
1
1
|
import { Observation, Bundle, Encounter } from 'fhir/r4';
|
|
2
|
-
import { EncounterDetails, ExtractedObservation,
|
|
2
|
+
import { EncounterDetails, ExtractedObservation, ExtractedObservationsResult, ObservationsByEncounter } from './models';
|
|
3
3
|
export declare const formatEncounterTitle: (encounterDetails: EncounterDetails | undefined, t: (key: string) => string) => string;
|
|
4
|
-
export declare const formatObservationValue: (observation: ExtractedObservation
|
|
4
|
+
export declare const formatObservationValue: (observation: ExtractedObservation) => string;
|
|
5
5
|
export declare const transformObservationToRowCell: (observation: ExtractedObservation, index: number) => {
|
|
6
6
|
index: number;
|
|
7
7
|
header: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/observations/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAa,MAAM,SAAS,CAAC;AACpE,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/observations/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAa,MAAM,SAAS,CAAC;AACpE,OAAO,EACL,gBAAgB,EAEhB,oBAAoB,EACpB,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,UAAU,CAAC;AASlB,eAAO,MAAM,oBAAoB,GAC/B,kBAAkB,gBAAgB,GAAG,SAAS,EAC9C,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACzB,MAMF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,aAAa,oBAAoB,KAChC,MAOF,CAAC;AAoDF,eAAO,MAAM,6BAA6B,GACxC,aAAa,oBAAoB,EACjC,OAAO,MAAM;;;;;CAQd,CAAC;AAiKF,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC,GACtC,2BAA2B,CAuC7B;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,2BAA2B,GAClC,uBAAuB,EAAE,CA8C3B;AAED,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,uBAAuB,EAAE,GACtC,uBAAuB,EAAE,CAW3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadiologyInvestigationTable.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/RadiologyInvestigationTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadiologyInvestigationTable.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/RadiologyInvestigationTable.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAQ5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAchD,eAAO,MAAM,+BAA+B,GAAI,aAAa,MAAM,gDACjB,CAAC;AAiBnD;;;GAGG;AACH,QAAA,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwYtD,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../src/radiologyInvestigation/__mocks__/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,MAAM,EACN,YAAY,IAAI,gBAAgB,EACjC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,+BAA+B,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE1E,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD,eAAO,MAAM,kBAAkB,EAAE,cA6DhC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,cAAc,GAAG,gBAAgB,CAQrE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,+BAA+B,
|
|
1
|
+
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../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face RadiologyInvestigationViewModel {
|
|
|
9
9
|
readonly priority: string;
|
|
10
10
|
readonly orderedBy: string;
|
|
11
11
|
readonly orderedDate: string;
|
|
12
|
+
readonly status: string;
|
|
12
13
|
readonly replaces?: string[];
|
|
13
14
|
readonly imagingStudies?: ImagingStudy[];
|
|
14
15
|
readonly note?: string;
|
|
16
|
+
readonly reportId?: string;
|
|
17
|
+
readonly reportedBy?: string;
|
|
18
|
+
readonly reportedDate?: string;
|
|
15
19
|
}
|
|
16
20
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,QAAQ,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,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d,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,MAAM,CAAC,cAAc,GAAG,gBAAgB,CAAC,GAChD,+BAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigation/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,MAAM,EACN,YAAY,IAAI,gBAAgB,EACjC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,+BAA+B,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEzE;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAsB,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,MAAM,KAAG,MAEvD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC,GAChD,gBAAgB,+BAA+B,EAAE,KAChD,+BAA+B,EAIjC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2CAA2C,GACtD,gBAAgB,+BAA+B,EAAE,KAChD,+BAA+B,EAMjC,CAAC;AAiDF,eAAO,MAAM,0BAA0B,GACrC,iBAAiB,YAAY,EAAE,KAC9B,YAAY,EAEd,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,MAAM,CAAC,cAAc,GAAG,gBAAgB,CAAC,GAChD,+BAA+B,EAAE,CAuCnC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RadiologyInvestigationReportProps {
|
|
3
|
+
reportId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const RadiologyInvestigationReport: React.FC<RadiologyInvestigationReportProps>;
|
|
6
|
+
export default RadiologyInvestigationReport;
|
|
7
|
+
//# sourceMappingURL=RadiologyInvestigationReport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadiologyInvestigationReport.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigationReport/RadiologyInvestigationReport.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,MAAM,CAAC;CAClB;AA0KD,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CACjD,iCAAiC,CA0ElC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radiologyInvestigationReport/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Bundle, DiagnosticReport } from 'fhir/r4';
|
|
2
|
+
import { FormattedLabInvestigations, Attachment } from '../labinvestigation/models';
|
|
3
|
+
import { RadiologyInvestigationViewModel } from '../radiologyInvestigation/models';
|
|
4
|
+
export declare function extractDiagnosticReportsFromBundle(bundle: Bundle<DiagnosticReport> | undefined): DiagnosticReport[];
|
|
5
|
+
/**
|
|
6
|
+
* Enriches lab investigation tests with diagnostic report information (reportId and attachments)
|
|
7
|
+
* @param tests - Array of formatted lab tests
|
|
8
|
+
* @param diagnosticReports - Array of diagnostic reports
|
|
9
|
+
* @returns Enriched array of tests with reportId and attachments populated
|
|
10
|
+
*/
|
|
11
|
+
export declare function updateInvestigationsWithReportInfo(tests: FormattedLabInvestigations[] | RadiologyInvestigationViewModel[], diagnosticReports: DiagnosticReport[] | undefined): FormattedLabInvestigations[] | RadiologyInvestigationViewModel[];
|
|
12
|
+
/**
|
|
13
|
+
* Extracts attachments from DiagnosticReport's presentedForm array
|
|
14
|
+
* @param diagnosticReport - The diagnostic report resource
|
|
15
|
+
* @returns Array of attachments or undefined if none exist
|
|
16
|
+
*/
|
|
17
|
+
export declare function extractAttachmentsFromDiagnosticReport(diagnosticReport: DiagnosticReport | undefined): Attachment[] | undefined;
|
|
18
|
+
//# sourceMappingURL=Investigations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Investigations.d.ts","sourceRoot":"","sources":["../../src/utils/Investigations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EACL,0BAA0B,EAC1B,UAAU,EACX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AAEnF,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC,GAAG,SAAS,GAC3C,gBAAgB,EAAE,CAOpB;AAED;;;;;GAKG;AAEH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,0BAA0B,EAAE,GAAG,+BAA+B,EAAE,EACvE,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,SAAS,GAChD,0BAA0B,EAAE,GAAG,+BAA+B,EAAE,CA6DlE;AAED;;;;GAIG;AAEH,wBAAgB,sCAAsC,CACpD,gBAAgB,EAAE,gBAAgB,GAAG,SAAS,GAC7C,UAAU,EAAE,GAAG,SAAS,CAiB1B"}
|
package/package.json
CHANGED
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import { jsx as v, jsxs as I } from "react/jsx-runtime";
|
|
2
|
-
import { m as L, V as N, D as k, _ as q, x, i as Q, u as G, j as K, k as P, r as H, O as j, J as Y } from "./index-dsfoXKAL.js";
|
|
3
|
-
import { useQueries as J, useQuery as z } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as W, useEffect as T, useMemo as y } from "react";
|
|
5
|
-
import { useTranslation as D } from "react-i18next";
|
|
6
|
-
const X = "normal", Z = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", ee = "A", te = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ne = (e, n) => e?.date ? L(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), re = (e) => {
|
|
7
|
-
if (!e.observationValue?.value)
|
|
8
|
-
return "";
|
|
9
|
-
const { value: n, unit: t } = e.observationValue;
|
|
10
|
-
return t ? `${n} ${t}` : String(n);
|
|
11
|
-
}, oe = (e) => {
|
|
12
|
-
const n = e.display;
|
|
13
|
-
if (!e.observationValue)
|
|
14
|
-
return String(n);
|
|
15
|
-
const { unit: t, referenceRange: s } = e.observationValue;
|
|
16
|
-
if (!s)
|
|
17
|
-
return String(n);
|
|
18
|
-
const { low: r, high: o } = s;
|
|
19
|
-
if (r && o) {
|
|
20
|
-
const i = r.unit ? `${r.value} ${r.unit}` : t ? `${r.value} ${t}` : String(r.value), a = o.unit ? `${o.value} ${o.unit}` : t ? `${o.value} ${t}` : String(o.value);
|
|
21
|
-
return `${n} (${i} - ${a})`;
|
|
22
|
-
}
|
|
23
|
-
if (r) {
|
|
24
|
-
const i = r.unit ? `${r.value} ${r.unit}` : t ? `${r.value} ${t}` : String(r.value);
|
|
25
|
-
return `${n} (>${i})`;
|
|
26
|
-
}
|
|
27
|
-
if (o) {
|
|
28
|
-
const i = o.unit ? `${o.value} ${o.unit}` : t ? `${o.value} ${t}` : String(o.value);
|
|
29
|
-
return `${n} (<${i})`;
|
|
30
|
-
}
|
|
31
|
-
return n;
|
|
32
|
-
}, se = (e, n) => ({
|
|
33
|
-
index: n,
|
|
34
|
-
header: oe(e),
|
|
35
|
-
value: re(e),
|
|
36
|
-
provider: e.encounter?.provider
|
|
37
|
-
}), O = (e) => (typeof e == "string" ? e : e?.reference)?.split("/")?.pop();
|
|
38
|
-
function ie(e) {
|
|
39
|
-
return !e.interpretation || e.interpretation.length === 0 ? !1 : e.interpretation.some(
|
|
40
|
-
(n) => n.coding?.some(
|
|
41
|
-
(t) => t.system === te && t.code === ee
|
|
42
|
-
)
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
function ae(e) {
|
|
46
|
-
const {
|
|
47
|
-
valueQuantity: n,
|
|
48
|
-
valueCodeableConcept: t,
|
|
49
|
-
valueString: s,
|
|
50
|
-
valueBoolean: r,
|
|
51
|
-
valueInteger: o,
|
|
52
|
-
referenceRange: i
|
|
53
|
-
} = e, a = ie(e);
|
|
54
|
-
if (n) {
|
|
55
|
-
const u = {
|
|
56
|
-
value: n.value ?? "",
|
|
57
|
-
unit: n.unit,
|
|
58
|
-
type: "quantity",
|
|
59
|
-
isAbnormal: a
|
|
60
|
-
};
|
|
61
|
-
if (i && i.length > 0) {
|
|
62
|
-
const c = i.find(
|
|
63
|
-
(d) => d.type?.coding?.some(
|
|
64
|
-
(p) => p.system === Z && p.code === X
|
|
65
|
-
)
|
|
66
|
-
);
|
|
67
|
-
c && (c.low || c.high) && (u.referenceRange = {
|
|
68
|
-
low: c.low ? {
|
|
69
|
-
value: c.low.value,
|
|
70
|
-
unit: c.low.unit
|
|
71
|
-
} : void 0,
|
|
72
|
-
high: c.high ? {
|
|
73
|
-
value: c.high.value,
|
|
74
|
-
unit: c.high.unit
|
|
75
|
-
} : void 0
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
return u;
|
|
79
|
-
}
|
|
80
|
-
if (t)
|
|
81
|
-
return {
|
|
82
|
-
value: t.text ?? t.coding[0].display,
|
|
83
|
-
type: "codeable",
|
|
84
|
-
isAbnormal: a
|
|
85
|
-
};
|
|
86
|
-
if (s)
|
|
87
|
-
return {
|
|
88
|
-
value: s,
|
|
89
|
-
type: "string",
|
|
90
|
-
isAbnormal: a
|
|
91
|
-
};
|
|
92
|
-
if (r !== void 0)
|
|
93
|
-
return {
|
|
94
|
-
value: r,
|
|
95
|
-
type: "boolean",
|
|
96
|
-
isAbnormal: a
|
|
97
|
-
};
|
|
98
|
-
if (o !== void 0)
|
|
99
|
-
return {
|
|
100
|
-
value: o,
|
|
101
|
-
type: "integer",
|
|
102
|
-
isAbnormal: a
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
function ue(e, n) {
|
|
106
|
-
const t = n.get(e);
|
|
107
|
-
if (t)
|
|
108
|
-
return {
|
|
109
|
-
id: t.id ?? e,
|
|
110
|
-
type: t.type?.[0]?.coding?.[0]?.display ?? "Unknown",
|
|
111
|
-
date: t.period?.start ?? "",
|
|
112
|
-
provider: t.participant?.[0]?.individual?.display,
|
|
113
|
-
location: t.location?.[0]?.location?.display
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
function A(e, n, t) {
|
|
117
|
-
const s = O(e.encounter), r = (e.hasMember ?? []).map((o) => O(o)).map((o) => o ? t.get(o) : void 0).filter((o) => !!o).map(
|
|
118
|
-
(o) => A(o, n, t)
|
|
119
|
-
);
|
|
120
|
-
return {
|
|
121
|
-
id: e.id,
|
|
122
|
-
display: e.code?.text ?? e.code?.coding?.[0]?.display ?? "",
|
|
123
|
-
observationValue: ae(e),
|
|
124
|
-
effectiveDateTime: e.effectiveDateTime,
|
|
125
|
-
issued: e.issued,
|
|
126
|
-
encounter: s ? ue(s, n) : void 0,
|
|
127
|
-
members: r.length > 0 ? r : void 0
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
function ce(e) {
|
|
131
|
-
const n = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
|
|
132
|
-
e.entry?.forEach(({ resource: i }) => {
|
|
133
|
-
i?.id && (i.resourceType === "Encounter" ? n.set(i.id, i) : i.resourceType === "Observation" && (t.set(i.id, i), i.hasMember?.forEach((a) => {
|
|
134
|
-
const u = O(a);
|
|
135
|
-
u && s.add(u);
|
|
136
|
-
})));
|
|
137
|
-
});
|
|
138
|
-
const r = [], o = [];
|
|
139
|
-
return t.forEach((i, a) => {
|
|
140
|
-
if (s.has(a)) return;
|
|
141
|
-
const u = A(
|
|
142
|
-
i,
|
|
143
|
-
n,
|
|
144
|
-
t
|
|
145
|
-
);
|
|
146
|
-
u.members?.length ? o.push({ ...u, children: u.members }) : r.push(u);
|
|
147
|
-
}), { observations: r, groupedObservations: o };
|
|
148
|
-
}
|
|
149
|
-
function le(e) {
|
|
150
|
-
const n = /* @__PURE__ */ new Map();
|
|
151
|
-
return e.observations.forEach((t) => {
|
|
152
|
-
if (!t.encounter?.id) return;
|
|
153
|
-
const s = t.encounter.id;
|
|
154
|
-
n.has(s) || n.set(s, {
|
|
155
|
-
observations: [],
|
|
156
|
-
groupedObservations: []
|
|
157
|
-
}), n.get(s).observations.push(t);
|
|
158
|
-
}), e.groupedObservations.forEach((t) => {
|
|
159
|
-
if (!t.encounter?.id) return;
|
|
160
|
-
const s = t.encounter.id;
|
|
161
|
-
n.has(s) || n.set(s, {
|
|
162
|
-
observations: [],
|
|
163
|
-
groupedObservations: []
|
|
164
|
-
}), n.get(s).groupedObservations.push(t);
|
|
165
|
-
}), Array.from(n.entries()).map(([t, s]) => {
|
|
166
|
-
const r = s.observations[0]?.encounter ?? s.groupedObservations[0]?.encounter;
|
|
167
|
-
return {
|
|
168
|
-
encounterId: t,
|
|
169
|
-
encounterDetails: r,
|
|
170
|
-
observations: s.observations,
|
|
171
|
-
groupedObservations: s.groupedObservations
|
|
172
|
-
};
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
function de(e) {
|
|
176
|
-
return [...e].sort((n, t) => {
|
|
177
|
-
const s = n.encounterDetails?.date, r = t.encounterDetails?.date;
|
|
178
|
-
return !s && !r ? 0 : s ? r ? new Date(r).getTime() - new Date(s).getTime() : -1 : 1;
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
const w = (e, n, t, s, r) => {
|
|
182
|
-
const o = se(e, n), i = o.value, a = k(i);
|
|
183
|
-
let u = i;
|
|
184
|
-
a === "Image" && (u = /* @__PURE__ */ v(x, { imageSrc: i, alt: i, id: `${i}-img` })), a === "Video" && (u = /* @__PURE__ */ v(Q, { id: `${i}-video`, videoSrc: i }));
|
|
185
|
-
const c = r("OBSERVATIONS_RECORDED_BY", {
|
|
186
|
-
provider: o.provider
|
|
187
|
-
}), d = e.display, f = e.observationValue?.isAbnormal ? "abnormal-obs" : "obs", g = s ? `${s}-${f}-${d}-${t}-${n}` : `${f}-${d}-${t}-${n}`;
|
|
188
|
-
return /* @__PURE__ */ v(
|
|
189
|
-
q,
|
|
190
|
-
{
|
|
191
|
-
header: o.header,
|
|
192
|
-
value: u,
|
|
193
|
-
info: c,
|
|
194
|
-
id: g,
|
|
195
|
-
testId: g,
|
|
196
|
-
ariaLabel: g
|
|
197
|
-
},
|
|
198
|
-
`obs-${e.id}`
|
|
199
|
-
);
|
|
200
|
-
}, ve = (e, n, t, s, r, o) => /* @__PURE__ */ v(
|
|
201
|
-
N,
|
|
202
|
-
{
|
|
203
|
-
title: e.display,
|
|
204
|
-
id: `grouped-obs-${e.display}-${s}`,
|
|
205
|
-
open: t,
|
|
206
|
-
children: e.children.map(
|
|
207
|
-
(i, a) => w(i, a, r, o, n)
|
|
208
|
-
)
|
|
209
|
-
},
|
|
210
|
-
`grouped-obs-${e.id}`
|
|
211
|
-
), pe = ({
|
|
212
|
-
groupedData: e,
|
|
213
|
-
title: n = ""
|
|
214
|
-
}) => {
|
|
215
|
-
const { t } = D(), s = (r, o, i) => {
|
|
216
|
-
const a = ne(r.encounterDetails, t);
|
|
217
|
-
return /* @__PURE__ */ I(
|
|
218
|
-
N,
|
|
219
|
-
{
|
|
220
|
-
title: a,
|
|
221
|
-
id: `encounter-${r.encounterId}`,
|
|
222
|
-
open: o,
|
|
223
|
-
children: [
|
|
224
|
-
r.observations.map(
|
|
225
|
-
(u, c) => w(u, c, i, n, t)
|
|
226
|
-
),
|
|
227
|
-
r.groupedObservations.map(
|
|
228
|
-
(u, c) => ve(
|
|
229
|
-
u,
|
|
230
|
-
t,
|
|
231
|
-
o,
|
|
232
|
-
c,
|
|
233
|
-
i,
|
|
234
|
-
n
|
|
235
|
-
)
|
|
236
|
-
)
|
|
237
|
-
]
|
|
238
|
-
},
|
|
239
|
-
`encounter-${r.encounterId}`
|
|
240
|
-
);
|
|
241
|
-
};
|
|
242
|
-
return /* @__PURE__ */ v(
|
|
243
|
-
"div",
|
|
244
|
-
{
|
|
245
|
-
id: "obs-by-encounter",
|
|
246
|
-
"data-testid": "obs-by-encounter-test-id",
|
|
247
|
-
"aria-label": "obs-by-encounter-aria-label",
|
|
248
|
-
children: e.map(
|
|
249
|
-
(r, o) => s(r, o === 0, o)
|
|
250
|
-
)
|
|
251
|
-
}
|
|
252
|
-
);
|
|
253
|
-
}, fe = "_observations_kfbhq_1", me = "_title_kfbhq_12", _ = {
|
|
254
|
-
observations: fe,
|
|
255
|
-
title: me
|
|
256
|
-
}, ge = (e) => ["conceptUuid", e], be = (e, n) => ["observations", e, ...n], $e = ({ config: e }) => {
|
|
257
|
-
const n = e, { conceptNames: t = [], conceptUuid: s = [] } = n, r = W(/* @__PURE__ */ new Set()), o = G(), { addNotification: i } = K(), { t: a } = D(), u = J({
|
|
258
|
-
queries: t.map((l) => ({
|
|
259
|
-
queryKey: ge(l),
|
|
260
|
-
queryFn: () => P(l),
|
|
261
|
-
enabled: !!l
|
|
262
|
-
}))
|
|
263
|
-
});
|
|
264
|
-
T(() => {
|
|
265
|
-
u.forEach((l, m) => {
|
|
266
|
-
if (l.isError && !r.current.has(m)) {
|
|
267
|
-
const F = t[m];
|
|
268
|
-
i({
|
|
269
|
-
title: a("ERROR_DEFAULT_TITLE"),
|
|
270
|
-
message: a("ERROR_FETCHING_CONCEPT", { conceptName: F }),
|
|
271
|
-
type: "error"
|
|
272
|
-
}), r.current.add(m);
|
|
273
|
-
} else l.isError || r.current.delete(m);
|
|
274
|
-
});
|
|
275
|
-
}, [u, t]);
|
|
276
|
-
const c = y(() => u.map((l) => l.data?.uuid).filter((l) => !!l), [u]), d = y(() => [.../* @__PURE__ */ new Set([...c, ...s])], [c, s]), p = y(() => t.length === 0 ? !0 : u.every((l) => !l.isLoading), [u, t.length]), {
|
|
277
|
-
data: f,
|
|
278
|
-
isLoading: g,
|
|
279
|
-
isError: E
|
|
280
|
-
} = z({
|
|
281
|
-
queryKey: be(o, d),
|
|
282
|
-
queryFn: () => H(o, d),
|
|
283
|
-
enabled: !!o && d.length > 0 && p
|
|
284
|
-
});
|
|
285
|
-
T(() => {
|
|
286
|
-
E && i({
|
|
287
|
-
title: a("ERROR_DEFAULT_TITLE"),
|
|
288
|
-
message: a("ERROR_FETCHING_OBSERVATIONS"),
|
|
289
|
-
type: "error"
|
|
290
|
-
});
|
|
291
|
-
}, [E]);
|
|
292
|
-
const R = y(() => {
|
|
293
|
-
if (!f) return [];
|
|
294
|
-
const l = ce(f), m = le(l);
|
|
295
|
-
return de(m);
|
|
296
|
-
}, [f]), C = [
|
|
297
|
-
{ key: "name", header: "name" },
|
|
298
|
-
{ key: "value", header: "value" },
|
|
299
|
-
{ key: "form", header: "form" }
|
|
300
|
-
], $ = g || !p, S = E && p, V = (!f || f.entry?.length === 0 || d.length === 0) && p, B = S ? a("ERROR_FETCHING_OBSERVATIONS") : null, M = V ? a("NO_OBSERVATIONS_FOUND") : void 0, U = R.length > 0 && !$ && !S, h = n.titleTranslationKey, b = h ? a(h) : "";
|
|
301
|
-
return /* @__PURE__ */ I(
|
|
302
|
-
"div",
|
|
303
|
-
{
|
|
304
|
-
id: "observations",
|
|
305
|
-
"data-testid": h ? `observations-${b}` : "observations",
|
|
306
|
-
"aria-label": "observations-aria-label",
|
|
307
|
-
className: _.observations,
|
|
308
|
-
children: [
|
|
309
|
-
/* @__PURE__ */ v(
|
|
310
|
-
j,
|
|
311
|
-
{
|
|
312
|
-
id: "observations-title",
|
|
313
|
-
testId: h ? `observations-title-${b}` : "observations-title",
|
|
314
|
-
title: b,
|
|
315
|
-
className: _.title,
|
|
316
|
-
children: /* @__PURE__ */ v("p", { children: b })
|
|
317
|
-
}
|
|
318
|
-
),
|
|
319
|
-
U ? /* @__PURE__ */ v(pe, { groupedData: R, title: b }) : /* @__PURE__ */ v(
|
|
320
|
-
Y,
|
|
321
|
-
{
|
|
322
|
-
headers: C,
|
|
323
|
-
rows: [],
|
|
324
|
-
ariaLabel: a("OBSERVATIONS"),
|
|
325
|
-
loading: $,
|
|
326
|
-
errorStateMessage: B,
|
|
327
|
-
emptyStateMessage: M,
|
|
328
|
-
dataTestId: "observations-table"
|
|
329
|
-
}
|
|
330
|
-
)
|
|
331
|
-
]
|
|
332
|
-
}
|
|
333
|
-
);
|
|
334
|
-
};
|
|
335
|
-
export {
|
|
336
|
-
ge as conceptUuidQueryKeys,
|
|
337
|
-
$e as default,
|
|
338
|
-
be as observationsQueryKeys
|
|
339
|
-
};
|