nexusLIMS.db.enums#

Database enumerations for NexusLIMS.

This module defines type-safe enums for database fields that have constrained values (CHECK constraints in the database schema).

Module Contents#

Classes#

EventType

Allowed event types for session logs.

RecordStatus

Allowed record status values for session logs.

ExternalSystem

External systems that NexusLIMS integrates with.

API#

class nexusLIMS.db.enums.EventType[source]#

Bases: str, enum.Enum

Allowed event types for session logs.

Maps to the CHECK constraint in session_log.event_type column.

START#

‘START’

END#

‘END’

RECORD_GENERATION#

‘RECORD_GENERATION’

class nexusLIMS.db.enums.RecordStatus[source]#

Bases: str, enum.Enum

Allowed record status values for session logs.

Maps to the CHECK constraint in session_log.record_status column.

Variables:
  • WAITING_FOR_END – Session has started but not yet ended

  • TO_BE_BUILT – Session has ended and needs record generation

  • COMPLETED – Record has been successfully built and uploaded

  • BUILT_NOT_EXPORTED – Record was built successfully but all export destinations failed

  • ERROR – Record building failed with an error

  • NO_FILES_FOUND – No files were found for this session

  • NO_CONSENT – User did not consent to data harvesting

  • NO_RESERVATION – No matching reservation found for this session

WAITING_FOR_END#

‘WAITING_FOR_END’

TO_BE_BUILT#

‘TO_BE_BUILT’

COMPLETED#

‘COMPLETED’

BUILT_NOT_EXPORTED#

‘BUILT_NOT_EXPORTED’

ERROR#

‘ERROR’

NO_FILES_FOUND#

‘NO_FILES_FOUND’

‘NO_CONSENT’

NO_RESERVATION#

‘NO_RESERVATION’

class nexusLIMS.db.enums.ExternalSystem[source]#

Bases: str, enum.Enum

External systems that NexusLIMS integrates with.

Maps to the CHECK constraint in external_user_identifiers.external_system column.

Variables:
  • NEMO – NEMO lab management system (usage tracking and reservations)

  • LABARCHIVES_ELN – LabArchives Electronic Lab Notebook (record export destination)

  • LABARCHIVES_SCHEDULER – LabArchives Scheduler (reservation system integration)

  • CDCS – Configurable Data Curation System (NexusLIMS frontend)

NEMO#

‘nemo’

LABARCHIVES_ELN#

‘labarchives_eln’

LABARCHIVES_SCHEDULER#

‘labarchives_scheduler’

CDCS#

‘cdcs’