diff --git a/.gitignore b/.gitignore
index 769653c4..a4786a90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,4 @@ mvnw
mvnw.cmd
.mvn
/logs/
+src/main/environment/common_local.properties
diff --git a/pom.xml b/pom.xml
index 512a160b..b9c36ae8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -337,6 +337,32 @@
+
+ io.github.git-commit-id
+ git-commit-id-maven-plugin
+ 9.0.2
+
+
+ get-the-git-infos
+
+ revision
+
+ initialize
+
+
+
+ true
+ ${project.build.outputDirectory}/git.properties
+
+ ^git.branch$
+ ^git.commit.id.abbrev$
+ ^git.build.version$
+ ^git.build.time$
+
+ false
+ false
+
+
org.apache.maven.plugins
maven-antrun-plugin
@@ -420,4 +446,4 @@
-
\ No newline at end of file
+
diff --git a/src/main/environment/common_ci.properties b/src/main/environment/common_ci.properties
index 347e06a3..50ae2030 100644
--- a/src/main/environment/common_ci.properties
+++ b/src/main/environment/common_ci.properties
@@ -1,6 +1,7 @@
fhir-url = @env.FHIR_API@
tm-url = @env.TM_API@
+common-api-base-url=@env.COMMON_API@
##--------------------------------------------## Primary db-------------------------------------------------------------------
@@ -16,8 +17,7 @@ secondary.datasource.password=@env.DATABASE_IDENTITY_PASSWORD@
secondary.datasource.url=@env.DATABASE_IDENTITY_URL@
secondary.datasource.driver-class-name=com.mysql.jdbc.Driver
-springdoc.api-docs.enabled=@env.SWAGGER_UI_ENABLED@
-springdoc.swagger-ui.enabled=@env.SWAGGER_UI_ENABLED@
+
#ELK logging file name
logging.path=logs/
@@ -37,4 +37,17 @@ sms-username=@env.SMS_USERNAME@
sms-password=@env.SMS_PASSWORD@
send-message-url=@env.SMS_MESSAGE_URL@
-crash.logs.base.path=@env.CRASH_LOGS_PATH@
+#crash.logs.base.path=@env.CRASH_LOGS_PATH@
+
+# ABHA Token Config
+abha.client.id=@env.ABHA_CLIENT_ID@
+abha.client.secret=@env.ABHA_CLIENT_SECRET@
+abha.token.url=@env.ABHA_TOKEN_URL@
+abha.xcmid=@env.ABHA_XCM_ID@
+
+# GovThealth API Config
+govthealth.user.details.url=@env.GOVTHEALTH_USER_DETAILS_URL@
+govthealth.user.id=@env.GOVTHEALTH_USER_ID@
+govthealth.password=@env.GOVTHEALTH_PASSWORD@
+
+
diff --git a/src/main/environment/common_docker.properties b/src/main/environment/common_docker.properties
index 958a9a19..8a31d5d6 100644
--- a/src/main/environment/common_docker.properties
+++ b/src/main/environment/common_docker.properties
@@ -1,5 +1,8 @@
-fhir-url = ${FHIR_URL}
-tm-url = ${TM_URL}
+fhir-url = ${FHIR_API}
+tm-url = ${TM_API}
+common-api-base-url=${COMMON_API}
+
+
##--------------------------------------------## Primary db-------------------------------------------------------------------
@@ -15,8 +18,8 @@ secondary.datasource.password=${DATABASE_IDENTITY_PASSWORD}
secondary.datasource.url=${DATABASE_IDENTITY_URL}
secondary.datasource.driver-class-name=com.mysql.jdbc.Driver
-springdoc.api-docs.enabled=true
-springdoc.swagger-ui.enabled=true
+
+
#ELK logging file name
logging.path=logs/
@@ -35,4 +38,18 @@ sms-password=${SMS_PASSWORD}
send-message-url=${SMS_MESSAGE_URL}
-crash.logs.base.path=${CRASH_LOGS_PATH}
+#crash.logs.base.path=${CRASH_LOGS_PATH}
+
+# ABHA Token Config
+abha.client.id=${ABHA_CLIENT_ID}
+abha.client.secret=${ABHA_CLIENT_SECRET}
+abha.token.url=${ABHA_TOKEN_URL}
+abha.xcmid=${ABHA_XCM_ID}
+
+# GovThealth API Config
+govthealth.user.details.url=${GOVTHEALTH_USER_DETAILS_URL}
+govthealth.user.id=${GOVTHEALTH_USER_ID}
+govthealth.password=${GOVTHEALTH_PASSWORD}
+
+
+
diff --git a/src/main/environment/common_example.properties b/src/main/environment/common_example.properties
index 51873ab6..3c679d09 100644
--- a/src/main/environment/common_example.properties
+++ b/src/main/environment/common_example.properties
@@ -38,6 +38,12 @@ send-message-url=
crash.logs.base.path=
+# ABHA Token Config
+abha.client.id=
+abha.client.secret=
+abha.token.url=
+abha.xcmid=
+
diff --git a/src/main/environment/common_local.properties b/src/main/environment/common_local.properties
deleted file mode 100644
index 6e5bdd00..00000000
--- a/src/main/environment/common_local.properties
+++ /dev/null
@@ -1,45 +0,0 @@
-spring.main.banner-mode=off
-spring.data.jpa.repositories.enabled=true
-#spring.jpa.hibernate.ddl-auto=none
-
-# Naming strategies
-spring.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
-spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
-
-# The SQL dialect makes Hibernate generate better SQL for the chosen database
-spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQLDialect
-
-#Below lines are added for security reasons
-
-spring.session.store-type=redis
-spring.redis.password=
-spring.redis.port=6379
-
-## Below values are needed for extending the expiry time and extend expiry time.
-iemr.extend.expiry.time=true
-iemr.session.expiry.time=7200
-enableIPValidation=false
-
-#logging.pattern.level=DEBUG
-logging.level.root=INFO
-logging.level.org.springframework.web=INFO
-logging.level.org.hibernate=INFO
-logging.level.com.iemr=DEBUG
-logging.level.org.springframework=INFO
-
-spring.datasource.tomcat.initial-size=5
-spring.datasource.tomcat.max-idle=15
-spring.datasource.tomcat.max-active=30
-spring.datasource.tomcat.min-idle=5
-spring.datasource.tomcat.min-evictable-idle-time-millis=15000
-spring.datasource.tomcat.remove-abandoned=true
-spring.datasource.tomcat.logAbandoned=true
-spring.datasource.continue-on-error=true
-spring.datasource.tomcat.remove-abandoned-timeout=600
-door-to-door-page-size=10
-
-#Get-HRP-Status
-get-HRP-Status=ANC/getHRPStatus
-
-#Get Beneficiary ABHA
-getHealthID=healthID/getBenhealthID
diff --git a/src/main/java/com/iemr/flw/controller/AbhaBeneficiaryController.java b/src/main/java/com/iemr/flw/controller/AbhaBeneficiaryController.java
new file mode 100644
index 00000000..8025de55
--- /dev/null
+++ b/src/main/java/com/iemr/flw/controller/AbhaBeneficiaryController.java
@@ -0,0 +1,54 @@
+package com.iemr.flw.controller;
+
+import com.iemr.flw.domain.iemr.AdolescentHealth;
+import com.iemr.flw.dto.abhaBeneficiary.AbhaBeneficiaryDTO;
+import com.iemr.flw.dto.identity.GetBenRequestHandler;
+import com.iemr.flw.dto.iemr.AbhaRequestDTO;
+import com.iemr.flw.service.AbhaBeneficiaryService;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/UserRegistration")
+public class AbhaBeneficiaryController {
+ @Autowired
+ private AbhaBeneficiaryService abhaBeneficiaryService;
+
+ private final org.slf4j.Logger logger = LoggerFactory.getLogger(AbhaBeneficiaryController.class);
+
+
+
+ @RequestMapping(value = "/GetUserDetailsByAyushmanCardNo",method = RequestMethod.POST)
+ public ResponseEntity