Skip to main content

HACS Registry - Model, prompt, and workflow definitions for healthcare AI

Project description

HACS Registry

Versioned healthcare model and template management

Domain models for managing versioned healthcare AI resources, clinical templates, and workflow definitions.

🏥 Healthcare Registry

Resource Definitions

Versioned healthcare resource schemas:

  • Patient Resources - Custom patient schemas with validation
  • Clinical Resources - Observation, encounter, diagnostic resources
  • Workflow Resources - Clinical process definitions

Clinical Templates

Healthcare-specific templates:

  • Assessment Templates - Structured clinical assessments
  • Care Plans - Treatment and care workflow templates
  • Documentation Templates - Clinical note and report formats

Knowledge Base

Versioned clinical knowledge:

  • Clinical Guidelines - Treatment protocols and standards
  • Evidence Base - Research findings and best practices
  • Decision Support - Clinical reasoning frameworks

📦 Installation

pip install hacs-registry

🚀 Quick Start

from hacs_registry import ResourceDefinition, TemplateDefinition

# Custom patient resource with additional fields
patient_resource = ResourceDefinition(
    name="ExtendedPatient",
    version="1.0.0",
    description="Patient resource with custom clinical fields",
    schema_definition={
        "type": "object",
        "properties": {
            "full_name": {"type": "string"},
            "primary_diagnosis": {"type": "string"},
            "risk_factors": {"type": "array", "items": {"type": "string"}}
        }
    },
    category="clinical",
    tags=["patient", "extended"]
)

# Clinical assessment template
assessment_template = TemplateDefinition(
    name="cardiac_assessment",
    version="2.1.0",
    description="Comprehensive cardiac assessment template",
    template_content={
        "sections": ["history", "examination", "diagnostics", "plan"],
        "required_fields": ["heart_rate", "blood_pressure", "ecg_findings"]
    },
    category="assessment",
    tags=["cardiology", "assessment"]
)

# Publish for use
patient_resource.publish()
assessment_template.publish()

🎯 Key Features

  • Semantic Versioning - Standard version management (1.0.0, 1.1.0, 2.0.0)
  • Lifecycle Management - Draft → Published → Deprecated status flow
  • Clinical Categorization - Healthcare-specific tagging and classification
  • Template System - Reusable clinical workflow templates
  • Validation Rules - Healthcare data validation schemas

🏗️ Registry Management

# Version management
resource.update_version("1.1.0")  # Increment version
resource.deprecate()              # Mark as deprecated
resource.get_version_history()    # View all versions

# Clinical categorization
resource.add_tag("cardiology")
resource.set_category("diagnostic")
resource.filter_by_tags(["patient", "cardiology"])

# Template usage
template.instantiate(patient_data)  # Create instance from template
template.validate_instance(data)    # Validate against template

🔗 Integration

HACS Registry integrates with:

  • MCP Tools - Resource discovery and schema generation
  • Clinical Workflows - Template-based clinical processes
  • HACS Core - Base healthcare resources and validation
  • Version Control - Semantic versioning for clinical assets

📊 Usage Patterns

Clinical Resource Development

# Define custom clinical resource
diabetes_resource = ResourceDefinition(
    name="DiabetesPatient",
    version="1.0.0",
    schema_definition={
        "properties": {
            "a1c_level": {"type": "number", "minimum": 4.0, "maximum": 14.0},
            "medication_regimen": {"type": "string"},
            "last_eye_exam": {"type": "string", "format": "date"}
        }
    },
    category="specialized_patient"
)

Template Management

# Create reusable clinical template
intake_template = TemplateDefinition(
    name="patient_intake",
    version="1.0.0",
    template_content={
        "workflow": ["registration", "triage", "assessment", "assignment"],
        "required_data": ["demographics", "insurance", "chief_complaint"],
        "optional_data": ["emergency_contact", "medical_history"]
    }
)

📄 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_registry-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

hacs_registry-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file hacs_registry-0.1.0.tar.gz.

File metadata

  • Download URL: hacs_registry-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hacs_registry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e27e48b0b058c3d5c6de728fa20fb3fdc719173bbde3242286fc9cd1363f9534
MD5 01bed0af021672fc09793ac7b131d6b2
BLAKE2b-256 6a8d088aefecce5ad1434c041695976a683402e57e305c9b261cb7603bff74e1

See more details on using hashes here.

File details

Details for the file hacs_registry-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hacs_registry-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hacs_registry-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ff4297db8bbcb9773a93478046ce4410dfc748de0e717ddce88ecf8ae523cd0
MD5 2b947460369e875dd6626b6c9f96a42c
BLAKE2b-256 9890bd1fc3e167821e08cbcfa790e2b1d802cca169faf8960649d40cdc40075a

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