24. Things to do

24.1. Tasks

Done, in testing

  • Psycho-oncology: FACT-G
  • Psycho-oncology (and FROM-LP): EQ-5D-5L

Priority

To be prioritized

  • Test Your Memory (TYM) task (Jerry M. Brown).
  • Continuous performance task, as per RNC’s similar previous task (Linda P and team).

Not a priority

  • Cardinal_ExpDet* tasks: generate noise on the fly?
  • PDSQ screener (see Clark talk 2018-09-20, MQ Data Science)

Consider

  • new task: mini-ACE (subset of the ACE-III)
  • new task: Andy Foster / eating disorders; e-mail of 24/5/16
  • new task: AQ10 autistic spectrum screening
  • discarded tasks - revitalize: ASRM
  • discarded tasks - revitalize: BARS
  • discarded tasks - revitalize: BFCRS
  • discarded tasks - revitalize: CSI
  • discarded tasks - revitalize: EPDS
  • discarded tasks - revitalize: FAB
  • discarded tasks - revitalize: GASS
  • discarded tasks - revitalize: LSHSA
  • discarded tasks - revitalize: LSHSLAROI2005
  • discarded tasks - revitalize: LUNSERS
  • discarded tasks - revitalize: MADRS
  • discarded tasks - revitalize: SAS

24.2. Client core

Priority

  • Validator options, e.g. the server says “ID type 72 uses the ‘NHS number’ validator”, so checksums are checked. An NHS number validator is built.

    • needs ?text field addition to the ID number descriptor table (client + server), e.g. “nhs” for NHS number validator; only needs to be one option; default NULL or blank
    • (client + server) ID numbers should provide info as to whether they pass their validator?
    • plus changes to download code, maintaining backward compatibility
    • plus changes to (client) patient editor, using the NHS number validator if the validator is “NHS”, etc.
    • on the server, HTML task view showing a warning if an ID number fails its validator?

    This would be a “per ID number” setting.

  • Think: maybe extend the “required ID number” system so that groups can define whether the client should/shouldn’t offer forename, surname, DOB, address, GP, other. This would make it easier to enforce a “no PID” rule for research studies. This would be a per-group setting.

  • Facility to dump entire groups e.g. daily to a database.

  • Facility to auto-email individual PDFS to defined group recipients (e.g. admin teams).

  • Ensure autoscheduling facility is working properly.

  • Have facility to upload and/or automatically feed patient details into the server, then have clients restrict to these predefined patients. Since we are aiming to minimize PID on the client, this could be implemented by having the client validate its patients with the server, and refusing to upload if they don’t match. This would be a per-group setting.

  • Consider a “chain of tasks” concept again (see e.g. ResearchMenu.js; MenuTableRow.js; QuestionnaireHeader.js…)… or is that pointless relative to a “set of tasks” concept?

Medium priority

  • iOS build.
  • Apple App Store.

Not a priority

  • Make tasks support SNOMED coding. Should each task return multiple SNOMED rows e.g. code, value (+/- originator type e.g. clinician/patient)?
  • OS/X build.
  • Think about a web-based client, e.g. via VNC (but this is complex and loads servers/networks considerably). Potentially more promising is Qt for WebAssembly (in preview May 2018), which compiles to a variety of portable quasi-assembly language; the browser downloads and runs it. However, at present there is no threading or DNS lookup (http://blog.qt.io/blog/2018/05/22/qt-for-webassembly/).
  • Desktop-style menu for desktop clients. (Faster to navigate around.)
  • Current Android back button behaviour may not be optimal.
  • Maybe implement pinch zoom for some subclasses of OpenableWidget, e.g. MenuWindow and Questionaire. See http://doc.qt.io/qt-5/qtwidgets-gestures-imagegestures-example.html
  • QuAudioRecording: questionnaire element to record audio
  • QuVideoRecording: questionnaire element to record video
  • Qt have fixed bug https://bugreports.qt.io/browse/QTBUG-35545 as of Qt 5.12.0 beta 1, so may be possible to improve dialogue boxes again on Android (but possibly our workaround sorted it; can’t remember); check.

24.3. Server

Priority

  • Facility to hide individual sticky notes (with audit trail), so they’re not shown in HTML (+ PDF) and XML views. See e-mail RNC/JK/RE, 2018-10-12.

  • Superuser facility to list all users’ e-mail addresses or provide mailto: URL.

  • Test the HL7 backend. Think re HL7 implementation carefully; see hl7_design.txt. Also: ensure we can efficiently distinguish between “previously sent” and “needs to be sent” in the context of re-sending stuff that changes in important ways (if we continue to allow this).

  • Ensure that the “system user” and “server device” are used everywhere they should be.

  • Finish manual.

  • Test SQL Server support. (Main work was the implementation of the ISO-8601 field, 2018-05-22; the rest should be automatic.) Document that the minimum SQL Server version is 2008 (below that, there’s no time zone conversion support).

  • (SERVER + CLIENT) Concept of “tasks that need doing” in the context of a research study.

    • define patients on server (per group)
      • share main patient/patient_idnum tables
      • use the “server device” to create them, and always in era “NOW”
    • ScheduledTask – “task needs doing”
      • patient (by ID number); group; task; due_from; due_by; cancelled?
      • Example: “PHQ9 due for Mr X on 1 July; must be completed by 1 Aug”
    • then for metacreation: “StudySchedule” or “TaskPanel”
      • … a list of tasks, each with: task; due_from_relative_to_start_date; due_by_relative_to_start_date
      • example: “In our study, we want a PHQ9 and GAD7 at the start, a PHQ9 at 3 months, and a PHQ9 and GAD7 at 6 months.”
    • PatientSchedule
      • instantiate a “StudySchedule”/“TaskPanel” with patient, group, start date
      • e.g. “Mr Jones starts today…. enrol!”
    • Tablets should fetch “what needs doing” for any patients defined on the
      tablet, and display them nicely.
    • Tasks must be complete to satisfy the requirement.
  • … Relating to that: consider, on the client, a “single-patient” mode (distinct from the current “researcher” mode), tied to a specific server. “This tablet client is attached to a specific patient and will operate in a patient-friendly, single-patient mode. Show me what needs completing.” The operating concept would be: if you would like someone geographically far away to be able to download CamCOPS and complete a set of tasks for you, how could you organize so that would be simplest for them? The minimum would that you’d create login details for them, and give them a URL, username, and password.

  • Rename server master tool from camcops to camcops_server. Rename package, too. This is so we can use “camcops” for the client (on the basis that the client should be the simplest for users).

  • What’s the optimal packaging method for the server? Is it DEB/RPM for Linux, and PyInstaller + Inno Setup (or just Inno Setup) for Windows?

  • Think: should we have a task index? Rationale would be to speed up multi-task queries (which will get slower as we add more tasks). Would have a table like _task_index and a class like TaskIndex, with fields including:

    • task_table_name: VARCHAR(?64); task main table name
    • task_pk: server _pk field for task
    • patient_which_idnum
    • patient_idnum_value

    … with one entry (patient_which_idnum = NULL) for anonymous tasks and one or more entries for actual patients?

    Using this index would be a method for TaskCollection and TaskFilter.

    Not sure this is yet optimal, though; see the task filters; would want to support all common use-cases. Needs a bit more thought.

    Would also need an (offline only?) method to update the index – and most significantly, the upload code would need to become properly patient-aware and task-aware to update the index (and do so in an atomic way across multiple upload calls).

Not a priority

  • Implement (from command line) “export to anonymisation staging database” = with patient info per table. (Extend cc_dump.py. See generate_anonymisation_staging_db(), and it’s also temporarily disabled in the master command-line handler.)

24.4. Documentation to-do list

Todo

get_cris_dd_row: outdated/broken; fix/delete.

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/envs/latest/lib/python3.5/site-packages/camcops_server/cc_modules/cc_anon.py:docstring of camcops_server.cc_modules.cc_anon.get_cris_dd_row, line 4.)

Todo

get_cris_dd_rows_from_fieldspecs: outdated/broken; fix/delete.

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/envs/latest/lib/python3.5/site-packages/camcops_server/cc_modules/cc_anon.py:docstring of camcops_server.cc_modules.cc_anon.get_cris_dd_rows_from_fieldspecs, line 1.)

Todo

ids_of_groups_user_may_dump: check: no second-hand authority given here via groups; should we? Also crosscheck to groups_user_may_dump

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/envs/latest/lib/python3.5/site-packages/camcops_server/cc_modules/cc_user.py:docstring of camcops_server.cc_modules.cc_user.User.ids_of_groups_user_may_dump, line 4.)

Todo

ids_of_groups_user_may_report_on: check: no second-hand authority given here via groups; should we? Also crosscheck to groups_user_may_report_on

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/envs/latest/lib/python3.5/site-packages/camcops_server/cc_modules/cc_user.py:docstring of camcops_server.cc_modules.cc_user.User.ids_of_groups_user_may_report_on, line 4.)

Todo

Submit CamCOPS to Apple App Store.

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/checkouts/latest/docs/source/client/client_installation.rst, line 74.)

Todo

Package CamCOPS client for easier Windows distribution.

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/checkouts/latest/docs/source/client/client_installation.rst, line 79.)

Todo

Package CamCOPS client for easier Linux distribution.

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/checkouts/latest/docs/source/client/client_installation.rst, line 84.)

Todo

Have the default ID number type configurable per group?

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/checkouts/latest/docs/source/introduction/patient_identification.rst, line 88.)

Todo

This tour is a little outdated; apologies! The screenshots are of the older Javascript/Titanium application, not the newer C++/Qt application, and the server front end has also improved. We’ll update this when we can.

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/checkouts/latest/docs/source/introduction/tour.rst, line 25.)

Todo

The HL7 implementation is currently disabled. This needs fixing.

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/checkouts/latest/docs/source/server/server_front_end_admin.rst, line 199.)

Todo

sort out MySQL dependencies and/or provide database driver advice

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/checkouts/latest/docs/source/server/server_installation.rst, line 96.)

Todo

implement Windows service

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/checkouts/latest/docs/source/server/server_installation.rst, line 97.)

Todo

Add to documentation about database migrations.

(The original entry is located in /home/docs/checkouts/readthedocs.org/user_builds/camcops/checkouts/latest/docs/source/server/server_migrating_databases.rst, line 38.)