Skip to content

Commit e8c410c

Browse files
committed
Created a new program to allow Completion Dates entries made on the Complicance Access folder to be recorded onto the Compliaince main page.
1 parent 19cc76a commit e8c410c

4 files changed

Lines changed: 67 additions & 156 deletions

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
2+
3+
EXEC core.fn_dropifexists 'p_ComplianceAccesscontainerUpdate', 'onprc_ehr_compliancedb', 'PROCEDURE';
4+
GO
5+
6+
-- Author: R. Blasa
7+
-- Created: 10-2-2024
8+
9+
/*
10+
**
11+
** Created by
12+
** Blasa 9-5-2025 Storedprocedure to update Compliance Access contaimer values.
13+
** .
14+
**
15+
**
16+
**
17+
*/
18+
19+
CREATE Procedure onprc_ehr_compliancedb.p_ComplianceAccesscontainerUpdate
20+
21+
22+
AS
23+
24+
25+
26+
BEGIN
27+
28+
------ Update container value and include as part of the main Compliance module
29+
30+
If exists(Select * from ehr_Compliancedb.CompletionDates ss where ss.container = 'F1C05E2D-618D-103D-ABC9-9814909BFFCD' )
31+
BEGIN
32+
33+
Update ss
34+
set ss.container = 'CD170458-C55F-102F-9907-5107380A54BE' ----Compliance folder on Prime Production
35+
36+
from ehr_Compliancedb.CompletionDates ss
37+
Where ss.container = 'F1C05E2D-618D-103D-ABC9-9814909BFFCD' ---Compliance Access folder on Prime Production
38+
39+
If @@Error <> 0
40+
GoTo Err_Proc
41+
42+
END
43+
44+
ELSE ------ No new entries exit
45+
BEGIN
46+
47+
GOTO No_Records
48+
49+
END
50+
51+
52+
53+
54+
No_Records:
55+
56+
RETURN 0
57+
58+
59+
Err_Proc:
60+
-------Error Generated, Transfer process stopped
61+
RETURN 1
62+
63+
64+
END
65+
66+
GO

ONPRC_EHR_ComplianceDB/src/org/labkey/ONPRCEHR_ComplianceDB/ONPRC_EHR_ComplianceDBModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public String getName()
5555
@Override
5656
public Double getSchemaVersion()
5757
{
58-
return 24.011;
58+
return 24.012;
5959
}
6060

6161
@Override

onprc_ehr/resources/queries/ehr_lookups/pairingeventsAll.sql

Lines changed: 0 additions & 49 deletions
This file was deleted.

onprc_ehr/resources/web/onprc_ehr/model/sources/Pairing_Properties.js

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)