当前位置: 首页>>代码示例>>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;未经允许,请勿转载。