PHP Class OEModule\PatientTicketing\services\PatientTicketing_TicketService

Inheritance: extends Services\ModelService
Show file Open project: openeyes/openeyes

Protected Properties

Property Type Description
$primary_model

Public Methods

Method Description
getCategoryForTicket ( Ticket $ticket ) : QueueSetCategory Get the queueset category for the given ticket.
getTicketActionLabel ( Ticket $ticket ) : array | mixed | null | string
getTicketEpisode ( Ticket $ticket ) : Episode | null Get the episode for the ticket if one exists.
getTicketsForPatient ( Patient $patient, boolean $active = true ) : Ticket[]
modelToResource ( OEModule\PatientTicketing\models\Ticket $ticket ) : resource Pass through wrapper to generate Queue Resource.

Method Details

getCategoryForTicket() public method

Get the queueset category for the given ticket.
public getCategoryForTicket ( Ticket $ticket ) : QueueSetCategory
$ticket OEModule\PatientTicketing\models\Ticket
return OEModule\PatientTicketing\models\QueueSetCategory

getTicketActionLabel() public method

public getTicketActionLabel ( Ticket $ticket ) : array | mixed | null | string
$ticket OEModule\PatientTicketing\models\Ticket
return array | mixed | null | string

getTicketEpisode() public method

Get the episode for the ticket if one exists.
public getTicketEpisode ( Ticket $ticket ) : Episode | null
$ticket OEModule\PatientTicketing\models\Ticket
return Episode | null

getTicketsForPatient() public method

public getTicketsForPatient ( Patient $patient, boolean $active = true ) : Ticket[]
$patient Patient
$active boolean
return OEModule\PatientTicketing\models\Ticket[]

modelToResource() public method

Pass through wrapper to generate Queue Resource.
public modelToResource ( OEModule\PatientTicketing\models\Ticket $ticket ) : resource
$ticket OEModule\PatientTicketing\models\Ticket
return resource

Property Details

$primary_model protected static property

protected static $primary_model