trust_api.routers.schemas

Classes

CohortQueryInput

Represents the input for a cohort query.

CentralHubUser

Represents a user on the central hub.

CentralHubProject

Represents a project on the central hub from which an imaging project is created on XNAT.

DeleteImagingInput

Input for deleting an imaging project.

GetImagingStatusInput

Input for retrieving imaging project status.

ReimportStudiesInput

Input for reimporting imaging studies.

UpdateProfileRequest

Request body for updating a user's profile.

Module Contents

class trust_api.routers.schemas.CohortQueryInput

Bases: pydantic.BaseModel

Represents the input for a cohort query.

encrypted_project_id: str
query_id: str
query_name: str
query: str
trust_id: str
class trust_api.routers.schemas.CentralHubUser

Bases: pydantic.BaseModel

Represents a user on the central hub.

id: uuid.UUID
email: pydantic.EmailStr
is_disabled: bool = False
class trust_api.routers.schemas.CentralHubProject

Bases: pydantic.BaseModel

Represents a project on the central hub from which an imaging project is created on XNAT.

project_id: uuid.UUID
trust_id: uuid.UUID
project_name: str
query: str | None = None
users: list[CentralHubUser] = []
dicom_to_nifti: bool = True
class trust_api.routers.schemas.DeleteImagingInput

Bases: pydantic.BaseModel

Input for deleting an imaging project.

imaging_project_id: str
class trust_api.routers.schemas.GetImagingStatusInput

Bases: pydantic.BaseModel

Input for retrieving imaging project status.

imaging_project_id: str
encoded_query: str
class trust_api.routers.schemas.ReimportStudiesInput

Bases: pydantic.BaseModel

Input for reimporting imaging studies.

imaging_project_id: str
encoded_query: str
class trust_api.routers.schemas.UpdateProfileRequest

Bases: pydantic.BaseModel

Request body for updating a user’s profile.

email: pydantic.EmailStr
enabled: bool