@openmrs/ngx-formentry 3.0.1-pre.100 → 3.0.1-pre.105

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.
@@ -11,7 +11,15 @@ export declare class JsExpressionHelper {
11
11
  extractRepeatingGroupValues(key: any, array: any): any;
12
12
  formatDate(value: any, format: any, offset: any): any;
13
13
  arrayContainsAny(array: any, members: any): boolean;
14
- extractObsValue(rawEncounter: any, uuid: any, alternateControl?: any): any;
14
+ /**
15
+ * Takes a target control, an encounter and concept uuid. If the target control has a value it returns it
16
+ * otherwise it tries to find it in the encounter. Finally it returns null of it can't find either of them.
17
+ * @param targetControl
18
+ * @param rawEncounter
19
+ * @param uuid
20
+ * @returns
21
+ */
22
+ getObsFromControlOrEncounter(targetControl: any, rawEncounter: any, uuid: any): any;
15
23
  get helperFunctions(): {
16
24
  arrayContainsAny: (array: any, members: any) => boolean;
17
25
  calcBMI: (height: any, weight: any) => number;
@@ -22,7 +30,7 @@ export declare class JsExpressionHelper {
22
30
  isEmpty: (val: any) => boolean;
23
31
  arrayContains: (array: any, members: any) => boolean;
24
32
  extractRepeatingGroupValues: (key: any, array: any) => any;
25
- extractObsValue: (rawEncounter: any, uuid: any, alternateControl?: any) => any;
33
+ getObsFromControlOrEncounter: (targetControl: any, rawEncounter: any, uuid: any) => any;
26
34
  };
27
35
  static ɵfac: i0.ɵɵFactoryDeclaration<JsExpressionHelper, never>;
28
36
  static ɵprov: i0.ɵɵInjectableDeclaration<JsExpressionHelper>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/ngx-formentry",
3
- "version": "3.0.1-pre.100",
3
+ "version": "3.0.1-pre.105",
4
4
  "dependencies": {
5
5
  "tslib": "^2.2.0"
6
6
  },