Skip to content

[WIP] Enhance clinical safety and governance measures - #63

Closed
BigSimmo with Copilot wants to merge 2 commits into
mainfrom
copilot/enhance-clinical-safety-governance
Closed

[WIP] Enhance clinical safety and governance measures#63
BigSimmo with Copilot wants to merge 2 commits into
mainfrom
copilot/enhance-clinical-safety-governance

Conversation

CopilotAI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>Enhance clinical safety and governance</issue_title>
<issue_description>### Problem

  • The ingestion pipeline assumes users will not upload documents containing patient identifiers. There is no automated check to detect names, dates or medical record numbers (MRNs), so identifiable information may be stored unredacted.
  • Functions such as assessClinicalImageUse and nonClinicalTableClassification classify images based on heuristics like table role or title. These heuristics may misclassify clinically relevant images as administrative or reference, causing important information to be skipped.
  • Search ranking relies on static boosts and fuzzy‑matching heuristics, but the weighting of fields (title, labels, metadata) is opaque. Without clear documentation or clinician oversight, the search may bias results unpredictably.

Proposed actions

  • Integrate a de‑identification scanning step for uploaded documents and images to detect patient identifiers. Require users to attest that files are de‑identified before processing.
  • Periodically audit and retrain image‑classification heuristics. Provide a mechanism for clinicians to flag misclassifications so the models and heuristics can be improved.
  • Document how search scores are computed and allow clinicians to tune relevance weights or filter results. Transparency in search weighting will support clinical safety and trust.
    </issue_description>
  • ClosesEnhance clinical safety and governance #54

<agent_instructions>logical and efficiently implement these fixes. </agent_instructions>

Comments on the Issue (you are @copilot in this section)

CopilotAI review requested due to automatic review settings June 23, 2026 05:56

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@BigSimmo
BigSimmo deleted the copilot/enhance-clinical-safety-governance branch June 26, 2026 12:18
BigSimmo added a commit that referenced this pull request Jul 25, 2026
Resolve docs/outstanding-issues.md by keeping main's ledger and re-applying closures for #9#10#32#41#63 into Resolved/archive.
Co-authored-by: Cursor <cursoragent@cursor.com>
cursorBot pushed a commit that referenced this pull request Jul 25, 2026
* docs: close ledger #9#10#32#41#63
Record ops-only /api/jobs decision, coming-soon audit, governance
ranking REFUTED guardrail, Factsheets reading-model brief, and Current
Clinical Work privacy/persistence brief. Archive the five open items;
no RAG or application behavior changes.
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
* fix(ci): prettier ledger docs and drop stale PR_POLICY_BODY
Static PR checks failed on Prettier for five docs files. Also remove
leftover PR_POLICY_BODY.md from merged #1134 so Sync PR policy body
stops overwriting this docs PR description.
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
* docs: record PR #1175 review ledger outcome
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
* chore: restore PR #1175 description via PR_POLICY_BODY sync
Temporary template so CI Sync PR policy body replaces the polluted
search-performance description left from merged #1134.
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
* chore: remove temporary PR_POLICY_BODY after description sync
Keep the corrected PR #1175 description without leaving the sync
template on the branch for merge to main.
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
* docs: supersede PR #1175 review ledger after body sync
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
* style: prettier-format outstanding-issues after ledger merge
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance clinical safety and governance

3 participants

@BigSimmo