From 58e7020d94459953d4bc1ddc3289ddd17276ed37 Mon Sep 17 00:00:00 2001 From: Ujjawal Prabhat Date: Thu, 21 May 2026 21:49:44 +0800 Subject: [PATCH 1/3] O3-5682: Ship visitQueueNumber visit attribute type --- api/src/main/resources/liquibase.xml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/api/src/main/resources/liquibase.xml b/api/src/main/resources/liquibase.xml index 5e4c38b..af1425d 100644 --- a/api/src/main/resources/liquibase.xml +++ b/api/src/main/resources/liquibase.xml @@ -749,4 +749,27 @@ + + + + SELECT COUNT(*) FROM visit_attribute_type WHERE uuid = 'c0c579b0-8e59-401d-8a4a-976a0b183519'; + + + + Insert the "Visit Queue Number" visit attribute type used by the queue screen to display ticket numbers. + UUID matches the default value of `visitQueueNumberAttributeUuid` in @openmrs/esm-service-queues-app. + + + + + + + + + + + + + + From 60ebfd624579de3d3ceff35aa9837d96ae807bf8 Mon Sep 17 00:00:00 2001 From: Ujjawal Prabhat Date: Fri, 22 May 2026 03:14:57 +0800 Subject: [PATCH 2/3] Change date_created column to use valueComputed --- api/src/main/resources/liquibase.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/resources/liquibase.xml b/api/src/main/resources/liquibase.xml index af1425d..2081369 100644 --- a/api/src/main/resources/liquibase.xml +++ b/api/src/main/resources/liquibase.xml @@ -766,7 +766,7 @@ - + From 45581c5d971db1cca51f539e50ebd3da61df4b11 Mon Sep 17 00:00:00 2001 From: Ujjawal Prabhat Date: Fri, 22 May 2026 21:44:26 +0800 Subject: [PATCH 3/3] Use ConcurrentHashMap for thread-safe ticket reads --- .../queue/api/digitalSignage/QueueTicketAssignments.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/org/openmrs/module/queue/api/digitalSignage/QueueTicketAssignments.java b/api/src/main/java/org/openmrs/module/queue/api/digitalSignage/QueueTicketAssignments.java index 5359633..b7d769d 100644 --- a/api/src/main/java/org/openmrs/module/queue/api/digitalSignage/QueueTicketAssignments.java +++ b/api/src/main/java/org/openmrs/module/queue/api/digitalSignage/QueueTicketAssignments.java @@ -11,6 +11,7 @@ import java.util.HashMap; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; @@ -25,7 +26,7 @@ public class QueueTicketAssignments { * The object has: service point/room name as key for ease of search and update and object with * status and ticket number */ - private static final Map ACTIVE_QUEUE_TICKETS = new HashMap<>(); + private static final Map ACTIVE_QUEUE_TICKETS = new ConcurrentHashMap<>(); /** * We want to control access to the ACTIVE_QUEUE_TICKETS so that requests are queued