mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
Import latest app updates from streamline
An updated set of source files and initialization was provided by streamline to address issues observed during initial testing. These files have been updated in order to generate a new set of app images.
This commit is contained in:
@@ -37,8 +37,17 @@ class NutritionController extends Controller {
|
||||
|
||||
foreach($data as $item) {
|
||||
$split_item = explode(',', $item);
|
||||
$lengths[] = +$split_item[0];
|
||||
$formatted_data[+$split_item[0]] = [+$split_item[1], +$split_item[2], +$split_item[3], +$split_item[4], +str_replace(["\r", "\n"], "", $split_item[5])];
|
||||
$lengths[] = intval($split_item[0]);
|
||||
$formatted_data[intval($split_item[0])] = [intval($split_item[1]), intval($split_item[2]), intval($split_item[3]), intval($split_item[4]), intval(str_replace(["\r", "\n"], "", $split_item[5]))];
|
||||
}
|
||||
|
||||
// check if height is out of bounds
|
||||
if ($height < $lengths[0] || $height > $lengths[count($lengths) - 1]) {
|
||||
$text = "Nutrition Status Not Available";
|
||||
$reason = "Height is out of range";
|
||||
$text_color = "red";
|
||||
|
||||
return $text . "&&&&" . $reason . "&&&&" . $text_color;
|
||||
}
|
||||
|
||||
$reference_height = get_closest_element_in_array($lengths, $height);
|
||||
@@ -82,8 +91,8 @@ class NutritionController extends Controller {
|
||||
|
||||
foreach($data as $item) {
|
||||
$split_item = explode(',', $item);
|
||||
$ages_in_months[] = +$split_item[0];
|
||||
$formatted_data[+$split_item[0]] = [+$split_item[1], +$split_item[2], +$split_item[3], +$split_item[4], +str_replace(["\r", "\n"], "", $split_item[5])];
|
||||
$ages_in_months[] = intval($split_item[0]);
|
||||
$formatted_data[intval($split_item[0])] = [intval($split_item[1]), intval($split_item[2]), intval($split_item[3]), intval($split_item[4]), intval(str_replace(["\r", "\n"], "", $split_item[5]))];
|
||||
}
|
||||
|
||||
$reference_age = get_closest_element_in_array($ages_in_months, $age_diff_months);
|
||||
|
||||
Reference in New Issue
Block a user