Skip to main content

AshMatics Core DataModels

Version: 0.25.1

Canonical Pydantic data models for AshMatics healthcare applications.

Changelog

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, instructions for use, AI system 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.

Metadata

Release files for ashmatics-datamodels 0.25.1

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

Source distribution (sdist)

Source distribution for ashmatics-datamodels 0.25.1
File Size Uploaded Provenance Actions
ashmatics_datamodels-0.25.1.tar.gz 276.2 kB With provenance Details for ashmatics_datamodels-0.25.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ashmatics-datamodels 0.25.1
File Interpreter ABI Platform Actions
ashmatics_datamodels-0.25.1-py3-none-any.whl Python 3 none any Details for ashmatics_datamodels-0.25.1-py3-none-any.whl

Total release size: 469.5 kB

Release files / ashmatics_datamodels-0.25.1.tar.gz

Download URL ashmatics_datamodels-0.25.1.tar.gz
Size 276.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cdcb9f89042630e58cf10df83c7f14e46758627c9e6580ff58648ddc76ef085f
BLAKE2b-256 checksum
How to use checksums
001fb1d7aa80dd225c3a368e104bf7c90cfbce569187d6345e4e9fb0ec66025a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / ashmatics_datamodels-0.25.1-py3-none-any.whl

Download URL ashmatics_datamodels-0.25.1-py3-none-any.whl
Size 193.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
902f7bc8583825e509b6781cee7ff367a600fc37bca1d94062419e390ebaabec
BLAKE2b-256 checksum
How to use checksums
2deadd6d9f96c6a81d2dc4d3d54a0d24116fd3cc73545c9f43db4a7c70f53387
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for ashmatics-datamodels 0.25.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ashmatics_datamodels-0.25.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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