9a62ddcdaf
The patient takes the menopausal state, molecular and clinical subtype, integrative cluster, cellularity, mutation load, Ki-67 category and source of the record; a new import entity carries the recurrence and the last contact; hormone and anti-HER2 therapy are treatments. The route serves each cohort's scenarios, a scenario's figure and a patient's scenarios over the live cohort build, computing the models and the bootstrap in the background and caching them per build. Includes the survival import work this builds on. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
15 lines
493 B
Python
15 lines
493 B
Python
"""Import schema for `core.cama.models.TratamientoMama`."""
|
|
from typing import Optional
|
|
|
|
from webapi.imports.schemas.base import ImportSchema
|
|
from webapi.imports.schemas.coercion import FlexDate, RequiredHospitalId, RequiredStr
|
|
|
|
|
|
class TratamientoMamaImportSchema(ImportSchema):
|
|
pac_id: Optional[int] = None
|
|
pac_id_hospital: RequiredHospitalId
|
|
trat_tipo: RequiredStr
|
|
trat_fecha: FlexDate = None
|
|
trat_detalle: Optional[str] = None
|
|
trat_lateralidad: Optional[str] = None
|