get_clinical_questions takes a pharmacy claim tuple, pins down the line of business and indication, and returns the payer’s clinical question set — each question carrying a structured citation back to the underlying policy.
Pass the resolved questions and the user’s answers as clinical_answers on Fill Prior Authorization.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
bin | string | yes | Pharmacy claim BIN (6 digits). |
state | string | yes | Two-letter state code for the member (e.g. "CA"). |
drug_name | string | yes | Drug brand (e.g. "wegovy"). Use Search Drugs if the caller only has a free-text string. |
icd_code | string | yes | ICD-10 diagnosis code (e.g. "E66.01"). |
pcn | string | no | Processor control number. Tiebreaker for shared-processor BINs. |
group_id | string | no | Group ID. Tiebreaker for shared-processor BINs. |
member_id | string | no | Member ID. The leading alpha prefix often disambiguates LOBs on shared BIN/PCN pairs (e.g. BIN 003858 / PCN A4 hosts both ESI Commercial and Humana Part D). |
Example
- Python
- TypeScript
Response
| Field | Type | Description |
|---|---|---|
matched | boolean | Whether the tuple resolved to a specific LOB/policy. |
coverage_status | string | Coverage verdict for the drug under the resolved plan (e.g. "covered_with_pa", "not_covered"). |
lob_id | string | Internal identifier for the resolved line of business. |
rationale | string | Human-readable explanation of how the claim tuple was routed. |
routing | object | pbm_name, line_of_business, plan_name_or_group, confidence. |
questions | array | Clinical questions the payer requires for this drug + indication. |
sources | array | Policy documents consulted, with source_name and fetch_timestamp. |
Question shape
Each entry inquestions has:
| Field | Type | Description |
|---|---|---|
prompt | string | The question text, as written in payer policy. |
input_type | string | "boolean", "text", "number", "date", or "choice". |
required | boolean | Whether the payer treats this answer as mandatory. |
citation | object | policy_id, section, effective_date, url, verbatim_quote — show to reviewers as the source. |
