PHP Класс OphTrIntravitrealinjection_API

(C) Moorfields Eye Hospital NHS Foundation Trust, 2008-2011 (C) OpenEyes Foundation, 2011-2013 This file is part of OpenEyes. OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see .
Автор: OpenEyes ([email protected])
Наследование: extends BaseAPI
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

getLegacyAPI() защищенный Метод

cache and return a legacy injection api instance.
protected getLegacyAPI ( ) : mixed
Результат mixed

getLetterPostInjectionDrops() публичный Метод

get the text string describing the post injection drops needed for the last injection event in the episode.
public getLetterPostInjectionDrops ( $patient ) : string
$patient
Результат string

getLetterTreatmentDrugBoth() публичный Метод

get the most recent drug for both sides in the current subspecialty episode for the patient.
public getLetterTreatmentDrugBoth ( $patient ) : string
$patient
Результат string

getLetterTreatmentDrugForSide() публичный Метод

get the drug name for the patient, episode and side from the most recent injection event, if it exists.
public getLetterTreatmentDrugForSide ( $patient, $episode, $side ) : mixed
$patient
$episode
$side
Результат mixed

getLetterTreatmentDrugLeft() публичный Метод

get the most recent drug for the left side in the current subspecialty episode for the patient.
public getLetterTreatmentDrugLeft ( $patient ) : mixed
$patient
Результат mixed

getLetterTreatmentDrugRight() публичный Метод

get the most recent drug for the right side in the current subspecialty episode for the patient.
public getLetterTreatmentDrugRight ( $patient ) : mixed
$patient
Результат mixed

getLetterTreatmentNumberBoth() публичный Метод

get the most recent treatment number for both eyes in the current subspecialty episode for the patient.
public getLetterTreatmentNumberBoth ( Patient $patient )
$patient Patient

getLetterTreatmentNumberForSide() публичный Метод

get the most recent treatment number for the patient, episode and side.
public getLetterTreatmentNumberForSide ( $patient, $episode, $side ) : mixed
$patient
$episode
$side
Результат mixed

getLetterTreatmentNumberLeft() публичный Метод

get the most recent treatment number for the left side in the current subspecialty episode for the patient.
public getLetterTreatmentNumberLeft ( $patient ) : mixed
$patient
Результат mixed

getLetterTreatmentNumberRight() публичный Метод

get the most recent treatment number for the right side in the current subspecialty episode for the patient.
public getLetterTreatmentNumberRight ( $patient ) : mixed
$patient
Результат mixed

getPreviousTreatmentForSide() защищенный Метод

get the most recent treatment element that has data for the given eye side.
protected getPreviousTreatmentForSide ( $patient, $episode, $side ) : Element_OphTrIntravitrealinjection_Treatment
$patient
$episode
$side
Результат Element_OphTrIntravitrealinjection_Treatment

previousInjections() публичный Метод

return the set of treatment elements from previous injection events in descending order.
public previousInjections ( Patient $patient, Episode $episode, string $side, Drug $drug = null ) : array
$patient Patient
$episode Episode
$side string
$drug Drug
Результат array {$side . '_drug_id' => integer, $side . '_number' => integer, 'date' => datetime}[] - array of treatment elements for the eye and optional drug

previousInjectionsByEvent() публичный Метод

return only previous injections given a starting event id.
public previousInjectionsByEvent ( $event_id, $side, $drug )

previousInjectionsForPatientEpisode() защищенный Метод

caching method for previous injections store.
protected previousInjectionsForPatientEpisode ( Patient $patient, Episode $episode ) : Element_OphTrIntravitrealinjection_Treatment[]
$patient Patient
$episode Episode
Результат Element_OphTrIntravitrealinjection_Treatment[]