app.validators package

Submodules

app.validators.channelmapping module

class app.validators.channelmapping.ChannelMapping(*, name: str | None = None, eeg_left: app.validators.channelmapping.SingleChannelBase | None = None, eeg_right: app.validators.channelmapping.SingleChannelBase | None = None, eye_left: app.validators.channelmapping.SingleChannelBase | None = None, eye_right: app.validators.channelmapping.SingleChannelBase | None = None, mastoid: app.validators.channelmapping.SingleChannelBase | None = None, chin: app.validators.channelmapping.SingleChannelBase | None = None, intercostal_left: app.validators.channelmapping.SingleChannelBase | None = None, intercostal_right: app.validators.channelmapping.SingleChannelBase | None = None, ekg: app.validators.channelmapping.SingleChannelBase | None = None, leg_left: app.validators.channelmapping.SingleChannelBase | None = None, leg_right: app.validators.channelmapping.SingleChannelBase | None = None, resp_cannula: app.validators.channelmapping.SingleChannelBase | None = None, resp_chest: app.validators.channelmapping.SingleChannelBase | None = None, resp_abdomen: app.validators.channelmapping.SingleChannelBase | None = None, oxygen_sat: app.validators.channelmapping.SingleChannelBase | None = None, pulse: app.validators.channelmapping.SingleChannelBase | None = None, audio: app.validators.channelmapping.SingleChannelBase | None = None, light: app.validators.channelmapping.SingleChannelBase | None = None, resp_thermistor: app.validators.channelmapping.SingleChannelBase | None = None, cpapflow: app.validators.channelmapping.SingleChannelBase | None = None, epap: app.validators.channelmapping.SingleChannelBase | None = None, ipap: app.validators.channelmapping.SingleChannelBase | None = None, etc02: app.validators.channelmapping.SingleChannelBase | None = None, transc02: app.validators.channelmapping.SingleChannelBase | None = None, position: app.validators.channelmapping.PositionChannelBase | None = None, id: int, user_id: int | None = None)

Bases: ChannelMappingBase

id: int
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'audio': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'chin': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'cpapflow': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eeg_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eeg_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'ekg': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'epap': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'etc02': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eye_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eye_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'id': FieldInfo(annotation=int, required=True), 'intercostal_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'intercostal_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'ipap': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'leg_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'leg_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'light': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'mastoid': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'oxygen_sat': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'position': FieldInfo(annotation=Union[PositionChannelBase, NoneType], required=False, default=None), 'pulse': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_abdomen': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_cannula': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_chest': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_thermistor': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'transc02': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'user_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

classmethod model_validator(db_channelmapping: ChannelMapping)
user_id: int | None
class app.validators.channelmapping.ChannelMappingBase(*, name: str | None = None, eeg_left: app.validators.channelmapping.SingleChannelBase | None = None, eeg_right: app.validators.channelmapping.SingleChannelBase | None = None, eye_left: app.validators.channelmapping.SingleChannelBase | None = None, eye_right: app.validators.channelmapping.SingleChannelBase | None = None, mastoid: app.validators.channelmapping.SingleChannelBase | None = None, chin: app.validators.channelmapping.SingleChannelBase | None = None, intercostal_left: app.validators.channelmapping.SingleChannelBase | None = None, intercostal_right: app.validators.channelmapping.SingleChannelBase | None = None, ekg: app.validators.channelmapping.SingleChannelBase | None = None, leg_left: app.validators.channelmapping.SingleChannelBase | None = None, leg_right: app.validators.channelmapping.SingleChannelBase | None = None, resp_cannula: app.validators.channelmapping.SingleChannelBase | None = None, resp_chest: app.validators.channelmapping.SingleChannelBase | None = None, resp_abdomen: app.validators.channelmapping.SingleChannelBase | None = None, oxygen_sat: app.validators.channelmapping.SingleChannelBase | None = None, pulse: app.validators.channelmapping.SingleChannelBase | None = None, audio: app.validators.channelmapping.SingleChannelBase | None = None, light: app.validators.channelmapping.SingleChannelBase | None = None, resp_thermistor: app.validators.channelmapping.SingleChannelBase | None = None, cpapflow: app.validators.channelmapping.SingleChannelBase | None = None, epap: app.validators.channelmapping.SingleChannelBase | None = None, ipap: app.validators.channelmapping.SingleChannelBase | None = None, etc02: app.validators.channelmapping.SingleChannelBase | None = None, transc02: app.validators.channelmapping.SingleChannelBase | None = None, position: app.validators.channelmapping.PositionChannelBase | None = None)

Bases: BaseModel

audio: app.validators.channelmapping.SingleChannelBase | None
chin: app.validators.channelmapping.SingleChannelBase | None
cpapflow: app.validators.channelmapping.SingleChannelBase | None
eeg_left: app.validators.channelmapping.SingleChannelBase | None
eeg_right: app.validators.channelmapping.SingleChannelBase | None
ekg: app.validators.channelmapping.SingleChannelBase | None
epap: app.validators.channelmapping.SingleChannelBase | None
etc02: app.validators.channelmapping.SingleChannelBase | None
eye_left: app.validators.channelmapping.SingleChannelBase | None
eye_right: app.validators.channelmapping.SingleChannelBase | None
intercostal_left: app.validators.channelmapping.SingleChannelBase | None
intercostal_right: app.validators.channelmapping.SingleChannelBase | None
ipap: app.validators.channelmapping.SingleChannelBase | None
leg_left: app.validators.channelmapping.SingleChannelBase | None
leg_right: app.validators.channelmapping.SingleChannelBase | None
light: app.validators.channelmapping.SingleChannelBase | None
mastoid: app.validators.channelmapping.SingleChannelBase | None
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'audio': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'chin': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'cpapflow': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eeg_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eeg_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'ekg': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'epap': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'etc02': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eye_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eye_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'intercostal_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'intercostal_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'ipap': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'leg_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'leg_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'light': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'mastoid': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'oxygen_sat': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'position': FieldInfo(annotation=Union[PositionChannelBase, NoneType], required=False, default=None), 'pulse': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_abdomen': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_cannula': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_chest': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_thermistor': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'transc02': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

name: str | None
oxygen_sat: app.validators.channelmapping.SingleChannelBase | None
position: app.validators.channelmapping.PositionChannelBase | None
pulse: app.validators.channelmapping.SingleChannelBase | None
resp_abdomen: app.validators.channelmapping.SingleChannelBase | None
resp_cannula: app.validators.channelmapping.SingleChannelBase | None
resp_chest: app.validators.channelmapping.SingleChannelBase | None
resp_thermistor: app.validators.channelmapping.SingleChannelBase | None
transc02: app.validators.channelmapping.SingleChannelBase | None
class app.validators.channelmapping.ChannelMappingCreate(*, name: str | None = None, eeg_left: app.validators.channelmapping.SingleChannelBase | None = None, eeg_right: app.validators.channelmapping.SingleChannelBase | None = None, eye_left: app.validators.channelmapping.SingleChannelBase | None = None, eye_right: app.validators.channelmapping.SingleChannelBase | None = None, mastoid: app.validators.channelmapping.SingleChannelBase | None = None, chin: app.validators.channelmapping.SingleChannelBase | None = None, intercostal_left: app.validators.channelmapping.SingleChannelBase | None = None, intercostal_right: app.validators.channelmapping.SingleChannelBase | None = None, ekg: app.validators.channelmapping.SingleChannelBase | None = None, leg_left: app.validators.channelmapping.SingleChannelBase | None = None, leg_right: app.validators.channelmapping.SingleChannelBase | None = None, resp_cannula: app.validators.channelmapping.SingleChannelBase | None = None, resp_chest: app.validators.channelmapping.SingleChannelBase | None = None, resp_abdomen: app.validators.channelmapping.SingleChannelBase | None = None, oxygen_sat: app.validators.channelmapping.SingleChannelBase | None = None, pulse: app.validators.channelmapping.SingleChannelBase | None = None, audio: app.validators.channelmapping.SingleChannelBase | None = None, light: app.validators.channelmapping.SingleChannelBase | None = None, resp_thermistor: app.validators.channelmapping.SingleChannelBase | None = None, cpapflow: app.validators.channelmapping.SingleChannelBase | None = None, epap: app.validators.channelmapping.SingleChannelBase | None = None, ipap: app.validators.channelmapping.SingleChannelBase | None = None, etc02: app.validators.channelmapping.SingleChannelBase | None = None, transc02: app.validators.channelmapping.SingleChannelBase | None = None, position: app.validators.channelmapping.PositionChannelBase | None = None)

Bases: ChannelMappingBase

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'audio': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'chin': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'cpapflow': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eeg_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eeg_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'ekg': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'epap': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'etc02': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eye_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eye_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'intercostal_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'intercostal_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'ipap': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'leg_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'leg_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'light': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'mastoid': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'oxygen_sat': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'position': FieldInfo(annotation=Union[PositionChannelBase, NoneType], required=False, default=None), 'pulse': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_abdomen': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_cannula': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_chest': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_thermistor': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'transc02': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

class app.validators.channelmapping.ChannelMappingCreateFromScoringRun(*, name: str | None = None, eeg_left: app.validators.channelmapping.SingleChannelBase | None = None, eeg_right: app.validators.channelmapping.SingleChannelBase | None = None, eye_left: app.validators.channelmapping.SingleChannelBase | None = None, eye_right: app.validators.channelmapping.SingleChannelBase | None = None, mastoid: app.validators.channelmapping.SingleChannelBase | None = None, chin: app.validators.channelmapping.SingleChannelBase | None = None, intercostal_left: app.validators.channelmapping.SingleChannelBase | None = None, intercostal_right: app.validators.channelmapping.SingleChannelBase | None = None, ekg: app.validators.channelmapping.SingleChannelBase | None = None, leg_left: app.validators.channelmapping.SingleChannelBase | None = None, leg_right: app.validators.channelmapping.SingleChannelBase | None = None, resp_cannula: app.validators.channelmapping.SingleChannelBase | None = None, resp_chest: app.validators.channelmapping.SingleChannelBase | None = None, resp_abdomen: app.validators.channelmapping.SingleChannelBase | None = None, oxygen_sat: app.validators.channelmapping.SingleChannelBase | None = None, pulse: app.validators.channelmapping.SingleChannelBase | None = None, audio: app.validators.channelmapping.SingleChannelBase | None = None, light: app.validators.channelmapping.SingleChannelBase | None = None, resp_thermistor: app.validators.channelmapping.SingleChannelBase | None = None, cpapflow: app.validators.channelmapping.SingleChannelBase | None = None, epap: app.validators.channelmapping.SingleChannelBase | None = None, ipap: app.validators.channelmapping.SingleChannelBase | None = None, etc02: app.validators.channelmapping.SingleChannelBase | None = None, transc02: app.validators.channelmapping.SingleChannelBase | None = None, position: app.validators.channelmapping.PositionChannelBase | None = None, id: int | None = None, user_id: int | None = None)

Bases: ChannelMappingBase

id: int | None
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'audio': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'chin': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'cpapflow': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eeg_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eeg_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'ekg': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'epap': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'etc02': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eye_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'eye_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'intercostal_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'intercostal_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'ipap': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'leg_left': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'leg_right': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'light': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'mastoid': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'oxygen_sat': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'position': FieldInfo(annotation=Union[PositionChannelBase, NoneType], required=False, default=None), 'pulse': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_abdomen': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_cannula': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_chest': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'resp_thermistor': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'transc02': FieldInfo(annotation=Union[SingleChannelBase, NoneType], required=False, default=None), 'user_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

user_id: int | None
class app.validators.channelmapping.PositionChannelBase(*, channel_name: str | None = None, channel_index: int | None = None, unknown_value: int | None = None, supine_value: int | None = None, prone_value: int | None = None, left_value: int | None = None, right_value: int | None = None, upright_value: int | None = None)

Bases: BaseModel

channel_index: int | None
channel_name: str | None
left_value: int | None
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'channel_index': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'channel_name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'left_value': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'prone_value': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'right_value': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'supine_value': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'unknown_value': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'upright_value': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

prone_value: int | None
right_value: int | None
supine_value: int | None
unknown_value: int | None
upright_value: int | None
class app.validators.channelmapping.SingleChannelBase(*, channel_name: str | None = None, channel_index: int | None = None)

Bases: BaseModel

channel_index: int | None
channel_name: str | None
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'channel_index': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'channel_name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

app.validators.fileupload module

app.validators.processedstudytable module

app.validators.processinghistory module

class app.validators.processinghistory.ProcessingHistoryCreate(*, status: app.models.scoringrunstatusenum.ScoringRunStatusEnum | None = None, status_message: str | None = None)

Bases: BaseModel

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'status': FieldInfo(annotation=Union[ScoringRunStatusEnum, NoneType], required=False, default=None), 'status_message': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

status: app.models.scoringrunstatusenum.ScoringRunStatusEnum | None
status_message: str | None

app.validators.user module

class app.validators.user.User(*, requested_permission: Optional[str] = None, id: int, date_created: datetime, date_modified: datetime, email: str, auth0_subject: Optional[str] = None, is_active: bool, site_id: Optional[int] = None, role: Optional[BaseRole] = None, studies: list[app.validators.study.Study], permissions: list[app.validators.permission.Permission])

Bases: UserBase

auth0_subject: Optional[str]
date_created: datetime
date_modified: datetime
email: str
hasPermission(perm_string)
id: int
is_active: bool
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'auth0_subject': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'date_created': FieldInfo(annotation=datetime, required=True), 'date_modified': FieldInfo(annotation=datetime, required=True), 'email': FieldInfo(annotation=str, required=True), 'id': FieldInfo(annotation=int, required=True), 'is_active': FieldInfo(annotation=bool, required=True), 'permissions': FieldInfo(annotation=list[Permission], required=True), 'requested_permission': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'role': FieldInfo(annotation=Union[BaseRole, NoneType], required=False, default=None), 'site_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None), 'studies': FieldInfo(annotation=list[Study], required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

classmethod model_validator(db_user: User)
permissions: list[app.validators.permission.Permission]
role: Optional[BaseRole]
site_id: Optional[int]
studies: list[app.validators.study.Study]
class app.validators.user.UserBase(*, requested_permission: Optional[str] = None)

Bases: BaseModel

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'requested_permission': FieldInfo(annotation=Union[str, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

requested_permission: Optional[str]
class app.validators.user.UserCreate(*, email: str, password: str, site_id: Optional[int] = None, role_name: Optional[str] = 'User')

Bases: BaseModel

email: str
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'email': FieldInfo(annotation=str, required=True), 'password': FieldInfo(annotation=str, required=True, exclude=True), 'role_name': FieldInfo(annotation=Union[str, NoneType], required=False, default='User', exclude=True), 'site_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

password: str
classmethod password_min_length(v)
role_name: Optional[str]
site_id: Optional[int]
class app.validators.user.UserPatch(*, site_id: Optional[int] = None, role_name: Optional[str] = None, is_active: Optional[bool] = None)

Bases: BaseModel

is_active: Optional[bool]
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'is_active': FieldInfo(annotation=Union[bool, NoneType], required=False, default=None), 'role_name': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'site_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

role_name: Optional[str]
site_id: Optional[int]
class app.validators.user.UserResponseInStudyList(*, id: int, date_created: datetime, date_modified: datetime, email: str, is_active: bool)

Bases: BaseModel

date_created: datetime
date_modified: datetime
email: str
id: int
is_active: bool
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'date_created': FieldInfo(annotation=datetime, required=True), 'date_modified': FieldInfo(annotation=datetime, required=True), 'email': FieldInfo(annotation=str, required=True), 'id': FieldInfo(annotation=int, required=True), 'is_active': FieldInfo(annotation=bool, required=True)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

class app.validators.user.UserResponseSmall(*, id: int, date_created: datetime, date_modified: datetime, email: str, is_active: bool, site_id: Optional[int] = None, role: Optional[BaseRole] = None, permissions: list[app.validators.permission.Permission])

Bases: BaseModel

date_created: datetime
date_modified: datetime
email: str
id: int
is_active: bool
model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {'from_attributes': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[Dict[str, FieldInfo]] = {'date_created': FieldInfo(annotation=datetime, required=True), 'date_modified': FieldInfo(annotation=datetime, required=True), 'email': FieldInfo(annotation=str, required=True), 'id': FieldInfo(annotation=int, required=True), 'is_active': FieldInfo(annotation=bool, required=True), 'permissions': FieldInfo(annotation=list[Permission], required=True), 'role': FieldInfo(annotation=Union[BaseRole, NoneType], required=False, default=None), 'site_id': FieldInfo(annotation=Union[int, NoneType], required=False, default=None)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo] objects.

This replaces Model.__fields__ from Pydantic V1.

permissions: list[app.validators.permission.Permission]
role: Optional[BaseRole]
serialize_permissions(v: list[app.validators.permission.Permission])
serialize_role(v: BaseRole)
site_id: Optional[int]

Module contents