-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified Compliance Completion Dates new Prime access container values.
- Loading branch information
Showing
2 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
...mplianceDB/resources/schemas/dbscripts/sqlserver/onprc_ehr_compliancedb-24.003-24.004.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters