Skip to content
masterclassBuddyTech Buzz5 fresh blogs · 5:00 AM IST

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

Doctor ordersan MRI01Read the EHRdiagnosis · history02Payer criteriaretrieval03Criteria checkeragent04Evidence missing?ask the clinic05Draft request+ evidence06Cliniciansigns off07Submit to payerFHIR APIgapsre-queryall met

How it works, step by step

  1. A doctor orders a procedure that the insurer must approve first.
  2. The agent pulls the diagnosis, history and earlier treatments from the EHR.
  3. It retrieves that insurer's medical-necessity criteria for the procedure.
  4. A checker node matches every criterion to evidence in the record, citing the source note.
  5. If evidence is missing, the graph loops back and asks the clinic for it.
  6. It drafts the authorization request with each criterion and its evidence attached.
  7. 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
  1. AA confident summary
  2. BThe model's opinion only
  3. CNothing
  4. DA verbatim evidence quote with document referenceCorrect answer

Why: Auditors must verify every claim.

2Who signs off before submission?Asked almost every time
  1. AThe payer
  2. BThe patient
  3. CA licensed clinicianCorrect answer
  4. DThe model

Why: Responsibility stays with clinicians.

3If evidence is missing, the system should…Asked almost every time
  1. ASubmit anyway
  2. BDelete the criterion
  3. CMark it missing and request itCorrect answer
  4. DInfer it

Why: Incomplete requests get denied.

4Which standard is commonly used to read EHR data through APIs?Very often asked
  1. ASOAP 1.0 only
  2. BSMTP
  3. CFHIRCorrect answer
  4. DGraphQL only

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
  1. ANobody
  2. BThe clinicianCorrect answer
  3. CThe vector store
  4. DThe patient's employer

Why: Clinical responsibility stays with the clinician; the agent only drafts.

6Which standard reads EHR data through modern APIs?Very often asked
  1. ASMTP
  2. BCSV
  3. CSOAP only
  4. DFHIRCorrect answer

Why: With SMART on FHIR auth.

7Which policy version applies to a request?Very often asked
  1. AThe version in effect on the service dateCorrect answer
  2. BThe newest always
  3. CThe oldest
  4. DAny version

Why: Policies change over time.

8How are hallucinated quotes caught?Very often asked
  1. ATrusting the model
  2. BCode verifies quotes exist in the sourceCorrect answer
  3. CHigher temperature
  4. DLonger prompts

Why: Exact matching against records.

9What does a business associate agreement cover?Very often asked
  1. ACode licences
  2. BHandling of patient data by vendorsCorrect answer
  3. CMarketing rights
  4. DServer colours

Why: Required for PHI processing.

10Which metric shows drafts are useful?Very often asked
  1. ANumber of tokens
  2. BServer CPU
  3. CPrompt length
  4. DShare sent without editsCorrect answer

Why: Plus payer approval rates.

11Clinical notes are best chunked by…Very often asked
  1. ARandom lines
  2. BWhole patient history
  3. CSection with date and author metadataCorrect answer
  4. DFixed bytes

Why: Keeps citations precise.

12Each criterion record should store…Very often asked
  1. AStatus, cited evidence and the reviewer's decisionCorrect answer
  2. BOnly a yes or no
  3. CThe model's temperature
  4. DThe patient's photo

Why: Auditors need the evidence and who decided.

13Which coverage rule version should be used when policies change mid-year?Very often asked
  1. AThe oldest on file
  2. BWhichever the model prefers
  3. CThe one in effect on the service dateCorrect answer
  4. DAlways the newest

Why: Coverage rules are tied to dates.

14If evidence for a criterion is missing, the agent should…Often asked
  1. AAsk the clinic for itCorrect answer
  2. BMark the criterion as met
  3. CSkip the request
  4. DInfer it from similar patients

Why: Guessing clinical facts is unsafe; it should request the missing documentation.

15Which codes describe procedures?Often asked
  1. AZIP codes
  2. BSKU codes
  3. CCPT and HCPCSCorrect answer
  4. DICD-10

Why: ICD-10 describes diagnoses.

16Why keep payer criteria separate from patient evidence?Often asked
  1. AThey come from different, versioned sourcesCorrect answer
  2. BTo save memory
  3. CModels require it
  4. DIt is faster to type

Why: Update one without the other.

17What can be reused for appeals?Often asked
  1. AA new model
  2. BThe CDN
  3. CThe evidence pipeline with denial reasonsCorrect answer
  4. DNothing

Why: Draft appeal letters with review.

18How should test data be sourced?Often asked
  1. ARandom text
  2. BDe-identified or synthetic recordsCorrect answer
  3. CReal patient data in staging
  4. DSocial media

Why: Protect privacy in testing.

19What should the assistant avoid?Often asked
  1. ACiting documents
  2. BListing missing items
  3. CDrafting packets
  4. DRecommending treatmentsCorrect answer

Why: Clinical decisions stay human.

20Acceptable latency for drafting packets is…Often asked
  1. ADays
  2. BExactly one second
  3. CMinutes, running asynchronouslyCorrect answer
  4. DUnder 10 ms

Why: Thoroughness beats speed here.

21What must audit logs include?Often asked
  1. ANothing
  2. BRecord access, extractions and approvalsCorrect answer
  3. COnly errors
  4. DOnly logins

Why: Required by regulation.

22How should payer policies be ingested?Often asked
  1. AWith versions and effective datesCorrect answer
  2. BWithout dates
  3. COnce ever
  4. DFrom memory

Why: Apply the right version.

23Expedited requests should be…Often asked
  1. AHandled after routine ones
  2. BSubmitted without review
  3. CIgnored until morning
  4. DPlaced on a priority queue with tighter targetsCorrect answer

Why: Urgent care cannot wait for the normal queue.

24After submission, the system should…Often asked
  1. ATrack the payer's status and reasonsCorrect answer
  2. BDelete the packet
  3. CAssume approval
  4. DEmail the patient the full record

Why: Denials and information requests need fast follow-up.

25A near-zero edit rate by reviewers may indicate…Often asked
  1. ARubber-stamping from automation biasCorrect answer
  2. BA perfect model
  3. CNetwork problems
  4. DToo many reviewers

Why: Some edits are expected if reviewers are reading closely.

26Clinician time is reduced most by…Often asked
  1. APre-filling from EHR data and highlighting evidenceCorrect answer
  2. BLonger forms
  3. CRemoving citations
  4. DAdding more approval steps

Why: Reviewers focus only on unresolved criteria.

27Where should a rollout start?Sometimes asked
  1. ARare cases first
  2. BNowhere
  3. CHigh-volume procedures with clear criteriaCorrect answer
  4. DEvery procedure at once

Why: Measure, then expand.

28What should be sent to the model?Sometimes asked
  1. ABilling data only
  2. BThe minimum data necessaryCorrect answer
  3. CThe full hospital database
  4. DPasswords

Why: Data minimisation protects privacy.

29Scanned records need…Sometimes asked
  1. ADeleting
  2. BOCR with the original reference keptCorrect answer
  3. CTo be ignored
  4. DManual retyping only

Why: Quote the original source.

30Which FHIR resource holds clinical documents?Sometimes asked
  1. APractitioner
  2. BDocumentReferenceCorrect answer
  3. CPatient only
  4. DBundle only

Why: Points to notes and reports.

31Common denial reasons are useful for…Sometimes asked
  1. AMarketing
  2. BIgnoring payers
  3. CNothing
  4. DFixing evidence gaps in future requestsCorrect answer

Why: Each denial teaches what to fix.

32Which metric shows packets are complete first time?Sometimes asked
  1. AServer CPU
  2. BPage views
  3. CFirst-pass approval rateCorrect answer
  4. DNumber of logins

Why: Fewer resubmissions mean better packets.

Track your progress through every blueprint in your dashboard.

Start learning