If a PEDSnet-specific column is not present, an error can be thrown.
example:
Failed to generate PERSON report, see dqa.log for more details. : Error: <SQL> 'SELECT "language_source_value", COUNT(*) AS "freq"
FROM dbo."person"
GROUP BY "language_source_value"'
nanodbc/nanodbc.cpp:1587: 42S22: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'language_source_value'.
It's not the cleanest solution but you could take the column names into a vector and then check inclusion, closing each piece into if statements:
If a PEDSnet-specific column is not present, an error can be thrown.
example:
It's not the cleanest solution but you could take the column names into a vector and then check inclusion, closing each piece into if statements:
see: https://stackoverflow.com/questions/1169248/test-if-a-vector-contains-a-given-element
from:
to: