PHP 클래스 OphCoTherapyapplication_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

공개 메소드들

메소드 설명
canUpdate ( integer $event_id ) : boolean Therapy applications have no locking at the moment.
getLatestApplicationDrug ( Patient $patient, Episode $episode, string $side ) : OphTrIntravitrealinjection_Treatment_Drug Gets the last drug that was applied for for the given patient, episode and side.
getLatestApplicationSide ( unknown $patient, unknown $episode ) : integer returns the side of the most recent application (see Eye for definition of constants that indicate side or both).
getLetterApplicationDiagnosisBoth ( Patient $patient ) : string get the therapy application diagnosis description for all sides that have one for this patient.
getLetterApplicationDiagnosisForSide ( $patient, $episode, $side ) return the diagnosis string for the patient on the given side.
getLetterApplicationDiagnosisLeft ( Patient $patient ) : mixed get the therapy application diagnosis description for the left.
getLetterApplicationDiagnosisRight ( Patient $patient ) : mixed get the therapy application diagnosis description for the right if there is one.
getLetterApplicationTreatmentBoth ( Patient $patient ) : string get the therapy application treatment for all sides that have one for this patient.
getLetterApplicationTreatmentForSide ( $patient, $episode, $side ) : mixed Get the therapy application treatment for the given side if there is one.
getLetterApplicationTreatmentLeft ( $patient ) : mixed get the left side therapy application treatment if there is one.
getLetterApplicationTreatmentRight ( $patient ) : mixed get the right side therapy application treatment if there is one.
getLevel1Disorders ( ) : Disorder[] return all the disorders for level 1.
getLevel2Disorders ( integer $disorder_id ) : Disorder[] return all the disorders that are level 2 for the given $disorder_id.

메소드 상세

canUpdate() 공개 메소드

Therapy applications have no locking at the moment.
public canUpdate ( integer $event_id ) : boolean
$event_id integer
리턴 boolean

getLatestApplicationDrug() 공개 메소드

Gets the last drug that was applied for for the given patient, episode and side.
public getLatestApplicationDrug ( Patient $patient, Episode $episode, string $side ) : OphTrIntravitrealinjection_Treatment_Drug
$patient Patient
$episode Episode
$side string
리턴 OphTrIntravitrealinjection_Treatment_Drug

getLatestApplicationSide() 공개 메소드

returns the side of the most recent application (see Eye for definition of constants that indicate side or both).
public getLatestApplicationSide ( unknown $patient, unknown $episode ) : integer
$patient unknown
$episode unknown
리턴 integer $side

getLetterApplicationDiagnosisBoth() 공개 메소드

get the therapy application diagnosis description for all sides that have one for this patient.
public getLetterApplicationDiagnosisBoth ( Patient $patient ) : string
$patient Patient
리턴 string

getLetterApplicationDiagnosisForSide() 공개 메소드

return the diagnosis string for the patient on the given side.
public getLetterApplicationDiagnosisForSide ( $patient, $episode, $side )
$patient
$episode
$side

getLetterApplicationDiagnosisLeft() 공개 메소드

get the therapy application diagnosis description for the left.
public getLetterApplicationDiagnosisLeft ( Patient $patient ) : mixed
$patient Patient
리턴 mixed

getLetterApplicationDiagnosisRight() 공개 메소드

get the therapy application diagnosis description for the right if there is one.
public getLetterApplicationDiagnosisRight ( Patient $patient ) : mixed
$patient Patient
리턴 mixed

getLetterApplicationTreatmentBoth() 공개 메소드

get the therapy application treatment for all sides that have one for this patient.
public getLetterApplicationTreatmentBoth ( Patient $patient ) : string
$patient Patient
리턴 string

getLetterApplicationTreatmentForSide() 공개 메소드

Get the therapy application treatment for the given side if there is one.
public getLetterApplicationTreatmentForSide ( $patient, $episode, $side ) : mixed
$patient
$episode
$side
리턴 mixed

getLetterApplicationTreatmentLeft() 공개 메소드

get the left side therapy application treatment if there is one.
public getLetterApplicationTreatmentLeft ( $patient ) : mixed
$patient
리턴 mixed

getLetterApplicationTreatmentRight() 공개 메소드

get the right side therapy application treatment if there is one.
public getLetterApplicationTreatmentRight ( $patient ) : mixed
$patient
리턴 mixed

getLevel1Disorders() 공개 메소드

return all the disorders for level 1.
public getLevel1Disorders ( ) : Disorder[]
리턴 Disorder[]

getLevel2Disorders() 공개 메소드

return all the disorders that are level 2 for the given $disorder_id.
public getLevel2Disorders ( integer $disorder_id ) : Disorder[]
$disorder_id integer
리턴 Disorder[]