/elder-care-casework:snf-records-reviewfrom elder-care-casework
Shared reference methodology for the SNF records-review workflow — the five finding tags (APPEAL, LTC-DISPUTE, MEDICAID, QUALITY, TIMELINE), the finding format, dating conventions, OCR and source-location discipline, and the location of the scripts and reviewer prompts used by snf-review, snf-inventory, and snf-document-map. NOT an entry point and NOT a runnable pipeline — to actually review records, use snf-review. Load only when a reviewer, sub-agent, or contributor needs the rubric semantics or a shared script path.
Ships in elder-care-casework. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill when a user is adversarially reviewing Skilled Nursing Facility records — typically after a HIPAA records request in the context of an insurance appeal, quality complaint, Medicaid application dispute, or discharge-planning disagreement. It is designed for large record productions (hundreds to thousands of pages) where a human cannot reasonably read every page.
Run scripts/inventory.py on the records directory. It produces:
inventory.json consumed by later steps.The script distinguishes content dates (dates written inside notes, which are what matter) from PDF print/creation dates (which are usually the day the record was exported from the EMR — meaningless for case work).
Run scripts/build_document_map.py immediately after inventory, even if the PDFs appear OCR'd. It produces:
document_map.json — page-level records with source PDF, original page number, text-readability status, likely document type, classification confidence, content-date candidates, and snippet/hash metadata.document_map.md — human-readable coverage summary, expected-document checklist, contextual segments, OCR remediation actions, and review packet plan.review_packet_plan.json — source page ranges grouped into reviewer-sized packets while preserving original PDF/page locations.If the original HIPAA/document request is available, pass it as --request-file. The mapper will add a request comparison section showing requested categories that appear present, possible, not_found, or indeterminate_ocr. Treat this as triage; verify the source request before alleging omission.
When available, the mapper uses local PDF utilities rather than relying on pypdf alone: pdftotext -layout for text/table extraction, pdfinfo for metadata, pdfimages -list for scanned-page indicators, and pdffonts for font/text-layer hints. These signals are recorded in the document map so reviewers know whether a page is text-confirmed, OCR-light, image-only, or needs visual confirmation.
By default, build_document_map.py prefers pdftotext -layout when it is on PATH and skips slower per-page pypdf extraction whenever Poppler returns non-empty text for a page. Use --prefer-pdftotext=false only when you need diagnostic both-engine comparison or are investigating extractor disagreements.
This is the mechanism for disorganized charts. Do not assume a single PDF is one document. Treat it as a sequence of pages that may shift among vitals, MAR/eMAR, TAR, nursing notes, PT/OT/ST, MDS, discharge planning, invoices, admissions paperwork, Medicaid forms, and payer correspondence without obvious separators.
Document-map rules:
<source PDF> p.<page> or <source PDF> pp.<start>-<end>.not_found when enough pages are text-readable. If OCR is weak, mark it indeterminate_ocr and create an OCR/follow-up action instead of treating absence as evidence.Some agent shells cap individual command execution (for example, about 45 seconds per bash call). Large 100MB+ charts can exceed that even when the workflow is healthy. In those environments, do not keep retrying one monolithic command. Use one of these bounded patterns:
inventory.py and build_document_map.py against that directory. Write outputs under <out>/per-file/<pdf-stem>/ and merge/review the resulting JSON/Markdown afterward. This preserves original filenames while keeping each command short.qpdf --split-pages or another deterministic PDF splitter, map the chunk directory, and keep a manifest that maps derived chunk page ranges back to the original PDF/page range. Derived packet filenames are allowed, but all findings must still cite original source pages.<out>/logs/<step>.<pdf-stem>.log, write completed per-file outputs to <out>/per-file/<pdf-stem>/, and create a small <out>/per-file/<pdf-stem>/DONE.json containing the source filename, SHA-256, page count, script name, and completion timestamp. On resume, skip PDFs whose DONE file matches the current source hash.Keep all staged PDFs, logs, manifests, prompt files, and derived outputs inside the private case output root and out of git.
RUBRIC.md defines the five tags, the finding format, dating conventions, and scope guardrails. Every reviewer (human or sub-agent) must apply it consistently.
Large consolidated charts (>200 pages) should be packetized before parallel review.
Preferred path: materialize the document-map packet plan. The script uses qpdf when available and falls back to pdfseparate + pdfunite:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/snf-records-review/scripts/materialize_packet_plan.py \
--packet-plan "<out>/document-map/review_packet_plan.json" \
--source-dir "<pdf-dir>" \
--out-dir "<out>/review-packets"
Fallback path: when document-map output is not available, run scripts/split_by_sections.py — it uses the inferred section data from Step 1 and qpdf to cut ~30-60 page sub-packets aligned to clinical section starts (Admission, H&P, Orders, MAR, Nursing Notes, Therapy, Care Plan, MDS, SS, Discharge Planning).
Packetization must preserve original-location metadata. A reviewer packet can be a derived PDF, but citations inside findings still point back to the original PDF/page from the document map or packet manifest.
Use REVIEWER_PROMPT.md as the self-contained brief for each reviewer. Works identically for:
Optional GitHub Copilot CLI offload path: use COPILOT_CLI_DISPATCH.md and scripts/plan_copilot_dispatch.py after the document map and packet plan are complete. This can create per-packet prompt files, a dispatch manifest, a bounded-concurrency launch script, and a /fleet prompt for Copilot CLI. Default to plan-only mode; only run CLI jobs after the user explicitly approves launching them.
Each reviewer writes one findings file per packet using FINDINGS_TEMPLATE.md.
Each reviewer prompt must include the relevant document_map.json / review_packet_plan.json entry for the packet so the reviewer can distinguish:
text, ocr_light, image_or_no_text) and reviewer verification labels (verified, OCR-partial, image-only-needs-OCR).Run scripts/aggregate_findings.py once findings files exist. It produces:
*_Findings.md — master index grouped by tag, with cross-references.*_HotItems.md — value-3 findings pre-formatted for appeal narrative.*_Gaps.md — missing documents, signatures, dates → feeds follow-up records request.*_Timeline.md — all TIMELINE findings sorted chronologically.*_Findings.json and *_Summary.json — machine-readable outputs for dashboards, spreadsheets, MCP ingestion, or a case-context evidence register.After aggregation, compare three sources before deciding a record is missing:
document_map.md expected-document coverage status.Missing / gap observations sections.*_Gaps.md roll-up from aggregation.Then route follow-ups as follows:
ocr_remediation / remediate_pdf → request a better copy, run OCR, or assign human visual inspection before relying on absence.narrow_records_follow_up → feed the exact missing item into hipaa-records-request as a narrow supplement.case-context/evidence_register.md, document_index.md, issue_log.md, and open_questions.md via case-context-ledger.document_map.json, document_map.md, and review_packet_plan.json.data:build-dashboard skill.docx skill.case-context-ledger.snf-document-map — for page-level document-type coverage, OCR/readability triage, packet planning, and narrow follow-up actions.pdf — for any non-trivial PDF operation.pdftotext, pdfinfo, pdfimages, pdffonts, pdfseparate, pdfunite, qpdf, pdfcpu, pdfsig, pdftoppm, pdftocairo, pdftohtml, and pdf2json are preferred for deterministic extraction/inspection before custom parsing.ocr_light / image_or_no_text or reviewers mark as OCR-partial.legal:review-contract — for admission agreements, arbitration clauses, Medicaid paperwork.legal:legal-risk-assessment — for rating evidence strength.finance:reconciliation — when a billing ledger is produced.data:build-dashboard — for visualizing findings.docx / pdf — for the final appeal supplement.internal-comms — for follow-up records-request emails.case-context-ledger — for preserving canonical facts, deadlines, evidence IDs, and open questions across sessions.COPILOT_CLI_DISPATCH.md (opens in a new tab)FINDINGS_TEMPLATE.md (opens in a new tab)REVIEWER_PROMPT.md (opens in a new tab)RUBRIC.md (opens in a new tab)scripts/_pdf_classifier.py (opens in a new tab)scripts/aggregate_findings.py (opens in a new tab)scripts/build_document_map.py (opens in a new tab)scripts/inventory.py (opens in a new tab)scripts/materialize_packet_plan.py (opens in a new tab)scripts/plan_copilot_dispatch.py (opens in a new tab)scripts/split_by_sections.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mbeacom/elder-care-casework --plugin elder-care-casework15 skills in this plugin
/admin-interaction-logAppend a dated, factual entry to an ongoing SNF/facility Admin Interaction Log in terse, cited, third-person prose that states facts without characterizing anyone's motive and without emotional language, so the log can later be attached to a complaint, appeal, or ombudsman filing. Creates the log file if one does not exist yet. Use when the user says "log an interaction", "add an entry to the admin log", "document this call with the facility", "note this for the log", or mentions a phone call / voicemail / visit / email exchange with facility staff that needs to be preserved for the case record./audio-transcript-reviewReview and enrich elder-care audio transcripts from plan-of-care meetings, IDT calls, facility phone calls, voicemail, payer calls, JFS/ODM calls, or staff conversations. Supports local Whisper/Parakeet transcription outputs, speaker labeling/diarization reconciliation, timestamped statement attribution, casework evidence tagging, transcript-quality triage, and routing into admin logs, appeals, complaints, Medicaid disputes, legal-referral packets, and case-context ledgers./case-context-ledgerCreate or update a durable elder-care case context ledger for long-running Medicare, Medicaid, SNF, facility, payer, and regulatory matters. Use when the user says "case memory", "case context", "update the case file", "track deadlines", "remember this for the appeal", "build a case ledger", or needs canonical facts, contacts, deadlines, document inventory, evidence register, open questions, and decision log across multiple skills and large record productions.