Giter Club home page Giter Club logo

flu-shots-dashboard's Introduction

Flu Shots Dashboard

flu shots dash

NOTE: This data is fake data that is supposed to be located around the state of Massachusets

  • The data was obtained and uploaded into a PostgreSQL database, transformed and then visualized in Power BI.

PostgreSQL Power BI

Key Objectives

  1. Total % of patients getting flu shots based on:
  • Age
  • Race
  • County (Map)
  • Overall
  1. Monthly total of shots over the course of 2022
  2. Total number of flu shots give in 2022
  3. List of patients that show whether or not they recieved the flu shots

Other requirements

  • Patient is alive
  • Patient is at least 6 months (age recommended to start the flu shot)

SQL Code For Report

View SQL Code File --> Click Here

WITH active_patients AS (
	SELECT DISTINCT patient
	FROM encounters AS e
	JOIN patients AS p
		ON e.patient = p.id
	WHERE start BETWEEN '2020-01-01 00:00:00'
		AND '2022-12-31 23:59:59'
		AND p.deathdate IS null
		AND EXTRACT(MONTH FROM age('2022-12-31', p.birthdate)) >= 6
),

flu_shot_2022 AS (
SELECT
	patient,
	MIN(date) AS first_flu_shot_2022
FROM immunizations
WHERE code = 5302
 AND date BETWEEN '2022-01-01 00:00:00'
 	AND '2022-12-31 23:59:59'
GROUP BY patient)

SELECT
	p.birthdate,
	p.race,
	p.county,
	p.id,
	p.first,
	p.last,
	flu.first_flu_shot_2022,
	flu.patient,
	CASE WHEN  flu.patient IS NOT null THEN 1 ELSE 0 END AS flu_shot_2022
FROM patients AS p
LEFT JOIN flu_shot_2022 as flu
	ON p.id = flu.patient
WHERE 1=1
	AND p.id IN (
		SELECT patient
		FROM active_patients
	)

Analysis

  • The elderly population within all age categories showed the highest result in compliance of getting the flu shot.
  • Within age groups of 18 to 34 and 35 to 49 all ethnicites especially White and Other categories had low compliance.
  • Flu shots peak around April (Spring time) and continuously decline the rest of the year.

Suggestions

  • We should push for colleges to advocate or set up workshops to get the flu shot as well as businesses to target the younger populations.
  • There may be a need for campaigning to help push the agenda in places like Hampshire county and Duke county where the compliance rates are below 60% for the white and other category ethnicites.
  • Flu shots are generally most effective and advocated to be given around the Spring, thus there should be a greater education for people to get their shot earlier in the year by their doctors with the possible help from campaigning.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.