当前位置: 首页>>代码示例>>PHP>>正文


PHP Patient::getPatientArrivalLogWarningByPid方法代码示例

本文整理汇总了PHP中Patient::getPatientArrivalLogWarningByPid方法的典型用法代码示例。如果您正苦于以下问题:PHP Patient::getPatientArrivalLogWarningByPid方法的具体用法?PHP Patient::getPatientArrivalLogWarningByPid怎么用?PHP Patient::getPatientArrivalLogWarningByPid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Patient的用法示例。


在下文中一共展示了Patient::getPatientArrivalLogWarningByPid方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getPatientsArrivalLog

 public function getPatientsArrivalLog(stdClass $params)
 {
     $visits = array();
     foreach ($this->getPatientParentPools() as $visit) {
         $id = $visit['id'];
         $this->db->setSQL("SELECT pp.id, pa.title AS area, pp.time_out, pp.eid\n\t\t\t\t\t\t\t\t FROM patient_pools AS pp\n\t\t\t\t\t\t    LEFT JOIN pool_areas AS pa ON pp.area_id = pa.id\n\t\t\t\t\t\t\t    WHERE pp.parent_id = {$id}\n\t\t\t\t\t\t\t ORDER BY pp.id DESC");
         $foo = $this->db->fetchRecord(PDO::FETCH_ASSOC);
         $visit['area'] = $foo['area'];
         $visit['area_id'] = $foo['id'];
         $visit['name'] = ($foo['eid'] != null ? '*' : '') . $this->patient->getPatientFullNameByPid($visit['pid']);
         $visit['warning'] = $this->patient->getPatientArrivalLogWarningByPid($visit['pid']);
         $visit['warningMsg'] = $visit['warning'] ? 'Patient \'Sex\' or \'Date Of Birth\' not set' : '';
         if ($foo['time_out'] == null) {
             $visits[] = $visit;
         }
     }
     return $visits;
 }
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:18,代码来源:PoolArea.php

示例2: getPatientsArrivalLog

 public function getPatientsArrivalLog(stdClass $params)
 {
     $this->setPatient();
     $this->setPaModel();
     $visits = [];
     foreach ($this->getPatientParentPools() as $visit) {
         $id = $visit['id'];
         $foo = $this->pa->sql("SELECT pp.id, pa.title AS area, pp.time_out, pp.eid\n\t\t\t\t\t\t\t\t FROM patient_pools AS pp\n\t\t\t\t\t\t    LEFT JOIN pool_areas AS pa ON pp.area_id = pa.id\n\t\t\t\t\t\t\t    WHERE pp.parent_id = '{$id}'\n\t\t\t\t\t\t\t ORDER BY pp.id DESC")->one();
         $visit['area'] = $foo['area'];
         $visit['area_id'] = $foo['id'];
         $visit['name'] = ($foo['eid'] != null ? '*' : '') . $this->patient->getPatientFullNameByPid($visit['pid']);
         $visit['warning'] = $this->patient->getPatientArrivalLogWarningByPid($visit['pid']);
         $visit['warningMsg'] = $visit['warning'] ? 'Patient "Sex" or "Date Of Birth" not set' : '';
         if ($foo['time_out'] == null) {
             $visits[] = $visit;
         }
     }
     return $visits;
 }
开发者ID:igez,项目名称:gaiaehr,代码行数:19,代码来源:PoolArea.php

示例3: getPatientsZonesByFloorPlanId

 public function getPatientsZonesByFloorPlanId($FloorPlanId)
 {
     $zones = array();
     $this->db->setSQL("SELECT pz.id AS patientZoneId,\n\t\t\t\t\t\t\t\t  pz.pid,\n\t\t\t\t\t\t\t\t  pz.uid,\n\t\t\t\t\t\t\t\t  pz.zone_id AS zoneId,\n\t\t\t\t\t\t\t\t  time_in AS zoneTimerIn,\n\t\t\t\t\t\t\t\t  fpz.floor_plan_id AS floorPlanId\n\t\t\t\t\t\t\t FROM patient_zone AS pz\n\t\t\t\t\t\tLEFT JOIN floor_plans_zones AS fpz ON pz.zone_id = fpz.id\n\t\t\t\t\t\t\tWHERE fpz.floor_plan_id = {$FloorPlanId} AND pz.time_out IS NULL");
     foreach ($this->db->fetchRecords(PDO::FETCH_ASSOC) as $zone) {
         $zone['patient'] = $this->patient->getPatientDemographicDataByPid($zone['pid']);
         $zone['warning'] = $this->patient->getPatientArrivalLogWarningByPid($zone['pid']);
         $pool = $this->pool->getCurrentPatientPoolAreaByPid($zone['pid']);
         $zone['poolArea'] = $pool['poolArea'];
         $zone['priority'] = $pool['priority'];
         $zone['eid'] = $pool['eid'];
         $zones[] = $zone;
     }
     return $zones;
 }
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:15,代码来源:FloorPlans.php

示例4: getPatientsZonesByFloorPlanId

 public function getPatientsZonesByFloorPlanId($FloorPlanId)
 {
     $Patient = new Patient();
     $Pool = new PoolArea();
     $zones = $this->pz->sql("SELECT pz.id AS patientZoneId,\n\t\t\t\t\t\t\t\t  pz.pid,\n\t\t\t\t\t\t\t\t  pz.uid,\n\t\t\t\t\t\t\t\t  pz.zone_id AS zoneId,\n\t\t\t\t\t\t\t\t  time_in AS zoneTimerIn,\n\t\t\t\t\t\t\t\t  fpz.floor_plan_id AS floorPlanId\n\t\t\t\t\t\t\t FROM patient_zone AS pz\n\t\t\t\t\t\tLEFT JOIN floor_plans_zones AS fpz ON pz.zone_id = fpz.id\n\t\t\t\t\t\t\tWHERE fpz.floor_plan_id = {$FloorPlanId} AND pz.time_out IS NULL")->all();
     foreach ($zones as $i => $zone) {
         $zone['patient'] = $Patient->getPatientDemographicDataByPid($zone['pid']);
         $zone['name'] = $Patient->getPatientFullName();
         $zone['warning'] = $Patient->getPatientArrivalLogWarningByPid($zone['pid']);
         $pool = $Pool->getCurrentPatientPoolAreaByPid($zone['pid']);
         $zone['poolArea'] = $pool['poolArea'];
         $zone['priority'] = $pool['priority'];
         $zone['eid'] = $pool['eid'];
         $zones[$i] = $zone;
     }
     unset($Patient, $Pool);
     return $zones;
 }
开发者ID:igez,项目名称:gaiaehr,代码行数:18,代码来源:PatientZone.php


注:本文中的Patient::getPatientArrivalLogWarningByPid方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。