UCL / TLOmodel

Epidemiology modelling framework for the Thanzi la Onse project
https://www.tlomodel.org/
MIT License
12 stars 5 forks source link

Outputting 'person journeys' #108

Open tbhallett opened 4 years ago

tbhallett commented 4 years ago

As part of developing a module it would be helpful to see a log of the changes that occur for one particular person. This would encompass:

The way I can think of doing this would be to have a Logging Event that occurs each day (last event each day -- determimed by setting the timestamp to be one microsecond to midnight) that had a 'self.person_id_to_track' property. It would store the 'sim.population.props' dataframe each time-step so that it can compare the df from the "yesterday" with that of "today" for just that one person_id. It could then identify any changes and output this to the log. It could also scan the log from the HealthSystem to identify all HSI that have occurred which have involved that person.

tbhallett commented 4 years ago

Tagging in @andrew-phillips-1 as this was his idea