浏览代码

fixed vitals

Josh 4 年之前
父节点
当前提交
3b2a1186c1
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      resources/views/app/patient/partials/vitals.blade.php

+ 9 - 0
resources/views/app/patient/partials/vitals.blade.php

@@ -17,6 +17,15 @@ $vitalLabels = ['Ht. (in.)','Wt. (lbs.)','Temp. (F)','Pulse','Resp.','Pulse Ox.'
 
 $vitalValues = json_decode($patient->latest_measurements, true);
 
+foreach($vitalLabels as $vitalLabel){
+    if(!isset($vitalValues[$vitalLabel])){
+        $vitalValues[$vitalLabel] = [
+            'value' => '',
+            'effective_date'=>''
+        ]
+    }
+}
+
 ?>
 
 <div moe-parent