3737 }
3838
3939 createEHRBillingDomainHandler = function ( ) {
40- var ctx = EHR . Utils . getEHRContext ( ) ;
40+ const ctx = EHR . Utils . getEHRContext ( ) ;
41+ const container = document . getElementById ( "ehrbilling_container" ) . value ;
42+ if ( ! container ) {
43+ LABKEY . Utils . alert ( "Error" , "Must enter the container path of the billing folder." ) ;
44+ }
4145
4246 LABKEY . Domain . create ( {
4347 module : ctx ? ctx [ 'EHRCustomModule' ] : null ,
4448 domainKind : "EHR_Billing" ,
4549 domainGroup : "ehr_billing" ,
4650 importData : false ,
47- containerPath : ctx ? ctx [ 'EHRStudyContainer' ] : null ,
51+ containerPath : container ,
4852 success : function ( ) {
4953 LABKEY . Utils . alert ( "Success" , "EHR_Billing tables updated successfully." ) ;
5054 } ,
5559 }
5660
5761 createEHRComplianceDomainHandler = function ( ) {
58- var ctx = EHR . Utils . getEHRContext ( ) ;
59- var container = document . getElementById ( "ehrcompliance_container" ) . value ;
62+ const ctx = EHR . Utils . getEHRContext ( ) ;
63+ const container = document . getElementById ( "ehrcompliance_container" ) . value ;
6064 if ( ! container ) {
6165 LABKEY . Utils . alert ( "Error" , "Must enter the container path of the compliance folder." ) ;
6266 }
9094 < h5 > < b >
9195 < a style ="cursor: pointer; " id ='createEHRDomainHandler '> Load EHR table definitions</ a >
9296 < br > < br >
97+
9398 < a style ="cursor: pointer; " id ='createEHRLookupsDomainHandler '> Load EHR_Lookup table definitions</ a >
9499 < br > < br >
95- < a style ="cursor: pointer; " id ='createEHRBillingDomainHandler '> Load EHR_Billing table definitions</ a >
100+
101+ < a style ="margin-right: 10px; cursor: pointer; " id ='createEHRBillingDomainHandler '> Load EHR_Billing table definitions</ a >
102+ < label for ="ehrbilling_container "> Container:</ label >
103+ < input type ="text " id ="ehrbilling_container " name ="ehrbilling_container " style ="width: 300px; ">
96104 < 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; ">
101105
102- </ div >
106+ < a style ="margin-right: 10px; cursor: pointer; " id ='createEHRComplianceDomainHandler '> Load EHR_Compliance table definitions</ a >
107+ < label for ="ehrcompliance_container "> Container:</ label >
108+ < input type ="text " id ="ehrcompliance_container " name ="ehrcompliance_container " style ="width: 300px; ">
109+
103110 </ b > </ h5 >
104111</ div >
105112</ html >
0 commit comments