@bahmni/widgets 0.0.1-dev.74 → 0.0.1-dev.78
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/genericServiceRequest/GenericServiceRequestTable.d.ts +11 -0
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -0
- package/dist/genericServiceRequest/index.d.ts +2 -0
- package/dist/genericServiceRequest/index.d.ts.map +1 -0
- package/dist/genericServiceRequest/models.d.ts +10 -0
- package/dist/genericServiceRequest/models.d.ts.map +1 -0
- package/dist/genericServiceRequest/utils.d.ts +37 -0
- package/dist/genericServiceRequest/utils.d.ts.map +1 -0
- 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 +15106 -14867
- package/dist/registry/model.d.ts +1 -0
- package/dist/registry/model.d.ts.map +1 -1
- package/dist/registry/widgetMap.d.ts.map +1 -1
- package/dist/searchPatient/SearchStrategy.interface.d.ts +2 -1
- package/dist/searchPatient/SearchStrategy.interface.d.ts.map +1 -1
- package/dist/searchPatient/strategies/AttributeSearchStrategy.d.ts +1 -1
- package/dist/searchPatient/strategies/AttributeSearchStrategy.d.ts.map +1 -1
- package/dist/searchPatient/strategies/NameOrIdSearchStrategy.d.ts +6 -2
- package/dist/searchPatient/strategies/NameOrIdSearchStrategy.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { WidgetProps } from '../registry/model';
|
|
3
|
+
export declare const orderTypesQueryKeys: () => readonly ["orderTypes"];
|
|
4
|
+
export declare const genericServiceRequestQueryKeys: (categoryUuid: string, patientUUID: string, encounterUuids?: string[]) => readonly ["genericServiceRequest", string, string, string[] | undefined];
|
|
5
|
+
/**
|
|
6
|
+
* Component to display patient service requests grouped by date in accordion format
|
|
7
|
+
* Each accordion item contains a SortableDataTable with service requests for that date
|
|
8
|
+
*/
|
|
9
|
+
declare const GenericServiceRequestTable: React.FC<WidgetProps>;
|
|
10
|
+
export default GenericServiceRequestTable;
|
|
11
|
+
//# sourceMappingURL=GenericServiceRequestTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericServiceRequestTable.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/GenericServiceRequestTable.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKhD,eAAO,MAAM,mBAAmB,+BAAgC,CAAC;AAEjE,eAAO,MAAM,8BAA8B,GACzC,cAAc,MAAM,EACpB,aAAa,MAAM,EACnB,iBAAiB,MAAM,EAAE,6EAEoD,CAAC;AAehF;;;GAGG;AACH,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwNrD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Bundle, ServiceRequest } from 'fhir/r4';
|
|
2
|
+
import { ServiceRequestViewModel } from './models';
|
|
3
|
+
/**
|
|
4
|
+
* Priority order for service request priorities (case insensitive)
|
|
5
|
+
* Index 0 = highest priority, higher index = lower priority
|
|
6
|
+
* Used for sorting service requests by priority: stat → routine
|
|
7
|
+
*/
|
|
8
|
+
export declare const PRIORITY_ORDER: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Maps service request priority to numeric priority for sorting
|
|
11
|
+
* Uses generic getPriorityByOrder function with PRIORITY_ORDER
|
|
12
|
+
* @param priority - The priority of the service request
|
|
13
|
+
* @returns Numeric priority (lower = higher priority)
|
|
14
|
+
*/
|
|
15
|
+
export declare const getServiceRequestPriority: (priority: string) => number;
|
|
16
|
+
/**
|
|
17
|
+
* Sorts service requests by priority: stat → routine
|
|
18
|
+
* Maintains stable sorting (preserves original order for same priority)
|
|
19
|
+
* @param requests - Array of service requests to sort
|
|
20
|
+
* @returns New sorted array (does not mutate original)
|
|
21
|
+
*/
|
|
22
|
+
export declare const sortServiceRequestsByPriority: (requests: ServiceRequestViewModel[]) => ServiceRequestViewModel[];
|
|
23
|
+
/**
|
|
24
|
+
* Filters out service requests that have replacement relationships
|
|
25
|
+
* Removes both the replacing entry (has replaces field) and the replaced entries (referenced in replaces)
|
|
26
|
+
* This prevents duplicate entries from showing in the UI where one request replaces another
|
|
27
|
+
* @param requests - Array of formatted service requests
|
|
28
|
+
* @returns Filtered array without replacement-related entries
|
|
29
|
+
*/
|
|
30
|
+
export declare const filterServiceRequestReplacementEntries: (requests: ServiceRequestViewModel[]) => ServiceRequestViewModel[];
|
|
31
|
+
/**
|
|
32
|
+
* Formats FHIR service requests into a more user-friendly format
|
|
33
|
+
* @param bundle - The FHIR bundle to format
|
|
34
|
+
* @returns An array of formatted service request view model objects
|
|
35
|
+
*/
|
|
36
|
+
export declare function mapServiceRequest(bundle: Bundle<ServiceRequest>): ServiceRequestViewModel[];
|
|
37
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAe,cAAc,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAsB,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAI,UAAU,MAAM,KAAG,MAE5D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,uBAAuB,EAAE,KAClC,uBAAuB,EAOzB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sCAAsC,GACjD,UAAU,uBAAuB,EAAE,KAClC,uBAAuB,EAMzB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,GAC7B,uBAAuB,EAAE,CA0B3B"}
|