Adding openEHR Clients
Less than 1 minute
The openEHR client that will be used by the Business Process Engine (BPE) is determined by the property org.highmed.dsf.bpe.openehr.webservice.factory.class
and loaded using a service loader, which searches for a class of type OpenEhrClientFactory
on startup of the BPE.
The framework currently includes an openEHR Jersey REST client using basic authentication. To use it, add the jar of the dsf-openehr-client-impl
module to the plugin
configuration folder and set the property value to org.highmed.openehr.client.impl.OpenEhrClientJerseyFactory
.
To implement a new openEHR client, the following has to be taken into account:
- The plugin needs to supply an openEHR client factory implementing the interface
OpenEhrClientFactory
from thedsf-openehr-client
module. - The resources folder must contain a file with the name
META-INF/services/org.highmed.openehr.client.OpenEhrClientFactory
containing the name of the new openehr client factory including the full package name. - The client needs to implement the interface
OpenEhrClient
. The interface defines a method executing an openEHR query returning an instance of an openEHRResultSet
.
An example of an openEHR client implementation can be found in the dsf-openehr-client-impl
module.