Open rejections by category
Claim status (Master Tracker)
Aging of open rejections
Needs attention
Agent tiers used
1 · Connect the bot
FrameworkLTC is a Windows program, so the bot runs on the computer (or Citrix session) where FrameworkLTC is open, and this page gives it instructions. Setup: Bot setup.
2 · FrameworkLTC
Sign in to FrameworkLTC yourself on the bot computer, as you do today. The bot works in that open window — it never asks for, stores or sends the FrameworkLTC password.
3 · Guardrails
| Rx # / Fill | Patient | Facility | Payer | Reject | Rule & tier | Status |
|---|
Agent execution stream
Payload sent to the FrameworkLTC worker
// Run a claim to see the exact JSON instruction packet.
One row per rejected claim (Rx + fill). Agent results, PA status and facility exceptions write back here. This is the data warehouse: filter it, edit it, download it.
| PA # | Rx | Patient / facility | Drug | Payer | Prescriber | Reason | Type | Submitted via | Due | Status | Approval / expiry |
|---|
| Credential | Type | Store / entity | Number / ID | Issuer | State | Effective | Expires / revalidate | Days left | Owner | Status |
|---|
Claims the agent could not finish because the facility, a payer call, a pharmacist or customer service has to act. Close each item with the outcome.
| Rx | Facility | Payer | Reject | Status | Next action | Aging |
|---|
Every rule the agent runs, merged from three sources: your Manual (Complete Pharmacy manual + Team Updates), the Caremark Medicare Part D payer sheet (D.0, 11/01/2025) and Industry NCPDP practice. Tier 1 = agent fixes and transmits · Tier 2 = agent fixes after a check · Tier 3 = agent routes · Tier 4 = a person decides.
| Code(s) | Category | Tier | FrameworkLTC screen / NCPDP field | Agent steps | Sources |
|---|
Caremark Medicare Part D quick reference
BIN / PCN (Appendix A)
| Use | BIN | PCN |
|---|---|---|
| Part D | 004336 | MEDDADV |
| Part D | 610591 | per ID card |
| Part D (Aetna) | 610502 | MEDDAET |
| Part D (CarelonRx) | 020115 / 020388 | IS / IRXMEDD |
| Part D (Molina) | 028272 | MOHMCARE |
| Dual (MN / OH) | 004336 | MEDDMCDMN / MEDDMCDOH |
| Part B | 004336 | ADV / PARTBADV |
| Part B (Aetna) | 610502 | PARTBAET |
LTC SCC (420-DK, Appendix C)
| SCC | Use |
|---|---|
| 07 | Emergency supply (31 DS) |
| 14 | Leave of absence (3 for ALF) |
| 16 / 17 | E-box dose / first fill after E-box |
| 18 | LTC admission / level-of-care change |
| 19 | Split billing — partial Part A |
| 21 | Short cycle N/A (CMS-excluded, unbreakable pack) |
| 22–35 | Short-cycle dispensing (34 = 14-day, 22 = 7-day, 35 = 8–14 other) |
| 36 | Dispensed outside short cycle (other payer first) |
| 42 / 43 / 45 / 46 | Prescriber validated / DEA renewed · hospital DEA / DEA class authorized |
Residence & packaging
| Setting | 384-4X / 147-U7 |
|---|---|
| LTC | 03 / 05 |
| LTC institutional | 03 / 04 |
| Assisted living (retail) | 04 / 05 |
| ICF/IID (exempt from short cycle) | 09 / 05 |
429-DT: 1 not unit dose · 2 mfr unit dose · 3 pharmacy unit dose · 4 pharmacy unit-dose compliance pack · 5 multi-drug compliance pack · 6/7 remote device. Brand oral solid >14 DS without an SCC rejects 7X + 34; never send 21 or 36 with 22–35.
Help desk: Legacy ADV 004336 1-800-364-6331 · Aetna 610502 1-800-238-6279 · CarelonRx 1-833-377-4266.
Option A (generic UI bridge) vs Practice-rule console vs industry standard
What each of your two HTML drafts does, what the Caremark payer sheet and NCPDP practice expect, and what this build does instead.
| Area | Option A — generic | Practice-rule console | Industry / Caremark standard | This build |
|---|
Points to confirm with the billing team
How the bot connects to FrameworkLTC
Same idea as the Varasi Labs agent: a person signs in, the bot does the work in that session and reports every step back here. FrameworkLTC is a Windows program, so the bot is a small Python program on the computer where FrameworkLTC runs instead of a browser add-on.
On the PC where FrameworkLTC is installed, or inside the Citrix / RDS session that runs it. If you reach FrameworkLTC through Citrix from a laptop, the laptop only sees a picture of the screen — ask IT to install the bot on the Citrix server or a dedicated virtual desktop.
config.json → reject_source)① report — FrameworkLTC's rejected-claims report saved as CSV to a folder (easiest, no IT access)
② sql — read-only SQL login to the FrameworkLTC database (fastest; IT / SoftWriters must approve and give the view)
③ screen — the bot opens the reject queue and reads the grid
Always through the FrameworkLTC screens, never by writing to the database, so FrameworkLTC's own checks and history apply. Dry run fills fields without transmitting; Live presses F12 and reads the payer response. A screenshot is saved for every transmit.
Install on the FrameworkLTC computer (once)
- Install Python 3.11+ from python.org, then:
pip install websockets pywinauto pillow pyodbc - Copy
fw_ltc_bot.pyandconfig.json(buttons below) toC:\VarasiRx\bot\. - Set a pairing token:
setx VRX_BRIDGE_TOKEN "<long random value>", open a new window, and paste the same value on the Agent page. - Open FrameworkLTC and sign in. Run
python fw_ltc_bot.py --check— it writesfw_controls.txt. Copy the real control IDs intoconfig.json → controls(they are placeholders now). - Choose the reject source in
config.jsonand match the report column names. - Start the bot:
python fw_ltc_bot.py. On the Agent page press Connect bot, choose Dry run, then Run the bot. Check a few claims in FrameworkLTC before switching to Live. - To start it with Windows: Task Scheduler → "At log on" →
pythonw C:\VarasiRx\bot\fw_ltc_bot.py.
Roles: Admin (everything, users), Billing specialist (work queues, run the agent, edit records), Viewer (read and download). Passwords are salted and hashed (PBKDF2) in this browser; a temporary password forces a change at next sign-in.
| Name | Username | Role | Status | Last sign-in |
|---|
| When | User | Action | Detail |
|---|
