OpenMRSProviderService¶
-
public interface
OpenMRSProviderService
¶ Interface for handling providers on the OpenMRS server.
Methods¶
createProvider¶
-
Provider
createProvider
(String configName, Provider provider)¶ Creates the given provider on the OpenMRS server. Configuration with the given
configName
will be used while performing this action.Parameters: - configName – the name of the configuration
- provider – the provider to be created
Returns: the created provider
deleteProvider¶
-
void
deleteProvider
(String configName, String uuid)¶ Deletes the provider with the given
uuid
. If the provider with the givenuuid
doesn’t exist an error will be logged. Configuration with the givenconfigName
will be used while performing this action.Parameters: - configName – the name of the configuration
- uuid – the UUID of the provider
getProviderByUuid¶
-
Provider
getProviderByUuid
(String configName, String uuid)¶ Returns the provider with the given
uuid
. Configuration with the givenconfigName
will be used while performing this action.Parameters: - configName – the name of the configuration
- uuid – the UUID of the provider
Returns: the provider with the given UUID, null if the provider doesn’t exist