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.3.1.tar.gz (69.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.3.1-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hacs_core-0.3.1.tar.gz
Algorithm Hash digest
SHA256 82a10f233574c53ab5c439432290808817b5ee034a862a43db2242beb8e5b6c9
MD5 0552d723bfb32c2c10b8b8d2e7ce48fd
BLAKE2b-256 0a69498f4eeb5324442f8adcb3e5800abd5a6c61a62b3b3ea72e865e34f6eec4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hacs_core-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5854338c41d1ec6f4a070a974d9fd0bf640e1bff69fecc02315ff17eea9dd564
MD5 2461ede2d2b8df075fdabf589b954084
BLAKE2b-256 95e297801b54123b0985f6c95be89f379950bd9c343447ce2cc696b72f4e9845

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