PHP Класс OphTrOperationbooking_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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
canUpdate ( $event_id )
findBookingByEventID ( $event_id )
findSiteForBookingEvent ( $event )
findTheatreForBookingEvent ( $event )
generateSessions ( $args = [] ) * TODO: this should be refactored at some point
getAdmissionDate ( $patient )
getBookingsForEpisode ( $episode_id )
getEyeForOperation ( $event_id )
getLatestCompletedOperationBookingDiagnosis ( $patient ) : string Gets latest booking diagnosis from completed operation booking or defaults to episode diagnosis.
getLetterProcedures ( Patient $patient ) : string get the procedures for this patient and episode as a string for use in correspondence.
getMostRecentBookingForEpisode ( Episode $episode ) : OphTrOperationbooking_Operation_Booking Get the most recent booking for the patient in the given episode.
getOpenBookingsForEpisode ( $episode_id ) : OphTrOperationbooking_Operation_Booking[] Gets 'open' bookings for the specified episode A booking is deemed open if it has no operation note linked to it.
getOperationForEvent ( $event_id )
getOperationProcedures ( $operation_id )
getOperationsForEpisode ( $episode_id )
getProceduresForOperation ( $event_id )
setOperationStatus ( $event_id, $status_name )
showDeleteIcon ( $event_id )

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

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

public canUpdate ( $event_id )

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

public findBookingByEventID ( $event_id )

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

public findSiteForBookingEvent ( $event )

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

public findTheatreForBookingEvent ( $event )

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

* TODO: this should be refactored at some point
public generateSessions ( $args = [] )

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

public getAdmissionDate ( $patient )

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

public getBookingsForEpisode ( $episode_id )

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

public getEyeForOperation ( $event_id )

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

Gets latest booking diagnosis from completed operation booking or defaults to episode diagnosis.
public getLatestCompletedOperationBookingDiagnosis ( $patient ) : string
Результат string

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

get the procedures for this patient and episode as a string for use in correspondence.
public getLetterProcedures ( Patient $patient ) : string
$patient Patient
Результат string

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

Get the most recent booking for the patient in the given episode.
public getMostRecentBookingForEpisode ( Episode $episode ) : OphTrOperationbooking_Operation_Booking
$episode Episode
Результат OphTrOperationbooking_Operation_Booking

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

Gets 'open' bookings for the specified episode A booking is deemed open if it has no operation note linked to it.
public getOpenBookingsForEpisode ( $episode_id ) : OphTrOperationbooking_Operation_Booking[]
Результат OphTrOperationbooking_Operation_Booking[]

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

public getOperationForEvent ( $event_id )

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

public getOperationProcedures ( $operation_id )

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

public getOperationsForEpisode ( $episode_id )

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

public getProceduresForOperation ( $event_id )

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

public setOperationStatus ( $event_id, $status_name )

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

public showDeleteIcon ( $event_id )