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.
- openrem/locale/de/LC_MESSAGES/django.po +1060 -1059
- openrem/locale/django.pot +973 -972
- openrem/locale/es_MX/LC_MESSAGES/django.po +1049 -1048
- openrem/locale/it/LC_MESSAGES/django.po +1044 -1043
- openrem/locale/lt/LC_MESSAGES/django.po +989 -988
- openrem/locale/nb_NO/LC_MESSAGES/django.po +985 -984
- openrem/locale/pt_BR/LC_MESSAGES/django.po +1003 -1002
- openrem/manage.py +10 -10
- openrem/openremproject/__init__.py +1 -1
- openrem/openremproject/local_settings.py.linux +128 -128
- openrem/openremproject/local_settings.py.windows +144 -144
- openrem/openremproject/local_settings.py.windows-sqlite3 +129 -129
- openrem/openremproject/settings.py +278 -278
- openrem/openremproject/urls.py +32 -32
- openrem/openremproject/wsgi.py.example +28 -28
- openrem/remapp/__init__.py +2 -2
- openrem/remapp/admin.py +31 -31
- openrem/remapp/exports/ct_export.py +780 -753
- openrem/remapp/exports/dx_export.py +817 -805
- openrem/remapp/exports/export_common.py +931 -951
- openrem/remapp/exports/export_common_pandas.py +2422 -0
- openrem/remapp/exports/exportviews.py +815 -860
- openrem/remapp/exports/mg_csv_nhsbsp.py +292 -292
- openrem/remapp/exports/mg_export.py +673 -510
- openrem/remapp/exports/nm_export.py +796 -575
- openrem/remapp/exports/rf_export.py +1418 -1431
- openrem/remapp/extractors/ct_philips.py +424 -414
- openrem/remapp/extractors/ct_toshiba.py +2116 -2108
- openrem/remapp/extractors/dx.py +1033 -952
- openrem/remapp/extractors/extract_common.py +817 -817
- openrem/remapp/extractors/import_views.py +426 -426
- openrem/remapp/extractors/mam.py +685 -672
- openrem/remapp/extractors/nm_image.py +439 -431
- openrem/remapp/extractors/ptsizecsv2db.py +368 -368
- openrem/remapp/extractors/rdsr.py +667 -654
- openrem/remapp/extractors/rdsr_methods.py +1771 -1768
- openrem/remapp/extractors/rrdsr_methods.py +630 -622
- openrem/remapp/fixtures/openskin_safelist.json +11 -11
- openrem/remapp/forms.py +2286 -2277
- openrem/remapp/interface/chart_functions.py +2412 -2393
- openrem/remapp/interface/mod_filters.py +1241 -1243
- openrem/remapp/migrations/0001_initial.py.1-0-upgrade +1043 -1043
- openrem/remapp/models.py +3418 -3407
- openrem/remapp/netdicom/dicomviews.py +681 -683
- openrem/remapp/netdicom/qrscu.py +2646 -2646
- openrem/remapp/netdicom/tools.py +134 -134
- openrem/remapp/static/css/bootstrap-theme.css +587 -587
- openrem/remapp/static/css/bootstrap-theme.min.css +4 -4
- openrem/remapp/static/css/bootstrap.css +6800 -6800
- openrem/remapp/static/css/bootstrap.min.css +4 -4
- openrem/remapp/static/css/datepicker3.css +790 -790
- openrem/remapp/static/css/jquery.qtip.min.css +2 -2
- openrem/remapp/static/css/openrem-extra.css +442 -442
- openrem/remapp/static/css/openrem.css +96 -96
- openrem/remapp/static/css/registration.css +34 -34
- openrem/remapp/static/fonts/glyphicons-halflings-regular.svg +287 -287
- openrem/remapp/static/js/bootstrap-datepicker.js +1671 -1671
- openrem/remapp/static/js/bootstrap.js +2363 -2363
- openrem/remapp/static/js/bootstrap.min.js +6 -6
- openrem/remapp/static/js/charts/chartCommonFunctions.js +75 -75
- openrem/remapp/static/js/charts/chartFullScreen.js +41 -41
- openrem/remapp/static/js/charts/ctChartAjax.js +331 -331
- openrem/remapp/static/js/charts/dxChartAjax.js +290 -290
- openrem/remapp/static/js/charts/mgChartAjax.js +144 -144
- openrem/remapp/static/js/charts/nmChartAjax.js +64 -64
- openrem/remapp/static/js/charts/plotly-2.35.2.min.js +8 -0
- openrem/remapp/static/js/charts/rfChartAjax.js +128 -128
- openrem/remapp/static/js/chroma.min.js +32 -32
- openrem/remapp/static/js/datepicker.js +5 -5
- openrem/remapp/static/js/dicom.js +115 -115
- openrem/remapp/static/js/django_reverse/reverse.js +13 -13
- openrem/remapp/static/js/formatDate.js +7 -7
- openrem/remapp/static/js/html5shiv.min.js +8 -8
- openrem/remapp/static/js/jquery-1.11.0.min.js +4 -4
- openrem/remapp/static/js/npm.js +12 -12
- openrem/remapp/static/js/respond.min.js +4 -4
- openrem/remapp/static/js/skin-dose-maps/jquery.qtip.min.js +4 -4
- openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMap3dHUDObject.js +112 -112
- openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMap3dObject.js +367 -367
- openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMap3dPersonObject.js +158 -158
- openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMapColourScaleObject.js +153 -153
- openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMapObject.js +367 -367
- openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMapping.js +584 -584
- openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMapping3d.js +255 -255
- openrem/remapp/static/js/skin-dose-maps/rfSkinDoseMappingAjax.js +267 -212
- openrem/remapp/static/js/skin-dose-maps/three.min.js +835 -835
- openrem/remapp/static/js/sorttable.js +495 -495
- openrem/remapp/templates/base.html +253 -253
- openrem/remapp/templates/registration/changepassword.html +25 -25
- openrem/remapp/templates/registration/changepassworddone.html +12 -12
- openrem/remapp/templates/registration/login.html +42 -42
- openrem/remapp/templates/remapp/backgroundtaskmaximumrows_form.html +29 -29
- openrem/remapp/templates/remapp/base.html +1 -1
- openrem/remapp/templates/remapp/ctdetail.html +235 -235
- openrem/remapp/templates/remapp/ctfiltered.html +310 -310
- openrem/remapp/templates/remapp/dicomdeletesettings_form.html +31 -31
- openrem/remapp/templates/remapp/dicomqr.html +147 -147
- openrem/remapp/templates/remapp/dicomquerydetails.html +83 -83
- openrem/remapp/templates/remapp/dicomqueryimages.html +49 -49
- openrem/remapp/templates/remapp/dicomqueryseries.html +109 -109
- openrem/remapp/templates/remapp/dicomquerysummary.html +48 -48
- openrem/remapp/templates/remapp/dicomremoteqr_confirm_delete.html +60 -60
- openrem/remapp/templates/remapp/dicomremoteqr_form.html +32 -32
- openrem/remapp/templates/remapp/dicomstorescp_confirm_delete.html +53 -53
- openrem/remapp/templates/remapp/dicomstorescp_form.html +48 -48
- openrem/remapp/templates/remapp/dicomsummary.html +257 -257
- openrem/remapp/templates/remapp/displaychartoptions.html +184 -184
- openrem/remapp/templates/remapp/displayhomepageoptions.html +57 -57
- openrem/remapp/templates/remapp/displayname-count.html +6 -6
- openrem/remapp/templates/remapp/displayname-last-date.html +3 -3
- openrem/remapp/templates/remapp/displayname-modality.html +86 -105
- openrem/remapp/templates/remapp/displayname-skinmap.html +18 -18
- openrem/remapp/templates/remapp/displaynameupdate.html +100 -100
- openrem/remapp/templates/remapp/displaynameview.html +222 -219
- openrem/remapp/templates/remapp/dxdetail.html +176 -176
- openrem/remapp/templates/remapp/dxfiltered.html +324 -324
- openrem/remapp/templates/remapp/exports-active.html +25 -25
- openrem/remapp/templates/remapp/exports-complete.html +35 -35
- openrem/remapp/templates/remapp/exports-error.html +26 -26
- openrem/remapp/templates/remapp/exports-queue.html +18 -18
- openrem/remapp/templates/remapp/exports.html +191 -191
- openrem/remapp/templates/remapp/failed_summary_list.html +27 -27
- openrem/remapp/templates/remapp/filteredbase.html +162 -162
- openrem/remapp/templates/remapp/highdosemetricalertsettings_form.html +76 -76
- openrem/remapp/templates/remapp/home-list-modalities.html +94 -94
- openrem/remapp/templates/remapp/home.html +202 -202
- openrem/remapp/templates/remapp/list_filters.html +24 -24
- openrem/remapp/templates/remapp/mgdetail.html +160 -138
- openrem/remapp/templates/remapp/mgfiltered.html +311 -311
- openrem/remapp/templates/remapp/nmdetail.html +300 -300
- openrem/remapp/templates/remapp/nmfiltered.html +255 -255
- openrem/remapp/templates/remapp/notpatient.html +190 -190
- openrem/remapp/templates/remapp/notpatientindicators_form_base.html +81 -81
- openrem/remapp/templates/remapp/notpatientindicatorsid_confirm_delete.html +54 -54
- openrem/remapp/templates/remapp/notpatientindicatorsid_form.html +23 -23
- openrem/remapp/templates/remapp/notpatientindicatorsname_confirm_delete.html +54 -54
- openrem/remapp/templates/remapp/notpatientindicatorsname_form.html +23 -23
- openrem/remapp/templates/remapp/notpatientindicatorsname_form_base.html +85 -85
- openrem/remapp/templates/remapp/openskinsafelist_add.html +130 -130
- openrem/remapp/templates/remapp/openskinsafelist_confirm_delete.html +100 -100
- openrem/remapp/templates/remapp/openskinsafelist_form.html +207 -207
- openrem/remapp/templates/remapp/patientidsettings_form.html +83 -83
- openrem/remapp/templates/remapp/populate_summary_progress.html +83 -83
- openrem/remapp/templates/remapp/populate_summary_progress_error.html +36 -36
- openrem/remapp/templates/remapp/review_failed_imports.html +157 -157
- openrem/remapp/templates/remapp/review_failed_study.html +41 -41
- openrem/remapp/templates/remapp/review_studies_delete_button.html +20 -20
- openrem/remapp/templates/remapp/review_study.html +19 -19
- openrem/remapp/templates/remapp/review_summary_list.html +245 -245
- openrem/remapp/templates/remapp/rf_dose_alert_email_template.html +14 -1
- openrem/remapp/templates/remapp/rfalertnotificationsview.html +59 -59
- openrem/remapp/templates/remapp/rfdetail.html +547 -543
- openrem/remapp/templates/remapp/rfdetailbase.html +18 -18
- openrem/remapp/templates/remapp/rffiltered.html +404 -404
- openrem/remapp/templates/remapp/sizeimports.html +119 -119
- openrem/remapp/templates/remapp/sizeprocess.html +96 -96
- openrem/remapp/templates/remapp/sizeupload.html +110 -110
- openrem/remapp/templates/remapp/skindosemapcalcsettings_form.html +28 -28
- openrem/remapp/templates/remapp/standardname-modality.html +69 -69
- openrem/remapp/templates/remapp/standardnames_confirm_delete.html +71 -71
- openrem/remapp/templates/remapp/standardnames_form.html +87 -87
- openrem/remapp/templates/remapp/standardnamesettings_form.html +41 -41
- openrem/remapp/templates/remapp/standardnamesrefreshall.html +92 -92
- openrem/remapp/templates/remapp/standardnameview.html +103 -103
- openrem/remapp/templates/remapp/study_confirm_delete.html +147 -147
- openrem/remapp/templates/remapp/task_admin.html +265 -265
- openrem/remapp/templates/remapp/tasks.html +76 -76
- openrem/remapp/templatetags/formfilters.py +13 -13
- openrem/remapp/templatetags/proper_paginate.py +38 -38
- openrem/remapp/templatetags/remappduration.py +36 -36
- openrem/remapp/templatetags/sigdig.py +38 -38
- openrem/remapp/templatetags/sort_class_property_value.py +15 -15
- openrem/remapp/templatetags/update_variable.py +20 -20
- openrem/remapp/templatetags/url_replace.py +25 -25
- openrem/remapp/tests/test_charts_common.py +202 -202
- openrem/remapp/tests/test_charts_ct.py +7111 -7111
- openrem/remapp/tests/test_charts_dx.py +3513 -3513
- openrem/remapp/tests/test_charts_mg.py +1116 -1115
- openrem/remapp/tests/test_dcmdatetime.py +189 -189
- openrem/remapp/tests/test_dicom_qr.py +2580 -2580
- openrem/remapp/tests/test_display_name.py +274 -274
- openrem/remapp/tests/test_export_ct_xlsx.py +272 -248
- openrem/remapp/tests/test_export_dx_xlsx.py +137 -134
- openrem/remapp/tests/test_export_mammo_csv.py +242 -242
- openrem/remapp/tests/test_export_rf_xlsx.py +246 -246
- openrem/remapp/tests/test_files/DX-Im-DRGEM.dcm +0 -0
- openrem/remapp/tests/test_files/MG-RDSR-GEPristina-2D.dcm +0 -0
- openrem/remapp/tests/test_files/MG-RDSR-GEPristina-DBT.dcm +0 -0
- openrem/remapp/tests/test_files/MG-RDSR-Giotto-DBT.dcm +0 -0
- openrem/remapp/tests/test_files/skin_map_alphenix.py +590 -590
- openrem/remapp/tests/test_files/skin_map_zee.py +354 -354
- openrem/remapp/tests/test_filters_ct.py +321 -321
- openrem/remapp/tests/test_filters_dx.py +92 -92
- openrem/remapp/tests/test_filters_mammo.py +183 -183
- openrem/remapp/tests/test_filters_rf.py +118 -118
- openrem/remapp/tests/test_get_values.py +72 -72
- openrem/remapp/tests/test_hash_id.py +65 -65
- openrem/remapp/tests/test_import_ct_esr_ge.py +3034 -3034
- openrem/remapp/tests/test_import_ct_philips_rdsr.py +42 -42
- openrem/remapp/tests/test_import_ct_rdsr_multiple.py +256 -256
- openrem/remapp/tests/test_import_ct_rdsr_siemens.py +827 -827
- openrem/remapp/tests/test_import_ct_rdsr_spectrumdynamics.py +91 -91
- openrem/remapp/tests/test_import_ct_rdsr_toshiba_dosecheck.py +67 -67
- openrem/remapp/tests/test_import_ct_rdsr_toshiba_multivaluesd.py +33 -33
- openrem/remapp/tests/test_import_ct_rdsr_toshiba_pixelmed.py +118 -118
- openrem/remapp/tests/test_import_ct_sc_philips.py +44 -44
- openrem/remapp/tests/test_import_dual_rdsr.py +110 -110
- openrem/remapp/tests/test_import_dx.py +1267 -1191
- openrem/remapp/tests/test_import_dx_rdsr.py +1250 -1253
- openrem/remapp/tests/test_import_mam.py +438 -438
- openrem/remapp/tests/test_import_mg_im_hol_proj.py +46 -46
- openrem/remapp/tests/test_import_mg_rdsr.py +586 -586
- openrem/remapp/tests/test_import_nm_image.py +420 -420
- openrem/remapp/tests/test_import_nm_siemens_rdsr.py +396 -396
- openrem/remapp/tests/test_import_px.py +161 -161
- openrem/remapp/tests/test_import_rf_rdsr.py +420 -418
- openrem/remapp/tests/test_missing_date.py +42 -42
- openrem/remapp/tests/test_not_patient.py +60 -60
- openrem/remapp/tests/test_openskin.py +272 -272
- openrem/remapp/tests/test_patient_id_settings.py +72 -72
- openrem/remapp/tests/test_pt_size_import.py +232 -232
- openrem/remapp/tests/test_rf_detail.py +113 -113
- openrem/remapp/tests/test_rf_high_dose_alert.py +361 -361
- openrem/remapp/tools/background.py +361 -361
- openrem/remapp/tools/check_standard_name_status.py +47 -0
- openrem/remapp/tools/check_uid.py +70 -70
- openrem/remapp/tools/dcmdatetime.py +248 -248
- openrem/remapp/tools/default_import.py +44 -47
- openrem/remapp/tools/get_values.py +230 -230
- openrem/remapp/tools/hash_id.py +58 -58
- openrem/remapp/tools/make_skin_map.py +448 -406
- openrem/remapp/tools/not_patient_indicators.py +72 -72
- openrem/remapp/tools/openskin/calc_exp_map.py +173 -173
- openrem/remapp/tools/openskin/geomclass.py +475 -475
- openrem/remapp/tools/openskin/geomfunc.py +433 -432
- openrem/remapp/tools/openskin/skinmap.py +417 -417
- openrem/remapp/tools/populate_summary.py +185 -193
- openrem/remapp/tools/save_skin_map_structure.py +73 -73
- openrem/remapp/tools/send_high_dose_alert_emails.py +238 -207
- openrem/remapp/urls.py +456 -448
- openrem/remapp/version.py +11 -11
- openrem/remapp/views.py +1147 -1052
- openrem/remapp/views_admin.py +3876 -3936
- openrem/remapp/views_charts_ct.py +2110 -2058
- openrem/remapp/views_charts_dx.py +1906 -1836
- openrem/remapp/views_charts_mg.py +1349 -1196
- openrem/remapp/views_charts_nm.py +535 -535
- openrem/remapp/views_charts_rf.py +1219 -1241
- openrem/remapp/views_openskin.py +379 -384
- openrem/sample-config/openrem-consumer.service +12 -12
- openrem/sample-config/openrem-gunicorn.service +13 -13
- openrem/sample-config/openrem-server +14 -13
- openrem/sample-config/openrem_orthanc_config_linux.lua +454 -454
- openrem/sample-config/openrem_orthanc_config_windows.lua +455 -455
- openrem/sample-config/queue-init.bat +73 -73
- openrem/scripts/openrem_ctphilips.py +25 -25
- openrem/scripts/openrem_cttoshiba.py +28 -28
- openrem/scripts/openrem_dx.py +22 -22
- openrem/scripts/openrem_mg.py +22 -22
- openrem/scripts/openrem_nm.py +22 -22
- openrem/scripts/openrem_ptsizecsv.py +17 -17
- openrem/scripts/openrem_qr.py +12 -12
- openrem/scripts/openrem_rdsr.py +25 -25
- {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info}/METADATA +39 -29
- openrem-1.0.0b3.dist-info/RECORD +379 -0
- {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info}/WHEEL +1 -1
- {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info/licenses}/COPYING-GPLv3 +674 -674
- {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info/licenses}/LICENSE +22 -22
- OpenREM-1.0.0b2.dist-info/RECORD +0 -373
- openrem/remapp/static/js/charts/plotly-2.17.1.min.js +0 -8
- {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_ctphilips.py +0 -0
- {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_cttoshiba.py +0 -0
- {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_dx.py +0 -0
- {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_mg.py +0 -0
- {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_nm.py +0 -0
- {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_ptsizecsv.py +0 -0
- {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_qr.py +0 -0
- {OpenREM-1.0.0b2.data → openrem-1.0.0b3.data}/scripts/openrem_rdsr.py +0 -0
- {OpenREM-1.0.0b2.dist-info → openrem-1.0.0b3.dist-info}/top_level.txt +0 -0
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
{% load humanize %}
|
|
2
|
-
{% load i18n %}
|
|
3
|
-
|
|
4
|
-
{% with modality|add:'_summary_list_filter' as url_name %}
|
|
5
|
-
<table class="table table-bordered table-hover row-clickable sortable" id="summary_table_{{ modality }}">
|
|
6
|
-
<tr>
|
|
7
|
-
<th>{% trans "System name" %}</th>
|
|
8
|
-
<th>{% trans "Total number of studies" %}</th>
|
|
9
|
-
<th>{% trans "Latest study" %}</th>
|
|
10
|
-
{% if home_config.display_workload_stats %}
|
|
11
|
-
<th>{% blocktrans with home_config.day_delta_a as day_delta trimmed %}
|
|
12
|
-
Number in last {{ day_delta }} days{% endblocktrans %}</th>
|
|
13
|
-
<th>{% blocktrans with home_config.day_delta_b as day_delta trimmed %}
|
|
14
|
-
Number in last {{ day_delta }} days{% endblocktrans %}</th>
|
|
15
|
-
{% endif %}
|
|
16
|
-
</tr>
|
|
17
|
-
{% for details in study_data %}
|
|
18
|
-
|
|
19
|
-
{% if not details.generalequipmentmoduleattr__unique_equipment_name__display_name %}
|
|
20
|
-
|
|
21
|
-
<tr>
|
|
22
|
-
<td style="width: 25%">
|
|
23
|
-
{% if admin.admingroup %}
|
|
24
|
-
<a href="{% url 'review_failed_imports' modality|upper %}">Failed import - review here</a>
|
|
25
|
-
{% else %}
|
|
26
|
-
<a href="#">Failed import - ask an administrator to review</a>
|
|
27
|
-
{% endif %}
|
|
28
|
-
</td>
|
|
29
|
-
<td style="width:25%">
|
|
30
|
-
{% if admin.admingroup %}
|
|
31
|
-
<a href="{% url 'review_failed_imports' modality|upper %}">
|
|
32
|
-
{% else %}
|
|
33
|
-
<a href="#">
|
|
34
|
-
{% endif %}
|
|
35
|
-
{{ details.total }}
|
|
36
|
-
</a>
|
|
37
|
-
</td>
|
|
38
|
-
<td style="width:25%" sorttable_customkey="{{ details.latest_entry_date_time|date:"U" }}">
|
|
39
|
-
{% if admin.admingroup %}
|
|
40
|
-
<a href="{% url 'review_failed_imports' modality|upper %}">
|
|
41
|
-
{% else %}
|
|
42
|
-
<a href="#">
|
|
43
|
-
{% endif %}
|
|
44
|
-
{{ details.latest|naturaltime }}
|
|
45
|
-
</a>
|
|
46
|
-
</td>
|
|
47
|
-
{% if home_config.display_workload_stats %}
|
|
48
|
-
<td style="width:12.5%">
|
|
49
|
-
{% if admin.admingroup %}
|
|
50
|
-
<a href="{% url 'review_failed_imports' modality|upper %}"></a>
|
|
51
|
-
{% endif %}
|
|
52
|
-
</td>
|
|
53
|
-
<td style="width:12.5%">
|
|
54
|
-
{% if admin.admingroup %}
|
|
55
|
-
<a href="{% url 'review_failed_imports' modality|upper %}"></a>
|
|
56
|
-
{% endif %}
|
|
57
|
-
</td>
|
|
58
|
-
{% endif %}
|
|
59
|
-
</tr>
|
|
60
|
-
|
|
61
|
-
{% else %}
|
|
62
|
-
|
|
63
|
-
<tr>
|
|
64
|
-
<td style="width:25%">
|
|
65
|
-
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-
|
|
66
|
-
{{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}
|
|
67
|
-
</a>
|
|
68
|
-
</td>
|
|
69
|
-
<td style="width:25%">
|
|
70
|
-
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-
|
|
71
|
-
{{ details.num_studies }}
|
|
72
|
-
</a>
|
|
73
|
-
</td>
|
|
74
|
-
<td style="width:25%" sorttable_customkey="{{ details.latest_entry_date_time|date:"U" }}">
|
|
75
|
-
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-
|
|
76
|
-
{{ details.latest_entry_date_time|naturaltime }}
|
|
77
|
-
</a>
|
|
78
|
-
</td>
|
|
79
|
-
{% if home_config.display_workload_stats %}
|
|
80
|
-
<td style="width:12.5%">
|
|
81
|
-
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-
|
|
82
|
-
</td>
|
|
83
|
-
<td style="width:12.5%">
|
|
84
|
-
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-
|
|
85
|
-
</td>
|
|
86
|
-
{% endif %}
|
|
87
|
-
</tr>
|
|
88
|
-
|
|
89
|
-
{% endif %}
|
|
90
|
-
|
|
91
|
-
{% endfor %}
|
|
92
|
-
|
|
93
|
-
</table>
|
|
94
|
-
{% endwith %}
|
|
1
|
+
{% load humanize %}
|
|
2
|
+
{% load i18n %}
|
|
3
|
+
|
|
4
|
+
{% with modality|add:'_summary_list_filter' as url_name %}
|
|
5
|
+
<table class="table table-bordered table-hover row-clickable sortable" id="summary_table_{{ modality }}">
|
|
6
|
+
<tr>
|
|
7
|
+
<th>{% trans "System name" %}</th>
|
|
8
|
+
<th>{% trans "Total number of studies" %}</th>
|
|
9
|
+
<th>{% trans "Latest study" %}</th>
|
|
10
|
+
{% if home_config.display_workload_stats %}
|
|
11
|
+
<th>{% blocktrans with home_config.day_delta_a as day_delta trimmed %}
|
|
12
|
+
Number in last {{ day_delta }} days{% endblocktrans %}</th>
|
|
13
|
+
<th>{% blocktrans with home_config.day_delta_b as day_delta trimmed %}
|
|
14
|
+
Number in last {{ day_delta }} days{% endblocktrans %}</th>
|
|
15
|
+
{% endif %}
|
|
16
|
+
</tr>
|
|
17
|
+
{% for details in study_data %}
|
|
18
|
+
|
|
19
|
+
{% if not details.generalequipmentmoduleattr__unique_equipment_name__display_name %}
|
|
20
|
+
|
|
21
|
+
<tr>
|
|
22
|
+
<td style="width: 25%">
|
|
23
|
+
{% if admin.admingroup %}
|
|
24
|
+
<a href="{% url 'review_failed_imports' modality|upper %}">Failed import - review here</a>
|
|
25
|
+
{% else %}
|
|
26
|
+
<a href="#">Failed import - ask an administrator to review</a>
|
|
27
|
+
{% endif %}
|
|
28
|
+
</td>
|
|
29
|
+
<td style="width:25%">
|
|
30
|
+
{% if admin.admingroup %}
|
|
31
|
+
<a href="{% url 'review_failed_imports' modality|upper %}">
|
|
32
|
+
{% else %}
|
|
33
|
+
<a href="#">
|
|
34
|
+
{% endif %}
|
|
35
|
+
{{ details.total }}
|
|
36
|
+
</a>
|
|
37
|
+
</td>
|
|
38
|
+
<td style="width:25%" sorttable_customkey="{{ details.latest_entry_date_time|date:"U" }}">
|
|
39
|
+
{% if admin.admingroup %}
|
|
40
|
+
<a href="{% url 'review_failed_imports' modality|upper %}">
|
|
41
|
+
{% else %}
|
|
42
|
+
<a href="#">
|
|
43
|
+
{% endif %}
|
|
44
|
+
{{ details.latest|naturaltime }}
|
|
45
|
+
</a>
|
|
46
|
+
</td>
|
|
47
|
+
{% if home_config.display_workload_stats %}
|
|
48
|
+
<td style="width:12.5%">
|
|
49
|
+
{% if admin.admingroup %}
|
|
50
|
+
<a href="{% url 'review_failed_imports' modality|upper %}"></a>
|
|
51
|
+
{% endif %}
|
|
52
|
+
</td>
|
|
53
|
+
<td style="width:12.5%">
|
|
54
|
+
{% if admin.admingroup %}
|
|
55
|
+
<a href="{% url 'review_failed_imports' modality|upper %}"></a>
|
|
56
|
+
{% endif %}
|
|
57
|
+
</td>
|
|
58
|
+
{% endif %}
|
|
59
|
+
</tr>
|
|
60
|
+
|
|
61
|
+
{% else %}
|
|
62
|
+
|
|
63
|
+
<tr>
|
|
64
|
+
<td style="width:25%">
|
|
65
|
+
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-time_date">
|
|
66
|
+
{{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}
|
|
67
|
+
</a>
|
|
68
|
+
</td>
|
|
69
|
+
<td style="width:25%">
|
|
70
|
+
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-time_date">
|
|
71
|
+
{{ details.num_studies }}
|
|
72
|
+
</a>
|
|
73
|
+
</td>
|
|
74
|
+
<td style="width:25%" sorttable_customkey="{{ details.latest_entry_date_time|date:"U" }}">
|
|
75
|
+
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-time_date">
|
|
76
|
+
{{ details.latest_entry_date_time|naturaltime }}
|
|
77
|
+
</a>
|
|
78
|
+
</td>
|
|
79
|
+
{% if home_config.display_workload_stats %}
|
|
80
|
+
<td style="width:12.5%">
|
|
81
|
+
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-time_date&study_date__gt={{ home_config.date_a }}">{{ details.studies_since_delta_a }}</a>
|
|
82
|
+
</td>
|
|
83
|
+
<td style="width:12.5%">
|
|
84
|
+
<a href="{% url url_name %}?generalequipmentmoduleattr__unique_equipment_name__display_name={{ details.generalequipmentmoduleattr__unique_equipment_name__display_name }}&o=-time_date&study_date__gt={{ home_config.date_b }}">{{ details.studies_since_delta_b }}</a>
|
|
85
|
+
</td>
|
|
86
|
+
{% endif %}
|
|
87
|
+
</tr>
|
|
88
|
+
|
|
89
|
+
{% endif %}
|
|
90
|
+
|
|
91
|
+
{% endfor %}
|
|
92
|
+
|
|
93
|
+
</table>
|
|
94
|
+
{% endwith %}
|
|
@@ -1,202 +1,202 @@
|
|
|
1
|
-
{% extends "remapp/base.html" %}
|
|
2
|
-
{% load i18n %}
|
|
3
|
-
|
|
4
|
-
{% block headextras %}
|
|
5
|
-
<script src="{{ STATIC_URL }}js/sorttable.js"></script>
|
|
6
|
-
{% endblock %}
|
|
7
|
-
|
|
8
|
-
{% block navhelp %}
|
|
9
|
-
<li>
|
|
10
|
-
<a href="https://docs.openrem.org/en/{{ admin.docsversion }}/i_navigate.html" target="_blank"
|
|
11
|
-
data-toggle="tooltip"
|
|
12
|
-
title="Web interface documentation - opens in a new tab">
|
|
13
|
-
Web interface documentation
|
|
14
|
-
</a>
|
|
15
|
-
</li>
|
|
16
|
-
{% endblock %}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{% block toprow %}
|
|
20
|
-
<h1><img src="{{ STATIC_URL }}img/openrem0055.png" height="55" width="55" class="openrem-logo">OpenREM database
|
|
21
|
-
browser and export</h1>
|
|
22
|
-
|
|
23
|
-
{% if not users_in_groups.any %}
|
|
24
|
-
<div class="panel panel-danger">
|
|
25
|
-
<div class="panel-heading">
|
|
26
|
-
<h3 class="panel-title">There are no users in any of the groups</h3>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="panel-body">
|
|
29
|
-
<p>
|
|
30
|
-
You will need to allocate users to a group before using this system -
|
|
31
|
-
<a href="{% url 'admin:auth_user_changelist' %}">you can do this here.</a> You will need to know the
|
|
32
|
-
superuser
|
|
33
|
-
username and password you used when you installed the database.
|
|
34
|
-
</p>
|
|
35
|
-
<p>
|
|
36
|
-
Make sure there is at least one Admin user. You can return to the user config
|
|
37
|
-
page later by using the 'Manage users' link on the admin menu.
|
|
38
|
-
</p>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
{% elif not users_in_groups.admin %}
|
|
42
|
-
<div class="panel panel-warning">
|
|
43
|
-
<div class="panel-heading">
|
|
44
|
-
<h3 class="panel-title">There are no users in the admin group</h3>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="panel-body">
|
|
47
|
-
<p>
|
|
48
|
-
Make sure there is at least one Admin user — <a href="{% url 'admin:auth_user_changelist' %}">you
|
|
49
|
-
can do this here.</a> You
|
|
50
|
-
will need to know the superuser
|
|
51
|
-
username and password you used when you installed the database.
|
|
52
|
-
</p>
|
|
53
|
-
<p>
|
|
54
|
-
You can return to the user config
|
|
55
|
-
page later by using the 'Manage users' link on the admin menu.
|
|
56
|
-
</p>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
{% endif %}
|
|
60
|
-
|
|
61
|
-
<p>
|
|
62
|
-
{# Translators: Number of studies in DB listed above home-page table. No final full-stop in English due to a.m./p.m. #}
|
|
63
|
-
{% now "DATETIME_FORMAT" as current_time %}
|
|
64
|
-
{% blocktrans with total_studies=homedata.total trimmed%}
|
|
65
|
-
There are {{ total_studies }} studies in this database. Page last refreshed on {{ current_time }}
|
|
66
|
-
{% endblocktrans %}
|
|
67
|
-
{% if user.is_authenticated %}
|
|
68
|
-
{% if request.user.userprofile.plotCharts %}
|
|
69
|
-
{% trans "Chart plotting on." %}
|
|
70
|
-
{% else %}
|
|
71
|
-
{% trans "Chart plotting off." %}
|
|
72
|
-
{% endif %}
|
|
73
|
-
{% endif %}
|
|
74
|
-
</p>
|
|
75
|
-
|
|
76
|
-
{% if admin.admingroup %}
|
|
77
|
-
{% if admin_questions_true %}
|
|
78
|
-
<table class="table table-bordered" aria-describedby="Admin questions regarding non-patient exposures">
|
|
79
|
-
{% if admin_questions.not_patient_indicator_question %}
|
|
80
|
-
<tr>
|
|
81
|
-
<td>
|
|
82
|
-
<strong>Admin question:</strong> Identifying non-patient exposures has changed in release
|
|
83
|
-
0.8. Would you
|
|
84
|
-
like this install to match the behaviour of release 0.7.4 and earlier?
|
|
85
|
-
<a href="{% url 'admin_questions_hide_not_patient' %}" role="button"
|
|
86
|
-
class="btn btn-default pull-right">
|
|
87
|
-
Hide
|
|
88
|
-
</a>
|
|
89
|
-
<a href="{% url 'not_patient_indicators_as_074' %}" role="button"
|
|
90
|
-
class="btn btn-default pull-right">
|
|
91
|
-
Restore 0.7.4 patterns
|
|
92
|
-
</a>
|
|
93
|
-
<a href="{% url 'not_patient_indicators' %}" role="button"
|
|
94
|
-
class="btn btn-default pull-right">
|
|
95
|
-
More information
|
|
96
|
-
</a>
|
|
97
|
-
</td>
|
|
98
|
-
</tr>
|
|
99
|
-
{% endif %}
|
|
100
|
-
</table>
|
|
101
|
-
{% endif %}
|
|
102
|
-
{% endif %}
|
|
103
|
-
{% endblock %}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
{% block mainblock %}
|
|
107
|
-
|
|
108
|
-
<script>
|
|
109
|
-
{% if not migration_complete %}
|
|
110
|
-
$(document).ready(
|
|
111
|
-
function populate_summary_progress(json) {
|
|
112
|
-
$.ajax(
|
|
113
|
-
{
|
|
114
|
-
url: "{% url 'populate_summary_progress' %}",
|
|
115
|
-
data: {
|
|
116
|
-
csrfmiddlewaretoken: '{{ csrf_token }}'
|
|
117
|
-
},
|
|
118
|
-
type: "POST",
|
|
119
|
-
success: function (data) {
|
|
120
|
-
$('#summary-progress').html(data);
|
|
121
|
-
setTimeout(function() {
|
|
122
|
-
populate_summary_progress();
|
|
123
|
-
}, 2000);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
)
|
|
127
|
-
}
|
|
128
|
-
); {% endif %}
|
|
129
|
-
</script>
|
|
130
|
-
<p>
|
|
131
|
-
<p id="summary-progress"></p>
|
|
132
|
-
</p>
|
|
133
|
-
<table class="table table-bordered" aria-describedby="Number of studies for each modality">
|
|
134
|
-
<tr>
|
|
135
|
-
{% for modality, details in modalities.items %}
|
|
136
|
-
{% with modality|add:'_summary_list_filter' as url_name %}
|
|
137
|
-
<th scope="col" style="width:20%"><a href="{% url url_name|lower %}">{{ details.name }}</a></th>
|
|
138
|
-
{% endwith %}
|
|
139
|
-
{% endfor %}
|
|
140
|
-
</tr>
|
|
141
|
-
<tr>
|
|
142
|
-
{% for modality, details in modalities.items %}
|
|
143
|
-
<td>
|
|
144
|
-
<div id="total-{{ modality|lower }}">{{ details.count }}</div>
|
|
145
|
-
</td>
|
|
146
|
-
{% endfor %}
|
|
147
|
-
</tr>
|
|
148
|
-
</table>
|
|
149
|
-
|
|
150
|
-
{% for modality, details in modalities.items %}
|
|
151
|
-
<script>
|
|
152
|
-
$(document).ready(
|
|
153
|
-
function get_latest_studies(json) {
|
|
154
|
-
$.ajax(
|
|
155
|
-
{
|
|
156
|
-
url: "{% url 'update_latest_studies' %}",
|
|
157
|
-
data: {modality: '{{ modality }}'},
|
|
158
|
-
type: "POST",
|
|
159
|
-
success: function (data) {
|
|
160
|
-
$('#{{ modality }}-table').html(data);
|
|
161
|
-
var summary_table_{{ modality }} = document.getElementById("summary_table_{{ modality|lower }}");
|
|
162
|
-
sorttable.makeSortable(summary_table_{{ modality }});
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
)
|
|
166
|
-
}
|
|
167
|
-
)
|
|
168
|
-
</script>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
<h4>{{ details.name }} summary table</h4>
|
|
172
|
-
<div id="{{ modality }}-table">
|
|
173
|
-
<table class="table table-bordered table-hover row-clickable" aria-describedby="{{ details.name }} summary table">
|
|
174
|
-
<tr>
|
|
175
|
-
<th scope="col" style="width:25%">{% trans "System name" %}</th>
|
|
176
|
-
<th scope="col" style="width:25%">{% trans "Total number of studies" %}</th>
|
|
177
|
-
<th scope="col" style="width:25%">{% trans "Latest study" %}</th>
|
|
178
|
-
{% if home_config.display_workload_stats %}
|
|
179
|
-
<th scope="col" style="width:12.5%">{% blocktrans with home_config.day_delta_a as day_delta trimmed %}
|
|
180
|
-
Number in last {{ day_delta }} days{% endblocktrans %}</th>
|
|
181
|
-
<th scope="col" style="width:12.5%">{% blocktrans with home_config.day_delta_b as day_delta trimmed %}
|
|
182
|
-
Number in last {{ day_delta }} days{% endblocktrans %}</th>
|
|
183
|
-
{% endif %}
|
|
184
|
-
</tr>
|
|
185
|
-
<tr>
|
|
186
|
-
<td colspan={% if home_config.display_workload_stats %}"5"{% else %}"3"{% endif %}>
|
|
187
|
-
{% trans "Please wait - querying the database" %}</td>
|
|
188
|
-
</tr>
|
|
189
|
-
</table>
|
|
190
|
-
</div>
|
|
191
|
-
{% endfor %}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
{% if not modalities %}
|
|
197
|
-
<h4>No data to display in the system</h4>
|
|
198
|
-
<p>There are currently no studies from any modality stored in the database. Add some to see a summary of each on
|
|
199
|
-
this page.</p>
|
|
200
|
-
{% endif %}
|
|
201
|
-
|
|
202
|
-
{% endblock %}
|
|
1
|
+
{% extends "remapp/base.html" %}
|
|
2
|
+
{% load i18n %}
|
|
3
|
+
|
|
4
|
+
{% block headextras %}
|
|
5
|
+
<script src="{{ STATIC_URL }}js/sorttable.js"></script>
|
|
6
|
+
{% endblock %}
|
|
7
|
+
|
|
8
|
+
{% block navhelp %}
|
|
9
|
+
<li>
|
|
10
|
+
<a href="https://docs.openrem.org/en/{{ admin.docsversion }}/i_navigate.html" target="_blank"
|
|
11
|
+
data-toggle="tooltip"
|
|
12
|
+
title="Web interface documentation - opens in a new tab">
|
|
13
|
+
Web interface documentation
|
|
14
|
+
</a>
|
|
15
|
+
</li>
|
|
16
|
+
{% endblock %}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
{% block toprow %}
|
|
20
|
+
<h1><img src="{{ STATIC_URL }}img/openrem0055.png" height="55" width="55" class="openrem-logo">OpenREM database
|
|
21
|
+
browser and export</h1>
|
|
22
|
+
|
|
23
|
+
{% if not users_in_groups.any %}
|
|
24
|
+
<div class="panel panel-danger">
|
|
25
|
+
<div class="panel-heading">
|
|
26
|
+
<h3 class="panel-title">There are no users in any of the groups</h3>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="panel-body">
|
|
29
|
+
<p>
|
|
30
|
+
You will need to allocate users to a group before using this system -
|
|
31
|
+
<a href="{% url 'admin:auth_user_changelist' %}">you can do this here.</a> You will need to know the
|
|
32
|
+
superuser
|
|
33
|
+
username and password you used when you installed the database.
|
|
34
|
+
</p>
|
|
35
|
+
<p>
|
|
36
|
+
Make sure there is at least one Admin user. You can return to the user config
|
|
37
|
+
page later by using the 'Manage users' link on the admin menu.
|
|
38
|
+
</p>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
{% elif not users_in_groups.admin %}
|
|
42
|
+
<div class="panel panel-warning">
|
|
43
|
+
<div class="panel-heading">
|
|
44
|
+
<h3 class="panel-title">There are no users in the admin group</h3>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="panel-body">
|
|
47
|
+
<p>
|
|
48
|
+
Make sure there is at least one Admin user — <a href="{% url 'admin:auth_user_changelist' %}">you
|
|
49
|
+
can do this here.</a> You
|
|
50
|
+
will need to know the superuser
|
|
51
|
+
username and password you used when you installed the database.
|
|
52
|
+
</p>
|
|
53
|
+
<p>
|
|
54
|
+
You can return to the user config
|
|
55
|
+
page later by using the 'Manage users' link on the admin menu.
|
|
56
|
+
</p>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
{% endif %}
|
|
60
|
+
|
|
61
|
+
<p>
|
|
62
|
+
{# Translators: Number of studies in DB listed above home-page table. No final full-stop in English due to a.m./p.m. #}
|
|
63
|
+
{% now "DATETIME_FORMAT" as current_time %}
|
|
64
|
+
{% blocktrans with total_studies=homedata.total trimmed%}
|
|
65
|
+
There are {{ total_studies }} studies in this database. Page last refreshed on {{ current_time }}
|
|
66
|
+
{% endblocktrans %}
|
|
67
|
+
{% if user.is_authenticated %}
|
|
68
|
+
{% if request.user.userprofile.plotCharts %}
|
|
69
|
+
{% trans "Chart plotting on." %}
|
|
70
|
+
{% else %}
|
|
71
|
+
{% trans "Chart plotting off." %}
|
|
72
|
+
{% endif %}
|
|
73
|
+
{% endif %}
|
|
74
|
+
</p>
|
|
75
|
+
|
|
76
|
+
{% if admin.admingroup %}
|
|
77
|
+
{% if admin_questions_true %}
|
|
78
|
+
<table class="table table-bordered" aria-describedby="Admin questions regarding non-patient exposures">
|
|
79
|
+
{% if admin_questions.not_patient_indicator_question %}
|
|
80
|
+
<tr>
|
|
81
|
+
<td>
|
|
82
|
+
<strong>Admin question:</strong> Identifying non-patient exposures has changed in release
|
|
83
|
+
0.8. Would you
|
|
84
|
+
like this install to match the behaviour of release 0.7.4 and earlier?
|
|
85
|
+
<a href="{% url 'admin_questions_hide_not_patient' %}" role="button"
|
|
86
|
+
class="btn btn-default pull-right">
|
|
87
|
+
Hide
|
|
88
|
+
</a>
|
|
89
|
+
<a href="{% url 'not_patient_indicators_as_074' %}" role="button"
|
|
90
|
+
class="btn btn-default pull-right">
|
|
91
|
+
Restore 0.7.4 patterns
|
|
92
|
+
</a>
|
|
93
|
+
<a href="{% url 'not_patient_indicators' %}" role="button"
|
|
94
|
+
class="btn btn-default pull-right">
|
|
95
|
+
More information
|
|
96
|
+
</a>
|
|
97
|
+
</td>
|
|
98
|
+
</tr>
|
|
99
|
+
{% endif %}
|
|
100
|
+
</table>
|
|
101
|
+
{% endif %}
|
|
102
|
+
{% endif %}
|
|
103
|
+
{% endblock %}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
{% block mainblock %}
|
|
107
|
+
|
|
108
|
+
<script>
|
|
109
|
+
{% if not migration_complete %}
|
|
110
|
+
$(document).ready(
|
|
111
|
+
function populate_summary_progress(json) {
|
|
112
|
+
$.ajax(
|
|
113
|
+
{
|
|
114
|
+
url: "{% url 'populate_summary_progress' %}",
|
|
115
|
+
data: {
|
|
116
|
+
csrfmiddlewaretoken: '{{ csrf_token }}'
|
|
117
|
+
},
|
|
118
|
+
type: "POST",
|
|
119
|
+
success: function (data) {
|
|
120
|
+
$('#summary-progress').html(data);
|
|
121
|
+
setTimeout(function() {
|
|
122
|
+
populate_summary_progress();
|
|
123
|
+
}, 2000);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
); {% endif %}
|
|
129
|
+
</script>
|
|
130
|
+
<p>
|
|
131
|
+
<p id="summary-progress"></p>
|
|
132
|
+
</p>
|
|
133
|
+
<table class="table table-bordered" aria-describedby="Number of studies for each modality">
|
|
134
|
+
<tr>
|
|
135
|
+
{% for modality, details in modalities.items %}
|
|
136
|
+
{% with modality|add:'_summary_list_filter' as url_name %}
|
|
137
|
+
<th scope="col" style="width:20%"><a href="{% url url_name|lower %}">{{ details.name }}</a></th>
|
|
138
|
+
{% endwith %}
|
|
139
|
+
{% endfor %}
|
|
140
|
+
</tr>
|
|
141
|
+
<tr>
|
|
142
|
+
{% for modality, details in modalities.items %}
|
|
143
|
+
<td>
|
|
144
|
+
<div id="total-{{ modality|lower }}">{{ details.count }}</div>
|
|
145
|
+
</td>
|
|
146
|
+
{% endfor %}
|
|
147
|
+
</tr>
|
|
148
|
+
</table>
|
|
149
|
+
|
|
150
|
+
{% for modality, details in modalities.items %}
|
|
151
|
+
<script>
|
|
152
|
+
$(document).ready(
|
|
153
|
+
function get_latest_studies(json) {
|
|
154
|
+
$.ajax(
|
|
155
|
+
{
|
|
156
|
+
url: "{% url 'update_latest_studies' %}",
|
|
157
|
+
data: {modality: '{{ modality }}'},
|
|
158
|
+
type: "POST",
|
|
159
|
+
success: function (data) {
|
|
160
|
+
$('#{{ modality }}-table').html(data);
|
|
161
|
+
var summary_table_{{ modality }} = document.getElementById("summary_table_{{ modality|lower }}");
|
|
162
|
+
sorttable.makeSortable(summary_table_{{ modality }});
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
)
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
</script>
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
<h4>{{ details.name }} summary table</h4>
|
|
172
|
+
<div id="{{ modality }}-table">
|
|
173
|
+
<table class="table table-bordered table-hover row-clickable" aria-describedby="{{ details.name }} summary table">
|
|
174
|
+
<tr>
|
|
175
|
+
<th scope="col" style="width:25%">{% trans "System name" %}</th>
|
|
176
|
+
<th scope="col" style="width:25%">{% trans "Total number of studies" %}</th>
|
|
177
|
+
<th scope="col" style="width:25%">{% trans "Latest study" %}</th>
|
|
178
|
+
{% if home_config.display_workload_stats %}
|
|
179
|
+
<th scope="col" style="width:12.5%">{% blocktrans with home_config.day_delta_a as day_delta trimmed %}
|
|
180
|
+
Number in last {{ day_delta }} days{% endblocktrans %}</th>
|
|
181
|
+
<th scope="col" style="width:12.5%">{% blocktrans with home_config.day_delta_b as day_delta trimmed %}
|
|
182
|
+
Number in last {{ day_delta }} days{% endblocktrans %}</th>
|
|
183
|
+
{% endif %}
|
|
184
|
+
</tr>
|
|
185
|
+
<tr>
|
|
186
|
+
<td colspan={% if home_config.display_workload_stats %}"5"{% else %}"3"{% endif %}>
|
|
187
|
+
{% trans "Please wait - querying the database" %}</td>
|
|
188
|
+
</tr>
|
|
189
|
+
</table>
|
|
190
|
+
</div>
|
|
191
|
+
{% endfor %}
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
{% if not modalities %}
|
|
197
|
+
<h4>No data to display in the system</h4>
|
|
198
|
+
<p>There are currently no studies from any modality stored in the database. Add some to see a summary of each on
|
|
199
|
+
this page.</p>
|
|
200
|
+
{% endif %}
|
|
201
|
+
|
|
202
|
+
{% endblock %}
|