Closed cutright closed 3 years ago
New feature in v0.9.0 branch. If you create a CSV file like the following:
table,column,value,condition dvhs,toxicity_grade,0,mrn = 'ANON123' AND institutional_roi = 'Bladder' dvhs,toxicity_grade,2,mrn = 'ANON456' AND institutional_roi = 'Bladder'
Then DVHA can process each row as parameters for DVH_SQL.update
DVH_SQL.update
https://github.com/cutright/DVH-Analytics/blob/c5eb6b03f46a11f1903096961be7effe5d56b1c7/dvha/db/sql_connector.py#L682-L694
I'll add more in the manual, but this should make sense to SQL users.
Refer to this .sql file for schema info: https://github.com/cutright/DVH-Analytics/blob/v0.9.0/dvha/db/create_tables.sql
Currently this is not threaded and you just get a Please Wait dialog. So... please be patient and wait for it to finish :)
I moved the logic over to dvha.models.database_editor, applied threading, and added a progress bar.
dvha.models.database_editor
to be released in v0.9.0
v0.9.0
New feature in v0.9.0 branch. If you create a CSV file like the following:
table,column,value,condition dvhs,toxicity_grade,0,mrn = 'ANON123' AND institutional_roi = 'Bladder' dvhs,toxicity_grade,2,mrn = 'ANON456' AND institutional_roi = 'Bladder'
Then DVHA can process each row as parameters for
DVH_SQL.update
https://github.com/cutright/DVH-Analytics/blob/c5eb6b03f46a11f1903096961be7effe5d56b1c7/dvha/db/sql_connector.py#L682-L694
I'll add more in the manual, but this should make sense to SQL users.
Refer to this .sql file for schema info: https://github.com/cutright/DVH-Analytics/blob/v0.9.0/dvha/db/create_tables.sql
Currently this is not threaded and you just get a Please Wait dialog. So... please be patient and wait for it to finish :)