imaging_api.db.models

Classes

Base

Base class for SQLAlchemy ORM models.

DirectArchiveSessionORM

ORM model for the xhbm_direct_archive_session table.

DirectArchiveSession

Pydantic model for the xhbm_direct_archive_session table.

ExecutedPacsRequestORM

ORM model for the xhbm_executed_pacs_request table.

ExecutedPacsRequest

Pydantic model for the xhbm_executed_pacs_request table.

QueuedPacsRequestORM

ORM model for the xhbm_queued_pacs_request table.

QueuedPacsRequest

Pydantic model for the xhbm_queued_pacs_request table.

Module Contents

class imaging_api.db.models.Base

Bases: sqlalchemy.orm.DeclarativeBase

Base class for SQLAlchemy ORM models.

class imaging_api.db.models.DirectArchiveSessionORM

Bases: Base

ORM model for the xhbm_direct_archive_session table.

__tablename__ = 'xhbm_direct_archive_session'
id
created
folder_name
status
project
timestamp
class imaging_api.db.models.DirectArchiveSession

Bases: pydantic.BaseModel

Pydantic model for the xhbm_direct_archive_session table.

id: int
created: datetime.datetime
folder_name: str
status: str
project: str
model_config
class imaging_api.db.models.ExecutedPacsRequestORM

Bases: Base

ORM model for the xhbm_executed_pacs_request table.

__tablename__ = 'xhbm_executed_pacs_request'
id
created
accession_number
status
xnat_project
timestamp
class imaging_api.db.models.ExecutedPacsRequest

Bases: pydantic.BaseModel

Pydantic model for the xhbm_executed_pacs_request table.

id: int
created: datetime.datetime
accession_number: str
status: str
xnat_project: str
model_config
class imaging_api.db.models.QueuedPacsRequestORM

Bases: Base

ORM model for the xhbm_queued_pacs_request table.

__tablename__ = 'xhbm_queued_pacs_request'
id
created
accession_number
status
xnat_project
timestamp
class imaging_api.db.models.QueuedPacsRequest

Bases: pydantic.BaseModel

Pydantic model for the xhbm_queued_pacs_request table.

id: int
created: datetime.datetime
accession_number: str
status: str
xnat_project: str
model_config