PHP Класс OphTrIntravitrealinjection_ReportInjections

(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 BaseReport
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$date_from
$date_to
$drug_id
$given_by_id
$injections
$post_va
$pre_antisept_drug_id
$pre_va
$summary

Защищенные свойства (Protected)

Свойство Тип Описание
$_application_event_type_id
$_current_patient_id
$_drug_cache
$_examination_event_type_id
$_patient_vas

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

Метод Описание
attributeLabels ( )
attributeNames ( )
description ( )
rules ( )
run ( )
toCSV ( ) : string Output the report in CSV format.

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

Метод Описание
appendExaminationValues ( &$record, $patient_id, $event_date )
extractSummaryData ( $patient_data )
getApplicationEventTypeID ( )
getBestVaFromReading ( $side, OEModule\OphCiExamination\models\Element_OphCiExamination_VisualAcuity $va ) : string Simple wrapper function for getting a string representation of the best VA reading for a side from the given element.
getDiagnosisData ( $patient_id, $close_to_date ) a) From the injection management element under Examination event saved before the injection event - usually on the same day b) If no injection management saved then this can be obtained from the application event If there is an application event saved before the injection started for the patient c) if there is no application then diagnoses for the episode.
getDiagnosisDataFromEvent ( $patient_id, $close_to_date, $event_type_id, $model )
getDiagnosisName ( $disorder_id )
getDrugById ( $drug_id ) : OphTrIntravitrealinjection_Treatment_Drug | null simple cache for drug objects.
getDrugString ( $drug_id ) : string Return the printable string for the drug.
getExaminationEventTypeId ( )
getGivenByName ( $user_id )
getInjections ( $date_from, $date_to, $given_by_user, $drug, $pre_antisept_drug )
getLensStatus ( $lens_status_id )
getPatientVAElements ( $patient_id ) : Element_OphCiExamination_VisualAcuity[] in order to suck up too much memory for larger reports, when this method receives a call for a new patient, it ditches the cache it has of the previous patient.
getPreAntiseptDrugString ( $drug_id )
getSummaryInjections ( $date_from, $date_to, $given_by_user, $drug, $pre_antisept_drug )

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

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

protected appendExaminationValues ( &$record, $patient_id, $event_date )

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

public attributeLabels ( )

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

public attributeNames ( )

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

public description ( )

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

protected extractSummaryData ( $patient_data )

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

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

Simple wrapper function for getting a string representation of the best VA reading for a side from the given element.
protected getBestVaFromReading ( $side, OEModule\OphCiExamination\models\Element_OphCiExamination_VisualAcuity $va ) : string
$side
$va OEModule\OphCiExamination\models\Element_OphCiExamination_VisualAcuity
Результат string

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

a) From the injection management element under Examination event saved before the injection event - usually on the same day b) If no injection management saved then this can be obtained from the application event If there is an application event saved before the injection started for the patient c) if there is no application then diagnoses for the episode.
protected getDiagnosisData ( $patient_id, $close_to_date )

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

protected getDiagnosisDataFromEvent ( $patient_id, $close_to_date, $event_type_id, $model )

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

protected getDiagnosisName ( $disorder_id )

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

simple cache for drug objects.
protected getDrugById ( $drug_id ) : OphTrIntravitrealinjection_Treatment_Drug | null
$drug_id
Результат OphTrIntravitrealinjection_Treatment_Drug | null

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

Return the printable string for the drug.
protected getDrugString ( $drug_id ) : string
$drug_id
Результат string

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

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

protected getGivenByName ( $user_id )

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

protected getInjections ( $date_from, $date_to, $given_by_user, $drug, $pre_antisept_drug )

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

protected getLensStatus ( $lens_status_id )

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

in order to suck up too much memory for larger reports, when this method receives a call for a new patient, it ditches the cache it has of the previous patient.
protected getPatientVAElements ( $patient_id ) : Element_OphCiExamination_VisualAcuity[]
$patient_id
Результат Element_OphCiExamination_VisualAcuity[]

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

protected getPreAntiseptDrugString ( $drug_id )

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

protected getSummaryInjections ( $date_from, $date_to, $given_by_user, $drug, $pre_antisept_drug )

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

public rules ( )

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

public run ( )

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

Output the report in CSV format.
public toCSV ( ) : string
Результат string

Описание свойств

$_application_event_type_id защищенное свойство

protected $_application_event_type_id

$_current_patient_id защищенное свойство

protected $_current_patient_id

$_drug_cache защищенное свойство

protected $_drug_cache

$_examination_event_type_id защищенное свойство

protected $_examination_event_type_id

$_patient_vas защищенное свойство

protected $_patient_vas

$date_from публичное свойство

public $date_from

$date_to публичное свойство

public $date_to

$drug_id публичное свойство

public $drug_id

$given_by_id публичное свойство

public $given_by_id

$injections публичное свойство

public $injections

$post_va публичное свойство

public $post_va

$pre_antisept_drug_id публичное свойство

public $pre_antisept_drug_id

$pre_va публичное свойство

public $pre_va

$summary публичное свойство

public $summary