PHP Class Services\Resource

Inheritance: extends DataObject
Show file Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Property Type Description
$fhir_prefix Prefix to use for FHIR IDs if this is not the only resource that can map to its FHIR type.
$id
$last_modified

Public Methods

Method Description
fromFhir ( $fhirObject )
getFhirPrefix ( ) : string | null Get prefix for FHIR IDs or null if none.
getId ( ) : integer | null Get the internal ID of this resource (null if not an internal resource).
getLastModified ( ) : integer | null Get last modified timestamp of this resource (null if not an internal resource).
getOeFhirProfile ( ) : string Get the OpenEyes FHIR profile this resource conforms to.
getVersionId ( ) : integer | null Get version ID of this resource (null if not an internal resource).
toFhir ( )

Method Details

fromFhir() public static method

public static fromFhir ( $fhirObject )

getFhirPrefix() public static method

Get prefix for FHIR IDs or null if none.
public static getFhirPrefix ( ) : string | null
return string | null

getId() public method

Get the internal ID of this resource (null if not an internal resource).
public getId ( ) : integer | null
return integer | null

getLastModified() public method

Get last modified timestamp of this resource (null if not an internal resource).
public getLastModified ( ) : integer | null
return integer | null

getOeFhirProfile() public static method

Get the OpenEyes FHIR profile this resource conforms to.
public static getOeFhirProfile ( ) : string
return string

getVersionId() public method

Get version ID of this resource (null if not an internal resource).
public getVersionId ( ) : integer | null
return integer | null

toFhir() public method

public toFhir ( )

Property Details

$fhir_prefix protected static property

Prefix to use for FHIR IDs if this is not the only resource that can map to its FHIR type.
protected static $fhir_prefix

$id protected property

protected $id

$last_modified protected property

protected $last_modified