From 0a5d9ee8db2dde9e19ed5e9873b0ee6ac2946a20 Mon Sep 17 00:00:00 2001 From: AJAL ODORA JONATHAN <43242517+ODORA0@users.noreply.github.com> Date: Mon, 8 Jan 2024 08:20:17 +0300 Subject: [PATCH] OHRI-2059 Add documentation for Zscore Calculations --- pages/docs/expression-helpers.mdx | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/pages/docs/expression-helpers.mdx b/pages/docs/expression-helpers.mdx index 93859dd..fa478e7 100644 --- a/pages/docs/expression-helpers.mdx +++ b/pages/docs/expression-helpers.mdx @@ -108,6 +108,46 @@ Example usage: } ``` +## calcHeightForAgeZscore + +Takes the height and weight and returns the zscore based on the age of the patients for both Male and Female patients less than 5 years or greater than or equal to 5 years but less than 18 years of age + +Example usage: + +```json copy +{ +"calculate": { + "calculateExpression":"calcHeightForAgeZscore( 'height', 'weight')" + }, +} +``` +## calcBMIForAgeZscore + +Takes the patient's height and weight and automatically calculates the BMI and returns the zscore for both Male and Female patients greater than or equal to 5 years but less than 18 years of age + +Example usage: + +```json copy +{ +"calculate": { + "calculateExpression":"calcBMIForAgeZscore( 'height', 'weight')" + }, +} +``` +## calcWeightForHeightZscore + +Takes the patient's height and weight and returns the zscore for both Male and Female patients less than 5 years + +Example usage: + +```json copy +{ +"calculate": { + "calculateExpression":"calcWeightForHeightZscore( 'height', 'weight')" + }, +} +``` + ## arrayContains Takes in values in an array and returns true if the values are contained in the source array