Views
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