CRATE

Contents:

  • 1. Overview
  • 2. Package elements in brief
  • 3. Reference publications
  • 4. Installing CRATE
  • 5. Preprocessing tools
  • 6. Anonymisation
  • 7. Natural language processing (NLP)
  • 8. Configuring the CRATE web interface
  • 9. Using the CRATE web interface
  • 10. Ancillary tools
  • 11. FAQs and troubleshooting
  • 12. Linkage tools
  • 13. Additional notes
  • 14. Automatic documentation of source code
    • 14.1. crate_anon/anonymise
    • 14.2. crate_anon/common
    • 14.3. crate_anon/crateweb
      • 14.3.1. crate_anon.crateweb.__init__
      • 14.3.2. crate_anon.crateweb.anonymise_api.__init__
      • 14.3.3. crate_anon.crateweb.anonymise_api.constants
      • 14.3.4. crate_anon.crateweb.anonymise_api.serializers
      • 14.3.5. crate_anon.crateweb.anonymise_api.tests
      • 14.3.6. crate_anon.crateweb.anonymise_api.urls
      • 14.3.7. crate_anon.crateweb.anonymise_api.views
      • 14.3.8. crate_anon.crateweb.config.__init__
      • 14.3.9. crate_anon.crateweb.config.apps
      • 14.3.10. crate_anon.crateweb.config.constants
      • 14.3.11. crate_anon.crateweb.config.settings
      • 14.3.12. crate_anon.crateweb.config.test_settings
      • 14.3.13. crate_anon.crateweb.config.urls
      • 14.3.14. crate_anon.crateweb.config.wsgi
      • 14.3.15. crate_anon.crateweb.consent.__init__
      • 14.3.16. crate_anon.crateweb.consent.celery
      • 14.3.17. crate_anon.crateweb.consent.constants
      • 14.3.18. crate_anon.crateweb.consent.forms
      • 14.3.19. crate_anon.crateweb.consent.lookup
      • 14.3.20. crate_anon.crateweb.consent.lookup_common
      • 14.3.21. crate_anon.crateweb.consent.lookup_crs
      • 14.3.22. crate_anon.crateweb.consent.lookup_dummy
      • 14.3.23. crate_anon.crateweb.consent.lookup_rio
      • 14.3.24. crate_anon.crateweb.consent.lookup_systmone
      • 14.3.25. crate_anon.crateweb.consent.management.__init__
      • 14.3.26. crate_anon.crateweb.consent.management.commands.__init__
      • 14.3.27. crate_anon.crateweb.consent.management.commands.email_rdbm
      • 14.3.28. crate_anon.crateweb.consent.management.commands.fetch_optouts
      • 14.3.29. crate_anon.crateweb.consent.management.commands.lookup_consent
      • 14.3.30. crate_anon.crateweb.consent.management.commands.lookup_patient
      • 14.3.31. crate_anon.crateweb.consent.management.commands.make_ethics_pack
      • 14.3.32. crate_anon.crateweb.consent.management.commands.populate
      • 14.3.33. crate_anon.crateweb.consent.management.commands.resubmit_unprocessed_tasks
      • 14.3.34. crate_anon.crateweb.consent.management.commands.test_email
      • 14.3.35. crate_anon.crateweb.consent.migrations.0001_initial
      • 14.3.36. crate_anon.crateweb.consent.migrations.0002_auto_20160621_1511
      • 14.3.37. crate_anon.crateweb.consent.migrations.0003_auto_20160628_1301
      • 14.3.38. crate_anon.crateweb.consent.migrations.0004_auto_20160703_1530
      • 14.3.39. crate_anon.crateweb.consent.migrations.0005_auto_20170203_1348
      • 14.3.40. crate_anon.crateweb.consent.migrations.0006_auto_20170206_1617
      • 14.3.41. crate_anon.crateweb.consent.migrations.0007_auto_20170228_1052
      • 14.3.42. crate_anon.crateweb.consent.migrations.0008_auto_20170507_1218
      • 14.3.43. crate_anon.crateweb.consent.migrations.0009_auto_20180629_1132
      • 14.3.44. crate_anon.crateweb.consent.migrations.0010_auto_20180629_1238
      • 14.3.45. crate_anon.crateweb.consent.migrations.0011_auto_20181022_0801
      • 14.3.46. crate_anon.crateweb.consent.migrations.0012_auto_20181102_1335
      • 14.3.47. crate_anon.crateweb.consent.migrations.0013_auto_20181223_1124
      • 14.3.48. crate_anon.crateweb.consent.migrations.0014_contactrequest_rdbm_to_contact_pt
      • 14.3.49. crate_anon.crateweb.consent.migrations.0015_auto_20190104_1255
      • 14.3.50. crate_anon.crateweb.consent.migrations.0016_auto_20190212_1118
      • 14.3.51. crate_anon.crateweb.consent.migrations.0017_replace_nullbooleanfield
      • 14.3.52. crate_anon.crateweb.consent.migrations.__init__
      • 14.3.53. crate_anon.crateweb.consent.models
      • 14.3.54. crate_anon.crateweb.consent.storage
      • 14.3.55. crate_anon.crateweb.consent.tasks
      • 14.3.56. crate_anon.crateweb.consent.teamlookup
      • 14.3.57. crate_anon.crateweb.consent.teamlookup_dummy
      • 14.3.58. crate_anon.crateweb.consent.teamlookup_rio
      • 14.3.59. crate_anon.crateweb.consent.teamlookup_systmone
      • 14.3.60. crate_anon/crateweb/consent/templates/charity_report.html
      • 14.3.61. crate_anon/crateweb/consent/templates/clinician_already_responded.html
      • 14.3.62. crate_anon/crateweb/consent/templates/clinician_confirm_response.html
      • 14.3.63. crate_anon/crateweb/consent/templates/clinician_contact_request_result.html
      • 14.3.64. crate_anon/crateweb/consent/templates/clinician_contact_request_submit.html
      • 14.3.65. crate_anon/crateweb/consent/templates/clinician_notes.html
      • 14.3.66. crate_anon/crateweb/consent/templates/clinician_response.html
      • 14.3.67. crate_anon/crateweb/consent/templates/clinician_response.js
      • 14.3.68. crate_anon/crateweb/consent/templates/consent_lookup_get_nhs.html
      • 14.3.69. crate_anon/crateweb/consent/templates/consent_lookup_result.html
      • 14.3.70. crate_anon/crateweb/consent/templates/consent_table.html
      • 14.3.71. crate_anon/crateweb/consent/templates/contact_after_discharge_permission_phrase.html
      • 14.3.72. crate_anon/crateweb/consent/templates/contact_request_result.html
      • 14.3.73. crate_anon/crateweb/consent/templates/contact_request_submit.html
      • 14.3.74. crate_anon/crateweb/consent/templates/decision_form_to_patient_re_study.html
      • 14.3.75. crate_anon/crateweb/consent/templates/discharged_phrase.html
      • 14.3.76. crate_anon/crateweb/consent/templates/email_clinician.html
      • 14.3.77. crate_anon/crateweb/consent/templates/email_clinician_initiated_cr.html
      • 14.3.78. crate_anon/crateweb/consent/templates/email_rdbm_bad_progress.html
      • 14.3.79. crate_anon/crateweb/consent/templates/email_rdbm_good_progress.html
      • 14.3.80. crate_anon/crateweb/consent/templates/email_rdbm_new_work_pt_from_clinician.html
      • 14.3.81. crate_anon/crateweb/consent/templates/email_rdbm_new_work_pt_from_rdbm.html
      • 14.3.82. crate_anon/crateweb/consent/templates/email_rdbm_new_work_researcher.html
      • 14.3.83. crate_anon/crateweb/consent/templates/email_researcher_approval.html
      • 14.3.84. crate_anon/crateweb/consent/templates/email_researcher_withdrawal.html
      • 14.3.85. crate_anon/crateweb/consent/templates/exclusion_report.html
      • 14.3.86. crate_anon/crateweb/consent/templates/generate_random_nhs.html
      • 14.3.87. crate_anon/crateweb/consent/templates/letter_patient_confirm_traffic.html
      • 14.3.88. crate_anon/crateweb/consent/templates/letter_patient_first_traffic_light.html
      • 14.3.89. crate_anon/crateweb/consent/templates/letter_patient_from_clinician_re_study.html
      • 14.3.90. crate_anon/crateweb/consent/templates/letter_researcher_approve.html
      • 14.3.91. crate_anon/crateweb/consent/templates/letter_researcher_to_patient_cover_letter_template.html
      • 14.3.92. crate_anon/crateweb/consent/templates/letter_researcher_withdraw.html
      • 14.3.93. crate_anon/crateweb/consent/templates/office_div.html
      • 14.3.94. crate_anon/crateweb/consent/templates/patient_lookup_get_nhs.html
      • 14.3.95. crate_anon/crateweb/consent/templates/patient_lookup_result.html
      • 14.3.96. crate_anon/crateweb/consent/templates/patient_p.html
      • 14.3.97. crate_anon/crateweb/consent/templates/patient_table.html
      • 14.3.98. crate_anon/crateweb/consent/templates/phrase_green.html
      • 14.3.99. crate_anon/crateweb/consent/templates/phrase_never_affect.html
      • 14.3.100. crate_anon/crateweb/consent/templates/phrase_never_affect_personal.html
      • 14.3.101. crate_anon/crateweb/consent/templates/phrase_red.html
      • 14.3.102. crate_anon/crateweb/consent/templates/phrase_yellow.html
      • 14.3.103. crate_anon/crateweb/consent/templates/signature_box_patient.html
      • 14.3.104. crate_anon/crateweb/consent/templates/study_table.html
      • 14.3.105. crate_anon/crateweb/consent/templates/test_email_rdbm_ack.html
      • 14.3.106. crate_anon/crateweb/consent/templates/traffic_light_decision_form.html
      • 14.3.107. crate_anon.crateweb.consent.utils
      • 14.3.108. crate_anon.crateweb.consent.views
      • 14.3.109. crate_anon.crateweb.core.__init__
      • 14.3.110. crate_anon.crateweb.core.admin
      • 14.3.111. crate_anon.crateweb.core.auth_views
      • 14.3.112. crate_anon.crateweb.core.constants
      • 14.3.113. crate_anon.crateweb.core.context_processors
      • 14.3.114. crate_anon.crateweb.core.management.__init__
      • 14.3.115. crate_anon.crateweb.core.management.commands.__init__
      • 14.3.116. crate_anon.crateweb.core.management.commands.ensuresuperuser
      • 14.3.117. crate_anon.crateweb.core.management.commands.runcpserver
      • 14.3.118. crate_anon.crateweb.core.middleware
      • 14.3.119. crate_anon.crateweb.core.utils
      • 14.3.120. crate_anon.crateweb.core.views
      • 14.3.121. crate_anon.crateweb.extra.__init__
      • 14.3.122. crate_anon.crateweb.extra.admin
      • 14.3.123. crate_anon.crateweb.extra.pdf
      • 14.3.124. crate_anon.crateweb.extra.salutation
      • 14.3.125. crate_anon.crateweb.manage
      • 14.3.126. crate_anon.crateweb.research.__init__
      • 14.3.127. crate_anon.crateweb.research.archive_backend
      • 14.3.128. crate_anon.crateweb.research.archive_func
      • 14.3.129. crate_anon.crateweb.research.errors
      • 14.3.130. crate_anon.crateweb.research.forms
      • 14.3.131. crate_anon.crateweb.research.html_functions
      • 14.3.132. crate_anon.crateweb.research.migrations.0001_initial
      • 14.3.133. crate_anon.crateweb.research.migrations.0002_auto_20170203_1348
      • 14.3.134. crate_anon.crateweb.research.migrations.0003_patientexplorer_patientexploreraudit
      • 14.3.135. crate_anon.crateweb.research.migrations.0004_auto_20170212_0137
      • 14.3.136. crate_anon.crateweb.research.migrations.0005_query_sql_hash
      • 14.3.137. crate_anon.crateweb.research.migrations.0006_patientexplorer_pmq_hash
      • 14.3.138. crate_anon.crateweb.research.migrations.0007_sitewidequery
      • 14.3.139. crate_anon.crateweb.research.migrations.0008_query_display
      • 14.3.140. crate_anon.crateweb.research.migrations.0009_query_no_null
      • 14.3.141. crate_anon.crateweb.research.migrations.0010_query_last_run
      • 14.3.142. crate_anon.crateweb.research.migrations.0011_auto_20190521_2109
      • 14.3.143. crate_anon.crateweb.research.migrations.0012_archiveattachmentaudit_archivetemplateaudit
      • 14.3.144. crate_anon.crateweb.research.migrations.__init__
      • 14.3.145. crate_anon.crateweb.research.models
      • 14.3.146. crate_anon.crateweb.research.research_db_info
      • 14.3.147. crate_anon.crateweb.research.sql_writer
      • 14.3.148. crate_anon/crateweb/research/templates/clinician_form_all_text_from_pid.html
      • 14.3.149. crate_anon/crateweb/research/templates/clinician_form_all_text_from_pid_choose_db.html
      • 14.3.150. crate_anon/crateweb/research/templates/database_structure.html
      • 14.3.151. crate_anon/crateweb/research/templates/database_structure_table.html
      • 14.3.152. crate_anon/crateweb/research/templates/database_structure_tree.html
      • 14.3.153. crate_anon/crateweb/research/templates/edit_display.html
      • 14.3.154. crate_anon/crateweb/research/templates/highlight_bad_id.html
      • 14.3.155. crate_anon/crateweb/research/templates/highlight_edit_select.html
      • 14.3.156. crate_anon/crateweb/research/templates/include_clinician_warning_lag.html
      • 14.3.157. crate_anon/crateweb/research/templates/include_clinician_warning_yours_only.html
      • 14.3.158. crate_anon/crateweb/research/templates/local_structure_help.html
      • 14.3.159. crate_anon/crateweb/research/templates/page_nav_results.html
      • 14.3.160. crate_anon/crateweb/research/templates/pe_bad.html
      • 14.3.161. crate_anon/crateweb/research/templates/pe_bad_id.html
      • 14.3.162. crate_anon/crateweb/research/templates/pe_build.html
      • 14.3.163. crate_anon/crateweb/research/templates/pe_choose.html
      • 14.3.164. crate_anon/crateweb/research/templates/pe_df_result.html
      • 14.3.165. crate_anon/crateweb/research/templates/pe_missing.html
      • 14.3.166. crate_anon/crateweb/research/templates/pe_monster_result.html
      • 14.3.167. crate_anon/crateweb/research/templates/pe_result.html
      • 14.3.168. crate_anon/crateweb/research/templates/pe_table_browser.html
      • 14.3.169. crate_anon/crateweb/research/templates/pid_abbrev_explanation.html
      • 14.3.170. crate_anon/crateweb/research/templates/pid_lookup_choose_db.html
      • 14.3.171. crate_anon/crateweb/research/templates/pid_lookup_form.html
      • 14.3.172. crate_anon/crateweb/research/templates/pid_lookup_result.html
      • 14.3.173. crate_anon/crateweb/research/templates/query_add_sitewide.html
      • 14.3.174. crate_anon/crateweb/research/templates/query_bad.html
      • 14.3.175. crate_anon/crateweb/research/templates/query_bad_id.html
      • 14.3.176. crate_anon/crateweb/research/templates/query_build.html
      • 14.3.177. crate_anon/crateweb/research/templates/query_count.html
      • 14.3.178. crate_anon/crateweb/research/templates/query_edit_select.html
      • 14.3.179. crate_anon/crateweb/research/templates/query_missing.html
      • 14.3.180. crate_anon/crateweb/research/templates/query_nav.html
      • 14.3.181. crate_anon/crateweb/research/templates/query_none_selected.html
      • 14.3.182. crate_anon/crateweb/research/templates/query_result.html
      • 14.3.183. crate_anon/crateweb/research/templates/query_show.html
      • 14.3.184. crate_anon/crateweb/research/templates/querybuilder_extrahead.html
      • 14.3.185. crate_anon/crateweb/research/templates/querybuilder_form.html
      • 14.3.186. crate_anon/crateweb/research/templates/rid_lookup_choose_db.html
      • 14.3.187. crate_anon/crateweb/research/templates/rid_lookup_form.html
      • 14.3.188. crate_anon/crateweb/research/templates/rid_lookup_result.html
      • 14.3.189. crate_anon/crateweb/research/templates/show_sitewide_queries.html
      • 14.3.190. crate_anon/crateweb/research/templates/source_information.html
      • 14.3.191. crate_anon/crateweb/research/templates/sql_fragment.html
      • 14.3.192. crate_anon/crateweb/research/templates/sqlhelper_form_drug_type_choose_db.html
      • 14.3.193. crate_anon/crateweb/research/templates/sqlhelper_form_drugtype.html
      • 14.3.194. crate_anon/crateweb/research/templates/sqlhelper_form_text_anywhere.html
      • 14.3.195. crate_anon/crateweb/research/templates/sqlhelper_form_text_anywhere_choose_db.html
      • 14.3.196. crate_anon.crateweb.research.tests.__init__
      • 14.3.197. crate_anon.crateweb.research.tests.factories
      • 14.3.198. crate_anon.crateweb.research.tests.models_tests
      • 14.3.199. crate_anon.crateweb.research.tests.research_db_info_tests
      • 14.3.200. crate_anon.crateweb.research.tests.sql_writer_tests
      • 14.3.201. crate_anon.crateweb.research.views
      • 14.3.202. crate_anon/crateweb/specimen_archives/basic/clinical_documents.mako
      • 14.3.203. crate_anon/crateweb/specimen_archives/basic/diagnoses.mako
      • 14.3.204. crate_anon/crateweb/specimen_archives/basic/inherit/base.mako
      • 14.3.205. crate_anon/crateweb/specimen_archives/basic/patient_root.mako
      • 14.3.206. crate_anon/crateweb/specimen_archives/basic/progress_notes.mako
      • 14.3.207. crate_anon/crateweb/specimen_archives/basic/root.mako
      • 14.3.208. crate_anon/crateweb/specimen_archives/basic/search.mako
      • 14.3.209. crate_anon/crateweb/specimen_archives/basic/snippets/attachments.mako
      • 14.3.210. crate_anon/crateweb/specimen_archives/basic/snippets/results_table.mako
      • 14.3.211. crate_anon/crateweb/specimen_archives/basic/test.mako
      • 14.3.212. crate_anon/crateweb/specimen_archives/basic/test_subpanel_1.mako
      • 14.3.213. crate_anon/crateweb/specimen_archives/basic/test_subpanel_2.mako
      • 14.3.214. crate_anon/crateweb/specimen_archives/static/archive.css
      • 14.3.215. crate_anon/crateweb/specimen_archives/static/tree.js
      • 14.3.216. crate_anon/crateweb/specimen_archives/tree/inherit/base.mako
      • 14.3.217. crate_anon/crateweb/specimen_archives/tree/inherit/plotting.mako
      • 14.3.218. crate_anon/crateweb/specimen_archives/tree/nonpatient_root.mako
      • 14.3.219. crate_anon/crateweb/specimen_archives/tree/panels/clinical_documents.mako
      • 14.3.220. crate_anon/crateweb/specimen_archives/tree/panels/crash.mako
      • 14.3.221. crate_anon/crateweb/specimen_archives/tree/panels/nlp.mako
      • 14.3.222. crate_anon/crateweb/specimen_archives/tree/panels/progress_notes.mako
      • 14.3.223. crate_anon/crateweb/specimen_archives/tree/panels/test_plot.mako
      • 14.3.224. crate_anon/crateweb/specimen_archives/tree/patient_root.mako
      • 14.3.225. crate_anon/crateweb/specimen_archives/tree/root.mako
      • 14.3.226. crate_anon/crateweb/specimen_archives/tree/snippets/patient_details.mako
      • 14.3.227. crate_anon/crateweb/specimen_archives/tree/snippets/results_table.mako
      • 14.3.228. crate_anon/crateweb/specimen_archives/tree/snippets/results_table_nlp.mako
      • 14.3.229. crate_anon/crateweb/specimen_archives/tree/snippets/single_nlp_page.mako
      • 14.3.230. crate_anon/crateweb/specimen_archives/tree/snippets/subtree.mako
      • 14.3.231. crate_anon/crateweb/static/base.css
      • 14.3.232. crate_anon/crateweb/static/collapse.js
      • 14.3.233. crate_anon/crateweb/static/extra_styles.css
      • 14.3.234. crate_anon/crateweb/static/querybuilder.js
      • 14.3.235. crate_anon/crateweb/static/web.css
      • 14.3.236. crate_anon/crateweb/templates/404.html
      • 14.3.237. crate_anon/crateweb/templates/405.html
      • 14.3.238. crate_anon/crateweb/templates/500.html
      • 14.3.239. crate_anon/crateweb/templates/about.html
      • 14.3.240. crate_anon/crateweb/templates/admin/edit_once_view_form.html
      • 14.3.241. crate_anon/crateweb/templates/admin/readonly_view_form.html
      • 14.3.242. crate_anon/crateweb/templates/admin/save_only_submit_row.html
      • 14.3.243. crate_anon/crateweb/templates/admin/viewchange_admin_app_index.html
      • 14.3.244. crate_anon/crateweb/templates/admin/viewchange_admin_index.html
      • 14.3.245. crate_anon/crateweb/templates/anonymise_api/home.html
      • 14.3.246. crate_anon/crateweb/templates/base.html
      • 14.3.247. crate_anon/crateweb/templates/base_email.html
      • 14.3.248. crate_anon/crateweb/templates/base_pdf.html
      • 14.3.249. crate_anon/crateweb/templates/base_pdf_letter.html
      • 14.3.250. crate_anon/crateweb/templates/email.css
      • 14.3.251. crate_anon/crateweb/templates/expand_collapse_buttons.html
      • 14.3.252. crate_anon/crateweb/templates/generic_error.html
      • 14.3.253. crate_anon/crateweb/templates/global_header.html
      • 14.3.254. crate_anon/crateweb/templates/home.html
      • 14.3.255. crate_anon/crateweb/templates/include_jquery.html
      • 14.3.256. crate_anon/crateweb/templates/logged_out.html
      • 14.3.257. crate_anon/crateweb/templates/login.html
      • 14.3.258. crate_anon/crateweb/templates/page_nav.html
      • 14.3.259. crate_anon/crateweb/templates/password_change.html
      • 14.3.260. crate_anon/crateweb/templates/pdf.css
      • 14.3.261. crate_anon/crateweb/templates/pdf_footer.html
      • 14.3.262. crate_anon/crateweb/templates/pdf_header.html
      • 14.3.263. crate_anon/crateweb/templates/shortlist_studies.html
      • 14.3.264. crate_anon/crateweb/templates/show_form_errors.html
      • 14.3.265. crate_anon/crateweb/templates/show_hide_buttons.html
      • 14.3.266. crate_anon.crateweb.userprofile.__init__
      • 14.3.267. crate_anon.crateweb.userprofile.forms
      • 14.3.268. crate_anon.crateweb.userprofile.migrations.0001_initial
      • 14.3.269. crate_anon.crateweb.userprofile.migrations.0002_userprofile_sql_scratchpad
      • 14.3.270. crate_anon.crateweb.userprofile.migrations.0003_auto_20160628_1301
      • 14.3.271. crate_anon.crateweb.userprofile.migrations.0004_userprofile_patients_per_page
      • 14.3.272. crate_anon.crateweb.userprofile.migrations.0005_userprofile_patient_multiquery_scratchpad
      • 14.3.273. crate_anon.crateweb.userprofile.migrations.0006_auto_20170212_0137
      • 14.3.274. crate_anon.crateweb.userprofile.migrations.0007_auto_20170507_1218
      • 14.3.275. crate_anon.crateweb.userprofile.migrations.__init__
      • 14.3.276. crate_anon.crateweb.userprofile.models
      • 14.3.277. crate_anon/crateweb/userprofile/templates/edit_profile.html
      • 14.3.278. crate_anon.crateweb.userprofile.views
    • 14.4. crate_anon/linkage
    • 14.5. crate_anon/nlp_manager
    • 14.6. crate_anon/nlp_webserver
    • 14.7. crate_anon/preprocess
    • 14.8. crate_anon/tools
  • 15. Index of CRATE commands
  • 16. Licences
  • 17. Change log/history
  • 18. Things to do
  • 19. Abbreviations
  • 20. Glossary
CRATE
  • 14. Automatic documentation of source code
  • 14.3. crate_anon/crateweb
  • 14.3.66. crate_anon/crateweb/consent/templates/clinician_response.html
  • View page source

14.3.66. crate_anon/crateweb/consent/templates/clinician_response.html

{# crate_anon/crateweb/consent/templates/clinician_response.html #}
{% extends "base.html" %}

{% comment %}
    template parameters:
        clinician_involvement_requested: bool
        clinician_involvement_required_unknown: bool
        clinician_involvement_required_yellow: bool
        consent_mode: ConsentMode
        contact_request: ContactRequest
        extra_form: bool
        Leaflet: Leaflet class
        option_c_available: bool
        option_r_available: bool
        patient_lookup: PatientLookup
        permitted_to_contact_discharged_patients_for_n_days: int
        settings: Django settings object
        study: Study
        unknown_consent_mode: bool
{% endcomment %}

{% block extrahead %}
    <script>
        {% include "clinician_response.js" with initial_response=clinician_response.response %}
        // passed through: option_c_available, option_r_available
    </script>
{% endblock %}
{% block onload %}onload="startup()"{% endblock %}
{% block mainsiteheader %}{% endblock %}

{% block content %}

    {# <h1 id="debug"></h1> #}

    <p>Dear {{ patient_lookup.clinician_salutation }},</p>

    <p>Based on de-identified information in the CPFT Research Database, a
    research team has identified the following patient of yours as
    potentially eligible for a study that they are conducting:</p>

    {% include "patient_table.html" with patient_lookup=patient_lookup consent_mode=consent_mode verbose=True %}

    <p>The study is:</p>

    {% include 'study_table.html' with study=study contact_request=contact_request to_clinician=True offer_details=True offer_clinician_form=True %}

    <p>At this stage, the researchers do not know the patient’s identity.
    They have identified the patient based on a search of the de-identified
    CPFT Research Database. Patient information may only be disclosed to
    the researchers with the patient’s consent.</p>

    {% if clinician_involvement_requested %}

        <b>The researchers have indicated that they would like you, as the
        patient’s clinician, to consider this request.</b>
        This may be because they would need clinical information from you
        to establish whether the patient is indeed eligible to participate,
        or because they would need information from you as part of the
        study itself.

    {% elif clinician_involvement_required_yellow %}

        The researchers would like the patient’s permission to be
        contacted.
        <b>This patient has actively chosen that all approaches by research
        teams should be on a case-by-case
        basis via the primary clinical team</b> (“approach mode YELLOW”),
        and so this request has been passed along to you.

    {% elif clinician_involvement_required_unknown %}

        The researchers would like the patient’s permission to be
        contacted.
        <b>This patient has never been asked their preference regarding
        direct approaches by research teams,</b>
        and so this request has been passed along to you.
        <b>We would like to know the patient’s preference about being
        contacted for this study,
        but also about future studies in general.</b>

    {% else %}

        <div class="important">Bug! Clinician involvement not specified. Please contact the CRATE developer.</div>

    {% endif %}

    <p>We would be very grateful if you would do the following:</p>

    <h2>Check…</h2>

    {% if patient_lookup.is_under_16 %}
        <div class="important">
            <b>Under 16!</b>
            This patient is under 16. Please follow the procedure
            outlined in the leaflet
            “<a href="{% url 'leaflet' Leaflet.CPFT_CLINRES %}" target="_blank"><i>Information for clinicians and
            researchers about the CPFT research database</i></a>”.
        </div>
    {% else %}
        {# MCA doesn't apply to under-16s, so we don't need both. #}
        <div>
            <b>Lacks capacity?</b>
            If the patient lacks capacity to decide about research participation,
            please follow the procedure outlined in the leaflet
            “<a href="{% url 'leaflet' Leaflet.CPFT_CLINRES %}" target="_blank"><i>Information for clinicians and
            researchers about the CPFT research database</i></a>”.
        </div>
    {% endif %}

    {% include "discharged_phrase.html" %}

    <h2>Read…</h2>

    <div>
        <span class="action">Please examine the
        <a href="{% url 'study_details' study.id %}" target="_blank">study details</a>.</span>
        (You don’t have to consider detailed inclusion/exclusion
        criteria; that’s the researcher’s job. If you think the patient
        <i>might</i> be suitable, that’s good enough.)
    </div>

    <h2>Choose.</h2>

    <p class="action">
        <b>Please select an option below, and follow the
        instructions that appear.</b>
    </p>

    <br>
    <div class="highlight">
        <form action="{% url 'clinician_response' clinician_response.id %}" method="POST">

            {% csrf_token %}
            {% for hidden in form.hidden_fields %}
                {{ hidden }}
            {% endfor %}

            {# Manual control of radio choice; see https://docs.djangoproject.com/en/1.8/ref/forms/widgets/ #}
            <label id="optionR_radio" onclick="showR();">
                <input type="radio"
                       name="response"
                       value="{{ ClinicianResponse.RESPONSE_R }}"
                       {% if clinician_response.response == ClinicianResponse.RESPONSE_R %}checked{% endif %}>
                <b>R. The patient may be eligible for this study.
                Do the work for me.</b> I authorize the Research
                Database Manager to send the patient a letter on my
                behalf, signed <i>pp</i> me, passing on this request.
                <br>
            </label>

            <label onclick="showA();">
                <input type="radio"
                       name="response"
                       value="{{ ClinicianResponse.RESPONSE_A }}"
                       {% if clinician_response.response == ClinicianResponse.RESPONSE_A %}checked{% endif %}>
                <b>A. The patient may be eligible for this study. I
                shall pass this request along to the patient.</b>
                <br>
            </label>

            <label onclick="showB();">
                <input type="radio"
                       name="response"
                       value="{{ ClinicianResponse.RESPONSE_B }}"
                       {% if clinician_response.response == ClinicianResponse.RESPONSE_B %}checked{% endif %}>
                <b>B. As the patient’s clinician, I decline to pass
                this request on to the patient.</b>
                <br>
            </label>

            {# The appearance of option C is conditional on option_c_available; see clinician_response.js #}
            <label id="optionC_radio" onclick="showC();">
                <input type="radio"
                       name="response"
                       value="{{ ClinicianResponse.RESPONSE_C }}"
                       {% if clinician_response.response == ClinicianResponse.RESPONSE_C %}checked{% endif %}>
                <b>C. The patient is ineligible for this study.</b>
                <br>
            </label>

            <label onclick="showD();">
                <input type="radio" name="response"
                       value="{{ ClinicianResponse.RESPONSE_D }}"
                       {% if clinician_response.response == ClinicianResponse.RESPONSE_D %}checked{% endif %}>
                <b>D. The patient is Deceased, Discharged more than
                    {{ permitted_to_contact_discharged_patients_for_n_days }} days
                    ({{ permitted_to_contact_discharged_patients_for_n_years }} years) ago,
                    or their Details are Defunct, preventing contact.</b>
                <br>
            </label>

            <div id="optionR">
                <hr>
                <div class="indent">
                    <div class="action">Thank you. Please confirm your name below and click
                    “Submit”. We’ll do the rest.</div>
                </div>
            </div>

            <div id="optionA">
                <hr>
                <div class="indent">
                    <p>Thank you.</p>

                    <p class="action"><b>Please print out the
                    <a href="{% url 'clinician_pack' clinician_response.id clinician_response.token %}"
                        target="_blank">CUSTOMIZED INFORMATION PACK</a>.
                        </b></p>
                    <p>If possible, please use a double-sided colour A4 printer.</p>

                    <p class="action">Now choose whether you prefer to
                    discuss this with the patient in person, or pass on the
                    request by letter. A letter has been drafted for your
                    signature (it’s in the pack) in case you prefer the
                    latter.</p>

                    <p class="important">If you prefer to discuss this with
                    the patient <b>in person:</b></p>

                    <ol>
                        <li>Please show the materials to the patient.</li>

                        {% if unknown_consent_mode %}
                            <li>Please explain to that all CPFT patients are asked their views
                            about being contacted in the future by research teams about taking
                            part in research. In addition, one particular research team is
                            already interested in patients like them, and we would like to know
                            whether they are willing for that research team to be given their
                            details, so that researchers can talk to them about taking part in
                            research. They are <i>not</i> being asked for consent to
                            participate, just for consent to being sent information by the
                            researchers and for the researchers to see their CPFT records (to
                            check they’re suitable for the study).</li>
                        {% endif %}

                        <li>Please ask them to choose (consent or refuse) <b>about this
                        study</b> on their personalized form and sign it.</li>

                        {% if extra_form %}
                            <li>If they consent, please complete the researcher’s form as
                            best you can.</li>
                        {% endif %}

                        {% if unknown_consent_mode %}
                            <li>Please ask them to choose (GREEN, YELLOW, or RED) <b>about
                            studies in general</b> on the other decision form, fill in their
                            details, and sign it.</li>
                        {% endif %}

                        <li>
                            Return the
                            form{% if extra_form or unknown_consent_mode %}s{% endif %}
                            to {{ settings.RDBM_ADDRESS|join:", " }}.
                        </li>
                    </ol>

                    <div class="important">If you prefer to pass the
                    request to the patient <b>by letter:</b></div>

                    <ol>
                        <li>Please sign the draft letter from you to the patient.</li>

                        {% if contact_request.is_extra_form %}
                            <li>Please fill in the researcher’s “clinician” form as best you can.</li>
                        {% endif %}

                        <li>Please send (or ask your secretary to send) all materials to the
                        patient. Include an envelope pre-addressed to
                        {{ settings.RDBM_ADDRESS|join:", " }} (if you’d
                        like stocks of pre-printed envelopes, please e-mail
                        <a href="mailto:{{ settings.RDBM_EMAIL }}">{{ settings.RDBM_EMAIL }}</a>).</li>
                    </ol>

                    <div>Confirm your name below and click “Submit”. Thank you!</div>
                </div>
            </div>

            <div id="optionB">
                <hr>
                <div class="indent">
                    <p>Thank you.</p>

                    <p>Normally, the decision about being contacted for
                    research studies should be the patient’s. However, all
                    approaches such as this one, via the clinical team, are
                    subject to your “veto”: as the patient’s clinician, you
                    may decline to pass the request on to the patient. If
                    you choose this option, no information about the
                    patient will be given to the research team. Please only
                    choose this option in exceptional circumstances, as it
                    reduces the patient’s ability to choose. Exceptional
                    circumstances might include those in which, in your
                    judgement, an offer to the patient to participate in
                    research might cause extreme distress, or that the
                    patient currently lacks the capacity to make a decision
                    about participation (and the study does not concern
                    such patients specifically). Your views on the study
                    itself should not prompt you to select this option; all
                    studies supported by CPFT have ethical approval and we
                    seek to promote patient choice about research
                    participation. Please give a reason for your choice,
                    so that we may audit use of this option.</p>

                    <div class="fieldWrapper">
                        <b>{{ form.veto_reason.label_tag }}</b>
                        {{ form.veto_reason }}
                        {{ form.veto_reason.errors }}
                    </div>

                    <div class="action">Now, please confirm your name below and
                    click “Submit”. Thank you!</div>
                </div>
            </div>

            <div id="optionC">
                <hr>
                <div class="indent">
                    <p>Thank you.</p>
                    <p>
                        If you can, please supply a brief reason. This will
                        not be passed to the researchers but will help us
                        to monitor the accuracy of researchers’ requests
                        from the Research Database.
                    </p>

                    <div class="fieldWrapper">
                        <b>{{ form.ineligible_reason.label_tag }}</b>
                        {{ form.ineligible_reason }}
                        {{ form.ineligible_reason.errors }}
                    </div>

                    <div class="action">>Now, please confirm your name below
                    and click “Submit”. Thank you!</div>
                </div>
            </div>

            <div id="optionD">
                <hr>
                <div class="indent">
                    <p>Thank you.</p>
                    <p>
                        If you can, please give further details. This will
                        not be passed to the researchers but will help us
                        to monitor the accuracy of researchers’ requests
                        from the Research Database.
                    </p>

                    <div class="fieldWrapper">
                        <b>{{ form.pt_uncontactable_reason.label_tag }}</b>
                        {{ form.pt_uncontactable_reason }}
                        {{ form.pt_uncontactable_reason.errors }}
                    </div>

                    <div class="action">Now, please confirm your name below and
                    click “Submit”. Thank you!</div>
                </div>
            </div>

            <div id="submit" class="indent">
                <div class="fieldWrapper">
                    <b>{{ form.clinician_confirm_name.label_tag }}</b>
                    {{ form.clinician_confirm_name }}
                    {{ form.clinician_confirm_name.errors }}
                </div>

                <input type="submit" value="Submit">

            </div>
        </form>
    </div>

    <p>If you have any queries, please telephone the Research Database
    Manager on {{ settings.RDBM_TELEPHONE }}.</p>

    <p>Thank you for your help!<p>

    {% include "clinician_notes.html" with settings=settings Leaflet=Leaflet %}

    {# {% include 'show_form_errors.html' with form=form %} #}

{% endblock %}
Previous Next

© Copyright 2015, University of Cambridge, Department of Psychiatry.

Built with Sphinx using a theme provided by Read the Docs.