Property | Type | Description | |
---|---|---|---|
$isNewResource |
Property | Type | Description | |
---|---|---|---|
$model_class | |||
$resource_type |
Method | Description | |
---|---|---|
save ( ) | If this Patient resource points to an already existing Patient, then update otherwise create a new one. | |
saveModel ( |
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. |
Method | Description | |
---|---|---|
deleteAddresses ( Contact $contact, $except_ids = [] ) | ||
mapAddresses ( Contact $contact ) | Will create or update addresses for the given contact based on matching by postcode. | |
mapEthnicGroup ( |
Handle mapping the ethnic group resource to the patient model. | |
mapGender ( |
||
mapGp ( |
Handle mapping of the Gp resource code to the patient model. | |
mapNhsNumberStatus ( |
||
mapPractice ( |
Handle mapping of the resource PracticeCode to the Patient model. |
public save ( ) |