Exemplo n.º 1
0
 public function checkAge($pid, $immu_id)
 {
     $DOB = $this->patient->getPatientDOBByPid($pid);
     $age = $this->patient->getPatientAgeByDOB($DOB);
     $range = $this->getPreventiveCareAgeRangeById($immu_id);
     if ($age['DMY']['years'] >= $range['age_start'] && $age['DMY']['years'] <= $range['age_end']) {
         return true;
     } else {
         return false;
     }
 }
Exemplo n.º 2
0
 public function getPatientBMIForAgeGraphDataByPid($pid)
 {
     $data = array();
     $dob = $this->patient->getPatientDOBByPid($pid);
     foreach ($this->encounter->getVitalsByPid($pid) as $foo) {
         $fo['age'] = Age::getMonsBetweenDates($dob, $foo['date']) + 0.5;
         $fo['PP'] = $foo['bmi'];
         $data[] = $fo;
     }
     return $data;
 }