PHP Class OEModule\PatientTicketing\services\PatientTicketing_TicketService

Inheritance: extends Services\ModelService
Afficher le fichier Open project: openeyes/openeyes

Protected Properties

Свойство Type Description
$primary_model

Méthodes publiques

Méthode 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 méthode

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

getTicketActionLabel() public méthode

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

getTicketEpisode() public méthode

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

getTicketsForPatient() public méthode

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

modelToResource() public méthode

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

Property Details

$primary_model protected_oe static_oe property

protected static $primary_model