Unable to generate a file with the vital signs for diabetes patients
BioinfoGuy10 opened this issue · 6 comments
./run_synthea -s 1234 -p 10 -m metabolic*:wellness* --generate.log_patients.detail = detailed --exporter.csv.export = true --exporter.baseDirectory="./output_tx_diabetes/"
This is the command I am using but I am not able to get the details in observations.csv.
Instead this is the information I get in the file
DATE | PATIENT | ENCOUNTER | CATEGORY | CODE | DESCRIPTION | VALUE | UNITS | TYPE |
---|---|---|---|---|---|---|---|---|
2014-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 24 | a | numeric | ||
2015-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 25 | a | numeric | ||
2016-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 26 | a | numeric | ||
2017-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 27 | a | numeric | ||
2018-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 28 | a | numeric | ||
2019-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 29 | a | numeric | ||
2020-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 30 | a | numeric | ||
2021-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 31 | a | numeric | ||
2022-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 32 | a | numeric | ||
2023-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 33 | a | numeric | ||
2024-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 34 | a | numeric | ||
2014-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | DALY | DALY | 0 | a | numeric | ||
2015-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | DALY | DALY | 0 | a | numeric | ||
2016-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | DALY | DALY | 0 | a | numeric | ||
2017-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | DALY | DALY | 0 | a | numeric |
Originally posted by @BioinfoGuy10 in #310 (comment)
- We don't troubleshoot issues that use the
-m
feature. https://github.com/synthetichealth/synthea/wiki/The--M-Feature - However, the formatting of your table is incorrect. Which led me to double-check the output. It should look something like this....
DATE | PATIENT | ENCOUNTER | CATEGORY | CODE | DESCRIPTION | VALUE | UNITS | TYPE |
---|---|---|---|---|---|---|---|---|
2014-03-08T16:35:19Z | 106a3773-6a9d-988b-0aad-eb4a535bef4b | QALY | QALY | 24 | a | numeric |
- If you only got QALY and DALY observations, then the modules you specified with
-m
didn't load. See 1 above. You probably formatted the command line incorrectly for the shell you're using. Here is what works for me on Mac OS X, but it will depend on your OS and shell.
./run_synthea -p 10 --exporter.csv.export=true -m "metabolic*:wellness*"
Look for output that says something like:
Correct
Modules: Metabolic Syndrome Disease Progression Module
& Metabolic Syndrome Standards of Care Module
& Wellness Encounters Module
> [3 loaded]
Incorrect
Modules:
> [0 loaded]
It says Modules:>[0 loaded]. What would potentially change in the command that you provided in powershell?
It says Modules:>[0 loaded]. What would potentially change in the command that you provided in powershell?
Different operating systems and shells parse the command line options differently, including wildcards (*
) with and without quotes ("
) and file separators (in my example, :
).
I don't use powershell.
@jawalonoski , could you help me get the vital signs in the observations.csv?.
Refer to the above comment
They should already be there, unless you've altered your setup.
I ran the following command on Mac OS X:
./run_synthea -s 1234 -p 10 -m "metabolic*:wellness*" --generate.log_patients.detail=detailed --exporter.csv.export=true --exporter.baseDirectory="./output_tx_diabetes/"
I opened ./output_tx_diabetes/csv/observations.csv
with Microsoft Excel, and created a pivot table....