India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
AWSPharmaceuticals (pharmacovigilance case processing)Healthcare & Life Sciences

Pharmacovigilance hub catches a seriousness-classification regression within a day

Pharmaceutical company's global PV case-processing hub, about 9,000 cases a month · Hyderabad · 8 weeks

Amazon Web Services
01

As-is situation

The hub used an Amazon Bedrock pipeline to pre-populate case intake from emails, call-centre notes and literature: patient details, suspect products, adverse events with suggested MedDRA terms and a seriousness classification. Case processors verified every field. Quality was measured by quarterly manual audits of 200 cases. When the team upgraded the model version, seriousness recall dropped from 98% to 91% for hospitalisation-related cases, but nobody noticed for five weeks, until a QA reviewer found several serious cases routed to the standard queue, risking late expedited reporting.

  • Quality checked only through a quarterly 200-case manual audit
  • Five weeks to detect a seriousness-recall drop after a model upgrade
  • No traces linking each pre-populated field to prompt, model version and source text
02

Approach, tools and architecture

NTSPL instrumented the pipeline with OpenTelemetry spans exported to CloudWatch, carrying model ID, prompt version and source document hash, with Bedrock model invocation logging enabled. A 450-case golden set was assembled with the PV physicians, weighted toward serious and special-situation cases. Offline evaluation in the release pipeline now blocks any version whose seriousness recall falls below 97% or MedDRA term accuracy drops by more than 2 points. Online, 10% of cases and every processor correction are scored daily, with a CloudWatch alarm on rolling seriousness recall. Corrections feed a review queue for physicians.

Case intake pipeline → OpenTelemetry spans and Bedrock invocation logs → CloudWatch → daily sampled scoring against processor corrections → recall alarms; release candidates → 450-case golden-set gate in CodePipeline
Amazon BedrockAmazon CloudWatchAmazon Bedrock evaluationsAWS CodePipelineAmazon S3AWS Lambda
03

Implementation approach

Weeks 1-2 · InstrumentationAdded tracing to six pipeline stages and linked every field to model and prompt versions.
Weeks 2-4 · Golden setPV physicians verified 450 cases, including 160 serious and 40 pregnancy or paediatric cases.
Weeks 5-6 · Release gateAdded the evaluation stage to CodePipeline with recall and term-accuracy tolerances.
Weeks 6-8 · Online monitoringEnabled daily scoring from processor corrections and seriousness-recall alarms.
04

Measured results

Time to detect a seriousness-recall regression
5 weeks→Under 24 hours
Seriousness recall on hospitalisation cases
91% after upgrade→98.4% with gated release
Releases evaluated before production
None→All 14 releases in two quarters
Pre-populated fields traceable to source and version
0%→100%

Operational improvements

  • Quality assurance can produce field-level accuracy evidence for audits and inspections on demand
  • Two later candidate model versions were rejected by the gate before reaching processors
05

Cost considerations

Daily online scoring and the release gate add about ₹70,000 a month in Bedrock and CloudWatch costs, roughly 18% of pipeline model spend. Trace retention follows the company's PV record-keeping requirements, with personal data masked in logs.

06

Return on investment

ROI indicator

The value is avoided compliance risk: one undetected regression could delay expedited reports for dozens of serious cases. Faster safe adoption of newer, cheaper model versions also reduced pipeline model spend by about a fifth after gating.

Illustrative scenario: a composite based on typical NTSPL engagement patterns for this industry and service. It does not describe a named customer. The figures are indicative, and actual results depend on the workload, its scale and the commercial terms.