PHP Class OEModule\PatientTicketing\services\PatientTicketing_QueueSetService

Inheritance: extends Services\ModelService
ファイルを表示 Open project: openeyes/openeyes

Public Properties

Property Type Description
$QUEUESETCATEGORY_SERVICE
$QUEUE_SERVICE

Protected Properties

Property Type Description
$operations
$primary_model

Public Methods

Method Description
canAddPatientToQueueSet ( Patient $patient, $queueset_id ) : boolean Returns true if current rules allow the patient to be added to the given queueset.
getQueueSetForQueue ( integer $queue_id ) : PatientTicketing_QueueSet
getQueueSetForTicket ( $ticket_id ) : PatientTicketing_QueueSet
getQueueSetQueues ( PatientTicketing_QueueSet $qsr, boolean $include_closing = true ) : Queue[]
getQueueSetRoles ( ) : array Returns the roles configured to allow processing of queue sets.
getQueueSetsForCategory ( PatientTicketing_QueueSetCategory $qscr ) : array Get all the queue set resources that are part of the given category.
getQueueSetsForFirm ( Firm $firm = null ) : array
isQueueSetPermissionedForUser ( PatientTicketing_QueueSet $qsr, $user_id ) : boolean
modelToResource ( OEModule\PatientTicketing\models\QueueSet $queueset ) : resource Pass through wrapper to generate QueueSet Resource.
search ( array $params )
setPermisssionedUsers ( integer $queueset_id, $user_ids, $role = null )

Method Details

canAddPatientToQueueSet() public method

Returns true if current rules allow the patient to be added to the given queueset.
public canAddPatientToQueueSet ( Patient $patient, $queueset_id ) : boolean
$patient Patient
$queueset_id
return boolean

getQueueSetForQueue() public method

public getQueueSetForQueue ( integer $queue_id ) : PatientTicketing_QueueSet
$queue_id integer
return PatientTicketing_QueueSet

getQueueSetForTicket() public method

public getQueueSetForTicket ( $ticket_id ) : PatientTicketing_QueueSet
$ticket_id
return PatientTicketing_QueueSet

getQueueSetQueues() public method

public getQueueSetQueues ( PatientTicketing_QueueSet $qsr, boolean $include_closing = true ) : Queue[]
$qsr PatientTicketing_QueueSet
$include_closing boolean
return OEModule\PatientTicketing\models\Queue[]

getQueueSetRoles() public method

Returns the roles configured to allow processing of queue sets.
public getQueueSetRoles ( ) : array
return array

getQueueSetsForCategory() public method

Get all the queue set resources that are part of the given category.
public getQueueSetsForCategory ( PatientTicketing_QueueSetCategory $qscr ) : array
$qscr PatientTicketing_QueueSetCategory
return array

getQueueSetsForFirm() public method

public getQueueSetsForFirm ( Firm $firm = null ) : array
$firm Firm
return array

isQueueSetPermissionedForUser() public method

public isQueueSetPermissionedForUser ( PatientTicketing_QueueSet $qsr, $user_id ) : boolean
$qsr PatientTicketing_QueueSet
$user_id
return boolean

modelToResource() public method

Pass through wrapper to generate QueueSet Resource.
public modelToResource ( OEModule\PatientTicketing\models\QueueSet $queueset ) : resource
$queueset OEModule\PatientTicketing\models\QueueSet
return resource

setPermisssionedUsers() public method

public setPermisssionedUsers ( integer $queueset_id, $user_ids, $role = null )
$queueset_id integer

Property Details

$QUEUESETCATEGORY_SERVICE public_oe static_oe property

public static $QUEUESETCATEGORY_SERVICE

$QUEUE_SERVICE public_oe static_oe property

public static $QUEUE_SERVICE

$operations protected_oe static_oe property

protected static $operations

$primary_model protected_oe static_oe property

protected static $primary_model