PHP Class Services\DataObject

Inheritance: implements services\FhirCompatible
ファイルを表示 Open project: openeyes/openeyes

Protected Properties

Property Type Description
$fhir_type The FHIR type that this class corresponds to, if left unset the unqualified name of the class is assumed.

Public Methods

Method Description
__construct ( array $values )
fromFhir ( $fhir_object ) : DataObject Convert a FHIR object into a service layer object.
fromFhirValues ( array $values ) : DataObject
getFhirType ( ) : string Get the FHIR type that this class corresponds to.
isEqual ( DataObject $object ) : boolean Compare two DataObjects in terms of their public properties.
toFhir ( ) : StdClass Convert this object to it's FHIR representation.
toFhirValues ( ) : array

Protected Methods

Method Description
getFhirTemplate ( )
getServiceClass ( $fhir_type )

Private Methods

Method Description
subObjectsToFhir ( &$values )

Method Details

__construct() public method

public __construct ( array $values )
$values array

fromFhir() public static method

Convert a FHIR object into a service layer object.
public static fromFhir ( $fhir_object ) : DataObject
return DataObject

fromFhirValues() public static method

public static fromFhirValues ( array $values ) : DataObject
$values array
return DataObject

getFhirTemplate() protected static method

protected static getFhirTemplate ( )

getFhirType() public static method

Get the FHIR type that this class corresponds to.
public static getFhirType ( ) : string
return string

getServiceClass() protected static method

protected static getServiceClass ( $fhir_type )

isEqual() public method

Compare two DataObjects in terms of their public properties.
public isEqual ( DataObject $object ) : boolean
$object DataObject
return boolean

toFhir() public method

Convert this object to it's FHIR representation.
public toFhir ( ) : StdClass
return StdClass

toFhirValues() public method

public toFhirValues ( ) : array
return array

Property Details

$fhir_type protected_oe static_oe property

The FHIR type that this class corresponds to, if left unset the unqualified name of the class is assumed.
protected static $fhir_type