Skip to content

GarrettDaniel/hospital-patient-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

hospital-patient-simulation

This repo shows a proof-of-concept architecture for simulating hospital ER patient data ETL and visualization at scale in near-real-time using AWS services and custom code.

The code in this repo represent a Python app for custom data simulation, and a Lambda function for data enrichment (i.e. determining if patient metrics are in healthy ranges or not, and updating the dataset). Here is an example of what the raw data looks like before upload and enrichment.

raw_data_simulation_example

The AWS architecture is as follows: health-data-simulator-arch

Here are some example patient monitoring visualizations made with QuickSight:

Monitoring all patients in aggregate dashboard-blood-pressure-oxygen

Monitoring individual patients over time individual-patient-monitoring

Other aspects of the architecture were created manually in the AWS Management Console for demo/experimentation purposes, and are not included in this repo.

  • EC2 Instance for running the data generation app
  • S3 buckets for storing raw and enriched patient data
  • SQS queue for managing data enrichment jobs
  • Glue Crawler to infer data schema in S3
  • Athena for querying data directly in S3
  • QuickSight for data visualization and dashboard creation

For future improvements:

  • The full architecture could be packaged together using infrastructure-as-code with Terraform or AWS CloudFormation
  • The Python app could be containerized with Docker, and run using ECS with Fargate instead of running on an EC2 instance
  • The data generation app could be improved with more sophisticated and comprehensive patient metrics, with more realistic distributions/variation
  • Data visualizations could be more sophisticated and detailed

About

Simulate ER Patient data generation at scale.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages