Clinical Data Interface

app.main

Mock implementation of the clinical data interface.

FastAPI app

Mock implementation of the clinical data interface.

Uses generated data to provide a patient list for downstream services.

class Settings(_env_file='<object object>', _env_file_encoding=None, _env_nested_delimiter=None, _secrets_dir=None, **values)[source]

Bases: BaseSettings

FastAPI Settings for clinical guideline interface

ceosys_base_path: str
async get_data(variable_name)[source]

Get clinical data for all patients.

Parameters:

variable_name (List[str]) – List of clinical variable names to return for the patients.

Return type:

Dict

Returns: List of all available values for the requested variables.

async get_patient_data(patient_id, variable_name)[source]

Get clinical data for a specific patient.

Parameters:
  • patient_id (str) – Patient identifier

  • variable_name (List[str]) – List of clinical variable names to return for the patients.

Return type:

Dict

Returns: List of all available values for the requested variables for the specified patient.

async get_patient_list()[source]

Get list of patients with their ward, birth date and admission date

Returns: List of patients

Return type:

Dict

async root()[source]

Server greeting.

Returns: Server greeting.

Return type:

Dict

async startup_event()[source]

Read in the mocked patient data at startup.

Returns: None

Return type:

None