PHP Класс OEModule\PatientTicketing\components\PatientTicketing_API

Наследование: extends BaseAPI
Показать файл Открыть проект

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

Свойство Тип Описание
$QUEUESETCATEGORY_SERVICE
$QUEUE_ASSIGNMENT_WIDGET
$TICKET_SERVICE
$TICKET_SUMMARY_WIDGET

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

Метод Описание
canAddPatientToQueue ( Patient $patient, Queue $queue ) : mixed
createTicketForEvent ( Event $event, Queue $initial_queue, CWebUser $user, Firm $firm, $data ) : Ticket
createTicketForPatient ( Patient $patient, Queue $initial_queue, CWebUser $user, Firm $firm, $data ) : Ticket
extractQueueData ( Queue $queue, $data, boolean $validate = false ) : array Filters and purifies passed array to get data relevant to a ticket queue assignment.
getFollowUp ( $ticket_id ) : array | boolean Returns a followup value from a patient ticket if present.
getFollowUpFromAutoSave ( $patient_id, $current_queue_id )
getInitialQueues ( Firm $firm ) : Queue[] Returns the initial queues a patient ticket can be created against.
getLatestFollowUp ( $patient ) : array | boolean Returns the most recent followup value for a patient.
getMenuItems ( $position = 1 )
getQueueAssignmentFormURI ( ) : string Simple function to standardise access to the retrieving the Queue Assignment Form.
getQueueForUserAndFirm ( CWebUser $user, Firm $firm, integer $id ) Verifies that the provided queue id is an id for a Queue that the User can add to as the given Firm At the moment, no verification takes place beyond the fact that the id is valid and active.
getQueueSetList ( Firm $firm, Patient $patient = null ) : mixed Returns the Queue Sets a patient ticket can be created in for the given firm.
getTicketForEvent ( $event ) : mixed
updateTicketForEvent ( Event $event ) *

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

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

public canAddPatientToQueue ( Patient $patient, Queue $queue ) : mixed
$patient Patient
$queue OEModule\PatientTicketing\models\Queue
Результат mixed

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

public createTicketForEvent ( Event $event, Queue $initial_queue, CWebUser $user, Firm $firm, $data ) : Ticket
$event Event
$initial_queue OEModule\PatientTicketing\models\Queue
$user CWebUser
$firm Firm
$data
Результат OEModule\PatientTicketing\models\Ticket

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

public createTicketForPatient ( Patient $patient, Queue $initial_queue, CWebUser $user, Firm $firm, $data ) : Ticket
$patient Patient
$initial_queue OEModule\PatientTicketing\models\Queue
$user CWebUser
$firm Firm
$data
Результат OEModule\PatientTicketing\models\Ticket

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

Filters and purifies passed array to get data relevant to a ticket queue assignment.
public extractQueueData ( Queue $queue, $data, boolean $validate = false ) : array
$queue OEModule\PatientTicketing\models\Queue
$data
$validate boolean
Результат array

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

Returns a followup value from a patient ticket if present.
public getFollowUp ( $ticket_id ) : array | boolean
$ticket_id
Результат array | boolean followup value or false if not present

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

public getFollowUpFromAutoSave ( $patient_id, $current_queue_id )

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

Returns the initial queues a patient ticket can be created against.
public getInitialQueues ( Firm $firm ) : Queue[]
$firm Firm
Результат OEModule\PatientTicketing\models\Queue[]

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

Returns the most recent followup value for a patient.
public getLatestFollowUp ( $patient ) : array | boolean
$patient
Результат array | boolean followup value or false if not present

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

public getMenuItems ( $position = 1 )

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

Simple function to standardise access to the retrieving the Queue Assignment Form.
public getQueueAssignmentFormURI ( ) : string
Результат string

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

Verifies that the provided queue id is an id for a Queue that the User can add to as the given Firm At the moment, no verification takes place beyond the fact that the id is valid and active.
public getQueueForUserAndFirm ( CWebUser $user, Firm $firm, integer $id )
$user CWebUser
$firm Firm
$id integer

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

(Note: firm filtering is not currently implemented).
public getQueueSetList ( Firm $firm, Patient $patient = null ) : mixed
$firm Firm
$patient Patient
Результат mixed

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

public getTicketForEvent ( $event ) : mixed
$event
Результат mixed

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

*
public updateTicketForEvent ( Event $event )
$event Event

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

$QUEUESETCATEGORY_SERVICE публичное статическое свойство

public static $QUEUESETCATEGORY_SERVICE

$QUEUE_ASSIGNMENT_WIDGET публичное статическое свойство

public static $QUEUE_ASSIGNMENT_WIDGET

$TICKET_SERVICE публичное статическое свойство

public static $TICKET_SERVICE

$TICKET_SUMMARY_WIDGET публичное статическое свойство

public static $TICKET_SUMMARY_WIDGET