-
Notifications
You must be signed in to change notification settings - Fork 170
/
Copy pathConstants.java
121 lines (104 loc) · 4.23 KB
/
Constants.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
package org.ohdsi.webapi;
import com.google.common.collect.ImmutableList;
import org.springframework.batch.core.ExitStatus;
public interface Constants {
String DEFAULT_DIALECT = "sql server";
String GENERATE_COHORT = "generateCohort";
String GENERATE_COHORT_CHARACTERIZATION = "generateCohortCharacterization";
String GENERATE_PATHWAY_ANALYSIS = "generatePathwayAnalysis";
String GENERATE_IR_ANALYSIS = "irAnalysis";
String GENERATE_PREDICTION_ANALYSIS = "generatePredictionAnalysis";
String GENERATE_ESTIMATION_ANALYSIS = "generateEstimationAnalysis";
String WARM_CACHE = "warmCache";
String USERS_IMPORT = "usersImport";
String JOB_IS_ALREADY_SCHEDULED = "Job for provider %s is already scheduled";
String FAILED = ExitStatus.FAILED.getExitCode();
String CANCELED = "CANCELED";
String SYSTEM_USER = "system";
String TEMP_COHORT_TABLE_PREFIX = "temp_cohort_";
Float DEFAULT_THRESHOLD = 0.01f;
ImmutableList<String> ALLOWED_JOB_EXECUTION_PARAMETERS = ImmutableList.of(
"jobName",
"jobAuthor",
"cohort_definition_id",
"cohortId",
"cohortDefinitionIds",
"source_id",
"source_key",
"scriptType",
"analysis_id",
"concept_set_id",
"cohort_characterization_id",
"pathway_analysis_id",
"estimation_analysis_id",
"prediction_analysis_id"
);
String SESSION_ID = "Session-ID";
interface SqlSchemaPlaceholders {
String CDM_DATABASE_SCHEMA_PLACEHOLDER = "@cdm_database_schema";
String RESULTS_DATABASE_SCHEMA_PLACEHOLDER = "@results_database_schema";
String VOCABULARY_DATABASE_SCHEMA_PLACEHOLDER = "@vocabulary_database_schema";
String TEMP_DATABASE_SCHEMA_PLACEHOLDER = "@temp_database_schema";
}
interface Params {
String VOCABULARY_DATABASE_SCHEMA = "vocabulary_database_schema";
String COHORT_DEFINITION_ID = "cohort_definition_id";
String COHORT_CHARACTERIZATION_ID = "cohort_characterization_id";
String PATHWAY_ANALYSIS_ID = "pathway_analysis_id";
String PREDICTION_ANALYSIS_ID = "prediction_analysis_id";
String PREDICTION_SKELETON_VERSION = "v0.0.1";
String ESTIMATION_ANALYSIS_ID = "estimation_analysis_id";
String UPDATE_PASSWORD = "update_password";
String SOURCE_ID = "source_id";
String SOURCE_KEY = "source_key";
String ANALYSIS_ID = "analysis_id";
String CDM_DATABASE_SCHEMA = "cdm_database_schema";
String JOB_NAME = "jobName";
String JOB_AUTHOR = "jobAuthor";
String RESULTS_DATABASE_SCHEMA = "results_database_schema";
String TARGET_DATABASE_SCHEMA = "target_database_schema";
String TEMP_DATABASE_SCHEMA = "temp_database_schema";
String TARGET_DIALECT = "target_dialect";
String TARGET_TABLE = "target_table";
String COHORT_ID_FIELD_NAME = "cohort_id_field_name";
String TARGET_COHORT_ID = "target_cohort_id";
String GENERATE_STATS = "generate_stats";
String JOB_START_TIME = "time";
String USER_IMPORT_ID = "user_import_id";
String USER_ROLES = "userRoles";
String SESSION_ID = "sessionId";
String PACKAGE_NAME = "packageName";
String PACKAGE_FILE_NAME = "packageFilename";
String EXECUTABLE_FILE_NAME = "executableFilename";
String GENERATION_ID = "generation_id";
String DESIGN_HASH = "design_hash";
String RETAIN_COHORT_COVARIATES = "retains_cohort_covariates";
}
interface Variables {
String SOURCE = "source";
}
interface Headers {
String AUTH_PROVIDER = "x-auth-provider";
String USER_LANGAUGE = "User-Language";
String ACTION_LOCATION = "action-location";
}
interface SecurityProviders {
String DISABLED = "DisabledSecurity";
String REGULAR = "AtlasRegularSecurity";
String GOOGLE = "AtlasGoogleSecurity";
}
interface Templates {
String ENTITY_COPY_PREFIX = "COPY OF %s";
}
interface Tables {
String COHORT_CACHE = "cohort_cache";
String COHORT_INCLUSION_RESULT_CACHE = "cohort_inclusion_result_cache";
String COHORT_INCLUSION_STATS_CACHE = "cohort_inclusion_stats_cache";
String COHORT_SUMMARY_STATS_CACHE = "cohort_summary_stats_cache";
String COHORT_CENSOR_STATS_CACHE = "cohort_censor_stats_cache";
}
interface CallbackUrlResolvers {
String QUERY = "query";
String PATH = "path";
}
}