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


PHP Patient::getPatientFullNameByPid方法代码示例

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


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

示例1: 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

示例2: getPatientsByPoolAreaId

 private function getPatientsByPoolAreaId($area_id, $in_queue)
 {
     $this->db->setSQL("SELECT pp.*\n\t\t\t\t\t\t\t FROM patient_pools AS pp\n\t\t\t\t\t\t\tWHERE pp.area_id = '{$area_id}'\n\t\t\t\t\t\t\t  AND pp.time_out IS NULL\n\t\t\t\t\t\t\t  AND pp.in_queue = '{$in_queue}'");
     $records = array();
     foreach ($this->db->fetchRecords(PDO::FETCH_ASSOC) as $patient) {
         $patient['name'] = ($patient['eid'] != null ? '*' : '') . $this->patient->getPatientFullNameByPid($patient['pid']);
         $records[] = $patient;
     }
     return $records;
 }
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:10,代码来源:PoolArea.php

示例3: get_PatientTokensData

 public function get_PatientTokensData($pid, $allNeededInfo, $tokens)
 {
     $patientData = $this->getAllPatientData($pid);
     $age = $this->patient->getPatientAgeByDOB($patientData['DOB']);
     $patienInformation = array('[PATIENT_NAME]' => $patientData['fname'], '[PATIENT_ID]' => $pid, '[PATIENT_FULL_NAME]' => $this->patient->getPatientFullNameByPid($patientData['pid']), '[PATIENT_LAST_NAME]' => $patientData['lname'], '[PATIENT_SEX]' => $patientData['sex'], '[PATIENT_BIRTHDATE]' => $patientData['DOB'], '[PATIENT_MARITAL_STATUS]' => $patientData['marital_status'], '[PATIENT_SOCIAL_SECURITY]' => $patientData['SS'], '[PATIENT_EXTERNAL_ID]' => $patientData['pubpid'], '[PATIENT_DRIVERS_LICENSE]' => $patientData['drivers_license'], '[PATIENT_ADDRESS]' => $patientData['address'], '[PATIENT_CITY]' => $patientData['city'], '[PATIENT_STATE]' => $patientData['state'], '[PATIENT_COUNTRY]' => $patientData['country'], '[PATIENT_ZIPCODE]' => $patientData['zipcode'], '[PATIENT_HOME_PHONE]' => $patientData['home_phone'], '[PATIENT_MOBILE_PHONE]' => $patientData['mobile_phone'], '[PATIENT_WORK_PHONE]' => $patientData['work_phone'], '[PATIENT_EMAIL]' => $patientData['email'], '[PATIENT_MOTHERS_NAME]' => $patientData['mothers_name'], '[PATIENT_GUARDIANS_NAME]' => $patientData['guardians_name'], '[PATIENT_EMERGENCY_CONTACT]' => $patientData['emer_contact'], '[PATIENT_EMERGENCY_PHONE]' => $patientData['emer_phone'], '[PATIENT_PROVIDER]' => $this->user->getUserFullNameById($patientData['provider']), '[PATIENT_PHARMACY]' => $patientData['pharmacy'], '[PATIENT_AGE]' => $age['DMY']['years'], '[PATIENT_OCCUPATION]' => $patientData['occupation'], '[PATIENT_EMPLOYEER]' => $patientData['employer_name'], '[PATIENT_RACE]' => $patientData['race'], '[PATIENT_ETHNICITY]' => $patientData['ethnicity'], '[PATIENT_LENGUAGE]' => $patientData['lenguage'], '[PATIENT_REFERRAL]' => $patientData['referral'], '[PATIENT_REFERRAL_DATE]' => $patientData['referral_date'], '[PATIENT_TABACCO]' => 'tabaco', '[PATIENT_ALCOHOL]' => 'alcohol', '[PATIENT_BALANCE]' => '$' . $this->fees->getPatientBalanceByPid($pid), '[PATIENT_PRIMARY_PLAN]' => $patientData['primary_plan_name'], '[PATIENT_PRIMARY_EFFECTIVE_DATE]' => $patientData['primary_effective_date'], '[PATIENT_PRIMARY_SUBSCRIBER]' => $patientData['primary_subscriber_title'] . $patientData['primary_subscriber_fname'] . ' ' . $patientData['primary_subscriber_mname'] . ' ' . $patientData['primary_subscriber_lname'], '[PATIENT_PRIMARY_POLICY_NUMBER]' => $patientData['primary_policy_number'], '[PATIENT_PRIMARY_GROUP_NUMBER]' => $patientData['primary_group_number'], '[PATIENT_PRIMARY_SUBSCRIBER_STREET]' => $patientData['primary_subscriber_street'], '[PATIENT_PRIMARY_SUBSCRIBER_CITY]' => $patientData['primary_subscriber_city'], '[PATIENT_PRIMARY_SUBSCRIBER_STATE]' => $patientData['primary_subscriber_state'], '[PATIENT_PRIMARY_SUBSCRIBER_COUNTRY]' => $patientData['primary_subscriber_country'], '[PATIENT_PRIMARY_SUBSCRIBER_ZIPCODE]' => $patientData['primary_subscriber_zip_code'], '[PATIENT_PRIMARY_SUBSCRIBER_RELATIONSHIP]' => $patientData['primary_subscriber_relationship'], '[PATIENT_PRIMARY_SUBSCRIBER_PHONE]' => $patientData['primary_subscriber_phone'], '[PATIENT_PRIMARY_SUBSCRIBER_EMPLOYER]' => $patientData['primary_subscriber_employer'], '[PATIENT_PRIMARY_SUBSCRIBER_EMPLOYER_CITY]' => $patientData['primary_subscriber_employer_city'], '[PATIENT_PRIMARY_SUBSCRIBER_EMPLOYER_STATE]' => $patientData['primary_subscriber_employer_state'], '[PATIENT_PRIMARY_SUBSCRIBER_EMPLOYER_COUNTRY]' => $patientData['primary_subscriber_employer_country'], '[PATIENT_PRIMARY_SUBSCRIBER_EMPLOYER_ZIPCODE]' => $patientData['primary_subscriber_zip_code'], '[PATIENT_SECONDARY_PLAN]' => $patientData['secondary_plan_name'], '[PATIENT_SECONDARY_EFFECTIVE_DATE]' => $patientData['secondary_effective_date'], '[PATIENT_SECONDARY_SUBSCRIBER]' => $patientData['secondary_subscriber_title'] . $patientData['primary_subscriber_fname'] . ' ' . $patientData['primary_subscriber_mname'] . ' ' . $patientData['primary_subscriber_lname'], '[PATIENT_SECONDARY_POLICY_NUMBER]' => $patientData['secondary_policy_number'], '[PATIENT_SECONDARY_GROUP_NUMBER]' => $patientData['secondary_group_number'], '[PATIENT_SECONDARY_SUBSCRIBER_STREET]' => $patientData['secondary_subscriber_street'], '[PATIENT_SECONDARY_SUBSCRIBER_CITY]' => $patientData['secondary_subscriber_city'], '[PATIENT_SECONDARY_SUBSCRIBER_STATE]' => $patientData['secondary_subscriber_state'], '[PATIENT_SECONDARY_SUBSCRIBER_COUNTRY]' => $patientData['secondary_subscriber_country'], '[PATIENT_SECONDARY_SUBSCRIBER_ZIPCODE]' => $patientData['secondary_subscriber_zip_code'], '[PATIENT_SECONDARY_SUBSCRIBER_RELATIONSHIP]' => $patientData['secondary_subscriber_relationship'], '[PATIENT_SECONDARY_SUBSCRIBER_PHONE]' => $patientData['secondary_subscriber_phone'], '[PATIENT_SECONDARY_SUBSCRIBER_EMPLOYER]' => $patientData['secondary_subscriber_employer'], '[PATIENT_SECONDARY_SUBSCRIBER_EMPLOYER_CITY]' => $patientData['secondary_subscriber_employer_city'], '[PATIENT_SECONDARY_SUBSCRIBER_EMPLOYER_STATE]' => $patientData['secondary_subscriber_employer_state'], '[PATIENT_SECONDARY_SUBSCRIBER_EMPLOYER_COUNTRY]' => $patientData['secondary_subscriber_employer_country'], '[PATIENT_SECONDARY_SUBSCRIBER_EMPLOYER_ZIPCODE]' => $patientData['secondary_subscriber_zip_code'], '[PATIENT_TERTIARY_PLAN]' => $patientData['tertiary_plan_name'], '[PATIENT_TERTIARY_EFFECTIVE_DATE]' => $patientData['tertiary_effective_date'], '[PATIENT_TERTIARY_SUBSCRIBER]' => $patientData['tertiary_subscriber_title'] . $patientData['primary_subscriber_fname'] . ' ' . $patientData['primary_subscriber_mname'] . ' ' . $patientData['primary_subscriber_lname'], '[PATIENT_TERTIARY_POLICY_NUMBER]' => $patientData['tertiary_policy_number'], '[PATIENT_TERTIARY_GROUP_NUMBER]' => $patientData['tertiary_group_number'], '[PATIENT_TERTIARY_SUBSCRIBER_STREET]' => $patientData['tertiary_subscriber_street'], '[PATIENT_TERTIARY_SUBSCRIBER_CITY]' => $patientData['tertiary_subscriber_city'], '[PATIENT_TERTIARY_SUBSCRIBER_STATE]' => $patientData['tertiary_subscriber_state'], '[PATIENT_TERTIARY_SUBSCRIBER_COUNTRY]' => $patientData['tertiary_subscriber_country'], '[PATIENT_TERTIARY_SUBSCRIBER_ZIPCODE]' => $patientData['tertiary_subscriber_zip_code'], '[PATIENT_TERTIARY_SUBSCRIBER_RELATIONSHIP]' => $patientData['tertiary_subscriber_relationship'], '[PATIENT_TERTIARY_SUBSCRIBER_PHONE]' => $patientData['tertiary_subscriber_phone'], '[PATIENT_TERTIARY_SUBSCRIBER_EMPLOYER]' => $patientData['tertiary_subscriber_employer'], '[PATIENT_TERTIARY_SUBSCRIBER_EMPLOYER_CITY]' => $patientData['tertiary_subscriber_employer_city'], '[PATIENT_TERTIARY_SUBSCRIBER_EMPLOYER_STATE]' => $patientData['tertiary_subscriber_employer_state'], '[PATIENT_TERTIARY_SUBSCRIBER_EMPLOYER_COUNTRY]' => $patientData['tertiary_subscriber_employer_country'], '[PATIENT_TERTIARY_SUBSCRIBER_EMPLOYER_ZIPCODE]' => $patientData['tertiary_subscriber_zip_code']);
     $pos = 0;
     foreach ($tokens as $tok) {
         if ($allNeededInfo[$pos] == '' || $allNeededInfo[$pos] == null) {
             $allNeededInfo[$pos] = $patienInformation[$tok];
         }
         $pos = $pos + 1;
     }
     return $allNeededInfo;
 }
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:14,代码来源:Documents.php

示例4: get_PatientTokensData

 public function get_PatientTokensData($pid, $allNeededInfo, $tokens)
 {
     $patientData = $this->getAllPatientData($pid);
     $age = $this->patient->getPatientAgeByDOB($patientData['DOB']);
     $user = new User();
     $patienInformation = ['[PATIENT_NAME]' => $patientData['fname'], '[PATIENT_ID]' => $patientData['pid'], '[PATIENT_FULL_NAME]' => $this->patient->getPatientFullNameByPid($patientData['pid']), '[PATIENT_LAST_NAME]' => $patientData['lname'], '[PATIENT_SEX]' => $patientData['sex'], '[PATIENT_BIRTHDATE]' => $patientData['DOB'], '[PATIENT_MARITAL_STATUS]' => $patientData['marital_status'], '[PATIENT_SOCIAL_SECURITY]' => $patientData['SS'], '[PATIENT_EXTERNAL_ID]' => $patientData['pubpid'], '[PATIENT_DRIVERS_LICENSE]' => $patientData['drivers_license'], '[PATIENT_ADDRESS]' => $patientData['address'], '[PATIENT_CITY]' => $patientData['city'], '[PATIENT_STATE]' => $patientData['state'], '[PATIENT_COUNTRY]' => $patientData['country'], '[PATIENT_ZIPCODE]' => $patientData['zipcode'], '[PATIENT_HOME_PHONE]' => $patientData['home_phone'], '[PATIENT_MOBILE_PHONE]' => $patientData['mobile_phone'], '[PATIENT_WORK_PHONE]' => $patientData['work_phone'], '[PATIENT_EMAIL]' => $patientData['email'], '[PATIENT_MOTHERS_NAME]' => $patientData['mothers_name'], '[PATIENT_GUARDIANS_NAME]' => $patientData['guardians_name'], '[PATIENT_EMERGENCY_CONTACT]' => $patientData['emer_contact'], '[PATIENT_EMERGENCY_PHONE]' => $patientData['emer_phone'], '[PATIENT_PROVIDER]' => is_numeric($patientData['provider']) ? $user->getUserFullNameById($patientData['provider']) : '', '[PATIENT_PHARMACY]' => $patientData['pharmacy'], '[PATIENT_AGE]' => $age['DMY']['years'], '[PATIENT_OCCUPATION]' => $patientData['occupation'], '[PATIENT_EMPLOYEER]' => $patientData['employer_name'], '[PATIENT_RACE]' => $patientData['race'], '[PATIENT_ETHNICITY]' => $patientData['ethnicity'], '[PATIENT_LENGUAGE]' => $patientData['language'], '[PATIENT_PICTURE]' => '<img src="' . $patientData['image'] . '" style="width:100px;height:100px">', '[PATIENT_QRCODE]' => '<img src="' . $patientData['qrcode'] . '" style="width:100px;height:100px">', '[PATIENT_TABACCO]' => 'tabaco', '[PATIENT_ALCOHOL]' => 'alcohol'];
     unset($user);
     foreach ($tokens as $i => $tok) {
         if (isset($patienInformation[$tok]) && ($allNeededInfo[$i] == '' || $allNeededInfo[$i] == null)) {
             $allNeededInfo[$i] = $patienInformation[$tok];
         }
     }
     return $allNeededInfo;
 }
开发者ID:rrabadia89,项目名称:gaiaehr,代码行数:14,代码来源:Documents.php

示例5: get_PatientTokensData

 public function get_PatientTokensData($pid, $allNeededInfo, $tokens)
 {
     // Code reference: Relationship codes as specified by HL7. v2: Added 'Household' concept
     // https://phinvads.cdc.gov/vads/ViewValueSet.action?id=6FD34BBC-617F-DD11-B38D-00188B398520#
     $patientContact = new PatientContacts();
     $contactSelf = $patientContact->getContactByType($pid, 'SEL');
     $contactGuardian = $patientContact->getContactByType($pid, 'GRD');
     $contactMother = $patientContact->getContactByType($pid, 'MTH');
     $contactEmergency = $patientContact->getContactByType($pid, 'EMC');
     $contactEmployer = $patientContact->getContactByType($pid, 'EMR');
     $patientData = $this->getAllPatientData($pid);
     $age = $this->patient->getPatientAgeByDOB($patientData['DOB']);
     $user = new User();
     $patienInformation = ['[PATIENT_NAME]' => $patientData['fname'], '[PATIENT_ID]' => $patientData['pid'], '[PATIENT_FULL_NAME]' => $this->patient->getPatientFullNameByPid($patientData['pid']), '[PATIENT_LAST_NAME]' => $patientData['lname'], '[PATIENT_SEX]' => $patientData['sex'], '[PATIENT_BIRTHDATE]' => $patientData['DOB'], '[PATIENT_MARITAL_STATUS]' => $patientData['marital_status'], '[PATIENT_SOCIAL_SECURITY]' => $patientData['SS'], '[PATIENT_EXTERNAL_ID]' => $patientData['pubpid'], '[PATIENT_DRIVERS_LICENSE]' => $patientData['drivers_license'], '[PATIENT_ADDRESS]' => isset($contactSelf['street_mailing_address']) ? $contactSelf['street_mailing_address'] : '', '[PATIENT_CITY]' => isset($contactSelf['city']) ? $contactSelf['city'] : '', '[PATIENT_STATE]' => isset($contactSelf['state']) ? $contactSelf['state'] : '', '[PATIENT_COUNTRY]' => isset($contactSelf['country']) ? $contactSelf['country'] : '', '[PATIENT_ZIPCODE]' => isset($contactSelf['zip']) ? $contactSelf['zip'] : '', '[PATIENT_HOME_PHONE]' => isset($contactSelf['phone_local_number']) ? $contactSelf['phone_use_code'] . '-' . $contactSelf['phone_area_code'] . '-' . $contactSelf['phone_local_number'] : '', '[PATIENT_MOBILE_PHONE]' => isset($contactSelf['phone_local_number']) ? $contactSelf['phone_use_code'] . '-' . $contactSelf['phone_area_code'] . '-' . $contactSelf['phone_local_number'] : '', '[PATIENT_WORK_PHONE]' => isset($contactSelf['phone_local_number']) ? $contactSelf['phone_use_code'] . '-' . $contactSelf['phone_area_code'] . '-' . $contactSelf['phone_local_number'] : '', '[PATIENT_EMAIL]' => '', '[PATIENT_MOTHERS_NAME]' => isset($contactMother['first_name']) ? Person::fullname($contactMother['first_name'], $contactMother['middle_name'], $contactMother['last_name']) : '', '[PATIENT_GUARDIANS_NAME]' => isset($contactGuardian['first_name']) ? Person::fullname($contactGuardian['first_name'], $contactGuardian['middle_name'], $contactGuardian['last_name']) : '', '[PATIENT_EMERGENCY_CONTACT]' => isset($contactEmergency['first_name']) ? Person::fullname($contactEmergency['first_name'], $contactEmergency['middle_name'], $contactEmergency['last_name']) : '', '[PATIENT_EMERGENCY_PHONE]' => isset($contactEmergency['phone_local_number']) ? $contactEmergency['phone_use_code'] . '-' . $contactEmergency['phone_area_code'] . '-' . $contactEmergency['phone_local_number'] : '', '[PATIENT_PROVIDER]' => is_numeric($patientData['provider']) ? $user->getUserFullNameById($patientData['provider']) : '', '[PATIENT_PHARMACY]' => $patientData['pharmacy'], '[PATIENT_AGE]' => $age['DMY']['years'], '[PATIENT_OCCUPATION]' => $patientData['occupation'], '[PATIENT_EMPLOYEER]' => isset($contactEmployer['first_name']) ? Person::fullname($contactEmployer['first_name'], $contactEmployer['middle_name'], $contactEmployer['last_name']) : '', '[PATIENT_RACE]' => $patientData['race'], '[PATIENT_ETHNICITY]' => $patientData['ethnicity'], '[PATIENT_LENGUAGE]' => $patientData['language'], '[PATIENT_PICTURE]' => '<img src="' . $patientData['image'] . '" style="width:100px;height:100px">', '[PATIENT_QRCODE]' => '<img src="' . $patientData['qrcode'] . '" style="width:100px;height:100px">', '[PATIENT_TABACCO]' => 'tabaco', '[PATIENT_ALCOHOL]' => 'alcohol'];
     unset($user);
     foreach ($tokens as $i => $tok) {
         if (isset($patienInformation[$tok]) && ($allNeededInfo[$i] == '' || $allNeededInfo[$i] == null)) {
             $allNeededInfo[$i] = $patienInformation[$tok];
         }
     }
     return $allNeededInfo;
 }
开发者ID:igez,项目名称:gaiaehr,代码行数:22,代码来源:Documents.php

示例6: getProgressNoteByEid

 /**
  * @param $eid
  * @return array
  *  Naming: "closePatientEncounter"
  */
 public function getProgressNoteByEid($eid)
 {
     $record = $this->getEncounter($eid, true, false);
     unset($filters);
     $encounter = (array) $record['encounter'];
     $user = new User();
     $encounter['service_date'] = date('F j, Y, g:i a', strtotime($encounter['service_date']));
     $encounter['patient_name'] = $this->patient->getPatientFullNameByPid($encounter['pid']);
     $encounter['open_by'] = $user->getUserNameById($encounter['open_uid']);
     $encounter['signed_by'] = $user->getUserNameById($encounter['provider_uid']);
     unset($user);
     /**
      * Add vitals to progress note
      */
     if ($_SESSION['globals']['enable_encounter_vitals']) {
         if (count($encounter['vitals']) == 0) {
             unset($encounter['vitals']);
         }
     }
     /**
      * Add Review of Systems to progress note
      */
     if ($_SESSION['globals']['enable_encounter_review_of_systems']) {
         $foo = [];
         foreach ($encounter['reviewofsystems'] as $key => $value) {
             if ($key != 'id' && $key != 'pid' && $key != 'eid' && $key != 'uid' && $key != 'date') {
                 if ($value != null && $value != 'null') {
                     $value = $value == 1 || $value == '1' ? 'Yes' : 'No';
                     $foo[] = ['name' => $key, 'value' => $value];
                 }
             }
         }
         if (!empty($foo)) {
             $encounter['reviewofsystems'] = $foo;
         }
     }
     /**
      * Add SOAP to progress note
      */
     if ($_SESSION['globals']['enable_encounter_soap']) {
         $dxCodes = $this->diagnosis->getICDByEid($eid, true);
         if (count($dxCodes) > 0) {
             $dxOl = '';
             $dxGroups = [];
             foreach ($dxCodes as $dxCode) {
                 $dxGroups[$dxCode['dx_group']][] = $dxCode;
             }
             foreach ($dxGroups as $dxGroup) {
                 $dxOl .= '<p>Dx Group ' . $dxGroup[0]['dx_group'] . '</p>';
                 $dxOl .= '<ol  class="ProgressNote-ol">';
                 foreach ($dxGroup as $dxCode) {
                     $dxOl .= '<li><span style="font-weight:bold; text-decoration:none">' . $dxCode['code'] . '</span> - ' . $dxCode['long_desc'] . '</li>';
                 }
                 $dxOl .= '</ol>';
             }
         }
         $soap = $this->getSoapByEid($eid);
         $soap['assessment'] = isset($soap['assessment']) ? $soap['assessment'] : '';
         $soap['objective'] = (isset($soap['objective']) ? $soap['objective'] : '') . $this->getObjectiveExtraDataByEid($eid);
         $soap['assessment'] = $soap['assessment'] . (isset($dxOl) ? $dxOl : '');
         $encounter['soap'] = $soap;
     }
     /**
      * Add Dictation to progress note
      */
     if ($_SESSION['globals']['enable_encounter_dictation']) {
         $speech = $this->getDictationByEid($eid);
         if ($speech['dictation']) {
             $encounter['speechdictation'] = $speech;
         }
     }
     return $encounter;
 }
开发者ID:igez,项目名称:gaiaehr,代码行数:78,代码来源:Encounter.php

示例7: getProgressNoteByEid

 /**
  * @param $eid
  * @return array
  *  Naming: "closePatientEncounter"
  */
 public function getProgressNoteByEid($eid)
 {
     $this->db->setSQL("SELECT * FROM encounters WHERE eid = '{$eid}'");
     $encounter = $this->db->fetchRecord(PDO::FETCH_ASSOC);
     $encounter['service_date'] = date('F j, Y, g:i a', strtotime($encounter['service_date']));
     $encounter['patient_name'] = $this->patient->getPatientFullNameByPid($encounter['pid']);
     $encounter['open_by'] = $this->user->getUserNameById($encounter['open_uid']);
     $encounter['signed_by'] = $this->user->getUserNameById($encounter['provider_uid']);
     /**
      * Add vitals to progress note
      */
     $vitals = $this->getVitalsByEid($eid);
     if (count($vitals)) {
         $encounter['vitals'] = $vitals;
     }
     /**
      * Add Review of Systems to progress note
      */
     $ros = $this->getReviewOfSystemsByEid($eid);
     $foo = array();
     foreach ($ros as $key => $value) {
         if ($key != 'id' && $key != 'pid' && $key != 'eid' && $key != 'uid' && $key != 'date') {
             if ($value != null && $value != 'null') {
                 $value = $value == 1 || $value == '1' ? 'Yes' : 'No';
                 $foo[] = array('name' => $key, 'value' => $value);
             }
         }
     }
     if (!empty($foo)) {
         $encounter['reviewofsystems'] = $foo;
     }
     /**
      * Add Review of Systems Checks to progress note
      */
     $rosck = $this->getReviewOfSystemsChecksByEid($eid);
     $foo = array();
     foreach ($rosck[0] as $key => $value) {
         if ($key != 'id' && $key != 'pid' && $key != 'eid' && $key != 'uid' && $key != 'date') {
             if ($value != null && $value != 'null' && $value != '0' || $value != 0) {
                 $value = $value == 1 || $value == '1' ? 'Yes' : 'No';
                 $foo[] = array('name' => $key, 'value' => $value);
             }
         }
     }
     if (!empty($foo)) {
         $encounter['reviewofsystemschecks'] = $foo;
     }
     /**
      * Add SOAP to progress note
      */
     $icdxs = '';
     foreach ($this->diagnosis->getICDByEid($eid) as $code) {
         $icdxs .= '<li><span style="font-weight:bold; text-decoration:none">' . $code['code'] . '</span> - ' . $code['long_desc'] . '</li>';
     }
     //$icdxs = substr($icdxs, 0, -2);
     $soap = $this->getSoapByEid($eid);
     $soap['objective'] .= $this->getObjectiveExtraDataByEid($eid);
     $soap['assessment'] = $soap['assessment'] . '<ul  class="ProgressNote-ul">' . $icdxs . '</ul>';
     $encounter['soap'] = $soap;
     /**
      * Add Dictation to progress note
      */
     $speech = $this->getDictationByEid($eid);
     if ($speech['dictation']) {
         $encounter['speechdictation'] = $speech;
     }
     /**
      * return the encounter array of data
      */
     return $encounter;
 }
开发者ID:nhom5UET,项目名称:tichhophethong,代码行数:76,代码来源:Encounter.php


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