Open LisaHopcroft opened 3 years ago
Thank you for creating this issue, @LisaHopcroft. At present, every variable in the input CSV file needs a corresponding entry in variable_types
. The study definition at 16dd9fa
included more variables than age
and sex
, so cohort-report raised an error. This behaviour isn't clear from the documentation, which states:
The
generate_report
action outputs one HTML document with a graph for each variable specified.
This suggests that variables that aren't specified won't have a graph in the HTML document. I think this is the same issue as #23, albeit that issue is about documentation and a bug; and this issue is about documentation.
Attempting to implement a very simple
cohortreport
with two variables -age
andsex
. Thecohortreport
action is provided as:In the input file,
age
is provided as an integer andsex
is provided as the charactersM
orF
.Contents of the log file for this action are:
The code is available here and the specific commit is here.