Metadata-Version: 2.4
Name: ovf_types
Version: 1.3.3
Summary: Python Pydantic v2 models for the Open Vet Format (OVF)
Project-URL: Homepage, https://vetformat.org
Project-URL: Repository, https://github.com/vetformat/ovf
Project-URL: Documentation, https://vetformat.org
Project-URL: Issues, https://github.com/vetformat/ovf/issues
Project-URL: Changelog, https://github.com/vetformat/ovf/blob/main/CHANGELOG.md
Author-email: VetFormat <hello@vetformat.org>
License-Expression: Apache-2.0
Keywords: fhir,medical-records,ovf,pydantic,schema,veterinary
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Healthcare Industry
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: pydantic<3.0,>=2.0
Description-Content-Type: text/markdown

# ovf_types

Python Pydantic v2 models for the [Open Vet Format (OVF)](https://vetformat.org) — a FHIR-inspired JSON Schema standard for veterinary medical record exchange.

## Installation

```bash
pip install ovf_types
```

## Usage

```python
from ovf_types import OvfDocument, Patient, Encounter

# Parse an OVF JSON document
import json

with open("export.ovf.json") as f:
    data = json.load(f)

doc = OvfDocument.model_validate(data)
print(doc.patient.name)
print(doc.patient.species)
```

## Available Models

- `OvfDocument` — Root export document
- `Patient` — Animal patient demographics
- `Encounter` — Clinical visits
- `Condition` — Diagnoses and health problems
- `Observation` — Vital signs, lab results
- `Immunization` — Vaccination records
- `Procedure` — Surgeries, dental work
- `AllergyIntolerance` — Allergies and intolerances
- `MedicationStatement` — Medication records
- `DocumentReference` — Attached documents and files

## Links

- [Documentation](https://vetformat.org)
- [JSON Schemas](https://github.com/vetformat/ovf)
- [TypeScript types](https://www.npmjs.com/package/@vetformat/ovf-types)
