synthetichealth / synthea

Synthetic Patient Population Simulator
https://synthetichealth.github.io/synthea
Apache License 2.0
2.19k stars 655 forks source link

Request feature: Days of History #1465

Open chaudhariatul opened 6 months ago

chaudhariatul commented 6 months ago

Issue reoccured with latest, 3.2.0, 3.1.1 and 3.1.0.

Version 3.0.0 generates observations with correct years and encounters are much beyond the number of years specified with exporter.years_of_history


Would it be possible to add a feature for days_of_history as well?

Originally posted by @chaudhariatul in https://github.com/synthetichealth/synthea/issues/1064#issuecomment-2132587049

jawalonoski commented 6 months ago

Did you specify years of history on the command line or in the properties file?

Did you read this comment https://github.com/synthetichealth/synthea/issues/1064#issuecomment-1127885842?

The filter is allowed to keep ACTIVE items from the medical history, even if they exceed the years of history.

chaudhariatul commented 6 months ago

@jawalonoski I tried both options:

This is the synthea.properties file and command used

java -jar synthea-with-dependencies.jar -c synthea.properties -p 1 California "San Jose"

exporter.years_of_history = 1
exporter.metadata.export = false
exporter.fhir.export = false
exporter.hospital.fhir.export = false
exporter.practitioner.fhir.export = true
exporter.csv.export = true
exporter.text.export = false
generate.only_alive_patients = true

When using just the command :

java -jar synthea-with-dependencies.jar -p 1 California "San Jose" --exporter.years_of_history 1

chaudhariatul commented 6 months ago

The link to comment helps to understand the logic for generating encounters and observations for those past years. Thanks.


Requesting a feature for days_of_history to have ability to generate recent encounters with N number of days.

chaudhariatul commented 5 months ago

@jawalonoski the latest jar from master branch resolved the issue related to years_of_history synthea-with-dependencies.jar. Will this be version 3.2.1 or we expecting newer versions in coming days?

Thanks for creating the feature request for days of history.