PHP Class Services\InternalService

Inheritance: extends Service
Afficher le fichier Open project: openeyes/openeyes

Protected Properties

Свойство Type Description
$operations Operations supported by this service.
$search_params Search parameters supported by this service as a map of name => type.

Méthodes publiques

Méthode Description
create ( Resource $resource ) : scalar Create a new resource and return its ID.
delete ( scalar $id ) Delete a resource by ID.
fhirCreate ( StdClass $fhirObject ) : ResourceReference Create a new resource using the supplied FHIR object.
fhirUpdate ( scalar $id, StdClass $fhirObject ) Update the specified resource using the supplied FHIR object.
getLastModified ( scalar $id ) : integer Get the last modified date for a resource without fetching it.
getResourceClass ( ) : string Get the class name of the resource type managed by this service.
getServiceName ( ) : string Get the name of this service, ie the unqualified class name of the resource type it handles.
getSupportedOperations ( ) : string[]
getSupportedSearchParams ( ) : string[]
read ( scalar $id ) : resource Fetch a single resource by ID.
search ( array $params ) : resource[] Search for resources according to the parameters passed.
supportsOperation ( string $operation ) : boolean
update ( scalar $id, Resource $resource ) Update a resource by ID.

Méthodes protégées

Méthode Description
fhirToResource ( StdClass $fhirObject ) : resource

Method Details

create() public méthode

Create a new resource and return its ID.
public create ( Resource $resource ) : scalar
$resource Resource
Résultat scalar

delete() public méthode

Delete a resource by ID.
public delete ( scalar $id )
$id scalar

fhirCreate() public méthode

Create a new resource using the supplied FHIR object.
public fhirCreate ( StdClass $fhirObject ) : ResourceReference
$fhirObject StdClass
Résultat ResourceReference

fhirToResource() protected méthode

protected fhirToResource ( StdClass $fhirObject ) : resource
$fhirObject StdClass
Résultat resource

fhirUpdate() public méthode

Update the specified resource using the supplied FHIR object.
public fhirUpdate ( scalar $id, StdClass $fhirObject )
$id scalar
$fhirObject StdClass

getLastModified() public méthode

Get the last modified date for a resource without fetching it.
public getLastModified ( scalar $id ) : integer
$id scalar
Résultat integer

getResourceClass() public static méthode

Get the class name of the resource type managed by this service.
public static getResourceClass ( ) : string
Résultat string

getServiceName() public static méthode

Get the name of this service, ie the unqualified class name of the resource type it handles.
public static getServiceName ( ) : string
Résultat string

getSupportedOperations() public static méthode

public static getSupportedOperations ( ) : string[]
Résultat string[]

getSupportedSearchParams() public static méthode

public static getSupportedSearchParams ( ) : string[]
Résultat string[]

read() public méthode

Fetch a single resource by ID.
public read ( scalar $id ) : resource
$id scalar
Résultat resource

supportsOperation() public static méthode

public static supportsOperation ( string $operation ) : boolean
$operation string
Résultat boolean

update() public méthode

Update a resource by ID.
public update ( scalar $id, Resource $resource )
$id scalar
$resource Resource

Property Details

$operations protected_oe static_oe property

Operations supported by this service.
protected static $operations

$search_params protected_oe static_oe property

Search parameters supported by this service as a map of name => type.
protected static $search_params