Ver código fonte

fixed vitals

Josh 4 anos atrás
pai
commit
3b2a1186c1

+ 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