Skip to content
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8cac32a
fix:changes in face embedding sql file version 2
paras-dba Nov 25, 2025
7e663c3
fix:changes sql file for migratio
paras-dba Nov 25, 2025
b3b99c3
fix:changes for all migrationsql
paras-dba Nov 26, 2025
3681580
fix:new final fixes for deployement
paras-dba Nov 26, 2025
4b258be
fix:changes on 28thNov
paras-dba Nov 28, 2025
22d0dff
fix:resolved conficts
paras-dba Nov 28, 2025
0b597d7
fix:new changes 30/11/2025
paras-dba Nov 30, 2025
7499691
fix:new changes part-2 30/11/2025
paras-dba Dec 1, 2025
3ba90ad
fix:new changes 02/12/2025
paras-dba Dec 1, 2025
2760d73
fix:new changes part-2 02/12/2025
paras-dba Dec 2, 2025
e920f52
fix:new changes part-3 02/12/2025
paras-dba Dec 2, 2025
46606dd
Merge branch 'main' of https://github.com/PSMRI/AMRIT-DB into amrit_m…
vishwab1 Dec 2, 2025
c364219
Merge branch 'main' of github.com:PSMRI/AMRIT-DB into amrit_migration…
paras-dba Dec 3, 2025
562da00
fix: new fixes for sanofi prod 5/12/2025
paras-dba Dec 5, 2025
facda19
fix:t_idrdetails column modification
paras-dba Dec 9, 2025
6d46cbe
Merge branch 'main' of github.com:PSMRI/AMRIT-DB into amrit_migration…
paras-dba Dec 10, 2025
e882f84
Merge branch 'main' of github.com:PSMRI/AMRIT-DB into amrit_migration…
paras-dba Dec 11, 2025
952f4df
fix:Modify table's column and added SP
paras-dba Dec 11, 2025
d6dc9fc
fix:change in v_23
paras-dba Dec 11, 2025
fd91e03
fix:v28 file
paras-dba Dec 11, 2025
428fe2e
Merge branch 'main' of github.com:PSMRI/AMRIT-DB into amrit_migration…
paras-dba Dec 12, 2025
2876365
fix:12/12/2025
paras-dba Dec 12, 2025
94b184c
fix:query fixed acc. to coderabbit
paras-dba Dec 12, 2025
63da25c
Merge branch 'main' of github.com:PSMRI/AMRIT-DB into amrit_migration…
paras-dba Dec 15, 2025
fee3e01
Merge branch 'main' of github.com:PSMRI/AMRIT-DB into amrit_migration…
paras-dba Dec 30, 2025
a906909
fix:optimised stored procedure
paras-dba Dec 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions src/main/resources/db/migration/dbiemr/V32__Assam_SP.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
DROP PROCEDURE IF EXISTS Pr_GetCallHistory;



DELIMITER $$

CREATE DEFINER=`piramaldev`@`%` PROCEDURE `Pr_GetCallHistory`(
IN v_obcallid INT
)
BEGIN

SELECT
t1.callid,
t2.MotherID,
t3.Name,
NULL AS Child_id,
NULL AS child_name,
t1.PhoneNo,
t3.ASHA_Name,
t1.ReceivedRoleName,
t3.LMP_Date,
NULL AS dob,
t1.calltime,
t2.OutboundCallType AS `ECD CallType`,
t1.TypeOfComplaint,
t1.complaintRemarks,
t1.Remarks AS AdviceProvided
FROM t_bencall t1
INNER JOIN t_mctsoutboundcalls t2
ON t1.obcallid = t2.obcallid
INNER JOIN t_mothervalidrecord t3
ON t2.MotherID = t3.MCTSID_no
WHERE
(v_obcallid IS NULL OR t1.obcallid = v_obcallid)

UNION ALL

SELECT
t1.callid,
t2.MotherID,
t3.Mother_Name,
t3.MCTSID_no_Child_ID AS Child_id,
t3.Child_Name AS child_name,
t1.PhoneNo,
t3.ASHA_Name,
t1.ReceivedRoleName,
NULL AS LMP_Date,
t3.DOB AS dob,
t1.calltime,
t2.OutboundCallType AS `ECD CallType`,
t1.TypeOfComplaint,
t1.complaintRemarks,
t1.Remarks AS AdviceProvided
FROM t_bencall t1
INNER JOIN t_mctsoutboundcalls t2
ON t1.obcallid = t2.obcallid
INNER JOIN t_childvaliddata t3
ON t2.childID = t3.MCTSID_no_Child_ID
WHERE
(v_obcallid IS NULL OR t1.obcallid = v_obcallid);

END$$

DELIMITER ;
Loading