Test scenarios only run in our QA environment (
api-qa.silnahealth.com). They are never triggered in production.How It Works
The workflow is the same as production:- Create a patient plan with a member number that contains a scenario code (see Member Number Format)
- Create a prior authorization for that patient plan
- Update the prior authorization until its status is
ALL_REQUIRED_DATA_RECEIVED - Complete the prior authorization request
- Poll Get Prior Authorization until the status reaches the scenario’s final status
If the prior authorization’s status changes some other way before a step runs (for example, you abort it), the scenario stops.
Fields Silna fills in
When Silna submits a test prior authorization, it fills in any of these fields you left empty, the same way it does for a real request:- Requested start date: today.
- Requested end date: the requested start date plus a length that depends on the scenario:
01180 days,0290,0360,04180,05120,06180,0730,08365,0914. - Requested treatment codes: two codes for the prior authorization’s specialty, at 20 units per week each.
Member Number Format
AddPA followed by a two-digit scenario code anywhere in the member number:
A and the trailing insurance code (11), so one test patient plan can drive both a benefits check test and a prior authorization test.
Member numbers without a
PA code, or with an unknown code, follow the normal prior authorization flow.
Scenarios
Approved scenarios (01 - 04)
The prior authorization response includes:
approved_treatment_codeswithunits,unit_type,time_frame,reference_number,approved_start_date, andapproved_end_datereference_numberswith every reference number on the authorizationapproval_fileswith a synthetic approval letter (document_type=APPROVAL_LETTER)
Partially approved scenario (05)
Partial approvals mirror production: Silna records the approved treatment codes and an approval letter, then opens a DECISION_RENDERED__PARTIALLY_APPROVED escalation asking you how to proceed. Opening the escalation moves the prior authorization to AWAITING_PROVIDER. You can find the escalation with the Escalations API.
Denied scenario (07)
The prior authorization response includes a synthetic denial letter in denial_files (document_type = DENIAL_LETTER).
All approval/denial letters generated by these scenarios are labeled “QA TEST” and are not real payor documents.