Skip to main content

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.

Metadata

Release files for hacs-registry 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-registry 0.4.3
File Size Uploaded Provenance
hacs_registry-0.4.3.tar.gz 66.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 151.0 kB

Release files / hacs_registry-0.4.3.tar.gz

Download URL hacs_registry-0.4.3.tar.gz
Size 66.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8bb04e426137cfff3f5a2ae71aadb3911b945fac380918f0389c37bd35d94755
BLAKE2b-256 checksum
How to use checksums
67f383ef5ff38285c65d8b6a2f4930f2b8be1c6f409fdb0571851be84700b159
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.6

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

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

Security for hacs-registry 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