PHP 클래스 BaseAPI

파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 메소드들

메소드 설명
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 )