15 lines
497 B
Python
15 lines
497 B
Python
"""Import schema for `core.tea.models.Pacientes`.
|
|
|
|
`pac_id` is importable: every other TEA table references the patient by the source system's integer id, so it is
|
|
kept, not renumbered."""
|
|
from typing import Optional
|
|
|
|
from webapi.imports.schemas.base import ImportSchema
|
|
from webapi.imports.schemas.coercion import FlexDate, OptionalStr
|
|
|
|
|
|
class PacientesImportSchema(ImportSchema):
|
|
pac_id: Optional[int] = None
|
|
pac_id_hospital: OptionalStr = None
|
|
pac_fecha_nacimiento: FlexDate = None
|