@Handler public class ExistingVisitAssignmentHandler extends BaseEncounterVisitHandler
|Constructor and Description|
|Modifier and Type||Method and Description|
Implementations of this method should look at the given
locale- optional locale to specify. If none is passed,
Context.getLocale()should be used
public void beforeCreateEncounter(Encounter encounter)
encounterand choose whether or not it should be assigned to a
Visitthat is already open or if it should be part of a new visit.
Encounter.setVisit(Visit)with the outcome. The visit assigned to the encounter will be persisted to the database after this method is returned, so the handler is not required to save it.
encounter- the new unsaved encounter in question of whether to assign to a visit
Should assign existing visit if match found Should not assign visit if no match found Should not assign visit which stopped before encounter date
Copyright © 2021 OpenMRS Inc.. All rights reserved.