core.query_solvers

source

AvailibilityQuerySolver

class AvailibilityQuerySolver(
  db_manager: SyncDBManager,
  query: AvailabilityQuery
)

Methods

_find_concepts() -> dict:
_solve_rules() -> None:
solve_query() -> int:

BaseDistributionQuerySolver

class BaseDistributionQuerySolver

Methods

solve_query() -> Tuple[str, int]:

CodeDistributionQuerySolver

class CodeDistributionQuerySolver(
  db_manager: SyncDBManager,
  query: DistributionQuery
)

Methods

solve_query() -> Tuple[str, int]:

DemographicsDistributionQuerySolver

class DemographicsDistributionQuerySolver(
  db_manager: SyncDBManager,
  query: DistributionQuery
)

Methods

solve_query() -> Tuple[str, int]:

solve_availability

solve_availability(
    db_manager: SyncDBManager, query: AvailabilityQuery
) -> RquestResult

_get_distribution_solver

def _get_distribution_solver(
    db_manager: SyncDBManager, query: DistributionQuery
) -> BaseDistributionQuerySolver

solve_distribution

def solve_distribution(
    db_manager: SyncDBManager, query: DistributionQuery
) -> RquestResult

Relationships

imports SyncDBManager

imports entities

imports query

imports File

imports RquestResult

imports DistributionQueryType

imports settings

imports DISTRIBUTION_TYPE_FILE_NAMES_MAP