PHP Класс BaseAPI

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getElementForLatestEventInEpisode ( Episode $episode, string $element ) : unknown gets the element of type $element for the given patient in the given episode.
getEventsInEpisode ( Patient $patient, Episode $episode ) : array gets all the events in the episode for the event type this API is for, for the given patient, most recent first.
getMostRecentElementInEpisode ( $episode_id, $event_type_id, $model, string $before_date = '' ) : boolean gets the most recent instance of a specific element in the current episode
getMostRecentEventInEpisode ( $episode_id, $event_type_id )

Защищенные методы

Метод Описание
getEventType ( ) : EventType gets the event type for the api instance.
getModuleClass ( ) : mixed Returns the non-namespaced module class of the module API Instance.

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

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

gets the element of type $element for the given patient in the given episode.
public getElementForLatestEventInEpisode ( Episode $episode, string $element ) : unknown
$episode Episode - the episode
$element string - the element class
Результат unknown - the element type requested, or null

getEventType() защищенный Метод

gets the event type for the api instance.
protected getEventType ( ) : EventType
Результат EventType $event_type

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

gets all the events in the episode for the event type this API is for, for the given patient, most recent first.
public getEventsInEpisode ( Patient $patient, Episode $episode ) : array
$patient Patient - the patient
$episode Episode - the episode
Результат array - list of events of the type for this API instance

getModuleClass() защищенный Метод

Returns the non-namespaced module class of the module API Instance.
protected getModuleClass ( ) : mixed
Результат mixed

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

gets the most recent instance of a specific element in the current episode
public getMostRecentElementInEpisode ( $episode_id, $event_type_id, $model, string $before_date = '' ) : boolean
$episode_id
$event_type_id
$model
$before_date string
Результат boolean

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

public getMostRecentEventInEpisode ( $episode_id, $event_type_id )