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
파일 보기 프로젝트 열기: openeyes/openeyes

공개 프로퍼티들

프로퍼티 타입 설명
$isNewResource

보호된 프로퍼티들

프로퍼티 타입 설명
$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