Volumes Data Analysis Using SQL
Contents
Knowing our population is important for further development and the improvement of care. Looking at volumes helps us understand the flow and activity of patients in our healthcare institutions.
Number of encounters occurred in 2019.
|
|
Identify more specific patients.
Let’s use the DISTINCT function to extract from the encounters column.
|
|
Shows a list of distinct patients, 910 rows returned.
If we wanted the total number returned, use the COUNT function:
|
|
Identify the different encounters.
|
|
Return the total number of encounters, use the COUNT funtion:
|
|
Let's specify an ecounter that we want to extract:
|
|
Return the total number of encounters, use the COUNT funtion:
|
|
Extract the inpatient class only:
|
|
If you want to get the total number of encounters in sepcific departments:
|
|
Dataset source: https://synthetichealth.github.io/synthea/
Github repository: https://github.com/ib99