CRATE
  • 1. Introduction
  • 2. Installing CRATE
  • 3. Preprocessing tools
  • 4. Anonymisation
  • 5. Natural language processing (NLP)
  • 6. Configuring the CRATE web interface
  • 7. Using the CRATE web interface
  • 8. Ancillary tools
  • 9. FAQs and troubleshooting
  • 10. Linkage tools
  • 11. Additional notes
  • 12. Automatic documentation of source code
    • 12.1. crate_anon/anonymise
    • 12.2. crate_anon/common
    • 12.3. crate_anon/crateweb
      • 12.3.1. crate_anon.crateweb.__init__
      • 12.3.2. crate_anon.crateweb.anonymise_api.__init__
      • 12.3.3. crate_anon.crateweb.anonymise_api.constants
      • 12.3.4. crate_anon.crateweb.anonymise_api.serializers
      • 12.3.5. crate_anon.crateweb.anonymise_api.tests
      • 12.3.6. crate_anon.crateweb.anonymise_api.urls
      • 12.3.7. crate_anon.crateweb.anonymise_api.views
      • 12.3.8. crate_anon.crateweb.config.__init__
      • 12.3.9. crate_anon.crateweb.config.apps
      • 12.3.10. crate_anon.crateweb.config.constants
      • 12.3.11. crate_anon.crateweb.config.docs_settings
      • 12.3.12. crate_anon.crateweb.config.settings
      • 12.3.13. crate_anon.crateweb.config.test_settings
      • 12.3.14. crate_anon.crateweb.config.urls
      • 12.3.15. crate_anon.crateweb.config.wsgi
      • 12.3.16. crate_anon.crateweb.consent.__init__
      • 12.3.17. crate_anon.crateweb.consent.celery
      • 12.3.18. crate_anon.crateweb.consent.constants
      • 12.3.19. crate_anon.crateweb.consent.forms
      • 12.3.20. crate_anon.crateweb.consent.lookup
      • 12.3.21. crate_anon.crateweb.consent.lookup_common
      • 12.3.22. crate_anon.crateweb.consent.lookup_crs
      • 12.3.23. crate_anon.crateweb.consent.lookup_dummy
      • 12.3.24. crate_anon.crateweb.consent.lookup_rio
      • 12.3.25. crate_anon.crateweb.consent.lookup_systmone
      • 12.3.26. crate_anon.crateweb.consent.management.__init__
      • 12.3.27. crate_anon.crateweb.consent.management.commands.__init__
      • 12.3.28. crate_anon.crateweb.consent.management.commands.email_rdbm
      • 12.3.29. crate_anon.crateweb.consent.management.commands.fetch_optouts
      • 12.3.30. crate_anon.crateweb.consent.management.commands.lookup_consent
      • 12.3.31. crate_anon.crateweb.consent.management.commands.lookup_patient
      • 12.3.32. crate_anon.crateweb.consent.management.commands.make_ethics_pack
      • 12.3.33. crate_anon.crateweb.consent.management.commands.populate
      • 12.3.34. crate_anon.crateweb.consent.management.commands.resubmit_unprocessed_tasks
      • 12.3.35. crate_anon.crateweb.consent.management.commands.test_email
      • 12.3.36. crate_anon.crateweb.consent.migrations.0001_initial
      • 12.3.37. crate_anon.crateweb.consent.migrations.0002_auto_20160621_1511
      • 12.3.38. crate_anon.crateweb.consent.migrations.0003_auto_20160628_1301
      • 12.3.39. crate_anon.crateweb.consent.migrations.0004_auto_20160703_1530
      • 12.3.40. crate_anon.crateweb.consent.migrations.0005_auto_20170203_1348
      • 12.3.41. crate_anon.crateweb.consent.migrations.0006_auto_20170206_1617
      • 12.3.42. crate_anon.crateweb.consent.migrations.0007_auto_20170228_1052
      • 12.3.43. crate_anon.crateweb.consent.migrations.0008_auto_20170507_1218
      • 12.3.44. crate_anon.crateweb.consent.migrations.0009_auto_20180629_1132
      • 12.3.45. crate_anon.crateweb.consent.migrations.0010_auto_20180629_1238
      • 12.3.46. crate_anon.crateweb.consent.migrations.0011_auto_20181022_0801
      • 12.3.47. crate_anon.crateweb.consent.migrations.0012_auto_20181102_1335
      • 12.3.48. crate_anon.crateweb.consent.migrations.0013_auto_20181223_1124
      • 12.3.49. crate_anon.crateweb.consent.migrations.0014_contactrequest_rdbm_to_contact_pt
      • 12.3.50. crate_anon.crateweb.consent.migrations.0015_auto_20190104_1255
      • 12.3.51. crate_anon.crateweb.consent.migrations.0016_auto_20190212_1118
      • 12.3.52. crate_anon.crateweb.consent.migrations.0017_replace_nullbooleanfield
      • 12.3.53. crate_anon.crateweb.consent.migrations.__init__
      • 12.3.54. crate_anon.crateweb.consent.models
      • 12.3.55. crate_anon.crateweb.consent.storage
      • 12.3.56. crate_anon.crateweb.consent.tasks
      • 12.3.57. crate_anon.crateweb.consent.teamlookup
      • 12.3.58. crate_anon.crateweb.consent.teamlookup_dummy
      • 12.3.59. crate_anon.crateweb.consent.teamlookup_rio
      • 12.3.60. crate_anon.crateweb.consent.teamlookup_systmone
      • 12.3.61. crate_anon/crateweb/consent/templates/charity_report.html
      • 12.3.62. crate_anon/crateweb/consent/templates/clinician_already_responded.html
      • 12.3.63. crate_anon/crateweb/consent/templates/clinician_confirm_response.html
      • 12.3.64. crate_anon/crateweb/consent/templates/clinician_contact_request_result.html
      • 12.3.65. crate_anon/crateweb/consent/templates/clinician_contact_request_submit.html
      • 12.3.66. crate_anon/crateweb/consent/templates/clinician_notes.html
      • 12.3.67. crate_anon/crateweb/consent/templates/clinician_response.html
      • 12.3.68. crate_anon/crateweb/consent/templates/clinician_response.js
      • 12.3.69. crate_anon/crateweb/consent/templates/consent_lookup_get_nhs.html
      • 12.3.70. crate_anon/crateweb/consent/templates/consent_lookup_result.html
      • 12.3.71. crate_anon/crateweb/consent/templates/consent_table.html
      • 12.3.72. crate_anon/crateweb/consent/templates/contact_after_discharge_permission_phrase.html
      • 12.3.73. crate_anon/crateweb/consent/templates/contact_request_result.html
      • 12.3.74. crate_anon/crateweb/consent/templates/contact_request_submit.html
      • 12.3.75. crate_anon/crateweb/consent/templates/decision_form_to_patient_re_study.html
      • 12.3.76. crate_anon/crateweb/consent/templates/discharged_phrase.html
      • 12.3.77. crate_anon/crateweb/consent/templates/email_clinician.html
      • 12.3.78. crate_anon/crateweb/consent/templates/email_clinician_initiated_cr.html
      • 12.3.79. crate_anon/crateweb/consent/templates/email_rdbm_bad_progress.html
      • 12.3.80. crate_anon/crateweb/consent/templates/email_rdbm_good_progress.html
      • 12.3.81. crate_anon/crateweb/consent/templates/email_rdbm_new_work_pt_from_clinician.html
      • 12.3.82. crate_anon/crateweb/consent/templates/email_rdbm_new_work_pt_from_rdbm.html
      • 12.3.83. crate_anon/crateweb/consent/templates/email_rdbm_new_work_researcher.html
      • 12.3.84. crate_anon/crateweb/consent/templates/email_researcher_approval.html
      • 12.3.85. crate_anon/crateweb/consent/templates/email_researcher_withdrawal.html
      • 12.3.86. crate_anon/crateweb/consent/templates/exclusion_report.html
      • 12.3.87. crate_anon/crateweb/consent/templates/generate_random_nhs.html
      • 12.3.88. crate_anon/crateweb/consent/templates/letter_patient_confirm_traffic.html
      • 12.3.89. crate_anon/crateweb/consent/templates/letter_patient_first_traffic_light.html
      • 12.3.90. crate_anon/crateweb/consent/templates/letter_patient_from_clinician_re_study.html
      • 12.3.91. crate_anon/crateweb/consent/templates/letter_researcher_approve.html
      • 12.3.92. crate_anon/crateweb/consent/templates/letter_researcher_to_patient_cover_letter_template.html
      • 12.3.93. crate_anon/crateweb/consent/templates/letter_researcher_withdraw.html
      • 12.3.94. crate_anon/crateweb/consent/templates/office_div.html
      • 12.3.95. crate_anon/crateweb/consent/templates/patient_lookup_get_nhs.html
      • 12.3.96. crate_anon/crateweb/consent/templates/patient_lookup_result.html
      • 12.3.97. crate_anon/crateweb/consent/templates/patient_p.html
      • 12.3.98. crate_anon/crateweb/consent/templates/patient_table.html
      • 12.3.99. crate_anon/crateweb/consent/templates/phrase_green.html
      • 12.3.100. crate_anon/crateweb/consent/templates/phrase_never_affect.html
      • 12.3.101. crate_anon/crateweb/consent/templates/phrase_never_affect_personal.html
      • 12.3.102. crate_anon/crateweb/consent/templates/phrase_red.html
      • 12.3.103. crate_anon/crateweb/consent/templates/phrase_yellow.html
      • 12.3.104. crate_anon/crateweb/consent/templates/signature_box_patient.html
      • 12.3.105. crate_anon/crateweb/consent/templates/study_table.html
      • 12.3.106. crate_anon/crateweb/consent/templates/test_email_rdbm_ack.html
      • 12.3.107. crate_anon/crateweb/consent/templates/traffic_light_decision_form.html
      • 12.3.108. crate_anon.crateweb.consent.utils
      • 12.3.109. crate_anon.crateweb.consent.views
      • 12.3.110. crate_anon.crateweb.core.__init__
      • 12.3.111. crate_anon.crateweb.core.admin
      • 12.3.112. crate_anon.crateweb.core.auth_views
      • 12.3.113. crate_anon.crateweb.core.constants
      • 12.3.114. crate_anon.crateweb.core.context_processors
      • 12.3.115. crate_anon.crateweb.core.management.__init__
      • 12.3.116. crate_anon.crateweb.core.management.commands.__init__
      • 12.3.117. crate_anon.crateweb.core.management.commands.ensuresuperuser
      • 12.3.118. crate_anon.crateweb.core.management.commands.runcpserver
      • 12.3.119. crate_anon.crateweb.core.middleware
      • 12.3.120. crate_anon.crateweb.core.utils
      • 12.3.121. crate_anon.crateweb.core.views
      • 12.3.122. crate_anon.crateweb.extra.__init__
      • 12.3.123. crate_anon.crateweb.extra.admin
      • 12.3.124. crate_anon.crateweb.extra.pdf
      • 12.3.125. crate_anon.crateweb.extra.salutation
      • 12.3.126. crate_anon.crateweb.manage
      • 12.3.127. crate_anon.crateweb.research.__init__
      • 12.3.128. crate_anon.crateweb.research.archive_backend
      • 12.3.129. crate_anon.crateweb.research.archive_func
      • 12.3.130. crate_anon.crateweb.research.errors
      • 12.3.131. crate_anon.crateweb.research.forms
      • 12.3.132. crate_anon.crateweb.research.html_functions
      • 12.3.133. crate_anon.crateweb.research.migrations.0001_initial
      • 12.3.134. crate_anon.crateweb.research.migrations.0002_auto_20170203_1348
      • 12.3.135. crate_anon.crateweb.research.migrations.0003_patientexplorer_patientexploreraudit
      • 12.3.136. crate_anon.crateweb.research.migrations.0004_auto_20170212_0137
      • 12.3.137. crate_anon.crateweb.research.migrations.0005_query_sql_hash
      • 12.3.138. crate_anon.crateweb.research.migrations.0006_patientexplorer_pmq_hash
      • 12.3.139. crate_anon.crateweb.research.migrations.0007_sitewidequery
      • 12.3.140. crate_anon.crateweb.research.migrations.0008_query_display
      • 12.3.141. crate_anon.crateweb.research.migrations.0009_query_no_null
      • 12.3.142. crate_anon.crateweb.research.migrations.0010_query_last_run
      • 12.3.143. crate_anon.crateweb.research.migrations.0011_auto_20190521_2109
      • 12.3.144. crate_anon.crateweb.research.migrations.0012_archiveattachmentaudit_archivetemplateaudit
      • 12.3.145. crate_anon.crateweb.research.migrations.__init__
      • 12.3.146. crate_anon.crateweb.research.models
      • 12.3.147. crate_anon.crateweb.research.research_db_info
      • 12.3.148. crate_anon.crateweb.research.sql_writer
      • 12.3.149. crate_anon/crateweb/research/templates/clinician_form_all_text_from_pid.html
      • 12.3.150. crate_anon/crateweb/research/templates/clinician_form_all_text_from_pid_choose_db.html
      • 12.3.151. crate_anon/crateweb/research/templates/database_structure.html
      • 12.3.152. crate_anon/crateweb/research/templates/database_structure_table.html
      • 12.3.153. crate_anon/crateweb/research/templates/database_structure_tree.html
      • 12.3.154. crate_anon/crateweb/research/templates/edit_display.html
      • 12.3.155. crate_anon/crateweb/research/templates/highlight_bad_id.html
      • 12.3.156. crate_anon/crateweb/research/templates/highlight_edit_select.html
      • 12.3.157. crate_anon/crateweb/research/templates/include_clinician_warning_lag.html
      • 12.3.158. crate_anon/crateweb/research/templates/include_clinician_warning_yours_only.html
      • 12.3.159. crate_anon/crateweb/research/templates/local_structure_help.html
      • 12.3.160. crate_anon/crateweb/research/templates/page_nav_results.html
      • 12.3.161. crate_anon/crateweb/research/templates/pe_bad.html
      • 12.3.162. crate_anon/crateweb/research/templates/pe_bad_id.html
      • 12.3.163. crate_anon/crateweb/research/templates/pe_build.html
      • 12.3.164. crate_anon/crateweb/research/templates/pe_choose.html
      • 12.3.165. crate_anon/crateweb/research/templates/pe_df_result.html
      • 12.3.166. crate_anon/crateweb/research/templates/pe_missing.html
      • 12.3.167. crate_anon/crateweb/research/templates/pe_monster_result.html
      • 12.3.168. crate_anon/crateweb/research/templates/pe_result.html
      • 12.3.169. crate_anon/crateweb/research/templates/pe_table_browser.html
      • 12.3.170. crate_anon/crateweb/research/templates/pid_abbrev_explanation.html
      • 12.3.171. crate_anon/crateweb/research/templates/pid_lookup_choose_db.html
      • 12.3.172. crate_anon/crateweb/research/templates/pid_lookup_form.html
      • 12.3.173. crate_anon/crateweb/research/templates/pid_lookup_result.html
      • 12.3.174. crate_anon/crateweb/research/templates/query_add_sitewide.html
      • 12.3.175. crate_anon/crateweb/research/templates/query_bad.html
      • 12.3.176. crate_anon/crateweb/research/templates/query_bad_id.html
      • 12.3.177. crate_anon/crateweb/research/templates/query_build.html
      • 12.3.178. crate_anon/crateweb/research/templates/query_count.html
      • 12.3.179. crate_anon/crateweb/research/templates/query_edit_select.html
      • 12.3.180. crate_anon/crateweb/research/templates/query_missing.html
      • 12.3.181. crate_anon/crateweb/research/templates/query_nav.html
      • 12.3.182. crate_anon/crateweb/research/templates/query_none_selected.html
      • 12.3.183. crate_anon/crateweb/research/templates/query_result.html
      • 12.3.184. crate_anon/crateweb/research/templates/query_show.html
      • 12.3.185. crate_anon/crateweb/research/templates/querybuilder_extrahead.html
      • 12.3.186. crate_anon/crateweb/research/templates/querybuilder_form.html
      • 12.3.187. crate_anon/crateweb/research/templates/rid_lookup_choose_db.html
      • 12.3.188. crate_anon/crateweb/research/templates/rid_lookup_form.html
      • 12.3.189. crate_anon/crateweb/research/templates/rid_lookup_result.html
      • 12.3.190. crate_anon/crateweb/research/templates/show_sitewide_queries.html
      • 12.3.191. crate_anon/crateweb/research/templates/source_information.html
      • 12.3.192. crate_anon/crateweb/research/templates/sql_fragment.html
      • 12.3.193. crate_anon/crateweb/research/templates/sqlhelper_form_drug_type_choose_db.html
      • 12.3.194. crate_anon/crateweb/research/templates/sqlhelper_form_drugtype.html
      • 12.3.195. crate_anon/crateweb/research/templates/sqlhelper_form_text_anywhere.html
      • 12.3.196. crate_anon/crateweb/research/templates/sqlhelper_form_text_anywhere_choose_db.html
      • 12.3.197. crate_anon.crateweb.research.tests.__init__
      • 12.3.198. crate_anon.crateweb.research.tests.factories
      • 12.3.199. crate_anon.crateweb.research.tests.models_tests
      • 12.3.200. crate_anon.crateweb.research.tests.research_db_info_tests
      • 12.3.201. crate_anon.crateweb.research.tests.sql_writer_tests
      • 12.3.202. crate_anon.crateweb.research.views
      • 12.3.203. crate_anon/crateweb/specimen_archives/basic/clinical_documents.mako
      • 12.3.204. crate_anon/crateweb/specimen_archives/basic/diagnoses.mako
      • 12.3.205. crate_anon/crateweb/specimen_archives/basic/inherit/base.mako
      • 12.3.206. crate_anon/crateweb/specimen_archives/basic/patient_root.mako
      • 12.3.207. crate_anon/crateweb/specimen_archives/basic/progress_notes.mako
      • 12.3.208. crate_anon/crateweb/specimen_archives/basic/root.mako
      • 12.3.209. crate_anon/crateweb/specimen_archives/basic/search.mako
      • 12.3.210. crate_anon/crateweb/specimen_archives/basic/snippets/attachments.mako
      • 12.3.211. crate_anon/crateweb/specimen_archives/basic/snippets/results_table.mako
      • 12.3.212. crate_anon/crateweb/specimen_archives/basic/test.mako
      • 12.3.213. crate_anon/crateweb/specimen_archives/basic/test_subpanel_1.mako
      • 12.3.214. crate_anon/crateweb/specimen_archives/basic/test_subpanel_2.mako
      • 12.3.215. crate_anon/crateweb/specimen_archives/static/archive.css
      • 12.3.216. crate_anon/crateweb/specimen_archives/static/tree.js
      • 12.3.217. crate_anon/crateweb/specimen_archives/tree/inherit/base.mako
      • 12.3.218. crate_anon/crateweb/specimen_archives/tree/inherit/plotting.mako
      • 12.3.219. crate_anon/crateweb/specimen_archives/tree/nonpatient_root.mako
      • 12.3.220. crate_anon/crateweb/specimen_archives/tree/panels/clinical_documents.mako
      • 12.3.221. crate_anon/crateweb/specimen_archives/tree/panels/crash.mako
      • 12.3.222. crate_anon/crateweb/specimen_archives/tree/panels/nlp.mako
      • 12.3.223. crate_anon/crateweb/specimen_archives/tree/panels/progress_notes.mako
      • 12.3.224. crate_anon/crateweb/specimen_archives/tree/panels/test_plot.mako
      • 12.3.225. crate_anon/crateweb/specimen_archives/tree/patient_root.mako
      • 12.3.226. crate_anon/crateweb/specimen_archives/tree/root.mako
      • 12.3.227. crate_anon/crateweb/specimen_archives/tree/snippets/patient_details.mako
      • 12.3.228. crate_anon/crateweb/specimen_archives/tree/snippets/results_table.mako
      • 12.3.229. crate_anon/crateweb/specimen_archives/tree/snippets/results_table_nlp.mako
      • 12.3.230. crate_anon/crateweb/specimen_archives/tree/snippets/single_nlp_page.mako
      • 12.3.231. crate_anon/crateweb/specimen_archives/tree/snippets/subtree.mako
      • 12.3.232. crate_anon/crateweb/static/base.css
      • 12.3.233. crate_anon/crateweb/static/collapse.js
      • 12.3.234. crate_anon/crateweb/static/extra_styles.css
      • 12.3.235. crate_anon/crateweb/static/querybuilder.js
      • 12.3.236. crate_anon/crateweb/static/web.css
      • 12.3.237. crate_anon/crateweb/templates/404.html
      • 12.3.238. crate_anon/crateweb/templates/405.html
      • 12.3.239. crate_anon/crateweb/templates/500.html
      • 12.3.240. crate_anon/crateweb/templates/about.html
      • 12.3.241. crate_anon/crateweb/templates/admin/edit_once_view_form.html
      • 12.3.242. crate_anon/crateweb/templates/admin/readonly_view_form.html
      • 12.3.243. crate_anon/crateweb/templates/admin/save_only_submit_row.html
      • 12.3.244. crate_anon/crateweb/templates/admin/viewchange_admin_app_index.html
      • 12.3.245. crate_anon/crateweb/templates/admin/viewchange_admin_index.html
      • 12.3.246. crate_anon/crateweb/templates/anonymise_api/home.html
      • 12.3.247. crate_anon/crateweb/templates/base.html
      • 12.3.248. crate_anon/crateweb/templates/base_email.html
      • 12.3.249. crate_anon/crateweb/templates/base_pdf.html
      • 12.3.250. crate_anon/crateweb/templates/base_pdf_letter.html
      • 12.3.251. crate_anon/crateweb/templates/email.css
      • 12.3.252. crate_anon/crateweb/templates/expand_collapse_buttons.html
      • 12.3.253. crate_anon/crateweb/templates/generic_error.html
      • 12.3.254. crate_anon/crateweb/templates/global_header.html
      • 12.3.255. crate_anon/crateweb/templates/home.html
      • 12.3.256. crate_anon/crateweb/templates/include_jquery.html
      • 12.3.257. crate_anon/crateweb/templates/logged_out.html
      • 12.3.258. crate_anon/crateweb/templates/login.html
      • 12.3.259. crate_anon/crateweb/templates/page_nav.html
      • 12.3.260. crate_anon/crateweb/templates/password_change.html
      • 12.3.261. crate_anon/crateweb/templates/pdf.css
      • 12.3.262. crate_anon/crateweb/templates/pdf_footer.html
      • 12.3.263. crate_anon/crateweb/templates/pdf_header.html
      • 12.3.264. crate_anon/crateweb/templates/shortlist_studies.html
      • 12.3.265. crate_anon/crateweb/templates/show_form_errors.html
      • 12.3.266. crate_anon/crateweb/templates/show_hide_buttons.html
      • 12.3.267. crate_anon.crateweb.userprofile.__init__
      • 12.3.268. crate_anon.crateweb.userprofile.forms
      • 12.3.269. crate_anon.crateweb.userprofile.migrations.0001_initial
      • 12.3.270. crate_anon.crateweb.userprofile.migrations.0002_userprofile_sql_scratchpad
      • 12.3.271. crate_anon.crateweb.userprofile.migrations.0003_auto_20160628_1301
      • 12.3.272. crate_anon.crateweb.userprofile.migrations.0004_userprofile_patients_per_page
      • 12.3.273. crate_anon.crateweb.userprofile.migrations.0005_userprofile_patient_multiquery_scratchpad
      • 12.3.274. crate_anon.crateweb.userprofile.migrations.0006_auto_20170212_0137
      • 12.3.275. crate_anon.crateweb.userprofile.migrations.0007_auto_20170507_1218
      • 12.3.276. crate_anon.crateweb.userprofile.migrations.__init__
      • 12.3.277. crate_anon.crateweb.userprofile.models
      • 12.3.278. crate_anon/crateweb/userprofile/templates/edit_profile.html
      • 12.3.279. crate_anon.crateweb.userprofile.views
    • 12.4. crate_anon/linkage
    • 12.5. crate_anon/nlp_manager
    • 12.6. crate_anon/nlp_webserver
    • 12.7. crate_anon/preprocess
    • 12.8. crate_anon/testing
    • 12.9. crate_anon/tools
  • 13. Index of CRATE commands
  • 14. Licences
  • 15. Change log/history
  • 16. Abbreviations
  • 17. Glossary
CRATE
  • 12. Automatic documentation of source code
  • 12.3. crate_anon/crateweb
  • 12.3.71. crate_anon/crateweb/consent/templates/consent_table.html
  • View page source

12.3.71. crate_anon/crateweb/consent/templates/consent_table.html

{# crate_anon/crateweb/consent/templates/consent_table.html #}

{% comment %}
    template parameters:
        LEAFLET_URL_CPFTRD_CLINRES_SHORT: str
        patient_lookup: PatientLookup
        settings: Django settings object
        with_page_break: bool
{% endcomment %}

{% if with_page_break %}
<table class="consent page_break_before">
{% else %}
<table class="consent">
{% endif %}
    <colgroup>
        <col style="width:19%">
        <col style="width:10%">
        <col style="width:18%">
        <col style="width:10%">
        <col style="width:18%">
        <col style="width:10%">
        <col style="width:18%">
    </colgroup>
    <tbody>
        {% if generic or patient_lookup.is_under_16 %}
            <!-- "Under 16" box -->
            <tr>
                <td colspan=7>
                    <b>
                        {% if patient_lookup.is_under_15 and not generic %}
                            As
                        {% else %}
                            If
                        {% endif %}
                        you are under 16:
                    </b>
                    <ol>
                        <li>We would like to know your wishes. Please fill in
                            the form above and sign it.</li>

                        <li>If you choose not to consent, we don’t need any
                            signature except yours. If you consent, then because
                            you are under 16, we would also like the assent/consent
                            of your parent or guardian. Please show them the
                            accompanying details and this form and ask them to
                            countersign below to indicate that they agree.</li>

                        <li>If you sign to indicate your consent, but refuse to
                            allow your parent or guardian to see and sign, then we
                            must ask your clinician to sign below to confirm that
                            you understand fully what you’re signing.
                            (If you’re returning this form by post, we can
                            ask your clinician for their signature.)
                            We’re afraid we can only accept your consent via
                            this form if it’s signed by you and your
                            parent/guardian, or you and your clinician.
                        </li>
                    </ol>
                    Thank you!
                </td>
            </tr>
            <tr class="persontype">
                <td class="signature_label"><br><b>Parent or guardian:</b></td>
                <td class="signature_label">Name:</td>
                <td class="signature_box"></td>
                <td class="signature_label">Signed:</td>
                <td class="signature_box"></td>
                <td class="signature_label">Date:</td>
                <td class="signature_box"></td>
            </tr>
            <tr class="persontype">
                <td class="signature_label"><br><b>Clinician:</b></td>
                <td class="signature_label">Name:</td>
                <td class="signature_box"></td>
                <td class="signature_label">Signed:</td>
                <td class="signature_box"></td>
                <td class="signature_label">Date:</td>
                <td class="signature_box"></td>
            </tr>
        {% endif %}

        {# Are we showing two boxes? If so, insert a visual divider. #}
        {# Note: you can't use brackets in Django logic expressions. #}
        {% if generic %}
            <tr class="tabledivider"><td colspan="7"><br></td></tr>
        {% elif patient_lookup.is_under_16 and not patient_lookup.is_under_15 %}
            <tr class="tabledivider"><td colspan="7"><br></td></tr>
        {% endif %}

        {% if generic or not patient_lookup.is_under_15 %}
            <!-- MCA box -->
            {# MCA doesn't apply to under-16s, but this form may go out shortly before 16th birthday #}
            <tr>
                <td colspan=7>
                    <b>If
                        {# let's not offend adults! #}
                        {% if generic or patient_lookup.is_under_16 %}
                            you are an adult and
                        {% endif %}
                        another adult is making decisions on your behalf:</b>

                    <ol>
                        <li>We would like the person responsible for making
                            decisions on your behalf to fill in the details above,
                            and sign below, ensuring that you yourself don’t object
                            to what they’ve chosen.</li>

                        <li>We need your clinician’s signature to confirm that you
                            currently lack the capacity to decide about the
                            question(s) being asked above, and that someone is
                            making decisions on your behalf.*
                            (If you’re returning this form by post, we can
                            ask your clinician for their signature.)
                        </li>
                    </ol>
                    Thank you!
                </td>
            </tr>
            <tr class="persontype">
                <td class="signature_label"><br><b>Representative:</b></td>
                <td class="signature_label">Name:</td>
                <td class="signature_box"></td>
                <td class="signature_label">Signed:</td>
                <td class="signature_box"></td>
                <td class="signature_label">Date:</td>
                <td class="signature_box"></td>
            </tr>
            <tr class="persontype">
                <td class="signature_label"><br><b>Clinician:</b></td>
                <td class="signature_label">Name:</td>
                <td class="signature_box"></td>
                <td class="signature_label">Signed:</td>
                <td class="signature_box"></td>
                <td class="signature_label">Date:</td>
                <td class="signature_box"></td>
            </tr>
            <tr>
                <td colspan=7 class="footnote">
                    <br>
                    * Note to clinicians: for decisions about clinical trials, this
                    must be the patient’s <i>legal representative</i>.
                    For decisions about other research studies or the database
                    traffic-light system, this must be the patient’s <i>carer or
                    consultee</i>.
                    For more details, see {{ settings.LEAFLET_URL_CPFTRD_CLINRES_SHORT }}.
                </td>
            </tr>
        {% endif %}
    </tbody>

</table>
Previous Next

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

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