PHP Class Services\ServiceManager

Inheritance: extends CApplicationComponent
Datei anzeigen Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$internal_services

Public Methods

Method Description
__get ( string $name ) : Service
describeFhirServerResources ( ) : array Describe FHIR REST server resources supported by the system.
fhirIdToReference ( string $fhir_type, string $fhir_id ) : InternalReference | null Convert a FHIR resource type and ID to an internal service reference.
getFhirService ( $fhir_type, array $profiles ) : InternalService | null Find an internal service for the specified FHIR resource type, using profiles to differentiate if necessary.
getService ( string $name ) : Service | null
init ( )
listFhirSupportedProfiles ( ) : ResourceReference[] List FHIR 'supported' profiles for the system.
referenceToFhirUrl ( InternalReference $ref ) : string Convert an internal reference to a FHIR relative URL.
serviceAndIdToFhirUrl ( string $service_name, integer $id ) : string Convert an internal service name and ID to a FHIR relative URL.

Method Details

__get() public method

public __get ( string $name ) : Service
$name string
return Service

describeFhirServerResources() public method

http://hl7.org/implement/standards/fhir/conformance-definitions.html#Conformance.rest.resource

fhirIdToReference() public method

Convert a FHIR resource type and ID to an internal service reference.
public fhirIdToReference ( string $fhir_type, string $fhir_id ) : InternalReference | null
$fhir_type string
$fhir_id string
return InternalReference | null Null if no mapping found

getFhirService() public method

Find an internal service for the specified FHIR resource type, using profiles to differentiate if necessary.
public getFhirService ( $fhir_type, array $profiles ) : InternalService | null
$profiles array
return InternalService | null

getService() public method

public getService ( string $name ) : Service | null
$name string
return Service | null

init() public method

public init ( )

listFhirSupportedProfiles() public method

http://hl7.org/implement/standards/fhir/conformance-definitions.html#Conformance.profile From our point of view, this means profiles specific to each internal resource type.
public listFhirSupportedProfiles ( ) : ResourceReference[]
return ResourceReference[]

referenceToFhirUrl() public method

Convert an internal reference to a FHIR relative URL.
public referenceToFhirUrl ( InternalReference $ref ) : string
$ref InternalReference
return string

serviceAndIdToFhirUrl() public method

Convert an internal service name and ID to a FHIR relative URL.
public serviceAndIdToFhirUrl ( string $service_name, integer $id ) : string
$service_name string
$id integer
return string

Property Details

$internal_services public_oe property

public $internal_services