Views¶
- remapp.views.ct_detail_view(request, pk=None)¶
Detail view for a CT study.
- remapp.views.ct_summary_list_filter(request)¶
Obtain data for CT summary view.
- remapp.views.dx_detail_view(request, pk=None)¶
Detail view for a DX study.
- remapp.views.dx_summary_list_filter(request)¶
Obtain data for radiographic summary view.
- remapp.views.logout_page(request)¶
Log users out and re-direct them to the main page.
- remapp.views.mg_detail_view(request, pk=None)¶
Detail view for a CT study.
- remapp.views.mg_summary_list_filter(request)¶
Mammography data for summary view.
- remapp.views.multiply(value, arg)¶
Return multiplication within Django templates
- Parameters
value – the value to multiply
arg – the second value to multiply
- Returns
the multiplication
- remapp.views.nm_detail_view(request, pk=None)¶
Detail view for a NM study.
- remapp.views.nm_summary_list_filter(request)¶
Obtain data for NM summary view.
- remapp.views.rf_detail_view(request, pk=None)¶
Detail view for an RF study.
- remapp.views.rf_detail_view_skin_map(request, pk=None)¶
View to calculate a skin dose map. Currently just a copy of rf_detail_view.
- remapp.views.rf_summary_list_filter(request)¶
Obtain data for radiographic summary view.
- remapp.views.standard_name_settings()¶
Obtain the system-level enable_standard_names setting.
- remapp.views.update_latest_studies(request)¶
AJAX function to calculate the latest studies for each display name for a particular modality.
- Parameters
request – Request object
- Returns
HTML table of modalities
openSkin related views¶
openSkin related views.
- class remapp.views_openskin.SkinDoseMapCalcSettingsUpdate(**kwargs)¶
Update skin dose map calculation settings.
- form_class¶
alias of
SkinDoseMapCalcSettingsForm
- form_valid(form)¶
If the form is valid, save the associated model.
- get_context_data(**context)¶
Insert the form into the context dict.
- model¶
alias of
SkinDoseMapCalcSettings
- class remapp.views_openskin.SkinSafeListCreate(**kwargs)¶
Enable skin map calculations by adding model, or model and software version to OpenSkinSafeList.
- form_class¶
alias of
SkinSafeListForm
- form_valid(form)¶
If the form is valid, save the associated model.
- get_context_data(**context)¶
Insert the form into the context dict.
- model¶
alias of
OpenSkinSafeList
- class remapp.views_openskin.SkinSafeListDelete(**kwargs)¶
Disable skin map calculations for particular model or model and software version.
- delete(request, *args, **kwargs)¶
Call the delete() method on the fetched object and then redirect to the success URL.
- get_context_data(**context)¶
Insert the single object into the context dict.
- model¶
alias of
OpenSkinSafeList
- class remapp.views_openskin.SkinSafeListUpdate(**kwargs)¶
Add or remove the software version restriction.
- form_class¶
alias of
SkinSafeListForm
- form_valid(form)¶
If the form is valid, save the associated model.
- get_context_data(**context)¶
Insert the form into the context dict.
- model¶
alias of
OpenSkinSafeList
- remapp.views_openskin.check_skin_safe_model(skin_safe_models)¶
Check if device matches on manufacturer and model without version restriction.
openSkin safe list OpenSkinSafeList is checked against manufacturer and model. This function is then used to check if there are any entries on the list where software_version is blank.
- Parameters
skin_safe_models (OpenSkinSafeList queryset) – Queryset of safe list entries matching manufacturer and model
- Returns
safe_list_model_pk (int or None) – Primary key of entry if match found,
None
otherwisemodel_enabled (bool) –
True
if match found with blank software_version, otherwiseFalse
- remapp.views_openskin.display_name_skin_enabled(request)¶
AJAX view to display if skin map calculations are enabled and links to change the configuration.
- remapp.views_openskin.get_matching_equipment_names(manufacturer, model_name)¶
Get queryset of unique equipment names that match the manufacturer and model name being reviewed.
Filters the UniqueEquipmentNames table for fluoroscopy entries (or dual fluoro + radiography) that match the manufacturer and model that has been selected.
- Parameters
manufacturer (str) – Name of manufacturer from UniqueEquipmentNames table
model_name (str) – Model name from UniqueEquipmentNames table
- Returns
Queryset filtered for fluoro systems matching the manufacturer and model name
- Return type
UniqueEquipmentNames queryset