From c2159a37964770b5ba7fc73fcea36e98b5fe3610 Mon Sep 17 00:00:00 2001 From: Hamsavarthini R Date: Tue, 17 Mar 2026 17:09:27 +0530 Subject: [PATCH 1/3] BAH-4504 Add support for additional section on registration create patient page --- openmrs/apps/registration/v2/app.json | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/openmrs/apps/registration/v2/app.json b/openmrs/apps/registration/v2/app.json index d112030a4..ef47812a7 100644 --- a/openmrs/apps/registration/v2/app.json +++ b/openmrs/apps/registration/v2/app.json @@ -117,6 +117,40 @@ }, "showExtraPatientIdentifiersSection": true }, + "registrationForm": { + "sections": [ + { + "name": "Basic Details", + "translationKey": "REGISTRATION_SECTION_BASIC_DETAILS", + "controls": [ + { "type": "profile" }, + { "type": "address" }, + { "type": "contactInfo" } + ] + }, + { + "name": "Additional Information", + "translationKey": "REGISTRATION_SECTION_ADDITIONAL_INFO", + "controls": [ + { "type": "additionalInfo" } + ] + }, + { + "name": "Identifiers", + "translationKey": "REGISTRATION_SECTION_IDENTIFIERS", + "controls": [ + { "type": "additionalIdentifiers" } + ] + }, + { + "name": "Relationships", + "translationKey": "REGISTRATION_SECTION_RELATIONSHIPS", + "controls": [ + { "type": "relationships" } + ] + } + ] + }, "fieldValidation": { "firstName": { "pattern": "^[a-zA-Z]+$", From 19457f68e9779657fb7b21c71c0cd032ea1f33b6 Mon Sep 17 00:00:00 2001 From: Varun prasad Date: Fri, 20 Mar 2026 10:00:14 +0530 Subject: [PATCH 2/3] BAH-4504|Add. Locales and Configs --- openmrs/apps/registration/v2/app.json | 28 ++++++++++++++---------- openmrs/i18n/registration/locale_en.json | 8 ++++++- openmrs/i18n/registration/locale_es.json | 8 ++++++- 3 files changed, 31 insertions(+), 13 deletions(-) diff --git a/openmrs/apps/registration/v2/app.json b/openmrs/apps/registration/v2/app.json index ef47812a7..41e51c89b 100644 --- a/openmrs/apps/registration/v2/app.json +++ b/openmrs/apps/registration/v2/app.json @@ -121,33 +121,39 @@ "sections": [ { "name": "Basic Details", - "translationKey": "REGISTRATION_SECTION_BASIC_DETAILS", "controls": [ - { "type": "profile" }, - { "type": "address" }, - { "type": "contactInfo" } + { + "type": "profile", + "titleTranslationKey": "REGISTRATION_SECTION_BASIC_INFO" + }, + { + "type": "address", + "titleTranslationKey": "REGISTRATION_SECTION_ADDRESS_DETAILS" + }, + { + "type": "contactInfo", + "titleTranslationKey": "REGISTRATION_SECTION_CONTACT_DETAILS" + } ] }, { "name": "Additional Information", "translationKey": "REGISTRATION_SECTION_ADDITIONAL_INFO", "controls": [ - { "type": "additionalInfo" } + { + "type": "additionalInfo" + } ] }, { "name": "Identifiers", "translationKey": "REGISTRATION_SECTION_IDENTIFIERS", - "controls": [ - { "type": "additionalIdentifiers" } - ] + "controls": [{ "type": "additionalIdentifiers" }] }, { "name": "Relationships", "translationKey": "REGISTRATION_SECTION_RELATIONSHIPS", - "controls": [ - { "type": "relationships" } - ] + "controls": [{ "type": "relationships" }] } ] }, diff --git a/openmrs/i18n/registration/locale_en.json b/openmrs/i18n/registration/locale_en.json index 379673477..2d38a7d74 100644 --- a/openmrs/i18n/registration/locale_en.json +++ b/openmrs/i18n/registration/locale_en.json @@ -55,5 +55,11 @@ "REGISTRATION_LAST_NAME_VALIDATION": "Last name should contain only alphabets without space", "REGISTRATION_EMAIL_VALIDATION": "Should be a valid email address", "REGISTRATION_PHONE_NUMBER_VALIDATION": "Phone number should be numbers between 6 to 15 digits", - "REGISTRATION_ALTERNATE_PHONE_NUMBER_VALIDATION": "Alternate phone number should be numbers between 6 to 15 digits" + "REGISTRATION_ALTERNATE_PHONE_NUMBER_VALIDATION": "Alternate phone number should be numbers between 6 to 15 digits", + "REGISTRATION_SECTION_BASIC_INFO": "Basic Information", + "REGISTRATION_SECTION_ADDRESS_DETAILS": "Address Information", + "REGISTRATION_SECTION_CONTACT_DETAILS": "Contact information", + "REGISTRATION_SECTION_ADDITIONAL_INFO": "Additional information", + "REGISTRATION_SECTION_IDENTIFIERS": "Additional Identifiers", + "REGISTRATION_SECTION_RELATIONSHIPS": "Relationships Information" } diff --git a/openmrs/i18n/registration/locale_es.json b/openmrs/i18n/registration/locale_es.json index 331f37073..fb39b0395 100644 --- a/openmrs/i18n/registration/locale_es.json +++ b/openmrs/i18n/registration/locale_es.json @@ -55,5 +55,11 @@ "REGISTRATION_LAST_NAME_VALIDATION": "El apellido debe contener solo letras sin espacios", "REGISTRATION_EMAIL_VALIDATION": "Debe ser una dirección de correo electrónico válida", "REGISTRATION_PHONE_NUMBER_VALIDATION": "El número de teléfono debe tener entre 6 y 15 dígitos", - "REGISTRATION_ALTERNATE_PHONE_NUMBER_VALIDATION": "El número de teléfono alternativo debe tener entre 6 y 15 dígitos" + "REGISTRATION_ALTERNATE_PHONE_NUMBER_VALIDATION": "El número de teléfono alternativo debe tener entre 6 y 15 dígitos", + "REGISTRATION_SECTION_BASIC_INFO": "Información básica", + "REGISTRATION_SECTION_ADDRESS_DETAILS": "Información de dirección", + "REGISTRATION_SECTION_CONTACT_DETAILS": "Información de contacto", + "REGISTRATION_SECTION_ADDITIONAL_INFO": "Información adicional", + "REGISTRATION_SECTION_IDENTIFIERS": "Identificadores adicionales", + "REGISTRATION_SECTION_RELATIONSHIPS": "Información de relaciones" } From d7dd194168d352b3fbbcf87cf33339a2ba32b4fb Mon Sep 17 00:00:00 2001 From: Hamsavarthini R Date: Fri, 20 Mar 2026 16:44:49 +0530 Subject: [PATCH 3/3] BAH-4504 Remove the flag showExtraPatientIdentifiersSection --- openmrs/apps/registration/v2/app.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openmrs/apps/registration/v2/app.json b/openmrs/apps/registration/v2/app.json index 41e51c89b..c36fde72d 100644 --- a/openmrs/apps/registration/v2/app.json +++ b/openmrs/apps/registration/v2/app.json @@ -114,8 +114,7 @@ "translationKey": "REGISTRATION_ALTERNATE_PHONE_NUMBER" } ] - }, - "showExtraPatientIdentifiersSection": true + } }, "registrationForm": { "sections": [