LangGraph blueprint · Healthcare
Prior-authorization assistant
An agent assembles insurer approval requests from the medical record, criterion by criterion.
- Steps
- 7
- Subjective questions
- 32
- Objective questions
- 32
The problem and the outcome
Problem: Clinic staff spend hours a day on prior-auth forms, and missing details delay care by days.
Outcome: Complete, evidence-backed requests in minutes, always signed by a clinician.
Architecture
How it works, step by step
- A doctor orders a procedure that the insurer must approve first.
- The agent pulls the diagnosis, history and earlier treatments from the EHR.
- It retrieves that insurer's medical-necessity criteria for the procedure.
- A checker node matches every criterion to evidence in the record, citing the source note.
- If evidence is missing, the graph loops back and asks the clinic for it.
- It drafts the authorization request with each criterion and its evidence attached.
- A clinician reviews and signs before it is submitted through the payer's API.
Tech stack
- LangGraph
- FHIR API to the EHR
- Payer criteria retrieval (coverage policies)
- Clinician review UI
- HIPAA-eligible hosting with audit logs
Key design decisions
- Check each payer criterion separately and attach the exact evidence from the record for it.
- Ask the clinic for missing evidence instead of guessing or filling gaps.
- A clinician signs off before anything is submitted to the payer.
Common mistakes
- Sending protected health information to services without a business associate agreement (BAA).
- Summaries that sound right but cite no source in the record.
- Outdated payer criteria, because policies change often.
What to measure
- First-pass approval rate
- Time from order to submission
- Requests returned for missing information
- Clinician edits per draft
Most-asked interview questions
Subjective questions 32
1Walk through a prior-authorisation assistant's workflow.Asked almost every time
Receive the order (procedure, diagnosis codes, patient), fetch the payer's criteria for that procedure, pull relevant records from the EHR via FHIR, check each criterion against evidence one by one with citations to source documents, flag missing evidence, draft the request packet, and route it to a clinician for review and sign-off before submission.
2How do you make each criterion check auditable?Asked almost every time
For every criterion store the decision (met, not met, missing), the exact evidence quote with document ID, date and author, the model's reasoning, and the reviewer's confirmation, so payers and auditors can follow every claim.
3How do you reduce hallucinated evidence?Asked almost every time
Retrieve from the patient's actual records only, require verbatim quotes with document references, verify quotes exist in the source with code, mark criteria as missing rather than inferring, and have clinicians confirm before submission.
4How do you keep an AI system compliant when handling patient data?Very often asked
Use providers and hosting covered by a BAA, keep only the minimum data needed, encrypt it in transit and at rest, control access by role, audit every access and action, mask data in traces, and keep a clinician responsible for every decision. Follow HIPAA in the US and local equivalents elsewhere.
5Why check criteria one by one instead of asking the model for an overall verdict?Very often asked
Each criterion gets its own evidence and a clear met / not met / missing result, which is easier to verify, explain to the payer and evaluate. One overall answer hides which part was weak and invites hallucination.
6Why separate criteria retrieval from evidence retrieval?Very often asked
Payer criteria come from policy documents that change by payer and plan; patient evidence comes from the EHR. Keeping them separate lets you version policies, cite both sources and update one without affecting the other.
7How do you handle payer policy updates?Very often asked
Ingest policy documents with version and effective dates, re-extract structured criteria when they change, review extraction with clinical staff, and apply the version in effect on the service date.
8How do you protect patient privacy (HIPAA or DPDP)?Very often asked
Use providers with business associate agreements or equivalent contracts, minimise data sent to models, encrypt data in transit and at rest, log access, restrict roles, avoid using PHI for training, and keep audit trails.
9What does the clinician review screen show?Very often asked
Each criterion with status, highlighted evidence quotes linked to source documents, missing items to address, the drafted letter of medical necessity, and buttons to approve, edit or return with comments.
10How do you measure the assistant's accuracy?Very often asked
Compare criterion decisions with clinician-labelled cases, track approval rates and denial reasons from payers, time saved per request, and the share of drafts sent without edits.
11How do you integrate with EHR systems?Very often asked
Use FHIR APIs (Patient, Condition, Observation, MedicationRequest, DocumentReference) with SMART on FHIR authorisation, and fall back to HL7 v2 feeds or document exports where FHIR is limited.
12How do you handle unstructured clinical notes?Very often asked
Chunk notes by section with metadata (date, author, note type), use medical-domain embeddings or hybrid search, and extract findings with structured output tied to note IDs.
13How do you design the data model for a prior-authorisation request?Very often asked
Store the request with patient, provider, payer and plan IDs, procedure and diagnosis codes, the policy version used, and one record per criterion with status, cited evidence (document, page, quote) and reviewer decision. Keep the generated packet and submission status linked for audit.
14How do you keep the assistant up to date with codes and coverage rules that change every year?Very often asked
Load code sets and payer policies as versioned reference data with effective dates, select the version valid on the request's service date, re-run criterion extraction when a policy changes, and flag in-flight requests affected by the update.
15What is FHIR?Often asked
Fast Healthcare Interoperability Resources: an HL7 standard for exchanging health data through REST APIs, using resources such as Patient, Condition, Observation and MedicationRequest. Most modern EHRs expose FHIR APIs, which lets an agent read records in a standard way.
16What should happen when evidence is missing?Often asked
Mark the criterion as missing, list what is needed (for example six weeks of physical therapy notes), and create a task for staff to obtain it rather than submitting an incomplete request.
17How do you handle different payers' formats?Often asked
Map each payer's submission requirements into templates, generate packets per template, and use payer APIs (such as the emerging FHIR-based prior auth APIs) or portals for submission.
18Why must a human sign off?Often asked
Clinical and legal responsibility stays with licensed staff, models can misread records, and regulations and payer rules require accountable human decisions for medical necessity.
19How do you evaluate extraction of payer criteria?Often asked
Compare extracted criteria with manually curated lists for a sample of policies, measuring missed and extra criteria, and require review when policies are new.
20How do you design for denials and appeals?Often asked
Store denial reasons, analyse common gaps, and reuse the evidence pipeline to draft appeal letters addressing the stated reason, with clinician review.
21What latency is acceptable?Often asked
Minutes rather than seconds are acceptable for drafting, so the workflow can run asynchronously and notify staff when a packet is ready, using more thorough checks.
22How do you prevent the model from giving medical advice?Often asked
Scope the assistant to documentation and criteria matching, keep clinical decisions with clinicians, and filter outputs that recommend treatments.
23How do you test with realistic data safely?Often asked
Use de-identified or synthetic patient records, test with policy documents for real procedures, and run pilots in a sandbox EHR before production.
24How do you handle urgent or expedited prior-authorisation requests?Often asked
Detect urgency from the order and clinician input, put the request on a priority queue with a tighter service target, notify the reviewer immediately, and use the payer's expedited submission route and timelines.
25How do you track the payer's decision after submission?Often asked
Record the submission reference, poll or receive status updates through the payer portal, clearinghouse or API, update the request status, and alert staff on denials or requests for more information with the payer's stated reason.
26How do you reduce clinician time spent on each request?Often asked
Pre-fill the packet from structured EHR data, show only the criteria still unresolved, highlight the exact evidence quotes, let reviewers accept or edit with one click, and learn which evidence types each payer usually requires.
27How do you avoid automation bias in reviewers?Often asked
Show confidence and missing evidence clearly, require reviewers to open cited evidence for low-confidence criteria, sample decisions for second review, and track how often reviewers change the draft; a rate near zero may mean rubber-stamping.
28What are ICD-10 and CPT codes?Sometimes asked
ICD-10 codes describe diagnoses; CPT (and HCPCS) codes describe procedures and services. Prior authorisation requests pair them to justify medical necessity.
29How do you handle records in several languages or formats?Sometimes asked
Normalise to text with OCR where needed, keep the original document reference, and translate only for matching while quoting the original.
30What audit logs are required?Sometimes asked
Who accessed which records, what the system extracted, what was sent externally, and who approved submissions, retained per regulation.
31How do you roll out to clinics?Sometimes asked
Start with high-volume procedures with clear criteria, train staff on the review screen, measure time saved and accuracy, then expand procedure by procedure.
32How do you report the assistant's impact to hospital leadership?Sometimes asked
Track turnaround time from order to submission, first-pass approval rate, denial reasons, staff minutes per request and the share of drafts accepted with no edits, compared with the period before rollout.
Objective questions 32
1What must each met criterion include?Asked almost every time
Why: Auditors must verify every claim.
2Who signs off before submission?Asked almost every time
Why: Responsibility stays with clinicians.
3If evidence is missing, the system should…Asked almost every time
Why: Incomplete requests get denied.
4Which standard is commonly used to read EHR data through APIs?Very often asked
Why: FHIR is the HL7 standard for healthcare data exchange over REST.
5Who must approve the request before it goes to the insurer?Very often asked
Why: Clinical responsibility stays with the clinician; the agent only drafts.
6Which standard reads EHR data through modern APIs?Very often asked
Why: With SMART on FHIR auth.
7Which policy version applies to a request?Very often asked
Why: Policies change over time.
8How are hallucinated quotes caught?Very often asked
Why: Exact matching against records.
9What does a business associate agreement cover?Very often asked
Why: Required for PHI processing.
10Which metric shows drafts are useful?Very often asked
Why: Plus payer approval rates.
11Clinical notes are best chunked by…Very often asked
Why: Keeps citations precise.
12Each criterion record should store…Very often asked
Why: Auditors need the evidence and who decided.
13Which coverage rule version should be used when policies change mid-year?Very often asked
Why: Coverage rules are tied to dates.
14If evidence for a criterion is missing, the agent should…Often asked
Why: Guessing clinical facts is unsafe; it should request the missing documentation.
15Which codes describe procedures?Often asked
Why: ICD-10 describes diagnoses.
16Why keep payer criteria separate from patient evidence?Often asked
Why: Update one without the other.
17What can be reused for appeals?Often asked
Why: Draft appeal letters with review.
18How should test data be sourced?Often asked
Why: Protect privacy in testing.
19What should the assistant avoid?Often asked
Why: Clinical decisions stay human.
20Acceptable latency for drafting packets is…Often asked
Why: Thoroughness beats speed here.
21What must audit logs include?Often asked
Why: Required by regulation.
22How should payer policies be ingested?Often asked
Why: Apply the right version.
23Expedited requests should be…Often asked
Why: Urgent care cannot wait for the normal queue.
24After submission, the system should…Often asked
Why: Denials and information requests need fast follow-up.
25A near-zero edit rate by reviewers may indicate…Often asked
Why: Some edits are expected if reviewers are reading closely.
26Clinician time is reduced most by…Often asked
Why: Reviewers focus only on unresolved criteria.
27Where should a rollout start?Sometimes asked
Why: Measure, then expand.
28What should be sent to the model?Sometimes asked
Why: Data minimisation protects privacy.
29Scanned records need…Sometimes asked
Why: Quote the original source.
30Which FHIR resource holds clinical documents?Sometimes asked
Why: Points to notes and reports.
31Common denial reasons are useful for…Sometimes asked
Why: Each denial teaches what to fix.
32Which metric shows packets are complete first time?Sometimes asked
Why: Fewer resubmissions mean better packets.
Track your progress through every blueprint in your dashboard.
Start learning