- build.py: _TEMPLATE_COMPONENTS rewritten around the vet sample (53 kinds —
per-resource slices, jobs, worked appointment_reminder family, tests);
seed tokens dropped from the manifest ('sample: vet' instead)
- registry.py: get_app_component(kind) no longer renames item/example seeds;
prompts and tool docs updated to 'copy a slice and adapt'
- templates/README.md, 01_build_recipe, 40_ui_admin, wiki/03 updated off the
old seed scheme; repo inventory/config now exclude vet (docs move under
standards; react/vet itself is deleted in a later phase)
- regenerated MCP bundle, vendored templates, and site output
26 lines
671 B
Python
26 lines
671 B
Python
"""# Summary
|
|
|
|
Treatments domain — the catalogue of treatments offered by the clinic.
|
|
"""
|
|
from pydantic import BaseModel
|
|
|
|
from domain.parents.models import Metadata
|
|
|
|
|
|
class Treatment(BaseModel):
|
|
"""A catalogue treatment.
|
|
|
|
Attributes:
|
|
id (int | None): Server-assigned identifier. Defaults to None.
|
|
label (str): Name of the treatment.
|
|
description (str | None): Detailed description. Defaults to None.
|
|
metadata (Metadata | None): Presentation metadata. Defaults to None.
|
|
"""
|
|
|
|
id: int | None = None
|
|
label: str
|
|
description: str | None = None
|
|
metadata: Metadata | None = None
|
|
|
|
model_config = {"extra": "ignore"}
|