🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Unstructured Medical Text Miner

by @aipoch-ai

Mine unstructured clinical text from MIMIC-IV to extract diagnostic logic.

Versionv1.0.0
⚑ When to Use
TriggerAction
- Use this skill for evidence insight tasks that require explicit assumptions, bounded scope, and a reproducible output format.
- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.
πŸ’‘ Examples

from skills.unstructured_medical_text_miner.scripts.main import MedicalTextMiner

Initialize miner

miner = MedicalTextMiner()

Load MIMIC-IV note data

miner.load_notes(notes_path="path/to/noteevents.csv")

Extract all text records for a specific patient

patient_texts = miner.get_patient_texts(subject_id=10000032)

Execute complete information extraction

insights = miner.extract_insights( text=patient_texts, extract_entities=True, extract_relations=True, extract_timeline=True )

βš™οΈ Configuration


config.yaml

extraction: entity_types: ["DISEASE", "SYMPTOM", "MEDICATION", "PROCEDURE", "ANATOMY"] relation_types: ["TREATS", "CAUSES", "CONTRAINDICATED_WITH"] enable_negation_detection: true models: ner_model: "en_core_sci_lg" # or "en_core_sci_scibert" relation_model: "custom_relation_extractor" output: format: "json" # json/fhir/kg include_raw_text: false

View on ClawHub
TERMINAL
clawhub install unstructured-medical-text-miner

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’