@bahmni/services 0.0.1-dev.301 → 0.0.1-dev.312

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.
@@ -0,0 +1,4 @@
1
+ import { Bundle, Task } from 'fhir/r4';
2
+ export declare const mockTaskBundle: Bundle<Task>;
3
+ export declare const emptyTaskBundle: Bundle<Task>;
4
+ //# sourceMappingURL=taskServiceMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taskServiceMocks.d.ts","sourceRoot":"","sources":["../../../../src/taskService/__tests__/__mocks__/taskServiceMocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,IAAI,CA6DvC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,IAAI,CAKxC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const TASKS_URL: (patientUuid?: string, basedOnReference?: string, encounterUuids?: string[]) => string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/taskService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GACpB,cAAc,MAAM,EACpB,mBAAmB,MAAM,EACzB,iBAAiB,MAAM,EAAE,WAkB1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { getTasks } from './taskService';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/taskService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Bundle, Task } from 'fhir/r4';
2
+ /**
3
+ * Fetches tasks for a given patient with optional filters
4
+ * @param patientUuid - The UUID of the patient
5
+ * @param basedOnReference - Optional reference to filter tasks (e.g., "ServiceRequest/uuid")
6
+ * @param encounterUuids - Optional array of encounter UUIDs to filter tasks
7
+ * @returns Promise resolving to a Bundle of Task resources
8
+ */
9
+ export declare function getTasks(patientUuid?: string, basedOnReference?: string, encounterUuids?: string[]): Promise<Bundle<Task>>;
10
+ //# sourceMappingURL=taskService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taskService.d.ts","sourceRoot":"","sources":["../../src/taskService/taskService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAIvC;;;;;;GAMG;AACH,wBAAsB,QAAQ,CAC5B,WAAW,CAAC,EAAE,MAAM,EACpB,gBAAgB,CAAC,EAAE,MAAM,EACzB,cAAc,CAAC,EAAE,MAAM,EAAE,GACxB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAIvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/services",
3
- "version": "0.0.1-dev.301",
3
+ "version": "0.0.1-dev.312",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",