Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bot] Merge 23.11 to 24.3 #1216

Merged
merged 2 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@


EXEC core.fn_dropifexists 'p_ComplianceAccesscontainerUpdate', 'onprc_ehr_compliancedb', 'PROCEDURE';
GO

-- Author: R. Blasa
-- Created: 12-10-2024

/*
**
** Created by
** Blasa 12-10-2024 Storedprocedure to update string name "ARRS" to "DCM"
**
**
**
**
*/

CREATE Procedure onprc_ehr_compliancedb.p_ComplianceTranslatestringUpdate


AS



BEGIN

------ Update container value and include as part of the main Compliance module

If exists(select * from ehr_compliancedb.EmployeePerUnit ------> count= 496
where unit like '%arrs%'
)
BEGIN

Update ehr_compliancedb.EmployeePerUnit
set unit = replace(unit,'arrs', 'DCM')



If @@Error <> 0
GoTo Err_Proc

END


If exists(select * from ehr_compliancedb.EmployeePerUnit ------> count= 496
where category like '%arrs%'
)
BEGIN

Update ehr_compliancedb.EmployeePerUnit
set category = replace(category,'arrs', 'DCM')



If @@Error <> 0
GoTo Err_Proc

END



If exists(select * from ehr_compliancedb.Employees
where majorudds like '%arrs%'
)
BEGIN

Update ehr_compliancedb.Employees
set majorudds = replace(majorudds,'arrs', 'DCM')



If @@Error <> 0
GoTo Err_Proc

END



If exists(select * from ehr_compliancedb.Employees
where unit like '%arrs%'
)
BEGIN

Update ehr_compliancedb.Employees
set unit = replace(unit,'arrs', 'DCM')

If @@Error <> 0
GoTo Err_Proc

END



If exists(select * from ehr_compliancedb.Employees
where category like '%arrs%'
)
BEGIN

Update ehr_compliancedb.Employees
set category = replace(category,'arrs', 'DCM')

If @@Error <> 0
GoTo Err_Proc

END



If exists(select * from ehr_compliancedb.requirements
where requirementname like '%arrs%'
)
BEGIN

Update ehr_compliancedb.requirements
set requirementname = replace(requirementname,'arrs', 'DCM')


If @@Error <> 0
GoTo Err_Proc

END



If exists(select * from ehr_compliancedb.EmployeeRequirementExemptions
where requirementname like '%arrs%'
)
BEGIN

Update ehr_compliancedb.EmployeeRequirementExemptions
set requirementname = replace(requirementname,'arrs', 'DCM')


If @@Error <> 0
GoTo Err_Proc

END




If exists(select * from ehr_compliancedb.unit_names
where unit like '%arrs%'
)
BEGIN

Update ehr_compliancedb.unit_names
set unit = replace(unit,'arrs', 'DCM')



If @@Error <> 0
GoTo Err_Proc

END


If exists(select * from ehr_compliancedb.RequirementsPerCategory
where RequirementName like '%arrs%'
)
BEGIN

Update ehr_compliancedb.RequirementsPerCategory
set requirementname = replace(requirementname,'arrs', 'DCM')



If @@Error <> 0
GoTo Err_Proc

END


If exists(select * from ehr_compliancedb.RequirementsPerCategory
where category like '%arrs%'
)
BEGIN

Update ehr_compliancedb.RequirementsPerCategory
set category = replace(category,'arrs', 'DCM')

If @@Error <> 0
GoTo Err_Proc

END


If exists(select * from ehr_compliancedb.RequirementsPerCategory
where unit like '%arrs%'
)
BEGIN

Update ehr_compliancedb.RequirementsPerCategory
set unit = replace(unit,'arrs', 'DCM')


If @@Error <> 0
GoTo Err_Proc

END

If exists(select * from ehr_compliancedb.completiondates
where requirementname like '%arrs%'
)
BEGIN

Update ehr_compliancedb.completiondates
set requirementname = replace(requirementname,'arrs', 'DCM')


If @@Error <> 0
GoTo Err_Proc

END

If exists(select * from ehr_compliancedb.EmployeeCategory
where categoryname like '%arrs%'
)
BEGIN

Update ehr_compliancedb.EmployeeCategory
set categoryname = replace(categoryname ,'arrs', 'DCM')


If @@Error <> 0
GoTo Err_Proc

END








No_Records:

RETURN 0


Err_Proc:
--
RETURN 1


END

GO
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public String getName()
@Override
public Double getSchemaVersion()
{
return 24.004;
return 24.005;
}

@Override
Expand Down
Loading