-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.py
executable file
·127 lines (126 loc) · 2.93 KB
/
constants.py
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
122
123
124
125
126
127
import re
ABNORMAL = "ABNORMAL"
ABSENT = "absent"
ADDITIONAL = True
AFTERNOON = "afternoon"
ALIVE = "alive"
ANONYMOUS = "anonymous"
ANYTIME = "anytime"
BLACK = "black"
BY_BIRTH = "BY_BIRTH"
CANCELLED = "cancelled"
CLOSED = "closed"
COMPLETE = "COMPLETE"
CONSENTED = "consented"
CONTINUOUS = "continuous"
CONTROL = "control"
SMOKER = "smoker"
DEAD = "dead"
DECLINED = "Declined"
DECLINE_TO_ANSWER = "decline_to_answer"
DEFAULTER = "defaulter"
DELETE = "DELETE"
DONE = "done"
DONT_KNOW = "dont_know"
DWTA = "DWTA" # don't want to answer'
ERROR = "ERROR"
EVENING = "evening"
FAILED_ELIGIBILITY = "failed eligibility"
FASTING = "fasting"
FEEDBACK = "feedback"
FEMALE = "F"
HIDE_FORM = "NOT_REQUIRED"
HIGH = "high"
HIGH_PRIORITY = "high"
IGNORE = "ignore"
INCOMPLETE = "INCOMPLETE"
IND = "IND"
INSERT = "INSERT"
INTERVENTION = "intervention"
LOST_TO_FOLLOWUP = "LTFU"
LOW_PRIORITY = "low"
MALE = "M"
MALIGNANCY = "malignancy"
MEDIUM_PRIORITY = "medium"
MICROSCOPY = "microscopy"
MOBILE_NUMBER = "mobile_no"
MORNING = "morning"
NAIVE = "NAIVE"
NEG = "NEG"
NEVER = "NEVER"
NONSMOKER = "nonsmoker"
NEW = "New"
NEW_FIELD = "new_field"
NO = "No"
NONE = "none"
NON_FASTING = "non_fasting"
NORMAL = "NORMAL"
NOT_ADDITIONAL = False
NOT_APPLICABLE = "N/A"
NOT_DONE = "not_done"
NOT_EVALUATED = "Not evaluated"
NOT_SURE = "not_sure"
NO_UNCONFIRMED = "no_unconfirmed"
OFF_STUDY = "off study"
OFF_STUDY_VISIT = "off study"
OMANG = "OMANG"
ON_ART = "on_art"
ON_STUDY = "on study"
OPEN = "open"
OPTIONAL = True
OTHER = "OTHER"
PARTIAL = "PARTIAL"
PARTICIPANT = "participant"
FORMER_SMOKER = "former_smoker"
PENDING = "PENDING"
POS = "POS"
PRESENT = "present"
PRINT = "PRINT"
PURPOSIVELY_SELECTED = "purposively_selected"
QUERY = "QUERY"
QUESTION_RETIRED = "QUESTION_RETIRED"
RANDOM_SAMPLING = "random_sampling"
RAPID_TEST = "rapid_test"
REFUSED = "REFUSED"
RESOLVED = "resolved"
RESTARTED = "restarted"
SCREENED = "SCREENED"
SEROCONVERSION = "seroconversion"
SHOW_FORM = "NEW"
STOPPED = "stopped"
SUBJECT = "subject"
TBD = "tbd" # to be determined
TUBERCULOSIS = "TB"
UNK = "UNK"
UNKNOWN = "unknown"
UPDATE = "UPDATE"
UUID_PATTERN = re.compile(
"[a-f0-9]{8}-?[a-f0-9]{4}-?4[a-f0-9]{3}-?[89ab][a-f0-9]{3}-?[a-f0-9]{12}"
)
VIEW = "VIEW"
WARN = "warn"
WEEKDAYS = "weekdays"
WEEKENDS = "weekends"
YES = "Yes"
COPD = "yes_copd"
ASTHMA = "yes_asthma"
INTERSTITIAL_LUNG_DISEASE = "yes_interstitial_lung_disease"
YES_CURRENT_SMOKER = "yes_current_smoker"
YES_PAST_SMOKER = "yes_past_smoker"
YES_CURRENT_CHEW = "yes_current_chew"
YES_PAST_CHEW = "yes_past_chew"
YES_CURRENT_CONSUMER = "yes_current_consumer"
YES_PAST_CONSUMER = "yes_past_consumer"
YES_CURRENT_USER = "yes_current_user"
YES_PAST_USER = "yes_past_user"
POSITIVE_TEST = "POS_TEST"
NEGATIVE_TEST = "NEG_TEST"
GREATER_THAN_6MONTHS = "greater_than_6months"
NONE_OF_ABOVE = "none_of_above"
LUNG_CANCER_SUSPECT = "lung_cancer_suspect"
OTHER_CANCER = "other_cancers"
CANCER_FREE = "cancer_free"
POSITIVE = "POS"
NEGATIVE = "NEG"
RIGHT = "right"
LEFT = "left"