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
Afficher le fichier Open project: openeyes/openeyes

Méthodes publiques

Свойство Type Description
$date_from
$date_to
$drug_id
$given_by_id
$injections
$post_va
$pre_antisept_drug_id
$pre_va
$summary

Protected Properties

Свойство Type Description
$_application_event_type_id
$_current_patient_id
$_drug_cache
$_examination_event_type_id
$_patient_vas

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

attributeLabels() public méthode

public attributeLabels ( )

attributeNames() public méthode

public attributeNames ( )

description() public méthode

public description ( )

extractSummaryData() protected méthode

protected extractSummaryData ( $patient_data )

getApplicationEventTypeID() protected méthode

getBestVaFromReading() protected méthode

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
Résultat string

getDiagnosisData() protected méthode

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 méthode

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

getDiagnosisName() protected méthode

protected getDiagnosisName ( $disorder_id )

getDrugById() protected méthode

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

getDrugString() protected méthode

Return the printable string for the drug.
protected getDrugString ( $drug_id ) : string
$drug_id
Résultat string

getExaminationEventTypeId() protected méthode

getGivenByName() protected méthode

protected getGivenByName ( $user_id )

getInjections() protected méthode

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

getLensStatus() protected méthode

protected getLensStatus ( $lens_status_id )

getPatientVAElements() protected méthode

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
Résultat Element_OphCiExamination_VisualAcuity[]

getPreAntiseptDrugString() protected méthode

protected getPreAntiseptDrugString ( $drug_id )

getSummaryInjections() protected méthode

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

rules() public méthode

public rules ( )

run() public méthode

public run ( )

toCSV() public méthode

Output the report in CSV format.
public toCSV ( ) : string
Résultat 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