本文整理匯總了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);
}
}