본문으로 건너뛰기
cccskills
무료GitHub에 공개

clinical-notes-nlp

NLP on clinical text — de-identification, concept extraction, phenotyping from notes, and LLM safety guardrails.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Overview

clinical-notes-nlp covers natural language processing of clinical documentation: discharge summaries, progress notes, radiology reports, nursing notes. It spans de-identification, medical concept extraction (UMLS/cTAKES/MedCAT), note-based phenotyping, and the special caution required when applying large language models to clinical text — where hallucinations can become chart entries.

Clinical notes are the richest and messiest EHR data: telegraphic, abbreviation-dense, copy-pasted, and full of implicit context. Standard NLP pipelines underperform until adapted.

When to use

  • De-identifying clinical text for research (HIPAA Safe Harbor, surrogate replacement).
  • Extracting concepts: diagnoses, medications, procedures, symptoms with negation/temporality.
  • Note-based phenotyping: combining notes with structured data for case definitions.
  • Information extraction: tumor staging from pathology reports, ejection fraction from echo reports, social determinants from notes.
  • Evaluating LLMs for summarization or documentation assistance with safety guardrails.
  • Measuring documentation quality: copy-paste detection, note bloat.

Core concepts

  • De-identification. HIPAA Safe Harbor: remove 18 identifier categories (names, dates except year, locations, contact info, MRNs...). Automated tools (Philter, de-identification modules) miss edge cases — validate on samples, especially dates in narrative text and clinician names in signatures. Surrogate replacement (realistic fake names/dates) preserves readability better than redaction tags.
  • Clinical sublanguage. Notes use heavy abbreviation ("pt c/o SOB, r/o PE"), telegraphic syntax, and institution-specific shorthand. Off-the-shelf NLP models trained on news/wikipedia fail; use clinical models (ClinicalBERT, GatorTron) or rule-based clinical pipelines, and build an abbreviation dictionary per site.
  • Negation and uncertainty. "No evidence of pneumonia," "possible PE," "family history of MI" — concept extraction without negation/temporality/subject detection (NegEx/ConText algorithms) produces garbage phenotypes. Every extracted concept needs: negated? historical? about the patient or family? uncertain?
  • Concept normalization. Map mentions to standard vocabularies (UMLS CUIs, SNOMED CT, RxNorm for meds). Tools: cTAKES, MetaMap, MedCAT (which learns site-specific embeddings). Ambiguity ("cold" = temperature vs viral illness) needs context-aware disambiguation.
  • Copy-paste and note bloat. Cloned text propagates errors and inflates concept counts. Detect duplication (text similarity across notes); for phenotyping, deduplicate or down-weight repeated content — otherwise one copied problem list counts ten times.
  • Phenotyping from notes. Notes capture what codes miss (symptoms, severity, social context). Best practice: combine structured + NLP features, validate against chart review, report PPV/sensitivity. Note-only phenotypes inherit documentation bias (what clinicians bother to write).
  • LLMs on clinical text. Useful for summarization and first-draft documentation, dangerous as autonomous extractors. Guardrails: human-in-the-loop for anything entering the chart, grounded extraction (every claim traceable to source text spans), hallucination testing on adversarial cases, and no PHI in prompts to external APIs without a BAA. An LLM summarizing a chart must never invent allergies, doses, or code statuses.
  • Evaluation. Intrinsic (precision/recall/F1 on annotated spans — annotate with dual reviewers and adjudication, report inter-annotator agreement) and extrinsic (does the phenotype predict what it should?). Report both.

Practical workflow

  1. Governance. IRB, de-identification plan, BAA for any external compute. Notes are the most sensitive EHR data — treat them accordingly.
  2. Corpus. Define note types and time windows; sample representatively; de-identify with validated tooling.
  3. Annotate. Guidelines, dual annotation, adjudication, IAA reporting (F1 or kappa on spans). Budget more time than expected — clinical annotation is slow.
  4. Extract. Pipeline: section detection → sentence splitting → concept extraction → negation/temporality/subject → normalization. Validate each stage.
  5. Phenotype. Combine with structured data; validate against chart review; report PPV, sensitivity, and failure modes.
  6. LLM use (if any). Grounded prompts, human review of outputs, hallucination audits, PHI controls. Document the human-in-the-loop design.
  7. Monitor. Documentation practices drift (new templates, scribes, ambient AI); revalidate periodically.

Example (Python sketch):

from medcat import CAT
cat = CAT.load_model_pack("umls_model_pack.zip")
doc = cat(doc_text)  # entities with CUIs, negation, temporality metadata

Common pitfalls

  • Off-the-shelf NLP without clinical adaptation (abbreviation soup defeats it).
  • Concept extraction without negation detection ("no MI" counted as MI).
  • Copy-pasted text inflating phenotype counts.
  • De-identification validated on easy cases, failing on narrative dates/names.
  • LLM hallucinations entering clinical documentation or research phenotypes unchecked.
  • PHI sent to external LLM APIs without authorization.
  • Single-annotator "gold standards" with no agreement reporting.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills282026년 10월 10일 업데이트

aicodedecode의 스킬 모두 보기

이 스킬의 문제 신고