PHP Класс OEModule\PASAPI\resources\Patient

Наследование: extends BaseResource
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$isNewResource

Защищенные свойства (Protected)

Свойство Тип Описание
$model_class
$resource_type

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

Метод Описание
save ( ) If this Patient resource points to an already existing Patient, then update otherwise create a new one.
saveModel ( Patient $patient ) : boolean | null Assign the Patient resource attributes to the given Patient model and save it.
shouldValidateRequired ( ) : boolean
validate ( ) : boolean As a primary resource (i.e. mapped to external resource) we need to ensure we have an id for tracking the resource in the system.

Приватные методы

Метод Описание
deleteAddresses ( Contact $contact, $except_ids = [] )
mapAddresses ( Contact $contact ) Will create or update addresses for the given contact based on matching by postcode.
mapEthnicGroup ( Patient $patient ) Handle mapping the ethnic group resource to the patient model.
mapGender ( Patient $patient )
mapGp ( Patient $patient ) Handle mapping of the Gp resource code to the patient model.
mapNhsNumberStatus ( Patient $patient )
mapPractice ( Patient $patient ) Handle mapping of the resource PracticeCode to the Patient model.

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

save() публичный метод

If this Patient resource points to an already existing Patient, then update otherwise create a new one.
public save ( )

saveModel() публичный метод

Assign the Patient resource attributes to the given Patient model and save it.
public saveModel ( Patient $patient ) : boolean | null
$patient Patient
Результат boolean | null

shouldValidateRequired() публичный метод

public shouldValidateRequired ( ) : boolean
Результат boolean

validate() публичный метод

As a primary resource (i.e. mapped to external resource) we need to ensure we have an id for tracking the resource in the system.
public validate ( ) : boolean
Результат boolean

Описание свойств

$isNewResource публичное свойство

public $isNewResource

$model_class защищенное статическое свойство

protected static $model_class

$resource_type защищенное статическое свойство

protected static $resource_type