Skip to main content

Core models and base classes for Healthcare Agent Communication Standard

Project description

HACS Core

Foundation models for Healthcare Agent Communication Standard

Core Pydantic models and base classes that define the healthcare AI communication protocol.

🏥 Healthcare Models

Essential healthcare data structures optimized for AI agent communication:

  • Patient - Demographics, contact info, clinical context
  • Observation - Clinical measurements, lab results, vital signs
  • Encounter - Healthcare visits, episodes of care
  • Actor - Healthcare providers with role-based permissions
  • MemoryBlock - Structured memory for AI clinical reasoning
  • Evidence - Clinical guidelines, research, decision support

🎯 Key Features

  • FHIR Compatible - Full alignment with healthcare standards
  • AI Optimized - Structured for LLM processing and tool calling
  • Validation Built-in - Healthcare-specific validation rules
  • Actor Security - Role-based access control for clinical data
  • Memory System - Episodic, procedural, and executive memory types

📦 Installation

pip install hacs-core

🚀 Quick Start

from hacs_core import Patient, Observation, Actor, MemoryBlock

# Healthcare provider
physician = Actor(
    name="Dr. Sarah Chen",
    role="PHYSICIAN",
    organization="Mount Sinai Health System"
)

# Patient record
patient = Patient(
    full_name="Maria Rodriguez",
    birth_date="1985-03-15",
    gender="female",
    active=True
)

# Clinical observation
bp_reading = Observation(
    code_text="Blood Pressure",
    value="145/90",
    unit="mmHg",
    status="final",
    patient_id=patient.id
)

# Clinical memory
memory = MemoryBlock(
    content="Patient presents with elevated BP, discussed lifestyle modifications",
    memory_type="episodic",
    importance_score=0.8
)

🔗 Integration

HACS Core models work seamlessly with:

  • MCP Tools - 25+ healthcare tools via Model Context Protocol
  • LangGraph - AI agent workflows with clinical memory
  • PostgreSQL - Persistent storage with pgvector
  • FHIR Systems - Healthcare standards compliance

📄 License

Apache-2.0 License - see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hacs_core-0.4.0.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hacs_core-0.4.0-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file hacs_core-0.4.0.tar.gz.

File metadata

  • Download URL: hacs_core-0.4.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for hacs_core-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3030f8ab2e5558da764ec9227aebcd8577180456ed9176c42135fb3ff336a4e4
MD5 69e2986140f961196b8629dd5e9444fa
BLAKE2b-256 e6a694dcf517c8f065d483bafe236714b9eff7781341495a314ba89f204f5279

See more details on using hashes here.

File details

Details for the file hacs_core-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: hacs_core-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for hacs_core-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cbdfc5fcfe712fad8693a3c5587d9149f26ace11f1dd10e59bee03349abbe91
MD5 1d0119d099e6348a5582a7dd6237e849
BLAKE2b-256 3887aadb39cfe8e0f2a3a5629b438ba9985c0cc92c9651374a4777d38181ca56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page