|
1 | 1 | from enum import Enum |
2 | 2 | from typing import Optional |
3 | 3 |
|
| 4 | +discharged_from_surveillance_string = "Discharged from Surveillance - GP Letter Printed" |
| 5 | +handover_into_symptomatic_care_string = "Handover into Symptomatic Care" |
| 6 | + |
4 | 7 |
|
5 | 8 | class EventStatusType(Enum): |
6 | 9 | """ |
@@ -145,7 +148,7 @@ class EventStatusType(Enum): |
145 | 148 | A343 = (160158, "A343", "High-risk Adenoma") |
146 | 149 | A344 = (160159, "A344", "Abnormal") |
147 | 150 | A345 = (160153, "A345", "Cancer Result, Refer MDT") |
148 | | - A346 = (160163, "A346", "Handover into Symptomatic Care") |
| 151 | + A346 = (160163, "A346", handover_into_symptomatic_care_string) |
149 | 152 | A347 = (20074, "A347", "Refer to Symptomatic") |
150 | 153 | A348 = (20075, "A348", "MDT Referral Required") |
151 | 154 | A350 = ( |
@@ -193,7 +196,7 @@ class EventStatusType(Enum): |
193 | 196 | A382 = (11553, "A382", "Handover into Symptomatic Care - GP Letter Printed") |
194 | 197 | A383 = (20421, "A383", "Handover into Symptomatic Care - Patient Letter Printed") |
195 | 198 | A384 = (20420, "A384", "Discharged from Screening - GP letter not required") |
196 | | - A385 = (20419, "A385", "Handover into Symptomatic Care") |
| 199 | + A385 = (20419, "A385", handover_into_symptomatic_care_string) |
197 | 200 | A389 = ( |
198 | 201 | 305783, |
199 | 202 | "A389", |
@@ -1032,7 +1035,130 @@ class EventStatusType(Enum): |
1032 | 1035 | U81 = (11283, "U81", "Kit Returned and Logged (Technical Fail; Weak Positive") |
1033 | 1036 | U97 = (11284, "U97", "Weak Positive, Waiting for Screening Centre Assistance") |
1034 | 1037 | U98 = (11285, "U98", "Weak Positive, Waiting for Programme Hub Assistance") |
1035 | | - X500=(20100, "X500", "Selected For Surveillance") |
| 1038 | + X2 = (20346, "X2", "Surveillance appointment rescheduled") |
| 1039 | + X372 = (11554, "X372", "Handover into Symptomatic Care - GP Letter Printed") |
| 1040 | + X374 = (20085, "X374", "Handover into Symptomatic Care - Patient Letter Printed") |
| 1041 | + X376 = (20086, "X376", discharged_from_surveillance_string) |
| 1042 | + X377 = (20087, "X377", discharged_from_surveillance_string) |
| 1043 | + X379 = (20088, "X379", discharged_from_surveillance_string) |
| 1044 | + X380 = (20089, "X380", "Discharge from Screening and Surveillance - Patient Choice") |
| 1045 | + X381 = ( |
| 1046 | + 20090, |
| 1047 | + "X381", |
| 1048 | + "Discharge from Screening and Surveillance - No Patient Contact", |
| 1049 | + ) |
| 1050 | + X382 = ( |
| 1051 | + 20091, |
| 1052 | + "X382", |
| 1053 | + "Discharge from Screening and Surveillance - Clinical Decision", |
| 1054 | + ) |
| 1055 | + X384 = ( |
| 1056 | + 20183, |
| 1057 | + "X384", |
| 1058 | + "Discharged from Screening & Surveillance - GP Letter Not Required", |
| 1059 | + ) |
| 1060 | + X386 = (20092, "X386", "Discharged from Surveillance - Patient Letter Printed") |
| 1061 | + X387 = (20093, "X387", "Discharged from Surveillance - Patient Letter Printed") |
| 1062 | + X389 = (20184, "X389", "Discharge from Surveillance - Clinical Decision") |
| 1063 | + X390 = (20094, "X390", "Discharge from Surveillance - Clinical Decision") |
| 1064 | + X391 = (20095, "X391", handover_into_symptomatic_care_string) |
| 1065 | + X392 = (20096, "X392", "Discharge from Surveillance - Patient Choice") |
| 1066 | + X394 = (20097, "X394", "Handover into Symptomatic Care - Patient Age") |
| 1067 | + X395 = ( |
| 1068 | + 20098, |
| 1069 | + "X395", |
| 1070 | + "Discharged from Surveillance - National Guidelines Return FOBT", |
| 1071 | + ) |
| 1072 | + X398 = (20099, "X398", "Discharge from Surveillance - No Patient Contact") |
| 1073 | + X399 = ( |
| 1074 | + 200263, |
| 1075 | + "X399", |
| 1076 | + "Discharged from Surveillance - National Guidelines Cease Screening", |
| 1077 | + ) |
| 1078 | + X500 = (20100, "X500", "Selected For Surveillance") |
| 1079 | + X501 = (20101, "X501", "No Response to HealthCheck Form") |
| 1080 | + X505 = (20102, "X505", "HealthCheck Form Printed") |
| 1081 | + X510 = (20103, "X510", "Surveillance Reminder Printed") |
| 1082 | + X512 = (20104, "X512", "Patient Contact Resulted in Discharge from Surveillance") |
| 1083 | + X513 = (20196, "X513", "No Patient Contact - Discharge from Surveillance") |
| 1084 | + X600 = (20107, "X600", "Surveillance Appointment Required") |
| 1085 | + X610 = (20114, "X610", "Surveillance Appointment Made") |
| 1086 | + X615 = (20116, "X615", "Surveillance Appointment Invitation Letter Printed") |
| 1087 | + X617 = (20117, "X617", "Surveillance Appointment Cancelled by SC") |
| 1088 | + X620 = (20118, "X620", "Surveillance Appointment Cancelled by Patient") |
| 1089 | + X622 = (20122, "X622", "Surveillance Appointment Cancellation Letter Printed") |
| 1090 | + X625 = (20119, "X625", "Practitioner did not attend Surveillance Appointment") |
| 1091 | + X641 = (20120, "X641", "Patient did not attend Surveillance Appointment") |
| 1092 | + X650 = (20108, "X650", "Patient Attended Surveillance Appointment") |
| 1093 | + X76 = (20109, "X76", "Discharged from Surveillance & Screening - GP Letter Printed") |
| 1094 | + X77 = (20110, "X77", "Discharged from Surveillance & Screening - GP Letter Printed") |
| 1095 | + X79 = (20111, "X79", "Discharge from Surveillance & Screening - GP Letter Printed") |
| 1096 | + X86 = ( |
| 1097 | + 20112, |
| 1098 | + "X86", |
| 1099 | + "Discharged from Surveillance & Screening - Patient Letter Printed", |
| 1100 | + ) |
| 1101 | + X87 = ( |
| 1102 | + 20113, |
| 1103 | + "X87", |
| 1104 | + "Discharged from Surveillance & Screening - Patient Letter Printed", |
| 1105 | + ) |
| 1106 | + X89 = ( |
| 1107 | + 20185, |
| 1108 | + "X89", |
| 1109 | + "Discharge from Screening and Surveillance - Clinical Decision", |
| 1110 | + ) |
| 1111 | + X9 = (20115, "X9", "Surveillance Appointment Cancelled Letters not Prepared") |
| 1112 | + X900 = (20237, "X900", "Surveillance Episode reopened") |
| 1113 | + X92 = (20188, "X92", "Close Surveillance Episode via interrupt") |
| 1114 | + Z1 = ( |
| 1115 | + 11289, |
| 1116 | + "Z1", |
| 1117 | + "Appointment Cancellation Requested by SC prior to Letter Preparation", |
| 1118 | + ) |
| 1119 | + Z10 = (20344, "Z10", "Colonoscopy assessment appointment rescheduled") |
| 1120 | + Z11 = (20345, "Z11", "Post-Investigation appointment rescheduled") |
| 1121 | + Z12 = ( |
| 1122 | + 205221, |
| 1123 | + "Z12", |
| 1124 | + "Redirected Colonoscopy Assessment Appointment Cancellation Requested by SC prior to Preparation of Letters", |
| 1125 | + ) |
| 1126 | + Z2 = ( |
| 1127 | + 11290, |
| 1128 | + "Z2", |
| 1129 | + "Appointment Cancellation Requested by SC (follows a DNA) prior to Letter Preparation", |
| 1130 | + ) |
| 1131 | + Z3 = ( |
| 1132 | + 15006, |
| 1133 | + "Z3", |
| 1134 | + "Appointment Cancellation Requested by SC prior to Letter Preparation", |
| 1135 | + ) |
| 1136 | + Z4 = ( |
| 1137 | + 15007, |
| 1138 | + "Z4", |
| 1139 | + "Appointment Cancellation Requested by SC (follows a DNA) prior to Letter Preparation", |
| 1140 | + ) |
| 1141 | + Z5 = ( |
| 1142 | + 15008, |
| 1143 | + "Z5", |
| 1144 | + "Appointment Cancellation Requested prior to Letter Preparation (Patient to Reschedule)", |
| 1145 | + ) |
| 1146 | + Z6 = ( |
| 1147 | + 15009, |
| 1148 | + "Z6", |
| 1149 | + "Appointment Cancellation Requested (follows a DNA) prior to Letter Preparation (Patient to Reschedule)", |
| 1150 | + ) |
| 1151 | + Z7 = ( |
| 1152 | + 15010, |
| 1153 | + "Z7", |
| 1154 | + "Appointment Cancellation Requested prior to Letter Preparation (SC Non-attendance)", |
| 1155 | + ) |
| 1156 | + Z8 = ( |
| 1157 | + 15011, |
| 1158 | + "Z8", |
| 1159 | + "Appointment Cancellation Requested (follows a DNA) prior to Letter Preparation (SC Non-attendance)", |
| 1160 | + ) |
| 1161 | + Z9 = (160174, "Z9", "Post-investigation Appointment Cancelled Letters not Prepared") |
1036 | 1162 |
|
1037 | 1163 | def __init__(self, valid_value_id: int, allowed_value: str, description: str): |
1038 | 1164 | """ |
|
0 commit comments