Method | Description | |
---|---|---|
getLetterPostInjectionDrops ( $patient ) : string | get the text string describing the post injection drops needed for the last injection event in the episode. | |
getLetterTreatmentDrugBoth ( $patient ) : string | get the most recent drug for both sides in the current subspecialty episode for the patient. | |
getLetterTreatmentDrugForSide ( $patient, $episode, $side ) : mixed | get the drug name for the patient, episode and side from the most recent injection event, if it exists. | |
getLetterTreatmentDrugLeft ( $patient ) : mixed | get the most recent drug for the left side in the current subspecialty episode for the patient. | |
getLetterTreatmentDrugRight ( $patient ) : mixed | get the most recent drug for the right side in the current subspecialty episode for the patient. | |
getLetterTreatmentNumberBoth ( Patient $patient ) | get the most recent treatment number for both eyes in the current subspecialty episode for the patient. | |
getLetterTreatmentNumberForSide ( $patient, $episode, $side ) : mixed | get the most recent treatment number for the patient, episode and side. | |
getLetterTreatmentNumberLeft ( $patient ) : mixed | get the most recent treatment number for the left side in the current subspecialty episode for the patient. | |
getLetterTreatmentNumberRight ( $patient ) : mixed | get the most recent treatment number for the right side in the current subspecialty episode for the patient. | |
previousInjections ( Patient $patient, Episode $episode, string $side, Drug $drug = null ) : array | return the set of treatment elements from previous injection events in descending order. | |
previousInjectionsByEvent ( $event_id, $side, $drug ) | return only previous injections given a starting event id. |
Method | Description | |
---|---|---|
getLegacyAPI ( ) : mixed | cache and return a legacy injection api instance. | |
getPreviousTreatmentForSide ( $patient, $episode, $side ) : Element_OphTrIntravitrealinjection_Treatment | get the most recent treatment element that has data for the given eye side. | |
previousInjectionsForPatientEpisode ( Patient $patient, Episode $episode ) : Element_OphTrIntravitrealinjection_Treatment[] | caching method for previous injections store. |
protected getLegacyAPI ( ) : mixed | ||
return | mixed |
public getLetterPostInjectionDrops ( $patient ) : string | ||
$patient | ||
return | string |
public getLetterTreatmentDrugBoth ( $patient ) : string | ||
$patient | ||
return | string |
public getLetterTreatmentDrugForSide ( $patient, $episode, $side ) : mixed | ||
$patient | ||
$episode | ||
$side | ||
return | mixed |
public getLetterTreatmentDrugLeft ( $patient ) : mixed | ||
$patient | ||
return | mixed |
public getLetterTreatmentDrugRight ( $patient ) : mixed | ||
$patient | ||
return | mixed |
public getLetterTreatmentNumberBoth ( Patient $patient ) | ||
$patient | Patient |
public getLetterTreatmentNumberForSide ( $patient, $episode, $side ) : mixed | ||
$patient | ||
$episode | ||
$side | ||
return | mixed |
public getLetterTreatmentNumberLeft ( $patient ) : mixed | ||
$patient | ||
return | mixed |
public getLetterTreatmentNumberRight ( $patient ) : mixed | ||
$patient | ||
return | mixed |
protected getPreviousTreatmentForSide ( $patient, $episode, $side ) : Element_OphTrIntravitrealinjection_Treatment | ||
$patient | ||
$episode | ||
$side | ||
return | Element_OphTrIntravitrealinjection_Treatment |
public previousInjections ( Patient $patient, Episode $episode, string $side, Drug $drug = null ) : array | ||
$patient | Patient | |
$episode | Episode | |
$side | string | |
$drug | Drug | |
return | array | {$side . '_drug_id' => integer, $side . '_number' => integer, 'date' => datetime}[] - array of treatment elements for the eye and optional drug |
public previousInjectionsByEvent ( $event_id, $side, $drug ) |
protected previousInjectionsForPatientEpisode ( Patient $patient, Episode $episode ) : Element_OphTrIntravitrealinjection_Treatment[] | ||
$patient | Patient | |
$episode | Episode | |
return | Element_OphTrIntravitrealinjection_Treatment[] |