← Browse

@freedomintelligence/clinical-nlp-extractor

B

<!--

skillclaude

Install

agr install @freedomintelligence/clinical-nlp-extractor --target claude

Writes 3 files into .claude/skills/, pinned to git-aa687789.

  • .claude/skills/clinical-nlp-extractor/README.md
  • .claude/skills/clinical-nlp-extractor/SKILL.md
  • .claude/skills/clinical-nlp-extractor/entity_extractor.py

Document


name: 'clinical-nlp-extractor' description: 'Extracts medical entities (Diseases, Medications, Procedures) from unstructured clinical text using regex and simple rules (or LLM wrappers).' measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes. allowed-tools:

  • read_file
  • run_shell_command

Clinical NLP Entity Extractor

The Clinical NLP Skill converts free-text clinical notes into structured data. It identifies key medical entities like problems/diagnoses, medications, and procedures.

When to Use This Skill

  • When analyzing unstructured EHR notes.
  • To populate a patient's problem list or medication reconciliation.
  • To de-identify text (phi-removal) - Basic version.

Core Capabilities

  1. NER (Named Entity Recognition): Extracts Problems, Drugs, Procedures.
  2. Negation Detection: (Basic) Checks if a finding is denied ("No fever").
  3. Structuring: Returns JSON format compatible with FHIR/USDL.

Workflow

  1. Input: A string of clinical text or a text file.
  2. Process: Tokenizes and matches against patterns/dictionaries.
  3. Output: JSON list of entities with spans and types.

Example Usage

User: "Extract entities from this note."

Agent Action:

python3 Skills/Clinical/Clinical_NLP/entity_extractor.py \
    --text "Patient has diabetes type 2. Prescribed Metformin 500mg. No chest pain." \
    --output entities.json

<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicenseno SPDX license detected

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-aa687789fb632026-07-31