loinchpo.model package

Submodules

loinchpo.model.ClinicalTableColumns module

class loinchpo.model.ClinicalTableColumns.ClinicalTableColumns

Bases: object

static get(table_name: ClinicalTableName)

Gets the required columns based on the ::class::ClinicalTableName.

static get_mutually_exclusive(table_name: ClinicalTableName)

loinchpo.model.ClinicalTableName module

class loinchpo.model.ClinicalTableName.ClinicalTableName(value)

Bases: Enum

An enumeration.

CONCEPT = 1
CONCEPT_SYNONYM = 2
MEASUREMENT = 4
VOCABULARY = 3

loinchpo.model.LoincId module

class loinchpo.model.LoincId.LoincId(loinc_id)

Bases: object

A class to represent a loinc id

loinchpo.model.LoincScale module

class loinchpo.model.LoincScale.LoincScale(value)

Bases: Enum

An enumeration representation for the possible loinc scale types.

DOC = (7, 'doc')
MULTI = (6, 'multi')
NAR = (5, 'nar')
NOM = (4, 'nom')
ORD = (2, 'ord')
ORDQN = (3, 'ordqn')
QN = (1, 'qn')
SET = (8, 'set')
UNKNOWN = 1
static infer_long(long_name: str)

Helper function to infer long_name from a list of synonyms

static parse(loinc_scale)

Mapping loinc scale to enumeration.

Parameters:

loinc_scale – A parsed string loinc scale from LoincHpoAnnotation file.

Returns:

An enumeration representation of loinc_scale or enumeration unknown for those that could not be mapped to an associated enumeration.

loinchpo.model.Query module

class loinchpo.model.Query.Query(loinc_id, outcome)

Bases: object

Module contents