Export Views¶
-
remapp.exports.exportviews.
include_pid
(request, name, pat_id)¶ Check if user is allowed to export PID, then check if they have asked to. :param request: request so we can determine the user and therefore groups :param name: string, 0 or 1 from URL indicating if names should be exported :param pat_id: string, 0 or 1 from URL indicating if patient ID should be exported :return: dict, with pidgroup, include_names and include_pat_id as bools
-
remapp.exports.exportviews.
ctcsv1
(*args, **kwargs)¶ View to launch celery task to export CT studies to csv file
Parameters: - request (GET) – Contains the database filtering parameters. Also used to get user group.
- name – string, 0 or 1 from URL indicating if names should be exported
- pat_id – string, 0 or 1 from URL indicating if patient ID should be exported
-
remapp.exports.exportviews.
ctxlsx1
(*args, **kwargs)¶ View to launch celery task to export CT studies to xlsx file
Parameters: - request (GET) – Contains the database filtering parameters. Also used to get user group.
- name – string, 0 or 1 from URL indicating if names should be exported
- pat_id – string, 0 or 1 from URL indicating if patient ID should be exported
-
remapp.exports.exportviews.
dxcsv1
(*args, **kwargs)¶ View to launch celery task to export DX and CR studies to csv file
Parameters: - request (GET) – Contains the database filtering parameters. Also used to get user group.
- name – string, 0 or 1 from URL indicating if names should be exported
- pat_id – string, 0 or 1 from URL indicating if patient ID should be exported
-
remapp.exports.exportviews.
dxxlsx1
(*args, **kwargs)¶ View to launch celery task to export DX and CR studies to xlsx file
Parameters: - request (GET) – Contains the database filtering parameters. Also used to get user group.
- name – string, 0 or 1 from URL indicating if names should be exported
- pat_id – string, 0 or 1 from URL indicating if patient ID should be exported
-
remapp.exports.exportviews.
flcsv1
(*args, **kwargs)¶ View to launch celery task to export fluoroscopy studies to csv file
Parameters: - request (GET) – Contains the database filtering parameters. Also used to get user group.
- name – string, 0 or 1 from URL indicating if names should be exported
- patid – string, 0 or 1 from URL indicating if patient ID should be exported
-
remapp.exports.exportviews.
rfxlsx1
(*args, **kwargs)¶ View to launch celery task to export fluoroscopy studies to xlsx file
Parameters: - request (GET) – Contains the database filtering parameters. Also used to get user group.
- name – string, 0 or 1 from URL indicating if names should be exported
- patid – string, 0 or 1 from URL indicating if patient ID should be exported
-
remapp.exports.exportviews.
rfopenskin
(*args, **kwargs)¶ Create csv export suitable for import to standalone openSkin :param request: request object :param pk: primary key of study in GeneralStudyModuleAttr table
-
remapp.exports.exportviews.
mgcsv1
(*args, **kwargs)¶ Launches export of mammo data to CSV :param request: Contains the database filtering parameters. Also used to get user group. :param name: string, 0 or 1 from URL indicating if names should be exported :param patid: string, 0 or 1 from URL indicating if patient ID should be exported :return:
-
remapp.exports.exportviews.
mgxlsx1
(*args, **kwargs)¶ Launches export of mammo data to xlsx :param request: Contains the database filtering parameters. Also used to get user group. :param name: string, 0 or 1 from URL indicating if names should be exported :param patid: string, 0 or 1 from URL indicating if patient ID should be exported :return:
-
remapp.exports.exportviews.
mgnhsbsp
(*args, **kwargs)¶ View to launch celery task to export mammography studies to csv file using a NHSBSP template
Parameters: request (GET) – Contains the database filtering parameters. Also used to get user group.
-
remapp.exports.exportviews.
export
(*args, **kwargs)¶ View to list current and completed exports to track progress, download and delete
Parameters: request – Used to get user group.
-
remapp.exports.exportviews.
download
(request, *args, **kwargs)¶ View to handle downloads of files from the server
Originally used for download of the export spreadsheets, now also used for downloading the patient size import logfiles.
Parameters: - request – Used to get user group.
- task_id – ID of the export or logfile
-
remapp.exports.exportviews.
deletefile
(*args, **kwargs)¶ View to delete export files from the server
Parameters: request (POST) – Contains the task ID
-
remapp.exports.exportviews.
export_abort
(request, *args, **kwargs)¶ View to abort current export job
Parameters: request (POST) – Contains the task primary key
-
remapp.exports.exportviews.
update_active
(*args, **kwargs)¶ AJAX function to return active exports
Parameters: request – Request object Returns: HTML table of active exports
-
remapp.exports.exportviews.
update_error
(*args, **kwargs)¶ AJAX function to return exports in error state
Parameters: request – Request object Returns: HTML table of exports in error state
-
remapp.exports.exportviews.
update_complete
(*args, **kwargs)¶ AJAX function to return recently completed exports
Parameters: request – Request object, including pk of latest complete export at initial page load Returns: HTML table of completed exports