medication-reconciliation
Compare patient pre-admission medication lists with inpatient orders to automatically identify omitted or duplicated medications and improve medication safety.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aipoch-ai/medication-reconciliationMedication Reconciliation
Compare patient pre-admission medication lists with inpatient orders to automatically identify omitted or duplicated medications and improve medication safety.
Medical Disclaimer: This tool is for reference only. Final medication decisions must be confirmed by qualified medical staff. All patient data must comply with applicable data protection regulations (e.g., HIPAA).
Quick Check
python -m py_compile scripts/main.py
python scripts/main.py --help
When to Use
- Use this skill when comparing pre-admission medication lists against inpatient orders to detect omissions or duplicates.
- Use this skill when generating structured reconciliation reports for clinical handover or pharmacy review.
- Do not use this skill as a substitute for pharmacist or physician review of medication orders.
Workflow
- PHI Check: Before processing, prompt the user to confirm data has been de-identified: "Please confirm that the input files have been de-identified or that you have authorization to process this patient data under applicable regulations (e.g., HIPAA) before proceeding."
- Confirm patient ID, pre-admission medication list, and inpatient orders are available.
- Validate that both input files are well-formed and patient IDs match.
- Run the reconciliation script or apply the manual comparison path.
- Return a structured report separating continued, discontinued, new, and duplicate medications.
- Dose-change detection: When a drug appears in both lists with different dose strings, flag it as
dose_changedwith a warning: "Dose change detected — verify with prescribing physician before proceeding." - Flag warnings for critical drug classes (anticoagulants, hypoglycemics, antihypertensives, antiepileptics).
- If inputs are incomplete, state exactly which fields are missing and request only the minimum additional information.
Usage
# Basic usage
python scripts/main.py --pre-admission pre_meds.json --inpatient orders.json --output report.json
# Use example data
python scripts/main.py --example
# Verbose output
python scripts/main.py --pre-admission pre_meds.json --inpatient orders.json --verbose
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
--pre-admission | file path | Yes | JSON file of pre-admission medications |
--inpatient | file path | Yes | JSON file of inpatient orders |
--output | file path | No | Output report path (default: stdout) |
--example | flag | No | Run with built-in example data |
--verbose | flag | No | Include detailed matching rationale |
Output Format
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aipoch-ai-medication-reconciliation": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
mechanism-flowchart
Generates Mermaid flowchart code and visual diagrams for pathophysiological.
reference-style-sync
One-click synchronization and standardization of reference formats in literature management tools, intelligently fixing metadata errors.
clinical-data-cleaner
Use when cleaning clinical trial data, preparing data for FDA/EMA submission, standardizing SDTM datasets, handling missing values in clinical studies, detecting outliers in lab results, or converting raw CRF data to CDISC format. Cleans and standardizes clinical trial data for regulatory compliance with audit trails.
metagenomic-krona-chart
Analyze data with `metagenomic-krona-chart` using a reproducible workflow, explicit validation, and structured outputs for review-ready interpretation.
anatomy-quiz-master
Generate interactive anatomy quizzes for medical education with multiple question types, difficulty levels, and anatomical regions. Supports gross anatomy, neuroanatomy, and clinical correlations for self-assessment and exam preparation.