Decision owner
Qualified medical reviewer
The named role remains accountable for the consequential decision.
Life Sciences & Pharmaceuticals
Designed for Medical information specialist
Answer unsolicited medical information enquiries from healthcare professionals with on-label, referenced responses drawn from approved documents, escalating off-label or adverse-event content to a qualified reviewer.
Contract LIF-03 · primary aggregate EnquiryCase · mode loading
Decision brief
This brief starts with the decision, evidence, and accountable owner. The guided workflow then shows how the recommendation was produced.
The evidence and control points that shape this recommendation.
Decision owner
Qualified medical reviewer
The named role remains accountable for the consequential decision.
Governed evidence
5 record types
Structured records and cited text ground the recommendation.
Workflow
5 controlled stages
Each transition records its input, output, status, and audit context.
Human controls
1 approval gate
Approval gates prevent the copilot from making consequential decisions.
A cardiologist asks about dosing in severe renal impairment for a product whose local label is silent; the assistant finds no on-label statement, retrieves a cleared pharmacokinetic publication, segments that content as off-label, and holds the reply until a qualified medical reviewer approves the wording and confirms no adverse event was reported..
Answer unsolicited medical information enquiries from healthcare professionals with on-label, referenced responses drawn from approved documents, escalating off-label or adverse-event content to a qualified reviewer.
Released response and archived enquiry record gives Qualified medical reviewer the evidence needed to begin the final governed business outcome, with the decision trail retained for review.
Step 1 of 5
| Field | Value |
|---|
| Field | Value |
|---|
The output appears here immediately. More technical evidence remains available below.
The demonstration keeps deterministic controls, AI assistance, and approval separate.
Source systems enforce identity, workflow order, policy filters, and record updates.
Retrieval and generation assemble relevant evidence into a cited recommendation or draft.
Qualified medical reviewer verifies material claims and approves the consequential action.
Run the stages in order before using the Copilot. Every stage explains what happens, why it matters, the evidence it uses, and the complete API request and response.
Automated stage
What happens: Medical information specialist performs capture and classify the enquiry using Call, email, or portal enquiry from a healthcare professional and produces EnquiryCase with product, country, and classification. The transition is deterministic and does not require autonomous model approval.
Why it matters: EnquiryCase with product, country, and classification gives Safety screening agent the evidence needed to begin Screen for adverse events and product complaints, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/capture-and-classify-the-enquiry
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Safety screening agent performs screen for adverse events and product complaints using Enquiry free text and produces Adverse-event linkage flag and safety routing. The transition is deterministic and does not require autonomous model approval.
Why it matters: Adverse-event linkage flag and safety routing gives Retrieval agent the evidence needed to begin Retrieve approved responses and label scope, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/screen-for-adverse-events-and-product-complaints
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Retrieval agent performs retrieve approved responses and label scope using Classified enquiry and country code and produces Candidate approved content within the local label. The transition is deterministic and does not require autonomous model approval.
Why it matters: Candidate approved content within the local label gives Response agent the evidence needed to begin Draft the referenced reply, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/retrieve-approved-responses-and-label-scope
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Automated stage
What happens: Response agent performs draft the referenced reply using Approved content and cleared publications and produces ResponseDraft with on-label and off-label segmentation. The transition is deterministic and does not require autonomous model approval.
Why it matters: ResponseDraft with on-label and off-label segmentation gives Qualified medical reviewer the evidence needed to begin Medical review and release, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/draft-the-referenced-reply
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Human approval required
What happens: Qualified medical reviewer performs medical review and release using Draft with segmentation and citations and produces Released response and archived enquiry record. A named human approver must review the evidence before the transition completes.
Why it matters: Released response and archived enquiry record gives Qualified medical reviewer the evidence needed to begin the final governed business outcome, with the decision trail retained for review.
Loading relevant sample records.
Ready to run.
POST /api/domain/workflow/medical-review-and-release
Run this API to see its formatted outcome.
| Field | Value |
|---|
| Field | Value |
|---|
Run a stage to see its explanation, evidence, full request, and full response.
Ask a question and receive an answer grounded in retrieved EnquiryCase evidence.
Select a starter question or enter your own.
Loaded live from /api/config, /api/domain/model, and
/api/domain/sample.
enquiryCases/tenantId + /enquiryIdA cardiologist asks about dosing in severe renal impairment for a product whose local label is silent; the assistant finds no on-label statement, retrieves a cleared pharmacokinetic publication, segments that content as off-label, and holds the reply until a qualified medical reviewer approves the wording and confirms no adverse event was reported.
| Container | Role | Hierarchical partition key | Document types |
|---|---|---|---|
enquiryCases |
Primary | /tenantId + /enquiryId |
EnquiryCase, ResponseDraft |
medicalContentLibrary |
Reference | /tenantId + /contentDocumentId |
ApprovedResponseDocument, ProductLabelSection, PublicationReference |
| Type | Container | Partition key | Identifier pattern | Embedding fields |
|---|---|---|---|---|
EnquiryCase |
enquiryCases |
/tenantId + /enquiryId |
enquiry::{enquiryId} |
enquiryTextVector |
ApprovedResponseDocument |
medicalContentLibrary |
/tenantId + /contentDocumentId |
standardresponse::{contentDocumentId}::{chunkIndex} |
bodyVector |
ProductLabelSection |
medicalContentLibrary |
/tenantId + /contentDocumentId |
label::{contentDocumentId}::{countryCode}::{sectionCode} |
sectionVector |
PublicationReference |
medicalContentLibrary |
/tenantId + /contentDocumentId |
publication::{contentDocumentId} |
abstractVector |
ResponseDraft |
enquiryCases |
/tenantId + /enquiryId |
response::{enquiryId}::{draftVersion} |
responseVector |
Read the enquiry state and every response draft for one enquiry in a single partition-aligned query. ResponseDraft carries citedContentDocumentIds, so approved content and publications are resolved from the medicalContentLibrary container by id rather than copied into the enquiry partition.
enquiryCases
single-partition
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.enquiryId = @enquiryId AND c.type IN ('EnquiryCase','ApprovedResponseDocument','PublicationReference','ResponseDraft') ORDER BY c.draftVersion DESC
Knowledge-container query against medicalContentLibrary (bounded fan-out across the /tenantId + /contentDocumentId partitions named by the shortlist): restrict candidate content to unexpired documents approved for the requester's country, over the bounded content document ids returned by vector shortlisting.
medicalContentLibrary
partition-key-fan-out
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.contentDocumentId IN (@shortlistedContentDocumentIds) AND c.type = 'ApprovedResponseDocument' AND ARRAY_CONTAINS(c.countryScope, @countryCode) AND c.approvalExpiryUtc > @nowUtc ORDER BY c.approvalExpiryUtc ASC
Partition-key fan-out control-plane query: list drafts containing off-label segments that require qualified reviewer sign-off. It cannot carry the second partition key because the medical reviewer queue spans every enquiry in the affiliate, so it runs as a tenant-scoped scheduled sweep off the interactive path, bounded by pending drafts with off-label segments inside the enquiry response service level, executed with MaxItemCount paging and continuation tokens.
enquiryCases
partition-key-fan-out
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.type = 'ResponseDraft' AND ARRAY_LENGTH(c.offLabelSegments) > 0 AND c.reviewDecision = 'pending' ORDER BY c.draftVersion DESC
Partition-key fan-out control-plane query: track enquiries that also triggered a pharmacovigilance intake within the reporting window. It cannot carry the second partition key because pharmacovigilance reconciliation is a compliance sweep across all enquiries, so it runs as a tenant-scoped scheduled sweep off the interactive path, bounded by open enquiries flagged adverse-event linked inside the 15-day expedited reporting window, executed with MaxItemCount paging and continuation tokens.
enquiryCases
partition-key-fan-out
SELECT * FROM c WHERE c.tenantId = @tenantId AND c.type = 'EnquiryCase' AND c.adverseEventLinked = true AND c.responseState != 'closed' ORDER BY c.enquiryId ASC