<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: KARUN K M</title>
    <description>The latest articles on DEV Community by KARUN K M (@karunk28).</description>
    <link>https://dev.to/karunk28</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3939691%2F609bdd28-66fd-48c2-ba31-f8a9f22270a2.png</url>
      <title>DEV Community: KARUN K M</title>
      <link>https://dev.to/karunk28</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karunk28"/>
    <language>en</language>
    <item>
      <title>"Safe-by-Design" Pharmacovigilance Compliance Orchestrator</title>
      <dc:creator>KARUN K M</dc:creator>
      <pubDate>Tue, 19 May 2026 08:43:16 +0000</pubDate>
      <link>https://dev.to/karunk28/safe-by-design-pharmacovigilance-compliance-orchestrator-3p4o</link>
      <guid>https://dev.to/karunk28/safe-by-design-pharmacovigilance-compliance-orchestrator-3p4o</guid>
      <description>&lt;h1&gt;
  
  
  I Built a "Safe-by-Design" Pharmacovigilance
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Compliance Orchestrator That Makes Regulatory
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Deadlines Impossible to Miss
&lt;/h1&gt;

&lt;h2&gt;
  
  
  The Problem Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;Every year, pharmaceutical companies receive FDA warning letters that cost an average of $300,000 each. Many of them share a common root cause that has nothing to do with bad science or negligent teams.&lt;/p&gt;

&lt;p&gt;It is a shared Excel spreadsheet. A color-coded Outlook inbox. A WhatsApp group that moves too fast.&lt;/p&gt;

&lt;p&gt;In Pharmacovigilance (PV), when a patient  experiences a serious adverse drug reaction,  a legal clock starts immediately. Regulators  mandate reporting within 7 days for serious cases and 15 days for non-serious ones. Miss the window and you are not looking at a slap on the wrist. You are looking at federal enforcement. &lt;/p&gt;

&lt;p&gt;The teams responsible for this are tracking 50 to 100 active cases simultaneously using  tools built for scheduling meetings. &lt;/p&gt;

&lt;p&gt;I built something better.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;PV Case Orchestrator&lt;/strong&gt; is a real-time  compliance management application for  Pharmacovigilance teams. It replaces the  spreadsheet-and-email workflow with a single  intelligent command center that makes every  regulatory deadline and every pending action visible, urgent, and impossible to ignore. &lt;/p&gt;

&lt;p&gt;Built entirely on MeDo for the Build with MeDo Hackathon.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Core Innovation: Safe-by-Design Architecture
&lt;/h2&gt;

&lt;p&gt;Most compliance tools alert you when something goes wrong. This one is architected so that  going wrong requires actively fighting the system.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Four Human-in-the-Loop Verification Gates
&lt;/h3&gt;

&lt;p&gt;Every safety-critical action in the application requires explicit human confirmation before the system proceeds:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gate 1 — Day 0 Clock Confirmation&lt;/strong&gt;&lt;br&gt;
The regulatory clock does not start until a  human explicitly confirms the date of first  receipt, selects the source type, and checks  a confirmation box with the text: &lt;em&gt;"I confirm  this is the date our organization first received  this case. I understand this timestamp is  immutable and will appear in regulatory submissions."&lt;/em&gt; The timestamp locks permanently after this point. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gate 2 — Classification Sign-Off&lt;/strong&gt;&lt;br&gt;
The system analyzes intake text using keyword  triage and returns a confidence-scored  recommendation (SERIOUS, NON-SERIOUS, SUSAR, or UNABLE TO CLASSIFY). A human must actively confirm or override every recommendation before  any deadline is calculated. If the confidence score falls below 60%, no recommendation is  shown at all — the case is flagged CRITICAL  and held until a clinician manually classifies it. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gate 3 — Alert Acknowledgement&lt;/strong&gt;&lt;br&gt;
Critical cases trigger a full-screen red interrupt that cannot be dismissed by clicking outside it or pressing Escape. The only exit is a button labeled "I ACKNOWLEDGE THIS ALERT" which captures the user ID and timestamp and writes them permanently to the audit trail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gate 4 — Submission Checklist&lt;/strong&gt;&lt;br&gt;
No case can reach READY FOR SUBMISSION status unless all four checklist items are confirmed: narrative complete, causality assessed, client notified, regulatory form complete. This block is enforced at the data layer — not just in the UI.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Auditory Interface: Calm Technology Applied
&lt;/h2&gt;

&lt;h2&gt;
  
  
  to Compliance
&lt;/h2&gt;

&lt;p&gt;Alarm fatigue is documented in clinical literature as one of the leading causes of missed critical signals in high-stakes environments. Every compliance tool I have ever seen makes this worse by adding more visual notifications to an already overwhelmed screen.&lt;/p&gt;

&lt;p&gt;I went in a different direction.&lt;/p&gt;

&lt;p&gt;The PV Case Orchestrator implements a &lt;strong&gt;three-tier auditory alert system&lt;/strong&gt; designed around the principle of Calm Technology — information should live in the periphery of attention until it genuinely needs the center of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tier 1 — Routine (&amp;gt;5 days remaining)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Single 440Hz sine wave chime&lt;/li&gt;
&lt;li&gt;0.8 second decay&lt;/li&gt;
&lt;li&gt;30% volume&lt;/li&gt;
&lt;li&gt;Fires once on case update&lt;/li&gt;
&lt;li&gt;Cognitive message: &lt;em&gt;Something happened. 
No action needed yet.&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tier 2 — Warning (2–5 days remaining)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ascending two-note interval: C5 (523Hz) rising to E5 (659Hz)&lt;/li&gt;
&lt;li&gt;Creates psychoacoustic incompleteness — the brain registers something unresolved&lt;/li&gt;
&lt;li&gt;Maximum 3 plays per case per 24 hours (habituation prevention)&lt;/li&gt;
&lt;li&gt;After 3 plays, switches to visual-only to break the fatigue cycle&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tier 3 — Critical / SUSAR (&amp;lt;2 days or SUSAR)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Descending three-note minor phrase: G5 (784Hz) → E5 (659Hz) → C5 (523Hz)&lt;/li&gt;
&lt;li&gt;Plays three times with 3-second gaps&lt;/li&gt;
&lt;li&gt;Fires simultaneously with full-screen visual interrupt&lt;/li&gt;
&lt;li&gt;Visual interrupt fires whether audio is available or not — never a silent failure&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On every page load, a silent AudioContext health check verifies audio is working. &lt;br&gt;
If it fails, a persistent amber banner activates across all screens: &lt;br&gt;
&lt;em&gt;"Audio alerts inactive — visual-only mode enabled."&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  The FMEA: We Risk-Assessed It Before
&lt;/h2&gt;

&lt;h2&gt;
  
  
  We Built It
&lt;/h2&gt;

&lt;p&gt;Before writing a single line of logic, I ran a Failure Mode and Effects Analysis on the three highest-probability risks:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Risk&lt;/th&gt;
&lt;th&gt;Severity&lt;/th&gt;
&lt;th&gt;Probability&lt;/th&gt;
&lt;th&gt;Mitigation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Keyword triage misclassification&lt;/td&gt;
&lt;td&gt;9/10&lt;/td&gt;
&lt;td&gt;8/10&lt;/td&gt;
&lt;td&gt;Confidence gate + mandatory human confirmation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audio alert suppression&lt;/td&gt;
&lt;td&gt;8/10&lt;/td&gt;
&lt;td&gt;9/10&lt;/td&gt;
&lt;td&gt;Multi-modal redundant alert stack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clock integrity failure&lt;/td&gt;
&lt;td&gt;10/10&lt;/td&gt;
&lt;td&gt;7/10&lt;/td&gt;
&lt;td&gt;Immutable Day 0 ledger + parallel reclassification clock&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Every mitigation is baked into the architecture, not bolted on afterward.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Platform:&lt;/strong&gt; MeDo (full-stack AI generation)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; HTML5, CSS3, JavaScript ES6+&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audio:&lt;/strong&gt; Web Audio API — OscillatorNode, GainNode, frequency envelope engineering&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; MeDo Rules Engine — 13 business logic automations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database:&lt;/strong&gt; MeDo Backend Services — Cases table with 40+ fields including append-only audit trail&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Layer:&lt;/strong&gt; MeDo LLM Engine (Claude/Anthropic) — confidence-scored keyword triage, natural language intake parsing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Safety Standard:&lt;/strong&gt; ICH E2B(R3), EU AI Act Article 14 human oversight pattern&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The North Star Metric
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Zero late submissions per 1,000 active cases.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not faster workflows. Not prettier dashboards. Zero. Late. Submissions.&lt;/p&gt;

&lt;p&gt;That is a number a Chief Compliance Officer puts on a slide to their board. That is the number this application was built to deliver.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;The live application is deployed and running.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://app-bookj4rxcx6p.appmedo.com" rel="noopener noreferrer"&gt;https://app-bookj4rxcx6p.appmedo.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Built for the &lt;strong&gt;Build with MeDo Hackathon&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you work in pharma, biotech, or clinical research — or if you are building safety-critical tools and want to talk about Safe-by-Design architecture — I would love to hear from you in the comments.&lt;/p&gt;

</description>
      <category>builtwithmedo</category>
      <category>hackathon</category>
      <category>safebydesign</category>
      <category>pharmacovigilance</category>
    </item>
  </channel>
</rss>
