OpenREM 1.0.0b2__py3-none-any.whl → 1.0.0b3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. openrem/locale/de/LC_MESSAGES/django.po +1060 -1059
  2. openrem/locale/django.pot +973 -972
  3. openrem/locale/es_MX/LC_MESSAGES/django.po +1049 -1048
  4. openrem/locale/it/LC_MESSAGES/django.po +1044 -1043
  5. openrem/locale/lt/LC_MESSAGES/django.po +989 -988
  6. openrem/locale/nb_NO/LC_MESSAGES/django.po +985 -984
  7. openrem/locale/pt_BR/LC_MESSAGES/django.po +1003 -1002
  8. openrem/manage.py +10 -10
  9. openrem/openremproject/__init__.py +1 -1
  10. openrem/openremproject/local_settings.py.linux +128 -128
  11. openrem/openremproject/local_settings.py.windows +144 -144
  12. openrem/openremproject/local_settings.py.windows-sqlite3 +129 -129
  13. openrem/openremproject/settings.py +278 -278
  14. openrem/openremproject/urls.py +32 -32
  15. openrem/openremproject/wsgi.py.example +28 -28
  16. openrem/remapp/__init__.py +2 -2
  17. openrem/remapp/admin.py +31 -31
  18. openrem/remapp/exports/ct_export.py +780 -753
  19. openrem/remapp/exports/dx_export.py +817 -805
  20. openrem/remapp/exports/export_common.py +931 -951
  21. openrem/remapp/exports/export_common_pandas.py +2422 -0
  22. openrem/remapp/exports/exportviews.py +815 -860
  23. openrem/remapp/exports/mg_csv_nhsbsp.py +292 -292
  24. openrem/remapp/exports/mg_export.py +673 -510
  25. openrem/remapp/exports/nm_export.py +796 -575
  26. openrem/remapp/exports/rf_export.py +1418 -1431
  27. openrem/remapp/extractors/ct_philips.py +424 -414
  28. openrem/remapp/extractors/ct_toshiba.py +2116 -2108
  29. openrem/remapp/extractors/dx.py +1033 -952
  30. openrem/remapp/extractors/extract_common.py +817 -817
  31. openrem/remapp/extractors/import_views.py +426 -426
  32. openrem/remapp/extractors/mam.py +685 -672
  33. openrem/remapp/extractors/nm_image.py +439 -431
  34. openrem/remapp/extractors/ptsizecsv2db.py +368 -368
  35. openrem/remapp/extractors/rdsr.py +667 -654
  36. openrem/remapp/extractors/rdsr_methods.py +1771 -1768
  37. openrem/remapp/extractors/rrdsr_methods.py +630 -622
  38. openrem/remapp/fixtures/openskin_safelist.json +11 -11
  39. openrem/remapp/forms.py +2286 -2277
  40. openrem/remapp/interface/chart_functions.py +2412 -2393
  41. openrem/remapp/interface/mod_filters.py +1241 -1243
  42. openrem/remapp/migrations/0001_initial.py.1-0-upgrade +1043 -1043
  43. openrem/remapp/models.py +3418 -3407
  44. openrem/remapp/netdicom/dicomviews.py +681 -683
  45. openrem/remapp/netdicom/qrscu.py +2646 -2646
  46. openrem/remapp/netdicom/tools.py +134 -134
  47. openrem/remapp/static/css/bootstrap-theme.css +587 -587
  48. openrem/remapp/static/css/bootstrap-theme.min.css +4 -4
  49. openrem/remapp/static/css/bootstrap.css +6800 -6800
  50. openrem/remapp/static/css/bootstrap.min.css +4 -4
  51. openrem/remapp/static/css/datepicker3.css +790 -790
  52. openrem/remapp/static/css/jquery.qtip.min.css +2 -2
  53. openrem/remapp/static/css/openrem-extra.css +442 -442
  54. openrem/remapp/static/css/openrem.css +96 -96
  55. openrem/remapp/static/css/registration.css +34 -34
  56. openrem/remapp/static/fonts/glyphicons-halflings-regular.svg +287 -287
  57. openrem/remapp/static/js/bootstrap-datepicker.js +1671 -1671
  58. openrem/remapp/static/js/bootstrap.js +2363 -2363
  59. openrem/remapp/static/js/bootstrap.min.js +6 -6
  60. openrem/remapp/static/js/charts/chartCommonFunctions.js +75 -75
  61. openrem/remapp/static/js/charts/chartFullScreen.js +41 -41
  62. openrem/remapp/static/js/charts/ctChartAjax.js +331 -331
  63. openrem/remapp/static/js/charts/dxChartAjax.js +290 -290
  64. openrem/remapp/static/js/charts/mgChartAjax.js +144 -144
  65. openrem/remapp/static/js/charts/nmChartAjax.js +64 -64
  66. openrem/remapp/static/js/charts/plotly-2.35.2.min.js +8 -0
  67. openrem/remapp/static/js/charts/rfChartAjax.js +128 -128
  68. openrem/remapp/static/js/chroma.min.js +32 -32
  69. openrem/remapp/static/js/datepicker.js +5 -5
  70. openrem/remapp/static/js/dicom.js +115 -115
  71. openrem/remapp/static/js/django_reverse/reverse.js +13 -13
  72. openrem/remapp/static/js/formatDate.js +7 -7
  73. openrem/remapp/static/js/html5shiv.min.js +8 -8
  74. openrem/remapp/static/js/jquery-1.11.0.min.js +4 -4
  75. openrem/remapp/static/js/npm.js +12 -12
  76. openrem/remapp/static/js/respond.min.js +4 -4
  77. openrem/remapp/static/js/skin-dose-maps/jquery.qtip.min.js +4 -4
  78. openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMap3dHUDObject.js +112 -112
  79. openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMap3dObject.js +367 -367
  80. openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMap3dPersonObject.js +158 -158
  81. openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMapColourScaleObject.js +153 -153
  82. openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMapObject.js +367 -367
  83. openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMapping.js +584 -584
  84. openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMapping3d.js +255 -255
  85. openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMappingAjax.js +267 -212
  86. openrem/remapp/static/js/skin-dose-maps/three.min.js +835 -835
  87. openrem/remapp/static/js/sorttable.js +495 -495
  88. openrem/remapp/templates/base.html +253 -253
  89. openrem/remapp/templates/registration/changepassword.html +25 -25
  90. openrem/remapp/templates/registration/changepassworddone.html +12 -12
  91. openrem/remapp/templates/registration/login.html +42 -42
  92. openrem/remapp/templates/remapp/backgroundtaskmaximumrows_form.html +29 -29
  93. openrem/remapp/templates/remapp/base.html +1 -1
  94. openrem/remapp/templates/remapp/ctdetail.html +235 -235
  95. openrem/remapp/templates/remapp/ctfiltered.html +310 -310
  96. openrem/remapp/templates/remapp/dicomdeletesettings_form.html +31 -31
  97. openrem/remapp/templates/remapp/dicomqr.html +147 -147
  98. openrem/remapp/templates/remapp/dicomquerydetails.html +83 -83
  99. openrem/remapp/templates/remapp/dicomqueryimages.html +49 -49
  100. openrem/remapp/templates/remapp/dicomqueryseries.html +109 -109
  101. openrem/remapp/templates/remapp/dicomquerysummary.html +48 -48
  102. openrem/remapp/templates/remapp/dicomremoteqr_confirm_delete.html +60 -60
  103. openrem/remapp/templates/remapp/dicomremoteqr_form.html +32 -32
  104. openrem/remapp/templates/remapp/dicomstorescp_confirm_delete.html +53 -53
  105. openrem/remapp/templates/remapp/dicomstorescp_form.html +48 -48
  106. openrem/remapp/templates/remapp/dicomsummary.html +257 -257
  107. openrem/remapp/templates/remapp/displaychartoptions.html +184 -184
  108. openrem/remapp/templates/remapp/displayhomepageoptions.html +57 -57
  109. openrem/remapp/templates/remapp/displayname-count.html +6 -6
  110. openrem/remapp/templates/remapp/displayname-last-date.html +3 -3
  111. openrem/remapp/templates/remapp/displayname-modality.html +86 -105
  112. openrem/remapp/templates/remapp/displayname-skinmap.html +18 -18
  113. openrem/remapp/templates/remapp/displaynameupdate.html +100 -100
  114. openrem/remapp/templates/remapp/displaynameview.html +222 -219
  115. openrem/remapp/templates/remapp/dxdetail.html +176 -176
  116. openrem/remapp/templates/remapp/dxfiltered.html +324 -324
  117. openrem/remapp/templates/remapp/exports-active.html +25 -25
  118. openrem/remapp/templates/remapp/exports-complete.html +35 -35
  119. openrem/remapp/templates/remapp/exports-error.html +26 -26
  120. openrem/remapp/templates/remapp/exports-queue.html +18 -18
  121. openrem/remapp/templates/remapp/exports.html +191 -191
  122. openrem/remapp/templates/remapp/failed_summary_list.html +27 -27
  123. openrem/remapp/templates/remapp/filteredbase.html +162 -162
  124. openrem/remapp/templates/remapp/highdosemetricalertsettings_form.html +76 -76
  125. openrem/remapp/templates/remapp/home-list-modalities.html +94 -94
  126. openrem/remapp/templates/remapp/home.html +202 -202
  127. openrem/remapp/templates/remapp/list_filters.html +24 -24
  128. openrem/remapp/templates/remapp/mgdetail.html +160 -138
  129. openrem/remapp/templates/remapp/mgfiltered.html +311 -311
  130. openrem/remapp/templates/remapp/nmdetail.html +300 -300
  131. openrem/remapp/templates/remapp/nmfiltered.html +255 -255
  132. openrem/remapp/templates/remapp/notpatient.html +190 -190
  133. openrem/remapp/templates/remapp/notpatientindicators_form_base.html +81 -81
  134. openrem/remapp/templates/remapp/notpatientindicatorsid_confirm_delete.html +54 -54
  135. openrem/remapp/templates/remapp/notpatientindicatorsid_form.html +23 -23
  136. openrem/remapp/templates/remapp/notpatientindicatorsname_confirm_delete.html +54 -54
  137. openrem/remapp/templates/remapp/notpatientindicatorsname_form.html +23 -23
  138. openrem/remapp/templates/remapp/notpatientindicatorsname_form_base.html +85 -85
  139. openrem/remapp/templates/remapp/openskinsafelist_add.html +130 -130
  140. openrem/remapp/templates/remapp/openskinsafelist_confirm_delete.html +100 -100
  141. openrem/remapp/templates/remapp/openskinsafelist_form.html +207 -207
  142. openrem/remapp/templates/remapp/patientidsettings_form.html +83 -83
  143. openrem/remapp/templates/remapp/populate_summary_progress.html +83 -83
  144. openrem/remapp/templates/remapp/populate_summary_progress_error.html +36 -36
  145. openrem/remapp/templates/remapp/review_failed_imports.html +157 -157
  146. openrem/remapp/templates/remapp/review_failed_study.html +41 -41
  147. openrem/remapp/templates/remapp/review_studies_delete_button.html +20 -20
  148. openrem/remapp/templates/remapp/review_study.html +19 -19
  149. openrem/remapp/templates/remapp/review_summary_list.html +245 -245
  150. openrem/remapp/templates/remapp/rf_dose_alert_email_template.html +14 -1
  151. openrem/remapp/templates/remapp/rfalertnotificationsview.html +59 -59
  152. openrem/remapp/templates/remapp/rfdetail.html +547 -543
  153. openrem/remapp/templates/remapp/rfdetailbase.html +18 -18
  154. openrem/remapp/templates/remapp/rffiltered.html +404 -404
  155. openrem/remapp/templates/remapp/sizeimports.html +119 -119
  156. openrem/remapp/templates/remapp/sizeprocess.html +96 -96
  157. openrem/remapp/templates/remapp/sizeupload.html +110 -110
  158. openrem/remapp/templates/remapp/skindosemapcalcsettings_form.html +28 -28
  159. openrem/remapp/templates/remapp/standardname-modality.html +69 -69
  160. openrem/remapp/templates/remapp/standardnames_confirm_delete.html +71 -71
  161. openrem/remapp/templates/remapp/standardnames_form.html +87 -87
  162. openrem/remapp/templates/remapp/standardnamesettings_form.html +41 -41
  163. openrem/remapp/templates/remapp/standardnamesrefreshall.html +92 -92
  164. openrem/remapp/templates/remapp/standardnameview.html +103 -103
  165. openrem/remapp/templates/remapp/study_confirm_delete.html +147 -147
  166. openrem/remapp/templates/remapp/task_admin.html +265 -265
  167. openrem/remapp/templates/remapp/tasks.html +76 -76
  168. openrem/remapp/templatetags/formfilters.py +13 -13
  169. openrem/remapp/templatetags/proper_paginate.py +38 -38
  170. openrem/remapp/templatetags/remappduration.py +36 -36
  171. openrem/remapp/templatetags/sigdig.py +38 -38
  172. openrem/remapp/templatetags/sort_class_property_value.py +15 -15
  173. openrem/remapp/templatetags/update_variable.py +20 -20
  174. openrem/remapp/templatetags/url_replace.py +25 -25
  175. openrem/remapp/tests/test_charts_common.py +202 -202
  176. openrem/remapp/tests/test_charts_ct.py +7111 -7111
  177. openrem/remapp/tests/test_charts_dx.py +3513 -3513
  178. openrem/remapp/tests/test_charts_mg.py +1116 -1115
  179. openrem/remapp/tests/test_dcmdatetime.py +189 -189
  180. openrem/remapp/tests/test_dicom_qr.py +2580 -2580
  181. openrem/remapp/tests/test_display_name.py +274 -274
  182. openrem/remapp/tests/test_export_ct_xlsx.py +272 -248
  183. openrem/remapp/tests/test_export_dx_xlsx.py +137 -134
  184. openrem/remapp/tests/test_export_mammo_csv.py +242 -242
  185. openrem/remapp/tests/test_export_rf_xlsx.py +246 -246
  186. openrem/remapp/tests/test_files/DX-Im-DRGEM.dcm +0 -0
  187. openrem/remapp/tests/test_files/MG-RDSR-GEPristina-2D.dcm +0 -0
  188. openrem/remapp/tests/test_files/MG-RDSR-GEPristina-DBT.dcm +0 -0
  189. openrem/remapp/tests/test_files/MG-RDSR-Giotto-DBT.dcm +0 -0
  190. openrem/remapp/tests/test_files/skin_map_alphenix.py +590 -590
  191. openrem/remapp/tests/test_files/skin_map_zee.py +354 -354
  192. openrem/remapp/tests/test_filters_ct.py +321 -321
  193. openrem/remapp/tests/test_filters_dx.py +92 -92
  194. openrem/remapp/tests/test_filters_mammo.py +183 -183
  195. openrem/remapp/tests/test_filters_rf.py +118 -118
  196. openrem/remapp/tests/test_get_values.py +72 -72
  197. openrem/remapp/tests/test_hash_id.py +65 -65
  198. openrem/remapp/tests/test_import_ct_esr_ge.py +3034 -3034
  199. openrem/remapp/tests/test_import_ct_philips_rdsr.py +42 -42
  200. openrem/remapp/tests/test_import_ct_rdsr_multiple.py +256 -256
  201. openrem/remapp/tests/test_import_ct_rdsr_siemens.py +827 -827
  202. openrem/remapp/tests/test_import_ct_rdsr_spectrumdynamics.py +91 -91
  203. openrem/remapp/tests/test_import_ct_rdsr_toshiba_dosecheck.py +67 -67
  204. openrem/remapp/tests/test_import_ct_rdsr_toshiba_multivaluesd.py +33 -33
  205. openrem/remapp/tests/test_import_ct_rdsr_toshiba_pixelmed.py +118 -118
  206. openrem/remapp/tests/test_import_ct_sc_philips.py +44 -44
  207. openrem/remapp/tests/test_import_dual_rdsr.py +110 -110
  208. openrem/remapp/tests/test_import_dx.py +1267 -1191
  209. openrem/remapp/tests/test_import_dx_rdsr.py +1250 -1253
  210. openrem/remapp/tests/test_import_mam.py +438 -438
  211. openrem/remapp/tests/test_import_mg_im_hol_proj.py +46 -46
  212. openrem/remapp/tests/test_import_mg_rdsr.py +586 -586
  213. openrem/remapp/tests/test_import_nm_image.py +420 -420
  214. openrem/remapp/tests/test_import_nm_siemens_rdsr.py +396 -396
  215. openrem/remapp/tests/test_import_px.py +161 -161
  216. openrem/remapp/tests/test_import_rf_rdsr.py +420 -418
  217. openrem/remapp/tests/test_missing_date.py +42 -42
  218. openrem/remapp/tests/test_not_patient.py +60 -60
  219. openrem/remapp/tests/test_openskin.py +272 -272
  220. openrem/remapp/tests/test_patient_id_settings.py +72 -72
  221. openrem/remapp/tests/test_pt_size_import.py +232 -232
  222. openrem/remapp/tests/test_rf_detail.py +113 -113
  223. openrem/remapp/tests/test_rf_high_dose_alert.py +361 -361
  224. openrem/remapp/tools/background.py +361 -361
  225. openrem/remapp/tools/check_standard_name_status.py +47 -0
  226. openrem/remapp/tools/check_uid.py +70 -70
  227. openrem/remapp/tools/dcmdatetime.py +248 -248
  228. openrem/remapp/tools/default_import.py +44 -47
  229. openrem/remapp/tools/get_values.py +230 -230
  230. openrem/remapp/tools/hash_id.py +58 -58
  231. openrem/remapp/tools/make_skin_map.py +448 -406
  232. openrem/remapp/tools/not_patient_indicators.py +72 -72
  233. openrem/remapp/tools/openskin/calc_exp_map.py +173 -173
  234. openrem/remapp/tools/openskin/geomclass.py +475 -475
  235. openrem/remapp/tools/openskin/geomfunc.py +433 -432
  236. openrem/remapp/tools/openskin/skinmap.py +417 -417
  237. openrem/remapp/tools/populate_summary.py +185 -193
  238. openrem/remapp/tools/save_skin_map_structure.py +73 -73
  239. openrem/remapp/tools/send_high_dose_alert_emails.py +238 -207
  240. openrem/remapp/urls.py +456 -448
  241. openrem/remapp/version.py +11 -11
  242. openrem/remapp/views.py +1147 -1052
  243. openrem/remapp/views_admin.py +3876 -3936
  244. openrem/remapp/views_charts_ct.py +2110 -2058
  245. openrem/remapp/views_charts_dx.py +1906 -1836
  246. openrem/remapp/views_charts_mg.py +1349 -1196
  247. openrem/remapp/views_charts_nm.py +535 -535
  248. openrem/remapp/views_charts_rf.py +1219 -1241
  249. openrem/remapp/views_openskin.py +379 -384
  250. openrem/sample-config/openrem-consumer.service +12 -12
  251. openrem/sample-config/openrem-gunicorn.service +13 -13
  252. openrem/sample-config/openrem-server +14 -13
  253. openrem/sample-config/openrem_orthanc_config_linux.lua +454 -454
  254. openrem/sample-config/openrem_orthanc_config_windows.lua +455 -455
  255. openrem/sample-config/queue-init.bat +73 -73
  256. openrem/scripts/openrem_ctphilips.py +25 -25
  257. openrem/scripts/openrem_cttoshiba.py +28 -28
  258. openrem/scripts/openrem_dx.py +22 -22
  259. openrem/scripts/openrem_mg.py +22 -22
  260. openrem/scripts/openrem_nm.py +22 -22
  261. openrem/scripts/openrem_ptsizecsv.py +17 -17
  262. openrem/scripts/openrem_qr.py +12 -12
  263. openrem/scripts/openrem_rdsr.py +25 -25
  264. {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info}/METADATA +39 -29
  265. openrem-1.0.0b3.dist-info/RECORD +379 -0
  266. {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info}/WHEEL +1 -1
  267. {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info/licenses}/COPYING-GPLv3 +674 -674
  268. {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info/licenses}/LICENSE +22 -22
  269. OpenREM-1.0.0b2.dist-info/RECORD +0 -373
  270. openrem/remapp/static/js/charts/plotly-2.17.1.min.js +0 -8
  271. {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_ctphilips.py +0 -0
  272. {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_cttoshiba.py +0 -0
  273. {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_dx.py +0 -0
  274. {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_mg.py +0 -0
  275. {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_nm.py +0 -0
  276. {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_ptsizecsv.py +0 -0
  277. {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_qr.py +0 -0
  278. {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_rdsr.py +0 -0
  279. {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info}/top_level.txt +0 -0
@@ -1,191 +1,191 @@
1
- {% extends "remapp/base.html" %}
2
-
3
- {% block confnav %}<li class="dropdown active">{% endblock %}
4
-
5
- {% block navhelp %}
6
- <li>
7
- <a
8
- href="https://docs.openrem.org/en/{{ admin.docsversion }}/i_not_patient_indicator.html"
9
- target="_blank" rel="noopener noreferrer"
10
- data-toggle="tooltip" title="Not-patient indicators documentation - opens in a new tab">
11
- Not-patient indicator documentation
12
- </a>
13
- </li>
14
- {% endblock %}
15
-
16
- {% block mainblock %}
17
-
18
- <div class="row">
19
- <div class="col-md-10 col-md-offset-1">
20
- <h1>Not-patient indicators</h1>
21
- <p>Find QA and test studies in your anonymised data by matching against strings with wildcards when the study is
22
- imported into OpenREM</p>
23
- {% if not admin.admingroup %}
24
- <p>
25
- Log in as an administrator to be able to modify the patterns.
26
- </p>
27
- {% endif %}
28
- </div>
29
- </div>
30
- <div class="row">
31
- <div class="col-md-5 col-md-offset-1">
32
- <div class="panel panel-primary">
33
- <div class="panel-heading">
34
- {% if admin.admingroup %}
35
- <a class="btn btn-default pull-right btn-sm" href="{% url 'notpatienid_add' %}" role="button">
36
- Add ID patterns
37
- </a>
38
- {% endif %}
39
- <h3 class="panel-title">ID matching patterns</h3>
40
- <div class="clearfix"></div>
41
- </div>
42
- <div class="panel-body">
43
- {% if ids.count < 1 %}
44
- <p>Nothing set yet, see below for examples, or to set the patterns to match the 0.7.4 release</p>
45
- {% endif %}
46
- <table class="table table-bordered">
47
- {% for id in ids %}
48
- <tr>
49
- <td> <code>{{ id.not_patient_id }}</code>
50
- {% if admin.admingroup %}
51
- <a href="{% url 'notpatientid_delete' pk=id.id %}" role="button" class="pull-right"> Delete</a>
52
- <a href="{% url 'notpatientid_update' pk=id.id %}" role="button" class="pull-right">Modify&nbsp;</a>
53
- {% endif %}
54
- </td>
55
- </tr>
56
- {% endfor %}
57
- </table>
58
- </div>
59
- </div>
60
- </div>
61
- <div class="col-md-5">
62
- <div class="panel panel-primary">
63
- <div class="panel-heading">
64
- {% if admin.admingroup %}
65
- <a class="btn btn-default pull-right btn-sm" href="{% url 'notpatientname_add' %}" role="button">
66
- Add name patterns
67
- </a>
68
- {% endif %}
69
- <h3 class="panel-title">Name matching patterns</h3>
70
- <div class="clearfix"></div>
71
- </div>
72
- <div class="panel-body">
73
- {% if names.count < 1 %}
74
- <p>Nothing set yet, see below for examples, or to set the patterns to match the 0.7.4 release</p>
75
- {% endif %}
76
- <table class="table table-bordered">
77
- {% for name in names %}
78
- <tr>
79
- <td>
80
- <code>{{ name.not_patient_name }}</code>
81
- {% if admin.admingroup %}
82
- <a href="{% url 'notpatientname_delete' pk=name.id %}" role="button" class="pull-right"> Delete</a>
83
- <a href="{% url 'notpatientname_update' pk=name.id %}" role="button" class="pull-right">Modify&nbsp;</a>
84
- {% endif %}
85
- </td>
86
- </tr>
87
- {% endfor %}
88
- </table>
89
- </div>
90
- </div>
91
- </div>
92
- </div>
93
- <div class="row">
94
- <div class="col-md-8 col-md-offset-2">
95
- <p>
96
- On import, the patient name and patient ID are compared to the matching patterns in this list. The name and ID are
97
- compared in lower-case and make use of wildcards. If any of the patterns match the patient name or ID, then the
98
- following things happen:
99
- </p>
100
- <ul>
101
- <li>that pattern is placed in the <strong>not_patient_indicator</strong> database field</li>
102
- <li>the study is excluded from the filtered study list if <strong>Include possible test data</strong> is set to
103
- <strong>No</strong></li>
104
- <li>the pattern is printed on the <strong>Test patient indicators?</strong> line of the study detail page</li>
105
- <li>the pattern is included in the study export XLSX or CSV files in the <strong>Test patient?</strong> column</li>
106
- </ul>
107
- </div>
108
- </div>
109
- <div class="row">
110
- <div class="col-md-5 col-md-offset-1">
111
- <h4>For example:</h4>
112
- <table class="table table-bordered">
113
- <tr>
114
- <th>ID matching pattern</th>
115
- <td><code>*ph*</code></td>
116
- </tr>
117
- <tr>
118
- <th>Name matching pattern</th>
119
- <td><code>*QA*</code></td>
120
- </tr>
121
- <tr>
122
- <th>Study patient ID</th>
123
- <td>PPH23148236</td>
124
- </tr>
125
- <tr>
126
- <th>Study patient name</th>
127
- <td>Srour^Saraqa</td>
128
- </tr>
129
- <tr>
130
- <th>Resultant not-patient indicator recorded:</th>
131
- <td>IDs: *ph* | Names: *qa*</td>
132
- </tr>
133
- </table>
134
- </div>
135
- <div class="col-md-5">
136
- <h4>How to use the wildcards:</h4>
137
- <table class="table table-bordered">
138
- <tr><th>Pattern</th><th>Meaning</th></tr>
139
- <tr><td><code>*</code></td><td>matches everything</td></tr>
140
- <tr><td><code>?</code></td><td>matches any single character</td></tr>
141
- <tr><td><code>[seq]</code></td><td>matches any character in seq</td></tr>
142
- <tr><td><code>[!seq]</code></td><td>matches any character not in seq</td></tr>
143
- </table>
144
- </div>
145
- </div>
146
- <div class="row">
147
- <div class="col-md-10 col-md-offset-1">
148
- <div class="panel panel-warning">
149
- <div class="panel-heading"><h3 class="panel-title">Warning!</h3></div>
150
- <div class="panel-body">
151
- <ul>
152
- <li>The pattern you use to indicate test studies <strong>might match real patient names/IDs</strong></li>
153
- <li>
154
- Any strings in the list below will be displayed in the interface and exports, so don't include real names in
155
- this list!
156
- </li>
157
- <li>
158
- Names and IDs are matched on import - <strong>changes made here will not affect any of the studies already
159
- in the database</strong>.
160
- </li>
161
- </ul>
162
- </div>
163
- </div>
164
- </div>
165
- </div>
166
-
167
-
168
- <div class="row">
169
- <div class="col-md-10 col-md-offset-1">
170
- <div class="panel panel-default">
171
- <div class="panel-heading">
172
- <h3 class="panel-title">Replicating behaviour of release 0.7.4 and earlier</h3>
173
- </div>
174
- <div class="panel-body">
175
- {% if not admin.admingroup %}
176
- <p><i>This is only applicable to users in the 'admingroup'</i></p>
177
- {% endif %}
178
- {% if admin.admingroup %}
179
- <p>
180
- OpenREM releases before 0.8 had the not-patient identification patterns hard-coded. From release 0.8.0 the
181
- patterns are (admin) user configurable, but will start with no patterns in place. To add the patterns that would
182
- maintain the behaviour of previous releases, <a href="{% url 'not_patient_indicators_as_074' %}">click here</a>.
183
- </p>
184
- {% endif %}
185
- </div>
186
- </div>
187
- </div>
188
- </div>
189
-
190
-
1
+ {% extends "remapp/base.html" %}
2
+
3
+ {% block confnav %}<li class="dropdown active">{% endblock %}
4
+
5
+ {% block navhelp %}
6
+ <li>
7
+ <a
8
+ href="https://docs.openrem.org/en/{{ admin.docsversion }}/i_not_patient_indicator.html"
9
+ target="_blank" rel="noopener noreferrer"
10
+ data-toggle="tooltip" title="Not-patient indicators documentation - opens in a new tab">
11
+ Not-patient indicator documentation
12
+ </a>
13
+ </li>
14
+ {% endblock %}
15
+
16
+ {% block mainblock %}
17
+
18
+ <div class="row">
19
+ <div class="col-md-10 col-md-offset-1">
20
+ <h1>Not-patient indicators</h1>
21
+ <p>Find QA and test studies in your anonymised data by matching against strings with wildcards when the study is
22
+ imported into OpenREM</p>
23
+ {% if not admin.admingroup %}
24
+ <p>
25
+ Log in as an administrator to be able to modify the patterns.
26
+ </p>
27
+ {% endif %}
28
+ </div>
29
+ </div>
30
+ <div class="row">
31
+ <div class="col-md-5 col-md-offset-1">
32
+ <div class="panel panel-primary">
33
+ <div class="panel-heading">
34
+ {% if admin.admingroup %}
35
+ <a class="btn btn-default pull-right btn-sm" href="{% url 'notpatienid_add' %}" role="button">
36
+ Add ID patterns
37
+ </a>
38
+ {% endif %}
39
+ <h3 class="panel-title">ID matching patterns</h3>
40
+ <div class="clearfix"></div>
41
+ </div>
42
+ <div class="panel-body">
43
+ {% if ids.count < 1 %}
44
+ <p>Nothing set yet, see below for examples, or to set the patterns to match the 0.7.4 release</p>
45
+ {% endif %}
46
+ <table class="table table-bordered">
47
+ {% for id in ids %}
48
+ <tr>
49
+ <td> <code>{{ id.not_patient_id }}</code>
50
+ {% if admin.admingroup %}
51
+ <a href="{% url 'notpatientid_delete' pk=id.id %}" role="button" class="pull-right"> Delete</a>
52
+ <a href="{% url 'notpatientid_update' pk=id.id %}" role="button" class="pull-right">Modify&nbsp;</a>
53
+ {% endif %}
54
+ </td>
55
+ </tr>
56
+ {% endfor %}
57
+ </table>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <div class="col-md-5">
62
+ <div class="panel panel-primary">
63
+ <div class="panel-heading">
64
+ {% if admin.admingroup %}
65
+ <a class="btn btn-default pull-right btn-sm" href="{% url 'notpatientname_add' %}" role="button">
66
+ Add name patterns
67
+ </a>
68
+ {% endif %}
69
+ <h3 class="panel-title">Name matching patterns</h3>
70
+ <div class="clearfix"></div>
71
+ </div>
72
+ <div class="panel-body">
73
+ {% if names.count < 1 %}
74
+ <p>Nothing set yet, see below for examples, or to set the patterns to match the 0.7.4 release</p>
75
+ {% endif %}
76
+ <table class="table table-bordered">
77
+ {% for name in names %}
78
+ <tr>
79
+ <td>
80
+ <code>{{ name.not_patient_name }}</code>
81
+ {% if admin.admingroup %}
82
+ <a href="{% url 'notpatientname_delete' pk=name.id %}" role="button" class="pull-right"> Delete</a>
83
+ <a href="{% url 'notpatientname_update' pk=name.id %}" role="button" class="pull-right">Modify&nbsp;</a>
84
+ {% endif %}
85
+ </td>
86
+ </tr>
87
+ {% endfor %}
88
+ </table>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ <div class="row">
94
+ <div class="col-md-8 col-md-offset-2">
95
+ <p>
96
+ On import, the patient name and patient ID are compared to the matching patterns in this list. The name and ID are
97
+ compared in lower-case and make use of wildcards. If any of the patterns match the patient name or ID, then the
98
+ following things happen:
99
+ </p>
100
+ <ul>
101
+ <li>that pattern is placed in the <strong>not_patient_indicator</strong> database field</li>
102
+ <li>the study is excluded from the filtered study list if <strong>Include possible test data</strong> is set to
103
+ <strong>No</strong></li>
104
+ <li>the pattern is printed on the <strong>Test patient indicators?</strong> line of the study detail page</li>
105
+ <li>the pattern is included in the study export XLSX or CSV files in the <strong>Test patient?</strong> column</li>
106
+ </ul>
107
+ </div>
108
+ </div>
109
+ <div class="row">
110
+ <div class="col-md-5 col-md-offset-1">
111
+ <h4>For example:</h4>
112
+ <table class="table table-bordered">
113
+ <tr>
114
+ <th>ID matching pattern</th>
115
+ <td><code>*ph*</code></td>
116
+ </tr>
117
+ <tr>
118
+ <th>Name matching pattern</th>
119
+ <td><code>*QA*</code></td>
120
+ </tr>
121
+ <tr>
122
+ <th>Study patient ID</th>
123
+ <td>PPH23148236</td>
124
+ </tr>
125
+ <tr>
126
+ <th>Study patient name</th>
127
+ <td>Srour^Saraqa</td>
128
+ </tr>
129
+ <tr>
130
+ <th>Resultant not-patient indicator recorded:</th>
131
+ <td>IDs: *ph* | Names: *qa*</td>
132
+ </tr>
133
+ </table>
134
+ </div>
135
+ <div class="col-md-5">
136
+ <h4>How to use the wildcards:</h4>
137
+ <table class="table table-bordered">
138
+ <tr><th>Pattern</th><th>Meaning</th></tr>
139
+ <tr><td><code>*</code></td><td>matches everything</td></tr>
140
+ <tr><td><code>?</code></td><td>matches any single character</td></tr>
141
+ <tr><td><code>[seq]</code></td><td>matches any character in seq</td></tr>
142
+ <tr><td><code>[!seq]</code></td><td>matches any character not in seq</td></tr>
143
+ </table>
144
+ </div>
145
+ </div>
146
+ <div class="row">
147
+ <div class="col-md-10 col-md-offset-1">
148
+ <div class="panel panel-warning">
149
+ <div class="panel-heading"><h3 class="panel-title">Warning!</h3></div>
150
+ <div class="panel-body">
151
+ <ul>
152
+ <li>The pattern you use to indicate test studies <strong>might match real patient names/IDs</strong></li>
153
+ <li>
154
+ Any strings in the list below will be displayed in the interface and exports, so don't include real names in
155
+ this list!
156
+ </li>
157
+ <li>
158
+ Names and IDs are matched on import - <strong>changes made here will not affect any of the studies already
159
+ in the database</strong>.
160
+ </li>
161
+ </ul>
162
+ </div>
163
+ </div>
164
+ </div>
165
+ </div>
166
+
167
+
168
+ <div class="row">
169
+ <div class="col-md-10 col-md-offset-1">
170
+ <div class="panel panel-default">
171
+ <div class="panel-heading">
172
+ <h3 class="panel-title">Replicating behaviour of release 0.7.4 and earlier</h3>
173
+ </div>
174
+ <div class="panel-body">
175
+ {% if not admin.admingroup %}
176
+ <p><i>This is only applicable to users in the 'admingroup'</i></p>
177
+ {% endif %}
178
+ {% if admin.admingroup %}
179
+ <p>
180
+ OpenREM releases before 0.8 had the not-patient identification patterns hard-coded. From release 0.8.0 the
181
+ patterns are (admin) user configurable, but will start with no patterns in place. To add the patterns that would
182
+ maintain the behaviour of previous releases, <a href="{% url 'not_patient_indicators_as_074' %}">click here</a>.
183
+ </p>
184
+ {% endif %}
185
+ </div>
186
+ </div>
187
+ </div>
188
+ </div>
189
+
190
+
191
191
  {% endblock %}
@@ -1,81 +1,81 @@
1
- {% extends "remapp/base.html" %}
2
-
3
- {% block navhelp %}
4
- <li>
5
- <a
6
- href="https://docs.openrem.org/en/{{ admin.docsversion }}/i_not_patient_indicator.html"
7
- target="_blank" rel="noopener noreferrer"
8
- data-toggle="tooltip" title="Not-patient indicators documentation - opens in a new tab">
9
- Not-patient indicator documentation
10
- </a>
11
- </li>
12
- {% endblock %}
13
-
14
- {% block confnav %}<li class="dropdown active">{% endblock %}
15
-
16
- {% block mainblock %}
17
-
18
- {% block modify_pattern %}
19
- {% endblock %}
20
-
21
- <div class="row">
22
- <div class="col-md-offset-3 col-md-6">
23
- <h4>Guidelines</h4>
24
- <p>
25
- The patient name and the ID are matched against the patterns you configure. The patterns make use of wildcards as
26
- per the following table, and are case insensitive:
27
- </p>
28
- </div>
29
- </div>
30
- <div class="row">
31
- <div class="col-md-offset-4 col-md-4">
32
- <table class="table table-bordered">
33
- <tr><th>Pattern</th><th>Meaning</th></tr>
34
- <tr><td><code>*</code></td><td>matches everything</td></tr>
35
- <tr><td><code>?</code></td><td>matches any single character</td></tr>
36
- <tr><td><code>[seq]</code></td><td>matches any character in seq</td></tr>
37
- <tr><td><code>[!seq]</code></td><td>matches any character not in seq</td></tr>
38
- </table>
39
- </div>
40
- </div>
41
- <div class="row">
42
- <div class="col-md-offset-3 col-md-6">
43
- <p>
44
- To match all studies where the patient name begins with <code>physics</code>, the pattern should be set to
45
- <code>physics*</code>. This would match <code>Physics^RoutIQ</code> but not match <code>Testing^Physics</code>
46
- because there was no wildcard at the start of the pattern. The patient name in DICOM is normally formatted
47
- <code>Family name^Given name^Middle name^Prefix^Suffix</code>. Therefore to match any studies where the first name
48
- is <code>Test</code>, you would set the pattern to be <code>*^test*</code> (although this would also match a
49
- middle name, prefix or suffix equal to <code>test</code> if they were present!
50
- </p>
51
- <p>
52
- If your test patient name always starts with <code>PHY</code> and then a number, you might use this pattern:
53
- <code>phy[0-9]*</code>. Here we have used a range for the sequence to match any number, but it will only match one
54
- character per sequence, so a <code>*</code> is required to match all the characters after the first number. This
55
- pattern will match <code>Phy12345</code> and <code>PHY6test</code> but not <code>Phyliss</code>.
56
- </p>
57
- </div>
58
- </div>
59
- <div class="row">
60
- <div class="col-md-offset-3 col-md-6">
61
- <h4>Replicating behaviour of release 0.7.4 and earlier</h4>
62
- <p>
63
- OpenREM releases before 0.8 had the not-patient identification patterns hard-coded. From release 0.8.0 the
64
- patterns are (admin) user configurable, but will start with no patterns in place.
65
- </p>
66
- {% if admin.admingroup %}
67
- <p>
68
- To add the patterns that would maintain the behaviour of previous releases,
69
- <a href="{% url 'not_patient_indicators_as_074' %}>click here</a>.
70
- </p>
71
- {% endif %}
72
- {% if not admin.admingroup %}
73
- <p>
74
- Log in as an admin in order to add the patterns that would maintain the behaviour of previous releases.
75
- </p>
76
- {% endif %}
77
- </div>
78
- </div>
79
-
80
-
81
- {% endblock %}
1
+ {% extends "remapp/base.html" %}
2
+
3
+ {% block navhelp %}
4
+ <li>
5
+ <a
6
+ href="https://docs.openrem.org/en/{{ admin.docsversion }}/i_not_patient_indicator.html"
7
+ target="_blank" rel="noopener noreferrer"
8
+ data-toggle="tooltip" title="Not-patient indicators documentation - opens in a new tab">
9
+ Not-patient indicator documentation
10
+ </a>
11
+ </li>
12
+ {% endblock %}
13
+
14
+ {% block confnav %}<li class="dropdown active">{% endblock %}
15
+
16
+ {% block mainblock %}
17
+
18
+ {% block modify_pattern %}
19
+ {% endblock %}
20
+
21
+ <div class="row">
22
+ <div class="col-md-offset-3 col-md-6">
23
+ <h4>Guidelines</h4>
24
+ <p>
25
+ The patient name and the ID are matched against the patterns you configure. The patterns make use of wildcards as
26
+ per the following table, and are case insensitive:
27
+ </p>
28
+ </div>
29
+ </div>
30
+ <div class="row">
31
+ <div class="col-md-offset-4 col-md-4">
32
+ <table class="table table-bordered">
33
+ <tr><th>Pattern</th><th>Meaning</th></tr>
34
+ <tr><td><code>*</code></td><td>matches everything</td></tr>
35
+ <tr><td><code>?</code></td><td>matches any single character</td></tr>
36
+ <tr><td><code>[seq]</code></td><td>matches any character in seq</td></tr>
37
+ <tr><td><code>[!seq]</code></td><td>matches any character not in seq</td></tr>
38
+ </table>
39
+ </div>
40
+ </div>
41
+ <div class="row">
42
+ <div class="col-md-offset-3 col-md-6">
43
+ <p>
44
+ To match all studies where the patient name begins with <code>physics</code>, the pattern should be set to
45
+ <code>physics*</code>. This would match <code>Physics^RoutIQ</code> but not match <code>Testing^Physics</code>
46
+ because there was no wildcard at the start of the pattern. The patient name in DICOM is normally formatted
47
+ <code>Family name^Given name^Middle name^Prefix^Suffix</code>. Therefore to match any studies where the first name
48
+ is <code>Test</code>, you would set the pattern to be <code>*^test*</code> (although this would also match a
49
+ middle name, prefix or suffix equal to <code>test</code> if they were present!
50
+ </p>
51
+ <p>
52
+ If your test patient name always starts with <code>PHY</code> and then a number, you might use this pattern:
53
+ <code>phy[0-9]*</code>. Here we have used a range for the sequence to match any number, but it will only match one
54
+ character per sequence, so a <code>*</code> is required to match all the characters after the first number. This
55
+ pattern will match <code>Phy12345</code> and <code>PHY6test</code> but not <code>Phyliss</code>.
56
+ </p>
57
+ </div>
58
+ </div>
59
+ <div class="row">
60
+ <div class="col-md-offset-3 col-md-6">
61
+ <h4>Replicating behaviour of release 0.7.4 and earlier</h4>
62
+ <p>
63
+ OpenREM releases before 0.8 had the not-patient identification patterns hard-coded. From release 0.8.0 the
64
+ patterns are (admin) user configurable, but will start with no patterns in place.
65
+ </p>
66
+ {% if admin.admingroup %}
67
+ <p>
68
+ To add the patterns that would maintain the behaviour of previous releases,
69
+ <a href="{% url 'not_patient_indicators_as_074' %}>click here</a>.
70
+ </p>
71
+ {% endif %}
72
+ {% if not admin.admingroup %}
73
+ <p>
74
+ Log in as an admin in order to add the patterns that would maintain the behaviour of previous releases.
75
+ </p>
76
+ {% endif %}
77
+ </div>
78
+ </div>
79
+
80
+
81
+ {% endblock %}