@openmrs/ngx-formentry 3.0.1-pre.103 → 3.0.1-pre.112
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/bundles/openmrs-ngx-formentry.umd.js +17 -7
- package/bundles/openmrs-ngx-formentry.umd.js.map +1 -1
- package/esm2015/form-entry/helpers/js-expression-helper.js +18 -8
- package/fesm2015/openmrs-ngx-formentry.js +17 -7
- package/fesm2015/openmrs-ngx-formentry.js.map +1 -1
- package/form-entry/helpers/js-expression-helper.d.ts +12 -4
- package/package.json +1 -1
|
@@ -5,24 +5,32 @@ export declare class JsExpressionHelper {
|
|
|
5
5
|
calcBMIForAgeZscore(bmiForAgeRef: any, height: any, weight: any): any;
|
|
6
6
|
calcWeightForHeightZscore(weightForHeightRef: any, height: any, weight: any): any;
|
|
7
7
|
calcHeightForAgeZscore(heightForAgeRef: any, height: any, weight: any): any;
|
|
8
|
-
calcSouthEastAsiaNonLabCVDRisk(sex: 'M' | 'F', smoker
|
|
8
|
+
calcSouthEastAsiaNonLabCVDRisk(sex: 'M' | 'F', smoker?: boolean, age?: number, sbp?: number, bmi?: number): number;
|
|
9
9
|
isEmpty(val: any): boolean;
|
|
10
10
|
arrayContains(array: any, members: any): boolean;
|
|
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
|
-
|
|
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;
|
|
18
26
|
calcBMIForAgeZscore: (bmiForAgeRef: any, height: any, weight: any) => any;
|
|
19
27
|
calcWeightForHeightZscore: (weightForHeightRef: any, height: any, weight: any) => any;
|
|
20
28
|
calcHeightForAgeZscore: (heightForAgeRef: any, height: any, weight: any) => any;
|
|
21
|
-
calcSouthEastAsiaNonLabCVDRisk: (sex: "M" | "F", smoker
|
|
29
|
+
calcSouthEastAsiaNonLabCVDRisk: (sex: "M" | "F", smoker?: boolean, age?: number, sbp?: number, bmi?: number) => number;
|
|
22
30
|
isEmpty: (val: any) => boolean;
|
|
23
31
|
arrayContains: (array: any, members: any) => boolean;
|
|
24
32
|
extractRepeatingGroupValues: (key: any, array: any) => any;
|
|
25
|
-
|
|
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>;
|