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 - 42+ Hacs 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.3.tar.gz (33.7 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.3-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hacs_core-0.4.3.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.6

File hashes

Hashes for hacs_core-0.4.3.tar.gz
Algorithm Hash digest
SHA256 1b4367b62ce0a29372a0974cf8d725ae3a13064641cfeb18977e749dc776d607
MD5 345ab33ef94dfc24dce0278b1f526649
BLAKE2b-256 048649ab014c66003379ef0b4ff234f4d4877bef6f15692ffda93eca3efad50e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hacs_core-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.6

File hashes

Hashes for hacs_core-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 225e1724e4b10108698f3c73830d05dd926d782db6c11a287d5d6befd636392b
MD5 87ec980d896522e136df476b13c5450b
BLAKE2b-256 d71517c5e3eca4d43836b3ac3de32758a1704f48de970a1cf7e04d219eaf1294

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