17 lines
712 B
Python
17 lines
712 B
Python
"""Import schema for `core.tea.models.RelacionAdos2Paciente`: one patient's z and model probability for an
|
|
association row, per EEG. The observed outcome stays in `ados2`, never here."""
|
|
from typing import Optional
|
|
|
|
from webapi.imports.schemas.base import ImportSchema
|
|
from webapi.imports.schemas.coercion import Bounded, SourceId
|
|
|
|
|
|
class RelacionAdos2PacienteImportSchema(ImportSchema):
|
|
rap_id: SourceId = None
|
|
# The natural key the import merges patient rows on: rap_rel_id, rap_eeg_id.
|
|
rap_rel_id: SourceId = None
|
|
rap_eeg_id: SourceId = None
|
|
rap_valor_z: Optional[float] = None
|
|
rap_probabilidad: Bounded(float, 0, 1) = None
|
|
rap_probabilidad_referencia: Bounded(float, 0, 1) = None
|