當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Helper::check方法代碼示例

本文整理匯總了PHP中Helper::check方法的典型用法代碼示例。如果您正苦於以下問題:PHP Helper::check方法的具體用法?PHP Helper::check怎麽用?PHP Helper::check使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Helper的用法示例。


在下文中一共展示了Helper::check方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     // See if user has been a tobacco user before or simultaneosly to the encounter within two years (24 months)
     $date_array = array();
     foreach ($this->getApplicableEncounters() as $encType) {
         $dates = Helper::fetchEncounterDates($encType, $patient, $beginDate, $endDate);
         $date_array = array_merge($date_array, $dates);
     }
     // sort array to get the most recent encounter first
     $date_array = array_unique($date_array);
     rsort($date_array);
     // go through each unique date from most recent
     foreach ($date_array as $date) {
         // encounters time stamp is always 00:00:00, so change it to 23:59:59 or 00:00:00 as applicable
         $date = date('Y-m-d 23:59:59', strtotime($date));
         $beginMinus24Months = strtotime('-24 month', strtotime($date));
         $beginMinus24Months = date('Y-m-d 00:00:00', $beginMinus24Months);
         // this is basically a check to see if the patient is an reported as an active smoker on their last encounter
         if (Helper::check(ClinicalType::CHARACTERISTIC, Characteristic::TOBACCO_USER, $patient, $beginMinus24Months, $date)) {
             return true;
         } else {
             if (Helper::check(ClinicalType::CHARACTERISTIC, Characteristic::TOBACCO_NON_USER, $patient, $beginMinus24Months, $date)) {
                 return false;
             } else {
                 // nothing reported during this date period, so move on to next encounter
             }
         }
     }
     return false;
 }
開發者ID:katopenzz,項目名稱:openemr,代碼行數:30,代碼來源:Denominator.php

示例2: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     if (Helper::check(ClinicalType::PHYSICAL_EXAM, PhysicalExam::FINDING_BMI_PERC, $patient, $beginDate, $endDate)) {
         return true;
     }
     return false;
 }
開發者ID:juggernautsei,項目名稱:openemr,代碼行數:7,代碼來源:Numerator1.php

示例3: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     // Flow of control loop
     $return = false;
     do {
         // See if BMI has been recorded between >=22kg/m2 and <30kg/m2 6 months before, or simultanious to the encounter
         $query = "SELECT form_vitals.BMI " . "FROM `form_vitals` " . "LEFT JOIN `form_encounter` " . "ON ( form_vitals.pid = form_encounter.pid ) " . "LEFT JOIN `enc_category_map` " . "ON (enc_category_map.main_cat_id = form_encounter.pc_catid) " . "WHERE form_vitals.BMI IS NOT NULL " . "AND form_vitals.BMI IS NOT NULL " . "AND form_vitals.pid = ? AND form_vitals.BMI >= 22 AND form_vitals.BMI < 30 " . "AND DATE( form_vitals.date ) >= DATE_ADD( form_encounter.date, INTERVAL -6 MONTH ) " . "AND DATE( form_vitals.date ) <= DATE( form_encounter.date ) " . "AND ( enc_category_map.rule_enc_id = 'enc_outpatient' )";
         $res = sqlStatement($query, array($patient->id));
         $number = sqlNumRows($res);
         if ($number >= 1) {
             $return = true;
             break;
         }
         // See if BMI has been recorded >=30kg/m2 6 months before, or simultanious to the encounter
         // AND ÒCare goal: follow-up plan BMI managementÓ OR ÒCommunication provider to provider: dietary consultation orderÓ
         $query = "SELECT form_vitals.BMI " . "FROM `form_vitals` " . "LEFT JOIN `form_encounter` " . "ON ( form_vitals.pid = form_encounter.pid ) " . "LEFT JOIN `enc_category_map` " . "ON (enc_category_map.main_cat_id = form_encounter.pc_catid) " . "WHERE form_vitals.BMI IS NOT NULL " . "AND form_vitals.BMI IS NOT NULL " . "AND form_vitals.pid = ? AND form_vitals.BMI >= 30 " . "AND ( DATE( form_vitals.date ) >= DATE_ADD( form_encounter.date, INTERVAL -6 MONTH ) ) " . "AND ( DATE( form_vitals.date ) <= DATE( form_encounter.date ) ) " . "AND ( enc_category_map.rule_enc_id = 'enc_outpatient' )";
         $res = sqlStatement($query, array($patient->id));
         $number = sqlNumRows($res);
         if ($number >= 1 && (Helper::check(ClinicalType::CARE_GOAL, CareGoal::FOLLOW_UP_PLAN_BMI_MGMT, $patient) || Helper::check(ClinicalType::COMMUNICATION, Communication::DIET_CNSLT, $patient))) {
             $return = true;
             break;
         }
         // See if BMI has been recorded <22kg/m2 6 months before, or simultanious to the encounter
         // AND ÒCare goal: follow-up plan BMI managementÓ OR ÒCommunication provider to provider: dietary consultation orderÓ
         $query = "SELECT form_vitals.BMI " . "FROM `form_vitals` " . "LEFT JOIN `form_encounter` " . "ON ( form_vitals.pid = form_encounter.pid ) " . "LEFT JOIN `enc_category_map` " . "ON (enc_category_map.main_cat_id = form_encounter.pc_catid) " . "WHERE form_vitals.BMI IS NOT NULL " . "AND form_vitals.BMI IS NOT NULL " . "AND form_vitals.pid = ? AND form_vitals.BMI < 22 " . "AND ( DATE( form_vitals.date ) >= DATE_ADD( form_encounter.date, INTERVAL -6 MONTH ) ) " . "AND ( DATE( form_vitals.date ) <= DATE( form_encounter.date ) ) " . "AND ( enc_category_map.rule_enc_id = 'enc_outpatient' )";
         $res = sqlStatement($query, array($patient->id));
         $number = sqlNumRows($res);
         if ($number >= 1 && (Helper::check(ClinicalType::CARE_GOAL, CareGoal::FOLLOW_UP_PLAN_BMI_MGMT, $patient) || Helper::check(ClinicalType::COMMUNICATION, Communication::DIET_CNSLT, $patient))) {
             $return = true;
             break;
         }
     } while (false);
     return $return;
 }
開發者ID:katopenzz,項目名稱:openemr,代碼行數:34,代碼來源:Numerator1.php

示例4: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     if (Helper::check(ClinicalType::COMMUNICATION, Communication::COUNS_NUTRITION, $patient, $beginDate, $endDate)) {
         return true;
     }
     return false;
 }
開發者ID:rajnay86,項目名稱:openemr,代碼行數:7,代碼來源:Numerator2.php

示例5: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     //Also exclude patients with a diagnosis of pregnancy during the measurement period.
     if (Helper::check(ClinicalType::DIAGNOSIS, Diagnosis::PREGNANCY, $patient, $beginDate, $endDate)) {
         return true;
     }
     return false;
 }
開發者ID:juggernautsei,項目名稱:openemr,代碼行數:8,代碼來源:Exclusion.php

示例6: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     $oneEncounter = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if ($patient->calculateAgeOnDate($beginDate) >= 65 && Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_OFF_VIS, $patient, $beginDate, $endDate, $oneEncounter)) {
         return true;
     }
     return false;
 }
開發者ID:katopenzz,項目名稱:openemr,代碼行數:8,代碼來源:InitialPatientPopulation.php

示例7: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     $encounterCount = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if ($patient->calculateAgeOnDate($beginDate) >= 18 && $patient->calculateAgeOnDate($beginDate) < 85 && (Helper::check(ClinicalType::DIAGNOSIS, Diagnosis::HYPERTENSION, $patient, $beginDate, date('Y-m-d H:i:s', strtotime('+6 month', strtotime($beginDate)))) || Helper::check(ClinicalType::DIAGNOSIS, Diagnosis::HYPERTENSION, $patient, $beginDate, $beginDate)) && (Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_OUTPATIENT, $patient, $beginDate, $endDate, $encounterCount) || Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_NURS_FAC, $patient, $beginDate, $endDate, $encounterCount))) {
         return true;
     }
     return false;
 }
開發者ID:mi-squared,項目名稱:openemr,代碼行數:8,代碼來源:InitialPatientPopulation.php

示例8: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     $oneEncounter = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_OUT_PCP_OBGYN, $patient, $beginDate, $endDate, $oneEncounter)) {
         return true;
     }
     return false;
 }
開發者ID:juggernautsei,項目名稱:openemr,代碼行數:8,代碼來源:Denominator.php

示例9: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     // filter for Patient characteristic: birth date (age) >=2 and <=16 years
     $age = intval($patient->calculateAgeOnDate($beginDate));
     if ($age >= 3 && $age <= 11 && Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_OUTPATIENT, $patient, $beginDate, $endDate, 1)) {
         return true;
     }
     return false;
 }
開發者ID:juggernautsei,項目名稱:openemr,代碼行數:9,代碼來源:InitialPatientPopulation2.php

示例10: test

 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     //Number of unique patients with office visits seen by the EP during the EHR reporting period
     $oneEncounter = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_OFF_VIS, $patient, $beginDate, $endDate, $oneEncounter)) {
         return true;
     }
     return false;
 }
開發者ID:katopenzz,項目名稱:openemr,代碼行數:9,代碼來源:Denominator.php

示例11: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     // Rs_Patient characteristic: birth date� (age) >=1 year and <2 years to capture all Rs_Patients who will reach 2 years during the �measurement period�;
     $age = $patient->calculateAgeOnDate($beginDate);
     if ($age >= 1 && $age <= 2 && Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_OFF_VIS, $patient, $beginDate, $endDate, 1)) {
         return true;
     }
     return false;
 }
開發者ID:juggernautsei,項目名稱:openemr,代碼行數:9,代碼來源:InitialPatientPopulation.php

示例12: test

 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     //MEASURE STAGE 2: Number of unique patients who have had two or more office visits with the EP in the 24 months prior to the beginning of the EHR reporting period
     $twoEncounter = array(Encounter::OPTION_ENCOUNTER_COUNT => 2);
     if (Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_OFF_VIS, $patient, $beginDate, $endDate, $twoEncounter)) {
         return true;
     }
     return false;
 }
開發者ID:minggLu,項目名稱:openemr,代碼行數:9,代碼來源:Denominator.php

示例13: test

 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     // Seen by the EP
     //  (basically needs an Office Visit within the report dates)
     $options = array(Encounter::OPTION_ENCOUNTER_COUNT => 1);
     if (Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_OFF_VIS, $patient, $beginDate, $endDate, $options)) {
         return true;
     } else {
         return false;
     }
 }
開發者ID:aaricpittman,項目名稱:openemr,代碼行數:11,代碼來源:Denominator.php

示例14: test

 public function test(CqmPatient $patient, $beginDate, $endDate)
 {
     //Also exclude patients with a diagnosis of pregnancy during the measurement period.
     if (Helper::check(ClinicalType::DIAGNOSIS, Diagnosis::PREGNANCY, $patient, $beginDate, $endDate)) {
         return true;
     }
     //Dialysis procedure exists exclude the patient
     $sql = "SELECT count(*) as cnt FROM procedure_order pr " . "INNER JOIN procedure_order_code prc ON pr.procedure_order_id = prc.procedure_order_id " . "WHERE pr.patient_id = ? " . "AND prc.procedure_code IN (' 108241001', '90937') " . "AND (pr.date_ordered BETWEEN ? AND ?)";
     $check = sqlQuery($sql, array($patient->id, $beginDate, $endDate));
     if ($check['cnt'] > 0) {
         return true;
     }
     return false;
 }
開發者ID:minggLu,項目名稱:openemr,代碼行數:14,代碼來源:Exclusion.php

示例15: test

 public function test(AmcPatient $patient, $beginDate, $endDate)
 {
     //MEASURE STAGE 2: Number of unique patients who have had two or more office visits with the EP in the 24 months prior to the beginning of the EHR reporting period
     // the begin date for encounter range is 2 years minus the above $beginDate
     $d1 = new DateTime($beginDate);
     $d2 = $d1->sub(new DateInterval('P2Y'));
     $beginDate_encounter = $d2->format('Y-m-d H:i:s');
     // the end date for encounter range is the above $beginDate
     $endDate_encounter = $beginDate;
     $twoEncounter = array(Encounter::OPTION_ENCOUNTER_COUNT => 2);
     if (Helper::check(ClinicalType::ENCOUNTER, Encounter::ENC_OFF_VIS, $patient, $beginDate_encounter, $endDate_encounter, $twoEncounter)) {
         return true;
     }
     return false;
 }
開發者ID:juggernautsei,項目名稱:openemr,代碼行數:15,代碼來源:Denominator.php


注:本文中的Helper::check方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。