28sungmin/m4-add-skills/note-accuracy
Claude Code and agent skill by 28sungmin/m4-add-skills
- community
Checking that the SKILL.md file is still in the repository.
Evaluate accuracy of unstructured clinical notes and radiology reports in a QUIQ-format table using Claude CLI. Detects diagnostic, procedural, drug, demographic, and date errors in clinical notes; identifies critical errors in radiology impressions. No API key required. Use for LYDUS data quality assessment of note_clinical and note_rad variables.
Install
npx vskill@latest install 28sungmin/m4-add-skills/note-accuracySKILL.md
Note Accuracy
Evaluates the accuracy of unstructured clinical notes and radiology reports by sending each note to Claude CLI for error detection. Covers clinical notes (note_clinical) and radiology reports (note_rad).
When to Use This Skill
- After QUIQ conversion, to assess quality of free-text clinical documentation
- To detect clinically significant errors in admission/discharge notes, surgery notes, radiology impressions, etc.
- As part of LYDUS quality management assessment
SQL Support
Not applicable. Requires Claude CLI for note review.
Filtering Logic
| Type | Mapping_info_1 | Description | |
|---|---|---|---|
| Clinical note | note_clinical | Admission, discharge, surgery, emergency notes | |
| Radiology report | note_rad | CT, X-ray, echocardiography impression sections |
Mapping_info_2 Code Reference
| Code | Note Type | |
|---|---|---|
| ACT | CT abdomen | |
| BCT | CT brain | |
| CCT | CT chest | |
| SCT | CT spine | |
| CXR | X-ray chest | |
| AXR | X-ray abdomen | |
| SXR | X-ray spine | |
| ECH | Echocardiography | |
| ADM | Admission note | |
| DIS | Discharge summary | |
| SUR | Surgery note | |
| EME | Emergency note |
Evaluation Logic
Clinical Notes (note_clinical)
LLM checks 6 error categories per note:
- Spelling or grammatical error
- Diagnostic Information Error (counted)
- Drug Information Error
- Procedure Information Error (counted)
- Demographic Information Error
- Date Information Error
Score = (# of "No" responses among Diagnostic + Procedure) / 2 × 100
- 100% = both categories error-free
- 50% = one of two has an error
- 0% = both have errors
Radiology Reports (note_rad)
LLM identifies one critical error in the Impression section.
Score = 100 if no error, 0 if error found.
Overall Note Accuracy
Unweighted mean across all notes (clinical + radiology combined).
Output
| File | Description | |
|---|---|---|
note_accuracy_total.txt | Overall Note Accuracy (%) | |
note_accuracy_summary.csv | Per-(Mapping_info_1, Mapping_info_2) accuracy summary | |
note_accuracy_total_detail.csv | Per-note: LLM response + accuracy score | |
note_accuracy_plot.png | Box plot of accuracy by note category |
How to Run
As a script with config
Critical Notes
- Subprocess with timeout — each Claude CLI call runs via
subprocess.runwith 60-second timeout. Failed rows return an empty result.
- Clinical score logic — only Diagnostic + Procedure categories count toward the clinical note score (not spelling, drug, demographic, date). This matches the original LYDUS specification.
- Radiology score parsing — the LLM response is parsed as a Python dict using
ast.literal_eval. Responses that cannot be parsed returnNone(excluded from average).
- 원본 코드 개선 사항:
api_call(results=[])가변 기본인자 제거 →_call_api_threaded함수로 리팩터링_run_clinical과_run_radiology에 중복된api_call/process_rows내부 함수 →_process_notes공통 함수로 통합get_unstructured_accuracy→get_note_accuracy로 명칭 변경 (스킬 이름과 일관성)
- Dependencies —
pandas,seaborn,matplotlib,tqdm(LLM: Claude CLI via subprocess)
References
- LYDUS 품질관리 프로그램 활용 가이드라인 (비공개 내부 문서)
- Original Python implementation: LYDUS_Note_Accuracy.py (이성민 작성)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/m4/skills/lydus/note-accuracy/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/28sungmin/m4-add-skills/note-accuracy)