OpenMRSVisitService

public interface OpenMRSVisitService

Interface for handling visits on the OpenMRS server.

Methods

createVisit

Visit createVisit(String configName, Visit visit)

Creates the given visit on the OpenMRS server. Configuration with the given configName will be used while performing this action.

Parameters:
  • configName – the name of the configuration
  • visit – the visit to be created
Returns:

the created visit

createVisitType

VisitType createVisitType(String configName, VisitType encounterType)

Creates the given visitType on the OpenMRS server. Configuration with the given configName will be used while performing this action.

Parameters:
  • configName – the name of the configuration
  • encounterType – the visit type to be created
Returns:

the created visit type

deleteVisit

void deleteVisit(String configName, String uuid)

Deletes the visit with the given uuid from the OpenMRS server. Configuration with the given configName will be used while performing this action.

Parameters:
  • configName – the name of the configuration
  • uuid – the UUID of the visit

deleteVisitType

void deleteVisitType(String configName, String uuid)

Deletes the visit type with the given uuid. Configuration with the given configName will be used while performing this action.

Parameters:
  • configName – the name of the configuration
  • uuid – the UUID of the encounter type

getVisitByUuid

Visit getVisitByUuid(String configName, String uuid)

Returns the visit with the given uuid. Configuration with the given configName will be used while performing this action.

Parameters:
  • configName – the name of the configuration
  • uuid – the UUID of the visit
Returns:

the visit with the given UUID

getVisitTypeByUuid

VisitType getVisitTypeByUuid(String configName, String uuid)

Returns the visit type with the given uuid. Configuration with the given configName will be used while performing this action.

Parameters:
  • configName – the name of the configuration
  • uuid – the UUID of the visit type
Returns:

the visit type with the given UUID