PHP Class ReportController

Inheritance: extends BaseController
显示文件 Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$renderPatientPanel
$siteId
$subspecialtyId

Protected Properties

Property Type Description
$_diagnosis_cache
$_patient_cache
$_treatment_cache

Public Methods

Method Description
accessRules ( )
actionAjaxReport ( )
actionApplications ( )
actionArvoPresentation ( $startDate, $endDate )
actionCataractComplicationTotal ( )
actionDiagnoses ( )
actionGetDrugs ( )
actionIndex ( )
actionInjections ( )
actionLetters ( )
actionOperation ( )
actionPendingApplications ( )
actionPrescribedDrugs ( )
actionReportData ( )
init ( )
reportCataractOperations ( array $params ) : array Generates a cataract outcomes report.
reportOperations ( $params = [] )

Protected Methods

Method Description
appendInjectionValues ( &$record, $patient_id, $left_treatment_id = null, $right_treatment_id = null )
appendSubmissionValues ( array &$record, integer $event_id ) Appends information about the submission of the application to the $record.
array2Csv ( array $data )
getApplications ( $date_from, $date_to, $firm = null )
getDiagnosisString ( $diagnosis_id ) : string
getPatient ( $patient_id )
getTreatment ( $treatment_id )
getTreatmentString ( $treatment_id ) : string
sendCsvHeaders ( $filename )
sideCompliance ( $side, $row ) : string Get the compliance string for the given side on the data $row.

Private Methods

Method Description
getArvo ( $rotation )
loadReport ( ) : ReportInterface

Method Details

accessRules() public method

public accessRules ( )

actionAjaxReport() public method

public actionAjaxReport ( )

actionApplications() public method

public actionApplications ( )

actionArvoPresentation() public method

public actionArvoPresentation ( $startDate, $endDate )

actionCataractComplicationTotal() public method

actionDiagnoses() public method

public actionDiagnoses ( )

actionGetDrugs() public method

public actionGetDrugs ( )

actionIndex() public method

public actionIndex ( )

actionInjections() public method

public actionInjections ( )

actionLetters() public method

public actionLetters ( )

actionOperation() public method

public actionOperation ( )

actionPendingApplications() public method

actionPrescribedDrugs() public method

actionReportData() public method

public actionReportData ( )

appendInjectionValues() protected method

protected appendInjectionValues ( &$record, $patient_id, $left_treatment_id = null, $right_treatment_id = null )

appendSubmissionValues() protected method

Appends information about the submission of the application to the $record.
protected appendSubmissionValues ( array &$record, integer $event_id )
$record array
$event_id integer

array2Csv() protected method

protected array2Csv ( array $data )
$data array

getApplications() protected method

protected getApplications ( $date_from, $date_to, $firm = null )

getDiagnosisString() protected method

protected getDiagnosisString ( $diagnosis_id ) : string
$diagnosis_id
return string

getPatient() protected method

protected getPatient ( $patient_id )

getTreatment() protected method

protected getTreatment ( $treatment_id )

getTreatmentString() protected method

protected getTreatmentString ( $treatment_id ) : string
$treatment_id
return string

init() public method

public init ( )

reportCataractOperations() public method

inputs (all optional): - firm_id - surgeon_id - assistant_id - supervising_surgeon_id - date_from - date_to outputs: - number of cataracts (number) - age of patients (mean and range) - eyes (numbers and percentage for left/right) - final visual acuity (mean and range) - pc ruptures (number and percentage) - complications (number and percentage)
public reportCataractOperations ( array $params ) : array
$params array
return array

reportOperations() public method

public reportOperations ( $params = [] )

sendCsvHeaders() protected method

protected sendCsvHeaders ( $filename )

sideCompliance() protected method

Get the compliance string for the given side on the data $row.
protected sideCompliance ( $side, $row ) : string
$side
$row
return string

Property Details

$_diagnosis_cache protected_oe property

protected $_diagnosis_cache

$_patient_cache protected_oe property

protected $_patient_cache

$_treatment_cache protected_oe property

protected $_treatment_cache

$renderPatientPanel public_oe property

public $renderPatientPanel

$siteId public_oe property

public $siteId

$subspecialtyId public_oe property

public $subspecialtyId