Model package

Model.admin module

The admin model module: Admin table model.

Provides the applications object relational model for the admin SQLite database table.

class Src.Model.admin.Admin(username, password, email)[source]

Bases: Model

Admin class represents an ORM model for the Flask applications admin SQLite database table.

Parameters:

db (SQLAlchemy) – The Flask applications SQLite database

email
id
password
query: t.ClassVar[Query]

A SQLAlchemy query for a model. Equivalent to db.session.query(Model). Can be customized per-model by overriding query_class.

Warning

The query interface is considered legacy in SQLAlchemy. Prefer using session.execute(select()) instead.

username

Model.amt module

The amt model module: Amt and Snomed table models.

Provides the applications object relational model for both the Amt and Snomed SQLite database tables.

class Src.Model.amt.Amt(CTPP_SCTID, CTPP_PT, ARTG_ID, TPP_SCTID, TPUU_PT, TPP_PT, TPUU_SCTID, TPP_TP_SCTID, TPP_TP_PT, TPUU_TP_SCTID, TPUU_TP_PT, MPP_SCTID, MPP_PT, MPUU_SCTID, MPUU_PT, MP_SCTID, MP_PT)[source]

Bases: Base, Model

Amt class represents an ORM model for the Flask applications AMT distribution SQLite database table.

Parameters:
  • Base (automap_base) – The models declarative base, used for automapping relationships

  • db (SQLAlchemy) – The Flask applications SQLite database

ARTG_ID
CTPP_PT
CTPP_SCTID
ID
MPP_PT
MPP_SCTID
MPUU_PT
MPUU_SCTID
MP_PT
MP_SCTID
Snomed
TPP_PT
TPP_SCTID
TPP_TP_PT
TPP_TP_SCTID
TPUU_PT
TPUU_SCTID
TPUU_TP_PT
TPUU_TP_SCTID
metadata = MetaData()
query: t.ClassVar[Query]

A SQLAlchemy query for a model. Equivalent to db.session.query(Model). Can be customized per-model by overriding query_class.

Warning

The query interface is considered legacy in SQLAlchemy. Prefer using session.execute(select()) instead.

snomed
class Src.Model.amt.Snomed(MP_PT, AU_Substance_SCTID, Int_Substance_SCTID)[source]

Bases: Base, Model

Snomed class represents an ORM model for the Flask applications SNOMED distribution SQLite database table.

Parameters:
  • Base (automap_base) – The models declarative base, used for automapping relationships

  • db (SQLAlchemy) – The Flask applications SQLite database

AU_Substance_SCTID
Int_Substance_SCTID
MP_PT
metadata = MetaData()

Model.version module

The version model module: Version table model.

Provides the applications object relational model for the version SQLite database table.

class Src.Model.version.Version(Date, File, Link)[source]

Bases: Model

Version class represents an ORM model for the Flask applications version SQLite database table.

Parameters:

db (SQLAlchemy) – The Flask applications SQLite database

date
file
id
query: t.ClassVar[Query]

A SQLAlchemy query for a model. Equivalent to db.session.query(Model). Can be customized per-model by overriding query_class.

Warning

The query interface is considered legacy in SQLAlchemy. Prefer using session.execute(select()) instead.