PHP Class OEModule\PASAPI\resources\PatientAppointment

Inheritance: extends BaseResource
Show file Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$id
$isNewResource

Protected Properties

Property Type Description
$model_class string Class of model that is stored internally for this resource.
$resource_type
$worklist_manager WorklistManager

Public Methods

Method Description
__construct ( $version, array $options = [] ) PatientAppointment constructor.
delete ( )
save ( )
saveModel ( WorklistPatient $model ) : boolean | WorklistPatient
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.

Protected Methods

Method Description
mapAttributes ( WorklistPatient $wp )
mapPatient ( WorklistPatient $wp ) : Patient
mapWhen ( WorklistPatient $wp )
resolveAttributes ( )
resolvePatient ( ) : Patient
resolveWhen ( $default_when )

Method Details

__construct() public method

PatientAppointment constructor.
public __construct ( $version, array $options = [] )
$version
$options array

delete() public method

public delete ( )

mapAttributes() protected method

protected mapAttributes ( WorklistPatient $wp )
$wp WorklistPatient

mapPatient() protected method

protected mapPatient ( WorklistPatient $wp ) : Patient
$wp WorklistPatient
return Patient

mapWhen() protected method

protected mapWhen ( WorklistPatient $wp )
$wp WorklistPatient

resolveAttributes() protected method

protected resolveAttributes ( )

resolvePatient() protected method

protected resolvePatient ( ) : Patient
return Patient

resolveWhen() protected method

protected resolveWhen ( $default_when )

save() public method

public save ( )

saveModel() public method

public saveModel ( WorklistPatient $model ) : boolean | WorklistPatient
$model WorklistPatient
return boolean | WorklistPatient

shouldValidateRequired() public method

public shouldValidateRequired ( ) : boolean
return boolean

validate() public method

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
return boolean

Property Details

$id public property

public $id

$isNewResource public property

public $isNewResource

$model_class protected static property

Class of model that is stored internally for this resource.
protected static string $model_class
return string

$resource_type protected static property

protected static $resource_type

$worklist_manager protected property

protected WorklistManager $worklist_manager
return WorklistManager