@bahmni/services 0.0.1-dev.150 → 0.0.1-dev.152

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.
@@ -8,6 +8,20 @@
8
8
  * - Callback is memoized to prevent unnecessary re-subscriptions
9
9
  */
10
10
  export declare const CONSULTATION_SAVED_EVENT = "consultation:saved";
11
+ /**
12
+ * ConsultationSavedEventPayload - Event data published when consultation is saved
13
+ *
14
+ * NOTE ON CONCEPT MATCHING STRATEGIES:
15
+ * Different subscribers use updatedConcepts differently based on their configuration:
16
+ * - Observations widget: Matches by concept UUID (keys) since config specifies UUIDs
17
+ * - VitalFlowSheet widget: Matches by concept NAME (values) since config specifies names
18
+ *
19
+ * The Map structure supports both strategies:
20
+ * - Keys: Concept UUIDs (for UUID-based matching)
21
+ * - Values: Concept names (for name-based matching)
22
+ *
23
+ * Subscribers should choose the matching strategy that aligns with their concept configuration.
24
+ */
11
25
  export interface ConsultationSavedEventPayload {
12
26
  patientUUID: string;
13
27
  updatedResources: {
@@ -16,6 +30,7 @@ export interface ConsultationSavedEventPayload {
16
30
  medications: boolean;
17
31
  serviceRequests: Record<string, boolean>;
18
32
  };
33
+ updatedConcepts: Map<string, string>;
19
34
  }
20
35
  /**
21
36
  * Dispatch consultation saved event using window.dispatchEvent
@@ -1 +1 @@
1
- {"version":3,"file":"consultationEvents.d.ts","sourceRoot":"","sources":["../../src/events/consultationEvents.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAGH,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAG7D,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE;QAChB,UAAU,EAAE,OAAO,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,OAAO,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1C,CAAC;CACH;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GACpC,SAAS,6BAA6B,KACrC,IAQF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,CAAC,OAAO,EAAE,6BAA6B,KAAK,IAAI,EAC1D,OAAM,KAAK,CAAC,cAAmB,SA2BhC,CAAC"}
1
+ {"version":3,"file":"consultationEvents.d.ts","sourceRoot":"","sources":["../../src/events/consultationEvents.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAGH,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAG7D;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE;QAChB,UAAU,EAAE,OAAO,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,OAAO,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1C,CAAC;IACF,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GACpC,SAAS,6BAA6B,KACrC,IAQF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,CAAC,OAAO,EAAE,6BAA6B,KAAK,IAAI,EAC1D,OAAM,KAAK,CAAC,cAAmB,SA2BhC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/services",
3
- "version": "0.0.1-dev.150",
3
+ "version": "0.0.1-dev.152",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",