PHP Class 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 .
Author: OpenEyes ([email protected])
Inheritance: extends BaseReport
Mostra file Open project: openeyes/openeyes

Public Properties

Property Type Description
$date_from
$date_to
$drug_id
$given_by_id
$injections
$post_va
$pre_antisept_drug_id
$pre_va
$summary

Protected Properties

Property Type Description
$_application_event_type_id
$_current_patient_id
$_drug_cache
$_examination_event_type_id
$_patient_vas

Public Methods

Method Description
attributeLabels ( )
attributeNames ( )
description ( )
rules ( )
run ( )
toCSV ( ) : string Output the report in CSV format.

Protected Methods

Method Description
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 )

Method Details

appendExaminationValues() protected method

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

attributeLabels() public method

public attributeLabels ( )

attributeNames() public method

public attributeNames ( )

description() public method

public description ( )

extractSummaryData() protected method

protected extractSummaryData ( $patient_data )

getApplicationEventTypeID() protected method

getBestVaFromReading() protected method

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
return string

getDiagnosisData() protected method

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 method

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

getDiagnosisName() protected method

protected getDiagnosisName ( $disorder_id )

getDrugById() protected method

simple cache for drug objects.
protected getDrugById ( $drug_id ) : OphTrIntravitrealinjection_Treatment_Drug | null
$drug_id
return OphTrIntravitrealinjection_Treatment_Drug | null

getDrugString() protected method

Return the printable string for the drug.
protected getDrugString ( $drug_id ) : string
$drug_id
return string

getExaminationEventTypeId() protected method

getGivenByName() protected method

protected getGivenByName ( $user_id )

getInjections() protected method

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

getLensStatus() protected method

protected getLensStatus ( $lens_status_id )

getPatientVAElements() protected method

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
return Element_OphCiExamination_VisualAcuity[]

getPreAntiseptDrugString() protected method

protected getPreAntiseptDrugString ( $drug_id )

getSummaryInjections() protected method

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

rules() public method

public rules ( )

run() public method

public run ( )

toCSV() public method

Output the report in CSV format.
public toCSV ( ) : string
return string

Property Details

$_application_event_type_id protected_oe property

protected $_application_event_type_id

$_current_patient_id protected_oe property

protected $_current_patient_id

$_drug_cache protected_oe property

protected $_drug_cache

$_examination_event_type_id protected_oe property

protected $_examination_event_type_id

$_patient_vas protected_oe property

protected $_patient_vas

$date_from public_oe property

public $date_from

$date_to public_oe property

public $date_to

$drug_id public_oe property

public $drug_id

$given_by_id public_oe property

public $given_by_id

$injections public_oe property

public $injections

$post_va public_oe property

public $post_va

$pre_antisept_drug_id public_oe property

public $pre_antisept_drug_id

$pre_va public_oe property

public $pre_va

$summary public_oe property

public $summary