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


PHP Patient::getEpisodeForCurrentSubspecialty方法代碼示例

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


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

示例1: getLetterPrescription

 /**
  * get the prescription letter text for the latest prescription in the episode for the patient.
  *
  * @param Patient $patient
  * @param Episode $episode
  *
  * @return string
  */
 public function getLetterPrescription($patient)
 {
     if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
         if ($details = $this->getElementForLatestEventInEpisode($episode, 'Element_OphDrPrescription_Details')) {
             return $details->getLetterText();
         }
     }
 }
開發者ID:openeyes,項目名稱:openeyes,代碼行數:16,代碼來源:OphDrPrescription_API.php

示例2: getLetterProcedures

 /**
  * Return the list of procedures as a string for use in correspondence for the given patient and episode.
  * if the $snomed_terms is true, return the snomed_term, otherwise the standard text term.
  *
  * @param Patient $patient
  * @param Episode $episode
  * @param bool    $snomed_terms
  *
  * @return string
  */
 public function getLetterProcedures($patient)
 {
     $return = '';
     if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
         if ($plist = $this->getElementForLatestEventInEpisode($episode, 'Element_OphTrOperationnote_ProcedureList')) {
             foreach ($plist->procedures as $i => $procedure) {
                 if ($i) {
                     $return .= ', ';
                 }
                 $return .= $plist->eye->adjective . ' ' . $procedure->term;
             }
         }
     }
     return $return;
 }
開發者ID:openeyes,項目名稱:openeyes,代碼行數:25,代碼來源:OphTrOperationnote_API.php

示例3: getLetterApplicationDiagnosisRight

 /**
  * get the therapy application diagnosis description for the right if there is one.
  *
  * @param Patient $patient
  *
  * @return mixed
  */
 public function getLetterApplicationDiagnosisRight($patient)
 {
     if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
         return $this->getLetterApplicationDiagnosisForSide($patient, $episode, 'right');
     }
 }
開發者ID:openeyes,項目名稱:openeyes,代碼行數:13,代碼來源:OphCoTherapyapplication_API.php

示例4: getGlaucomaRisk

 /**
  * Get the glaucoma risk as a string for the patient - we get this from the most recent examination that has a glaucoma risk recording
  * as it's possible that it's not going to be recorded each time.
  *
  * @param \Patient $patient
  * @return mixed
  */
 public function getGlaucomaRisk($patient)
 {
     if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
         $event_type = $this->getEventType();
         if ($el = $this->getMostRecentElementInEpisode($episode->id, $event_type->id, 'models\\Element_OphCiExamination_GlaucomaRisk')) {
             return $el->risk->name;
         }
     }
 }
開發者ID:across-health,項目名稱:OphCiExamination,代碼行數:16,代碼來源:OphCiExamination_API.php

示例5: getLetterProcedures

 /**
  * get the procedures for this patient and episode as a string for use in correspondence.
  *
  * @param Patient $patient
  * @param Episode $episode
  *
  * @return string
  */
 public function getLetterProcedures($patient)
 {
     if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
         $return = '';
         if ($operation = $this->getElementForLatestEventInEpisode($episode, 'Element_OphTrOperationbooking_Operation')) {
             foreach ($operation->procedures as $i => $procedure) {
                 if ($i) {
                     $return .= ', ';
                 }
                 $return .= $operation->eye->adjective . ' ' . $procedure->term;
             }
         }
         return strtolower($return);
     }
 }
開發者ID:openeyes,項目名稱:openeyes,代碼行數:23,代碼來源:OphTrOperationbooking_API.php


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