Export Views

remapp.exports.exportviews.ct_xlsx_phe2019(request)

View to launch task to export CT studies to xlsx file in PHE 2019 CT survey format

Parameters:

request – Contains the database filtering parameters and user details.

remapp.exports.exportviews.ctcsv1(request, name=None, pat_id=None)

View to launch 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(request, name=None, pat_id=None)

View to launch 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.deletefile(request)

View to delete export files from the server

Parameters:

request (POST) – Contains the task ID

remapp.exports.exportviews.download(request, task_id)

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.dx_xlsx_phe2019(request, export_type=None)

View to launch task to export DX studies to xlsx file in PHE 2019 DX survey format

Parameters:
  • request – Contains the database filtering parameters and user details.

  • export_type – string, ‘projection’ or ‘exam’

remapp.exports.exportviews.dxcsv1(request, name=None, pat_id=None)

View to launch 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(request, name=None, pat_id=None)

View to launch 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.export(request)

View to list current and completed exports to track progress, download and delete

Parameters:

request – Used to get user group.

remapp.exports.exportviews.export_abort(request, pk)

View to abort current export job

Parameters:

request (POST) – Contains the task primary key

remapp.exports.exportviews.export_remove(request, task_id=None)

Function to remove export task from queue

Parameters:
  • request (POST) – Contains the task primary key

  • task_id – UUID of task in question

remapp.exports.exportviews.flcsv1(request, name=None, pat_id=None)

View to launch 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

  • pat_id – string, 0 or 1 from URL indicating if patient ID should be exported

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.mgcsv1(request, name=None, pat_id=None)

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 pat_id: string, 0 or 1 from URL indicating if patient ID should be exported :return:

remapp.exports.exportviews.mgnhsbsp(request)

View to launch 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.mgxlsx1(request, name=None, pat_id=None)

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 pat_id: string, 0 or 1 from URL indicating if patient ID should be exported :return:

remapp.exports.exportviews.nmcsv1(request, name=None, pat_id=None)

View to launch task to export NM 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.nmxlsx1(request, name=None, pat_id=None)

View to launch celery task to export NM studies to excel 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.rf_xlsx_phe2019(request)

View to launch task to export fluoro studies to xlsx file in PHE 2019 IR/fluoro survey format

Parameters:

request – Contains the database filtering parameters and user details.

remapp.exports.exportviews.rfopenskin(request, pk)

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.rfxlsx1(request, name=None, pat_id=None)

View to launch 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

  • pat_id – string, 0 or 1 from URL indicating if patient ID should be exported

remapp.exports.exportviews.update_active(request)

AJAX function to return active exports

Parameters:

request – Request object

Returns:

HTML table of active exports

remapp.exports.exportviews.update_complete(request)

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

remapp.exports.exportviews.update_error(request)

AJAX function to return exports in error state

Parameters:

request – Request object

Returns:

HTML table of exports in error state

remapp.exports.exportviews.update_queue(request)

AJAX function to return queued exports

Parameters:

request – Request object

Returns:

HTML table of active exports