|
1 | 1 | from django.urls import path |
2 | 2 |
|
3 | | -from .views import ( |
4 | | - appointment_views, |
| 3 | +from .views import appointment_views, special_appointment_views, symptom_views |
| 4 | +from .views.medical_history import ( |
5 | 5 | benign_lump_history_item_views, |
6 | | - breast_augmentation_history_views, |
7 | | - breast_cancer_history_views, |
8 | | - cyst_history_view, |
9 | | - implanted_medical_device_history_view, |
10 | | - mastectomy_or_lumpectomy_history_view, |
11 | | - other_procedure_history_view, |
12 | | - special_appointment_views, |
13 | | - symptom_views, |
| 6 | + breast_augmentation_history_item_views, |
| 7 | + breast_cancer_history_item_views, |
| 8 | + cyst_history_item_views, |
| 9 | + implanted_medical_device_history_item_views, |
| 10 | + mastectomy_or_lumpectomy_history_item_views, |
| 11 | + other_procedure_history_item_views, |
14 | 12 | ) |
15 | 13 |
|
16 | 14 | app_name = "mammograms" |
|
133 | 131 | ), |
134 | 132 | path( |
135 | 133 | "<uuid:pk>/record-medical-information/breast-cancer-history/", |
136 | | - breast_cancer_history_views.AddBreastCancerHistoryView.as_view(), |
| 134 | + breast_cancer_history_item_views.AddBreastCancerHistoryView.as_view(), |
137 | 135 | name="add_breast_cancer_history_item", |
138 | 136 | ), |
139 | 137 | path( |
140 | 138 | "<uuid:pk>/record-medical-information/breast-cancer-history/<uuid:history_item_pk>", |
141 | | - breast_cancer_history_views.UpdateBreastCancerHistoryView.as_view(), |
| 139 | + breast_cancer_history_item_views.UpdateBreastCancerHistoryView.as_view(), |
142 | 140 | name="change_breast_cancer_history_item", |
143 | 141 | ), |
144 | 142 | path( |
145 | 143 | "<uuid:pk>/record-medical-information/breast-cancer-history/<uuid:history_item_pk>/delete", |
146 | | - breast_cancer_history_views.DeleteBreastCancerHistoryView.as_view(), |
| 144 | + breast_cancer_history_item_views.DeleteBreastCancerHistoryView.as_view(), |
147 | 145 | name="delete_breast_cancer_history_item", |
148 | 146 | ), |
149 | 147 | path( |
150 | 148 | "<uuid:pk>/record-medical-information/implanted-medical-device-history/", |
151 | | - implanted_medical_device_history_view.AddImplantedMedicalDeviceHistoryView.as_view(), |
| 149 | + implanted_medical_device_history_item_views.AddImplantedMedicalDeviceHistoryView.as_view(), |
152 | 150 | name="add_implanted_medical_device_history_item", |
153 | 151 | ), |
154 | 152 | path( |
155 | 153 | "<uuid:pk>/record-medical-information/implanted-medical-device-history/<uuid:history_item_pk>", |
156 | | - implanted_medical_device_history_view.UpdateImplantedMedicalDeviceHistoryView.as_view(), |
| 154 | + implanted_medical_device_history_item_views.UpdateImplantedMedicalDeviceHistoryView.as_view(), |
157 | 155 | name="change_implanted_medical_device_history_item", |
158 | 156 | ), |
159 | 157 | path( |
160 | 158 | "<uuid:pk>/record-medical-information/cyst-history/", |
161 | | - cyst_history_view.AddCystHistoryView.as_view(), |
| 159 | + cyst_history_item_views.AddCystHistoryView.as_view(), |
162 | 160 | name="add_cyst_history_item", |
163 | 161 | ), |
164 | 162 | path( |
165 | 163 | "<uuid:pk>/record-medical-information/cyst-history/<uuid:history_item_pk>", |
166 | | - cyst_history_view.UpdateCystHistoryView.as_view(), |
| 164 | + cyst_history_item_views.UpdateCystHistoryView.as_view(), |
167 | 165 | name="change_cyst_history_item", |
168 | 166 | ), |
169 | 167 | path( |
170 | 168 | "<uuid:pk>/record-medical-information/breast-augmentation-history/", |
171 | | - breast_augmentation_history_views.AddBreastAugmentationHistoryView.as_view(), |
| 169 | + breast_augmentation_history_item_views.AddBreastAugmentationHistoryView.as_view(), |
172 | 170 | name="add_breast_augmentation_history_item", |
173 | 171 | ), |
174 | 172 | path( |
175 | 173 | "<uuid:pk>/record-medical-information/breast-augmentation-history/<uuid:history_item_pk>", |
176 | | - breast_augmentation_history_views.UpdateBreastAugmentationHistoryView.as_view(), |
| 174 | + breast_augmentation_history_item_views.UpdateBreastAugmentationHistoryView.as_view(), |
177 | 175 | name="change_breast_augmentation_history_item", |
178 | 176 | ), |
179 | 177 | path( |
|
188 | 186 | ), |
189 | 187 | path( |
190 | 188 | "<uuid:pk>/record-medical-information/mastectomy-or-lumpectomy-history/", |
191 | | - mastectomy_or_lumpectomy_history_view.AddMastectomyOrLumpectomyHistoryView.as_view(), |
| 189 | + mastectomy_or_lumpectomy_history_item_views.AddMastectomyOrLumpectomyHistoryView.as_view(), |
192 | 190 | name="add_mastectomy_or_lumpectomy_history_item", |
193 | 191 | ), |
194 | 192 | path( |
195 | 193 | "<uuid:pk>/record-medical-information/mastectomy-or-lumpectomy-history/<uuid:history_item_pk>", |
196 | | - mastectomy_or_lumpectomy_history_view.UpdateMastectomyOrLumpectomyHistoryView.as_view(), |
| 194 | + mastectomy_or_lumpectomy_history_item_views.UpdateMastectomyOrLumpectomyHistoryView.as_view(), |
197 | 195 | name="change_mastectomy_or_lumpectomy_history_item", |
198 | 196 | ), |
199 | 197 | path( |
200 | 198 | "<uuid:pk>/record-medical-information/other-procedure-history/", |
201 | | - other_procedure_history_view.AddOtherProcedureHistoryView.as_view(), |
| 199 | + other_procedure_history_item_views.AddOtherProcedureHistoryView.as_view(), |
202 | 200 | name="add_other_procedure_history_item", |
203 | 201 | ), |
204 | 202 | path( |
205 | 203 | "<uuid:pk>/record-medical-information/other-procedure-history/<uuid:history_item_pk>", |
206 | | - other_procedure_history_view.UpdateOtherProcedureHistoryView.as_view(), |
| 204 | + other_procedure_history_item_views.UpdateOtherProcedureHistoryView.as_view(), |
207 | 205 | name="change_other_procedure_history_item", |
208 | 206 | ), |
209 | 207 | path( |
210 | 208 | "<uuid:pk>/record-medical-information/other-procedure-history/<uuid:history_item_pk>/delete", |
211 | | - other_procedure_history_view.DeleteOtherProcedureHistoryView.as_view(), |
| 209 | + other_procedure_history_item_views.DeleteOtherProcedureHistoryView.as_view(), |
212 | 210 | name="delete_other_procedure_history_item", |
213 | 211 | ), |
214 | 212 | ] |
0 commit comments