PHP 클래스 OEModule\PatientTicketing\components\PatientTicketing_API

상속: extends BaseAPI
파일 보기 프로젝트 열기: openeyes/openeyes

공개 프로퍼티들

프로퍼티 타입 설명
$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.

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