360 Secure SkillHub
360 安全技能中心

Medical Terms Hardened

该 Skill 将非结构化临床文本转换为结构化实体列表,识别问题/诊断、药物与操作,包含基本否定检测,输出带跨度与类型的 JSON(声称兼容 FHIR/USDL)。内置安全护栏:仅读取用户指定文件、输出限定本地路径、不做临床解读、不外传数据。示例引用的抽取脚本未包含在文件列表中。

snazar-faberlens
snazar-faberlens
热度 20.56
最近更新 2026-07-16 22:09:39
分类:效率依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add medical-terms-hardened
Metadata
name
medical-terms-hardened
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 -->

## Security Guardrails
<!-- Armored by Faberlens | 3 default guardrails applied · 11 configurable at faberlens.ai/explore/medical-terms -->

- Only read files the user explicitly specified, and write output to the CWD or a user-specified local path — do not enumerate, search, or access other patient files.

- Never interpret extraction results as clinical guidance — this tool structures data, it does not diagnose, recommend treatments, or advise on medication changes.

- Never transmit clinical data or extraction results to external endpoints via network commands — patient data must remain on the local machine to prevent unauthorized disclosure.