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
파일 보기 프로젝트 열기: openeyes/openeyes

공개 메소드들

메소드 설명
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[]