module documentation
Module for importing and exporting CSV tables of patients with lymphatic patterns of progression into and from the Django database.
Exception |
|
Exception raised when the parsing of an uploaded CSV fails due to missing data columns. |
Function | compute |
Compute a hash vlaue from three patient-specific fields that must be removed due for respecting the patient's privacy. |
Function | export |
Export QuerySet of patients into a pandas DataFrame of the same format as it is needed for importing. |
Function | get |
Get list of names of model fields and remove the ones provided via the remove argument. |
Function | import |
Import patients from pandas DataFrame. |
Function | nan |
Transform NaNs to None. |
Function | row2diagnoses |
Create Diagnose instances from row of DataFrame and add them to an existing Patient instance. |
Function | row2patient |
Create a Patient instance from a row of a DataFrame containing the appropriate information, as well as the dataset in which the information was uploaded. |
Function | row2tumors |
Create Tumor instances from row of a DataFrame and add them to an existing Patient instance. |
Variable | logger |
Undocumented |
Compute a hash vlaue from three patient-specific fields that must be removed due for respecting the patient's privacy.
Export QuerySet of patients into a pandas DataFrame of the same format as it is needed for importing.
Parameters | |
patients:QuerySet | Undocumented |
Get list of names of model fields and remove the ones provided via the remove argument.
Parameters | |
model | Undocumented |
remove:List[ | Undocumented |
Import patients from pandas DataFrame.
Parameters | |
datapd.DataFrame | Undocumented |
dataset:models.Dataset | Undocumented |
anonymize:List[ | Undocumented |
Returns | |
Tuple[ | Undocumented |
Create a Patient
instance from a row of a DataFrame containing the
appropriate information, as well as the dataset in which the information was
uploaded.