PHP Class OEModule\PASAPI\resources\PatientAppointment

Inheritance: extends BaseResource
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Свойство Type Description
$id
$isNewResource

Protected Properties

Свойство Type Description
$model_class string Class of model that is stored internally for this resource.
$resource_type
$worklist_manager WorklistManager

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
mapAttributes ( WorklistPatient $wp )
mapPatient ( WorklistPatient $wp ) : Patient
mapWhen ( WorklistPatient $wp )
resolveAttributes ( )
resolvePatient ( ) : Patient
resolveWhen ( $default_when )

Method Details

__construct() public méthode

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

delete() public méthode

public delete ( )

mapAttributes() protected méthode

protected mapAttributes ( WorklistPatient $wp )
$wp WorklistPatient

mapPatient() protected méthode

protected mapPatient ( WorklistPatient $wp ) : Patient
$wp WorklistPatient
Résultat Patient

mapWhen() protected méthode

protected mapWhen ( WorklistPatient $wp )
$wp WorklistPatient

resolveAttributes() protected méthode

protected resolveAttributes ( )

resolvePatient() protected méthode

protected resolvePatient ( ) : Patient
Résultat Patient

resolveWhen() protected méthode

protected resolveWhen ( $default_when )

save() public méthode

public save ( )

saveModel() public méthode

public saveModel ( WorklistPatient $model ) : boolean | WorklistPatient
$model WorklistPatient
Résultat boolean | WorklistPatient

shouldValidateRequired() public méthode

public shouldValidateRequired ( ) : boolean
Résultat boolean

validate() public méthode

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
Résultat boolean

Property Details

$id public_oe property

public $id

$isNewResource public_oe property

public $isNewResource

$model_class protected_oe static_oe property

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

$resource_type protected_oe static_oe property

protected static $resource_type

$worklist_manager protected_oe property

protected WorklistManager $worklist_manager
Résultat WorklistManager