Skip to main content

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.

Metadata

Release files for hacs-core 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hacs-core 0.4.3
File Size Uploaded Provenance
hacs_core-0.4.3.tar.gz 33.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hacs-core 0.4.3
File Interpreter ABI Platform
hacs_core-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 62.3 kB

Release files / hacs_core-0.4.3.tar.gz

Download URL hacs_core-0.4.3.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1b4367b62ce0a29372a0974cf8d725ae3a13064641cfeb18977e749dc776d607
BLAKE2b-256 checksum
How to use checksums
048649ab014c66003379ef0b4ff234f4d4877bef6f15692ffda93eca3efad50e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.6

Release files / hacs_core-0.4.3-py3-none-any.whl

Download URL hacs_core-0.4.3-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
225e1724e4b10108698f3c73830d05dd926d782db6c11a287d5d6befd636392b
BLAKE2b-256 checksum
How to use checksums
d71517c5e3eca4d43836b3ac3de32758a1704f48de970a1cf7e04d219eaf1294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.6

Security for hacs-core 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page