PHP Класс 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 .
Автор: OpenEyes ([email protected])
Наследование: extends BaseResource
Показать файл Открыть проект

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

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

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

Свойство Тип Описание
$id_tags array Valid tags for defining a patient identifier.
$resource_type

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

Метод Описание
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.

Защищенные методы

Метод Описание
getModelForClass ( $class ) : mixed Abstraction for getting model instance of class.
methodNotImplemented ( $method_name ) Convenience wrapper for marking a method not implemented (to generalise the exception for this).
patientNotFound ( ) Wrapper for patient not found behaviour.
resolveModelHospitalNumber ( )
resolveModelId ( ) : mixed Resolve the model by the given Patient Id.
resolveModelNHSNumber ( )
resolveModelPasId ( )

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

getModel() публичный Метод

Function to resolve the referenced Patient model for this id resource.
public getModel ( ) : Patient
Результат Patient

getModelForClass() защищенный Метод

Abstraction for getting model instance of class.
protected getModelForClass ( $class ) : mixed
$class
Результат mixed

methodNotImplemented() защищенный Метод

Convenience wrapper for marking a method not implemented (to generalise the exception for this).
protected methodNotImplemented ( $method_name )
$method_name

patientNotFound() защищенный Метод

Wrapper for patient not found behaviour.
protected patientNotFound ( )

resolveModelHospitalNumber() защищенный Метод

resolveModelId() защищенный Метод

Resolve the model by the given Patient Id.
protected resolveModelId ( ) : mixed
Результат mixed

resolveModelNHSNumber() защищенный Метод

protected resolveModelNHSNumber ( )

resolveModelPasId() защищенный Метод

protected resolveModelPasId ( )

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

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

$id_tags защищенное свойство

Valid tags for defining a patient identifier.
protected array $id_tags
Результат array

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

public $isNewResource

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

protected static $resource_type