From 46c8f97ceb10c39c4bc8c7cd8d46f5d69929515f Mon Sep 17 00:00:00 2001
From: Jayasanka Weerasinghe <33048395+jayasanka-sack@users.noreply.github.com>
Date: Fri, 28 Jun 2024 13:55:10 +0100
Subject: [PATCH] Disallow overlapping visits
Set the `visits.allowOverlappingVisits` global property to `false` to prevent overlapping visits. This property is `true` by default in the core.
---
.../globalproperties/globalproperties-core_data.xml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/distro/configuration/globalproperties/globalproperties-core_data.xml b/distro/configuration/globalproperties/globalproperties-core_data.xml
index 5d6c604d8..a816f9fb8 100644
--- a/distro/configuration/globalproperties/globalproperties-core_data.xml
+++ b/distro/configuration/globalproperties/globalproperties-core_data.xml
@@ -11,6 +11,10 @@
visits.assignmentHandler
org.openmrs.api.handler.ExistingVisitAssignmentHandler
+
+
+ visits.allowOverlappingVisits
+ false
-
\ No newline at end of file
+