Commit Graph

273 Commits

Author SHA1 Message Date
Ross 3c8238d737 Add user permission checks for series editing and enhance author display method 2026-02-09 12:27:20 +00:00
Ross 23f33ac7ae Optimize collection_viva by aggressively prefetching and annotating related objects to prevent N+1 queries 2026-02-09 12:15:36 +00:00
Ross f316dc9bcb Filter out removed images in Case model's image retrieval 2026-02-09 09:46:16 +00:00
Ross 1eeb0d89d9 Add get_history method to CaseDetail model and update case_list_item template for history modal 2026-02-08 21:42:17 +00:00
Ross f713632fdd Refactor Condition, Finding, and Structure tables: remove legacy primary field from displayed fields to streamline data representation. 2025-11-24 11:02:51 +00:00
Ross 5ccf755e72 Refactor Condition model: remove legacy synonym and primary fields, introduce canonical field for aliasing. Update related documentation. 2025-11-24 10:31:13 +00:00
Ross 6308fbfcd7 Refactor Finding and Structure models: remove legacy primary and synonym fields, introduce canonical field for aliasing. Update filters and forms accordingly. 2025-11-24 10:18:26 +00:00
Ross 6eeb4cbb1d Add canonical field and update synonym handling in Condition model
- Introduced a new `canonical` ForeignKey field in the Condition model to manage alias relationships.
- Enhanced synonym retrieval methods to prefer canonical names and handle aliases more effectively.
- Updated condition detail templates to reflect canonical status and improved synonym display.
- Implemented migration scripts to establish canonical relationships based on existing synonym links.
2025-11-20 22:48:03 +00:00
Ross 6e658aca93 Refactor case handling: update URLs and views to support case_number and case_id interchangeably, enhancing backward compatibility and maintainability 2025-11-17 11:05:13 +00:00
Ross 12b7fa6629 Refactor CaseDetail references to Casedetail across templates and views
- Updated all instances of 'case_detail' to 'casedetail' in templates to maintain consistency.
- Adjusted view functions to use 'casedetail' instead of 'case_detail' for better clarity.
- Renamed the field 'case_detail' to 'casedetail' in the CasePrior model to align with the new naming convention.
- Ensured that all related logic and references in forms and data handling reflect this change.
2025-11-17 10:34:27 +00:00
Ross ec036a6266 Add open_access field to Resource model for access control 2025-11-14 21:16:55 +00:00
Ross 74765e70a2 Add created_date and modified_date fields to Resource model; enhance resource navigation with dropdown menu in base template 2025-11-14 21:01:25 +00:00
Ross 453fbf91be Add ManyToMany fields for sites and subspecialty in Resource model 2025-11-14 20:53:31 +00:00
Ross a2e9d5e681 Refactor NormalCase model to use age_days instead of age_years, update forms, filters, and templates accordingly for improved age handling 2025-11-13 22:34:36 +00:00
Ross 345977e2ef Add NormalCase model, views, filters, and templates for managing normal cases 2025-11-13 21:44:55 +00:00
Ross 89a767034c Update image retrieval in Case model to use get_images method for improved clarity 2025-11-05 21:18:15 +00:00
Ross eeef34bffc Add prerequisites handling to CaseCollection and implement user access checks 2025-10-13 13:46:01 +01:00
Ross 32d8430f94 Add CID user support in collection history and reset answers functionality 2025-10-13 11:28:07 +01:00
Ross a355dd223e Add timestamps for answer tracking in report models and views; enhance timer display in templates 2025-10-13 10:02:37 +01:00
Ross 6f99cf0d53 Add question time limit to CaseCollection model and update related template for countdown display 2025-10-13 09:45:12 +01:00
Ross 682e8160b5 Refactor user collections view to categorize collections into available, in-progress, and finished; update templates for improved display of collection statuses and question rendering. 2025-10-06 13:51:55 +01:00
Ross 974966e855 Add example answers form rendering and update viewer iframe 2025-10-05 22:24:40 +01:00
Ross 4fc1de4300 Refactor code structure and remove redundant functions for improved readability 2025-10-01 20:24:10 +01:00
Ross 990907f8f5 Refactor code structure for improved readability and maintainability 2025-09-22 10:45:21 +01:00
Ross ee42d5c1c2 Convert case series images to JSON format in CaseDetail model for improved data handling 2025-09-15 12:03:24 +01:00
Ross 85216b36b0 Fix typo in prior_cases reference and streamline relationship validation in collection_case_priors 2025-09-15 12:01:12 +01:00
Ross 3b19ddcb5e Enhance get_case_series_nested method to include prior cases and update collection_case_view_take template to add DICOM viewer details 2025-09-15 11:49:09 +01:00
Ross 50f5813a75 Enhance get_series_images_nested method to support excluding specific series IDs and improve query efficiency 2025-09-15 11:43:18 +01:00
Ross b9f6b7c837 Refactor collection case navigation and question handling
- Updated links in collection_case_priors.html to point to the new collection_case_questions view.
- Modified collection_case_view_take.html to display case history using the new method.
- Changed collection_detail.html to include links to the new collection_case_questions view.
- Added new URL pattern for collection_case_questions in urls.py.
- Refactored collection_case_details view to handle question-related logic and rendering.
- Introduced new CaseQuestionForm for handling question submissions.
- Created new migration to add override_history and redact_history fields to CaseDetail model.
- Added new templates for collection_case_details.html and collection_case_questions.html to manage case questions.
- Enhanced JavaScript functionality for dynamic question management in collection_case_questions.html.
- Updated useranswer model fields in shorts app to improve feedback and scoring.
2025-09-15 11:17:57 +01:00
Ross 16a8bf3d3a Refactor DICOM file reading to use dcmread for improved compatibility across models and helpers 2025-08-18 10:45:34 +01:00
Ross d61ecaac66 Enhance check_user_can_edit method with detailed docstring for clarity 2025-08-18 09:40:49 +01:00
Ross f5258d7e6f git displaysets working in viva view 2025-07-21 10:51:34 +01:00
Ross 5187885c3b lots of improvements 2025-07-14 13:26:11 +01:00
Ross 804cff33f4 . 2025-07-07 12:58:17 +01:00
Ross 4df7e5aebd start moking case display sets 2025-06-30 13:04:05 +01:00
Ross 8229813eba improve vivas 2025-06-30 12:58:32 +01:00
Ross bc26209f07 start removing lots of print 2025-06-30 10:39:42 +01:00
Ross 2f8601aa1a i should do these more often 2025-06-23 09:25:48 +01:00
Ross 8e92de3420 start migration to dv3d 2025-06-09 11:39:38 +01:00
Ross 503c8f854a improve findings 2025-05-19 11:15:40 +01:00
Ross 6564b25250 work on case priors 2025-04-28 22:36:04 +01:00
Ross 5e578ca2b0 improve case management 2025-04-28 15:45:02 +01:00
Ross 405b17776f try adding series data to case table 2025-04-25 18:28:40 +01:00
Ross d387e32777 furher shorts improvements 2025-04-07 11:34:10 +01:00
Ross baeaf3d9c6 . 2025-03-10 11:15:08 +00:00
Ross fb931f5a15 . 2025-03-10 10:47:47 +00:00
Ross a0960c9b7c start integrating cimar 2025-02-24 11:53:36 +00:00
Ross 0ca17c23b5 improve suggest answers (and fix some other issues) 2025-01-20 09:54:56 +00:00
Ross f0c5964a5a . 2025-01-02 22:27:29 +00:00
Ross 7fc12737c7 . 2025-01-02 22:26:00 +00:00