Skip to main content

AshMatics Core DataModels

Version: 0.3.1

Canonical Pydantic data models for AshMatics healthcare applications.

Changelog

v0.3.1 (2026-01-25) — ASHKBAPP-66

  • Added PROCESS_DOCUMENTATION to GovernanceCategory enum
  • This is a core CAI framework category required for MCP service compatibility

Overview

This library provides the single source of truth for data contracts across the AshMatics ecosystem:

  • Knowledge Base (KB)
  • CoreApp
  • ashmatics-tools SDK
  • AI Watch applications

Features

  • FDA Vocabulary: OpenFDA-aligned schemas for manufacturers, clearances, classifications, recalls, adverse events
  • MongoDB Document Schemas: Three-tier structure for all kb_* collections (evidence, regulatory, model cards, products, manufacturers, use cases)
  • Governance Document Models: Clinical AI Governance Framework artifacts (policies, SOPs, work products, process documentation)
  • Use Case Taxonomy: Clinical AI use case categorization
  • Rich Validation: Built-in validators for regulatory identifiers (K numbers, product codes)
  • Database Agnostic: Pure Pydantic models, no ORM coupling
  • Type Safe: Full type hints with mypy support

Installation

# From git (recommended for now)
pip install git+https://github.com/AsherInformatics/ashmatics-core-datamodels.git

# Or add to pyproject.toml
# dependencies = [
#     "ashmatics-datamodels @ git+https://github.com/AsherInformatics/ashmatics-core-datamodels.git",
# ]

Quick Start

from ashmatics_datamodels.fda import (
    FDA_ManufacturerBase,
    FDA_510kClearance,
    FDA_DeviceClass,
    ClearanceType,
)

# Create a manufacturer
manufacturer = FDA_ManufacturerBase(
    manufacturer_name="Medical AI Corp",
    applicant="Medical AI Corp",
)

# Create a 510(k) clearance with validation
clearance = FDA_510kClearance(
    k_number="K240001",  # Validated format
    clearance_date="2024-08-15",
    device_name="AI-Chest Scanner",
    device_class=FDA_DeviceClass.CLASS_2,
)

Package Structure

ashmatics_datamodels/
├── common/          # Base models, validators, regulators, frameworks
├── fda/             # FDA vocabulary (manufacturers, clearances, classifications, recalls, adverse events)
├── documents/       # MongoDB document schemas (three-tier structure)
├── use_cases/       # Clinical AI use case taxonomy
└── utils/           # Parsing and normalization utilities

Documentation

📚 Full Documentation (when published)

Or build locally:

uv pip install -e ".[docs]"
uv run mkdocs serve

Design Documents

License

Apache 2.0 - See LICENSE for details.

Contributing

This is an internal Asher Informatics library. For questions, contact info@asherinformatics.com.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ashmatics_datamodels-0.5.0.tar.gz (103.8 kB view details)

Uploaded Source

Built Distribution

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

ashmatics_datamodels-0.5.0-py3-none-any.whl (84.6 kB view details)

Uploaded Python 3

File details

Details for the file ashmatics_datamodels-0.5.0.tar.gz.

File metadata

  • Download URL: ashmatics_datamodels-0.5.0.tar.gz
  • Upload date:
  • Size: 103.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ashmatics_datamodels-0.5.0.tar.gz
Algorithm Hash digest
SHA256 515d071ce107ef54f7f339cca0e59831bc87642c689baac6fe3a6ce160fe2963
MD5 8976097ed8d838f05a98186264612018
BLAKE2b-256 5aba03eb21514d630e2f89e9e1dd59ec1f47d8ddd6c192614e4897d371a028c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ashmatics_datamodels-0.5.0.tar.gz:

Publisher: publish.yml on AshMatics/ashmatics-datamodels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ashmatics_datamodels-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ashmatics_datamodels-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75559c17c8f65a3e720d4d3384296b55c59e9bff47fdaf135ea1a11c90ee4bba
MD5 62a58e4e900ce67bf3d7056907430b0d
BLAKE2b-256 a44d39fc3e15e8e814a48d1c0b37a636c4dcd5789cb69d2f6ead10480fc714f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ashmatics_datamodels-0.5.0-py3-none-any.whl:

Publisher: publish.yml on AshMatics/ashmatics-datamodels

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

This release

0.5.0 This release

2 files

0.3.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page