PHP Class Services\InternalService

Inheritance: extends Service
Datei anzeigen Open project: openeyes/openeyes

Protected Properties

Property Type Description
$operations Operations supported by this service.
$search_params Search parameters supported by this service as a map of name => type.

Public Methods

Method 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.

Protected Methods

Method Description
fhirToResource ( StdClass $fhirObject ) : resource

Method Details

create() public method

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

delete() public method

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

fhirCreate() public method

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

fhirToResource() protected method

protected fhirToResource ( StdClass $fhirObject ) : resource
$fhirObject StdClass
return resource

fhirUpdate() public method

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

getLastModified() public method

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

getResourceClass() public static method

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

getServiceName() public static method

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

getSupportedOperations() public static method

public static getSupportedOperations ( ) : string[]
return string[]

getSupportedSearchParams() public static method

public static getSupportedSearchParams ( ) : string[]
return string[]

read() public method

Fetch a single resource by ID.
public read ( scalar $id ) : resource
$id scalar
return resource

supportsOperation() public static method

public static supportsOperation ( string $operation ) : boolean
$operation string
return boolean

update() public method

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