本文整理汇总了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();
}
}
}
示例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;
}
示例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');
}
}
示例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;
}
}
}
示例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);
}
}