DiseaseIdColumnMapper
Source code in pyphetools/creation/disease_id_column_mapper.py
__init__(column_name, disease_id_map)
Constructor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
column_name
|
str
|
name of column with disease identifier |
required |
disease_id_map
|
Dict[str, Disease]
|
dictionary with key, free text for disease identifier/name, value Disease object |
required |
Source code in pyphetools/creation/disease_id_column_mapper.py
map_cell(cell_contents)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cell_contents
|
str
|
contents of a cell of the origiinal table |
required |
Returns:
Type | Description |
---|---|
Disease
|
corresponding Disease object |