PHP Class OEModule\PASAPI\resources\PatientId
(C) OpenEyes Foundation, 2016
This file is part of OpenEyes.
OpenEyes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
OpenEyes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with OpenEyes in a file titled COPYING. If not, see
.
Afficher le fichier
Open project: openeyes/openeyes
Méthodes publiques
Protected Properties
Méthodes publiques
Méthode |
Description |
|
getModel ( ) : Patient |
Function to resolve the referenced Patient model for this id resource. |
|
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
Method Details
getModel()
public méthode
Function to resolve the referenced Patient model for this id resource.
public getModel ( ) : Patient |
Résultat |
Patient |
|
getModelForClass()
protected méthode
Abstraction for getting model instance of class.
methodNotImplemented()
protected méthode
Convenience wrapper for marking a method not implemented (to generalise the exception for this).
patientNotFound()
protected méthode
Wrapper for patient not found behaviour.
resolveModelHospitalNumber()
protected méthode
resolveModelId()
protected méthode
Resolve the model by the given Patient Id.
resolveModelNHSNumber()
protected méthode
resolveModelPasId()
protected méthode
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.
Property Details
$isNewResource public_oe property
$resource_type protected_oe static_oe property
protected static $resource_type |