Metadata-Version: 2.4
Name: digital-registrar-schema-editor
Version: 0.2.0b1
Summary: Streamlit editor for the Digital Registrar three-layer per-organ schema.
Author: Han Chang, Kai-Po Chang
License-Expression: MIT
Project-URL: Homepage, https://github.com/kblab2024/digitalregistrar
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: digital-registrar==0.2.0b1
Requires-Dist: streamlit>=1.35
Requires-Dist: pandas
Requires-Dist: ruff

# digital-registrar-schema-editor

Streamlit editor for the Digital Registrar three-layer per-organ schema (Pydantic + extraction metadata + aliases).

## Install

```bash
pip install digital-registrar-schema-editor
registrar-schema-gui
```

Default port: 8501.

## What it does

Edits the schema files inside the installed `digital_registrar.schemas` package:

- **Layer 1 (Pydantic)**: field definitions and enums.
- **Layer 2 (Extraction)**: field descriptions and group assignments for decomposed extraction.
- **Layer 3 (Aliases)**: TOML alias maps for terminology.

Generates JSON schemas under `digital_registrar/schemas/data/` on save. Use `registrar-schemas --check` to verify schema concordance.
