-
Notifications
You must be signed in to change notification settings - Fork 32
/
constants.rb
101 lines (91 loc) · 2.82 KB
/
constants.rb
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
module Constants
TIMESPAN_MAP = {
'today' => Date.today.to_time,
'this_week' => 1.week.ago,
'this_month' => 1.month.ago,
'this_year' => 1.year.ago,
'all_time' => Time.new('1970-01-01 00:00:00')
}
DISPLAY_NAME_QUERY = 'users.username ILIKE :query OR users.email ILIKE :query OR users.name ILIKE :query'
GA_TRACKING_ID='UA-83153043-1'
EVIDENCE_TYPES = [:Diagnostic, :Prognostic, :Predictive, :Predisposing, :Functional]
EVIDENCE_LEVELS = [:A, :B, :C, :D, :E]
EVIDENCE_DIRECTIONS = [:Supports, 'Does Not Support', 'N/A']
VARIANT_ORIGINS = ['Somatic', 'Rare Germline', 'Common Germline', 'Unknown', 'N/A', 'Germline or Somatic']
CLINICAL_SIGNIFICANCES = [
'Sensitivity/Response',
'Resistance',
'Better Outcome',
'Poor Outcome',
:Positive,
:Negative,
'N/A',
'Adverse Response',
'Pathogenic',
'Likely Pathogenic',
'Benign',
'Likely Benign',
'Uncertain Significance',
'Reduced Sensitivity',
'Gain of Function',
'Loss of Function',
'Unaltered Function',
'Neomorphic',
'Unknown',
]
DRUG_INTERACTION_TYPES = ['Combination', 'Sequential', 'Substitutes']
NCCN_GUIDELINES = [
'Acute Lymphoblastic Leukemia',
'Acute Myeloid Leukemia',
'Anal Carcinoma',
'Bladder Cancer',
'Bone Cancer',
'Breast Cancer',
'Central Nervous System Cancers',
'Cervical Cancer',
'Chronic Lymphocytic Leukemia/Small Lymphocytic Lymphoma',
'Chronic Myeloid Leukemia',
'Colon/Rectal Cancer',
'Colon Cancer',
'Rectal Cancer',
'Esophageal and Esophagogastric Junction Cancers',
'Gastric Cancer',
'Hairy Cell Leukemia',
'Head and Neck Cancers',
'Hepatobiliary Cancers',
'Hodgkin Lymphoma',
'Kidney Cancer',
'Malignant Pleural Mesothelioma',
'Melanoma',
'Multiple Myeloma/Other Plasma Cell Neoplasms',
'Multiple Myeloma',
'Systemic Light Chain Amyloidosis',
"Waldenström's Macroglobulinemia / Lymphoplasmacytic Lymphoma",
'Myelodysplastic Syndromes',
'Myeloproliferative Neoplasms',
'Neuroendocrine Tumors',
"Non-Hodgkin's Lymphomas",
'B-Cell Lymphomas',
'Primary Cutaneous B-Cell Lymphomas',
'T-Cell Lymphomas',
'Non-Melanoma Skin Cancers',
'Basal Cell Skin Cancer',
'Dermatofibrosarcoma Protuberans',
'Merkel Cell Carcinoma',
'Squamous Cell Skin Cancer',
'Non-Small Cell Lung Cancer',
'Occult Primary',
'Ovarian Cancer',
'Pancreatic Adenocarcinoma',
'Penile Cancer',
'Prostate Cancer',
'Small Cell Lung Cancer',
'Soft Tissue Sarcoma',
'Testicular Cancer',
'Thymomas and Thymic Carcinomas',
'Thyroid Carcinoma',
'Uterine Neoplasms',
'Vulvar Cancer',
]
AMP_LEVELS = ['Tier I - Level A', 'Tier I - Level B', 'Tier II - Level C', 'Tier II - Level D', 'Tier III', 'Tier IV', 'Not Applicable']
end