5454 } ) ;
5555 }
5656
57+ createEHRComplianceDomainHandler = function ( ) {
58+ var ctx = EHR . Utils . getEHRContext ( ) ;
59+ var container = document . getElementById ( "ehrcompliance_container" ) . value ;
60+ if ( ! container ) {
61+ LABKEY . Utils . alert ( "Error" , "Must enter the container path of the compliance folder." ) ;
62+ }
63+ else {
64+ LABKEY . Domain . create ( {
65+ module : ctx ? ctx [ 'EHRCustomModule' ] : null ,
66+ domainKind : "EHRComplianceDB" ,
67+ domainGroup : "ehrcompliancedb" ,
68+ importData : false ,
69+ containerPath : container ,
70+ success : function ( ) {
71+ LABKEY . Utils . alert ( "Success" , "EHR_ComplianceDB tables updated successfully." ) ;
72+ } ,
73+ failure : function ( e ) {
74+ LABKEY . Utils . alert ( "Error" , e . exception ) ;
75+ }
76+ } ) ;
77+ }
78+ }
79+
5780 LABKEY . Utils . onReady ( function ( ) {
5881 document . getElementById ( 'createEHRDomainHandler' ) [ 'onclick' ] = function ( ) { createEHRDomainHandler ( ) ; return false ; }
5982 document . getElementById ( 'createEHRLookupsDomainHandler' ) [ 'onclick' ] = function ( ) { createEHRLookupsDomainHandler ( ) ; return false ; }
6083 document . getElementById ( 'createEHRBillingDomainHandler' ) [ 'onclick' ] = function ( ) { createEHRBillingDomainHandler ( ) ; return false ; }
84+ document . getElementById ( 'createEHRComplianceDomainHandler' ) [ 'onclick' ] = function ( ) { createEHRComplianceDomainHandler ( ) ; return false ; }
6185 } ) ;
6286</ script >
6387
6488< html >
6589< div style ="margin: 20px 0; ">
6690 < h5 > < b >
67- < a style ="margin-right: 30px; cursor: pointer; " id ='createEHRDomainHandler '> Load EHR table definitions</ a >
68- < a style ="margin-right: 30px; cursor: pointer; " id ='createEHRLookupsDomainHandler '> Load EHR_Lookup table definitions</ a >
69- < a style ="margin-right: 30px; cursor: pointer; " id ='createEHRBillingDomainHandler '> Load EHR_Billing table definitions</ a >
91+ < a style ="cursor: pointer; " id ='createEHRDomainHandler '> Load EHR table definitions</ a >
92+ < br > < br >
93+ < a style ="cursor: pointer; " id ='createEHRLookupsDomainHandler '> Load EHR_Lookup table definitions</ a >
94+ < br > < br >
95+ < a style ="cursor: pointer; " id ='createEHRBillingDomainHandler '> Load EHR_Billing table definitions</ a >
96+ < br > < br >
97+ < div >
98+ < a style ="margin-right: 10px; cursor: pointer; " id ='createEHRComplianceDomainHandler '> Load EHR_Compliance table definitions</ a >
99+ < label for ="ehrcompliance_container "> Container:</ label >
100+ < input type ="text " id ="ehrcompliance_container " name ="ehrcompliance_container " style ="width: 300px; ">
101+
102+ </ div >
70103 </ b > </ h5 >
71104</ div >
72105</ html >
0 commit comments