-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathenums.ts
188 lines (157 loc) · 6.24 KB
/
enums.ts
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
export type OtherSpecify = 'Other';
export const patientSexValues = ['Male', 'Female', 'Intersex'] as const;
export type PatientSex = typeof patientSexValues[number];
export const patientGenderValues = ['Male', 'Female', 'Transgender', 'Non-binary/Non-conforming', 'Other'] as const;
export type PatientGender = typeof patientGenderValues[number];
export const patientPronounValues = ['He/Him', 'She/Her', 'They/Them'] as const;
export type PatientPronoun = typeof patientPronounValues[number];
export const patientRaceValues = [
'American Indian or Alaska Native',
'Asian or Asian American',
'Black or African American',
'Native Hawaiian or Other Pacific Islander',
'White',
'Unknown',
] as const;
export type PatientRace = typeof patientRaceValues[number];
export type PatientRaceFlags = { [item in PatientRace]: boolean };
export const patientEthnicityValues = [
'Hispanic or Latino/Latina/Latinx',
'Not Hispanic or Latino/Latina/Latinx',
'Unknown',
] as const;
export type PatientEthnicity = typeof patientEthnicityValues[number];
export const clinicCodeValues = [
'Breast',
'Endocrine',
'GI',
'GI – Pancreatic',
'GU',
'GYN',
'HEME',
'HEME – Sickle Cell',
'HNL',
'Immunotherapy',
'Melanoma/Renal',
'Neuro',
'Sarcoma',
'Transplant – Auto',
'Transplant – Allo',
'Transplant – CAR-T',
'Transplant – LTFU',
'Transplant – TTC',
'Other',
] as const;
export type ClinicCode = typeof clinicCodeValues[number];
export type AllClinicCode = 'All Clinics';
export const depressionTreatmentStatusValues = ['CoCM', 'CoCM RP', 'D/C', 'Other', 'End'] as const;
export type DepressionTreatmentStatus = typeof depressionTreatmentStatusValues[number];
export const followupScheduleValues = ['1-week follow-up', '2-week follow-up', "3-week follow-up", "4-week follow-up", "6-week follow-up", "8-week follow-up"] as const;
export type FollowupSchedule = typeof followupScheduleValues[number];
export const discussionFlagValues = ['Flag as safety risk', 'Flag for discussion'] as const;
export type DiscussionFlag = typeof discussionFlagValues[number];
export const cancerTreatmentRegimenValues = [
'Surgery',
'Chemotherapy',
'Radiation',
'Stem Cell Transplant',
'Immunotherapy',
'CAR-T',
'Endocrine',
'Surveillance',
] as const;
export type CancerTreatmentRegimen = typeof cancerTreatmentRegimenValues[number] | OtherSpecify;
export const referralValues = [
'Psychiatry',
'Psychology',
'Patient Navigation',
'Integrative Medicine',
'Spiritual Care',
'Palliative Care',
] as const;
export type Referral = typeof referralValues[number];
export const referralStatusValues = ['Not Referred', 'Pending', 'Active', 'Completed'] as const;
export type ReferralStatus = typeof referralStatusValues[number];
export const sessionTypeValues = ['In person', 'Telehealth', 'Phone', 'Group', 'Home', 'No show'] as const;
export type SessionType = typeof sessionTypeValues[number] | OtherSpecify;
export const treatmentPlanValues = [
'Maintain current treatment',
'Adjust treatment plan',
'Monitor only',
'No further follow-up',
'Refer to community',
] as const;
export type TreatmentPlan = typeof treatmentPlanValues[number];
export const treatmentChangeValues = ['None', 'Medication', 'Counseling'] as const;
export type TreatmentChange = typeof treatmentChangeValues[number] | OtherSpecify;
export const behavioralActivationChecklistValues = [
'Review of the BA model',
'Values and goals assessment',
'Activity scheduling',
'Mood and activity monitoring',
'Relaxation',
'Positive reinforcement',
'Managing avoidance behaviors',
'Problem-solving',
] as const;
export type BehavioralActivationChecklistItem = typeof behavioralActivationChecklistValues[number];
export const behavioralStrategyChecklistValues = [
'Behavioral Activation',
'Motivational Interviewing',
'Problem Solving Therapy',
'Cognitive Therapy',
'Mindfulness Strategies',
'Supportive Therapy',
] as const;
export type BehavioralStrategyChecklistItem = typeof behavioralStrategyChecklistValues[number] | OtherSpecify;
export const assessmentFrequencyValues = ['Once a week', 'Every 2 weeks', 'Every 4 weeks'] as const;
export type AssessmentFrequency = typeof assessmentFrequencyValues[number];
export const phq9ItemValues = [
'Interest',
'Mood',
'Sleep',
'Energy',
'Appetite',
'Guilt',
'Concentrating',
'Motor',
'Suicide',
] as const;
export type PHQ9Item = typeof phq9ItemValues[number];
export const gad7ItemValues = [
'Anxious',
'Constant worrying',
'Worrying too much',
'Trouble relaxing',
'Restless',
'Irritable',
'Afraid',
] as const;
export type GAD7Item = typeof gad7ItemValues[number];
export type CaseReviewEntryType = 'Case Review';
export type SessionEntryType = 'Session';
export type EntryType = SessionEntryType | CaseReviewEntryType;
export const daysOfWeekValues = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] as const;
export type DayOfWeek = typeof daysOfWeekValues[number];
export type DayOfWeekFlags = { [item in DayOfWeek]: boolean };
export const activitySuccessTypeValues = ['Yes', 'SomethingElse', 'No'];
export type ActivitySuccessType = typeof activitySuccessTypeValues[number];
export type BAChecklistFlags = { [item in BehavioralActivationChecklistItem]: boolean };
export type BehavioralStrategyChecklistFlags = { [item in BehavioralStrategyChecklistItem]: boolean };
export type ReferralStatusFlags = { [item in Referral]: ReferralStatus };
export type CancerTreatmentRegimenFlags = { [item in CancerTreatmentRegimen]: boolean };
export type DiscussionFlags = { [item in DiscussionFlag]: boolean };
export const dueTypeValues = ['Exact', 'ChunkOfDay', 'Day', 'Week'];
export type DueType = typeof dueTypeValues[number];
export const providerRoleValues = ['studyStaff', 'psychiatrist', 'socialWorker'];
export type ProviderRole = typeof providerRoleValues[number];
export const siteValues = [
'SCCA – SLU',
'SCCA – UW-NW',
'SCCA – PEN',
'MultiCare – Tacoma',
'MultiCare – Auburn',
'MultiCare – Gig Harbor',
];
export type Site = typeof siteValues[number];
export const LifeAreaIdOther = 'other';