Skip to content

Commit

Permalink
Modified Compliance Completion Dates new Prime access container values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ohsudev committed Oct 2, 2024
1 parent 8923ee8 commit 2d73a59
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@


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

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

/*
**
** Created by
** Blasa 9-16-2024 Storedprocedure to update Compliance Access contaimer values.
** 10-2-2024 Corrected Container values.
**
**
**
*/

CREATE Procedure onprc_ehr_compliancedb.p_ComplianceAccesscontainerUpdate


AS



BEGIN

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

If exists(Select * from ehr_Compliancedb.CompletionDates ss where ss.container = 'F1C05E2D-618D-103D-ABC9-9814909BFFCD' )
BEGIN

Update ss
set ss.container = 'CD170458-C55F-102F-9907-5107380A54BE' ----Compliance folder on Prime Production

from ehr_Compliancedb.CompletionDates ss
Where ss.container = 'F1C05E2D-618D-103D-ABC9-9814909BFFCD' ---Compliance Access folder on Prime Production

If @@Error <> 0
GoTo Err_Proc

END

ELSE ------ No new entries exit
BEGIN

GOTO No_Records

END




No_Records:

RETURN 0


Err_Proc:
-------Error Generated, Transfer process stopped
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.003;
return 24.004;
}

@Override
Expand Down

0 comments on commit 2d73a59

Please sign in to comment.