dangermouse5 / MIST4610GroupProject1

Group Project Submission for MIST4610 Project 1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIST4610 Group 6 Project 1

Team Name:

47114 Group 6

Team Members:

Samuel Miller Link

Sophia Scarangello Link

Arika Chiluvuri Link

Riley Eckstrom Link

Owen Donnelly Link

Michael Banks Link

Problem Description

Goon's emergency healthcare clinic is a 24/7 facility that provides urgent medical care to patients with various health concerns. The clinic employs a skilled medical team who work in shifts to ensure continuous care. To efficiently manage the clinic's operations, our team has developed a comprehensive data model that captures the essential entities and their relationships. This includes patient information, visit details, diagnostic tests, equipment inventory, treatments, prescriptions, pharmacy inventory, billing, and payments. By implementing this data model, the clinic aims to streamline its operations, enhance patient care, optimize resource utilization, and improve overall efficiency. The database will serve as a centralized repository for storing and managing critical information, enabling the clinic staff to make informed decisions and provide the best possible care to their patients.

Data Model

Data Model Description:

The data model for the emergency healthcare clinic consists of 11 main entities: Patients, Staff, Visits, DiagnosisTests, Equipment, Diagnosis, Treatment, Prescription, Pharmacy, Billing, and Payments. These entities are interconnected through various relationships, forming a comprehensive structure to manage the clinic's operations. The Patients entity stores essential information about each patient, including their unique patientID, last name, first name, date of birth, gender, address, phone number, and insurance company. This entity serves as a central repository for patient data and is connected to other entities to track their visits, diagnoses, and billing information. The Staff entity represents the medical professionals working at the clinic. It contains attributes such as staffID, last name, first name, specialty, phone number, and job title. The Staff entity is associated with the Visits entity to record which staff member attends to each patient during their visit. The Visits entity captures information about each patient's visit to the clinic. It includes attributes like visitsID, timeIn, timeOut, reasonForVisit, patientID (foreign key referencing the Patients entity), and billingID (foreign key referencing the Billing entity).

The Visits entity is connected to the Patients, Billing, and DiagnosisTests entities, allowing for a comprehensive record of each patient's clinic experience. The DiagnosisTests entity stores details about the diagnostic tests conducted during patient visits. It includes attributes such as equiptmentID (foreign key referencing the Equipment entity), visitsID (foreign key referencing the Visits entity), testDuration, testPerformed, and testDate. This entity is linked to the Visits and Equipment entities, enabling the tracking of test results and equipment usage. The Equipment entity keeps track of the medical equipment available in the clinic. It contains attributes like equiptmentID, itemName, quantityOwned, and purchaseDate. This entity is associated with the DiagnosisTests entity to record which equipment is used for each diagnostic test. The Diagnosis entity stores information about the diagnoses made for each patient visit. It includes attributes such as diagnosisID, diagnosis, diagnosisDescription, dateOfDiagnosis, and visitsID (foreign key referencing the Visits entity). The Diagnosis entity is connected to the Visits, Treatment, and Prescription entities, forming a link between the patient's diagnosis, prescribed treatment, and medication.

The Treatment entity captures details about the treatments provided to patients based on their diagnosis. It includes attributes like treatmentID, treatmentName, treatmentDescription, treatmentDate, treatmentLength, treatmentLocation, treatmentSupplies, and diagnosisID (foreign key referencing the Diagnosis entity). The Treatment entity is associated with the Diagnosis entity, allowing for a record of the specific treatments administered for each diagnosed condition. The Prescription entity stores information about the medications prescribed to patients. It includes attributes such as prescriptionID, medicationName, dosage, instructions, duration, diagnosisID (foreign key referencing the Diagnosis entity), and pharmacyID (foreign key referencing the Pharmacy entity). The Prescription entity is linked to the Diagnosis and Pharmacy entities, enabling the tracking of prescribed medications and their dispensing from the clinic's pharmacy. The Pharmacy entity represents the in-house pharmacy at the clinic. It contains attributes like pharmacyID, pharmacyName, pharmacyPhone, pharmacyHours, and pharmacyAddress. The Pharmacy entity is associated with the Prescription entity, facilitating the management of medication dispensing and inventory. The Billing entity handles the financial aspects of patient visits. It includes attributes such as billingID, totalCharged, itemizedCharges, billingDate, dueDate, and paymentStatus. The Billing entity is connected to the Visits and Payments entities, allowing for the generation of bills based on the services provided during each visit and tracking the payment status. The Payments entity records the payment information for each bill. It includes attributes like paymentID, paymentStatus, paymentAmount, paymentMethod, paymentDate, and billingID (foreign key referencing the Billing entity). The Payments entity is associated with the Billing entity, enabling the tracking of payment details and status for each bill.

As far as relationships go, the Patients entity has a one-to-many relationship with the Visits entity, as a patient can have multiple visits to the clinic. The Staff entity has a many-to-many relationship with the Visits entity, as multiple staff members can attend to a patient during a visit, and a staff member can attend to multiple visits. The Visits entity has a one-to-many relationship with the DiagnosisTests entity, as multiple diagnostic tests can be conducted during a single visit. The Equipment entity has a one-to-many relationship with the DiagnosisTests entity, as a piece of equipment can be used in multiple diagnostic tests. The Visits entity has a one-to-many relationship with the Diagnosis entity, as a visit can result in multiple diagnoses. The Diagnosis entity has a one-to-many relationship with the Treatment entity, as a diagnosis can lead to multiple treatments. The Diagnosis entity has a one-to-many relationship with the Prescription entity, as a diagnosis can result in multiple prescribed medications. The Pharmacy entity has a one-to-many relationship with the Prescription entity, as the clinic's pharmacy can dispense multiple prescribed medications. The Visits entity has a one-to-one relationship with the Billing entity, as each visit generates a corresponding bill. The Billing entity has a one-to-many relationship with the Payments entity, as a bill can have multiple payments associated with it.

image

Data Dictionary

Screenshot 2024-03-26 at 6 39 05 PM Screenshot 2024-03-26 at 6 39 27 PM Screenshot 2024-03-26 at 6 39 43 PM Screenshot 2024-03-26 at 6 40 02 PM Screenshot 2024-03-26 at 6 40 20 PM Screenshot 2024-03-26 at 6 40 36 PM Screenshot 2024-03-26 at 6 41 04 PM Screenshot 2024-03-26 at 6 41 17 PM Screenshot 2024-03-26 at 6 41 31 PM Screenshot 2024-03-26 at 6 41 42 PM Screenshot 2024-03-26 at 6 41 54 PM Screenshot 2024-03-26 at 6 42 08 PM

Queries

image
  1. List the patient's first and last name combined for patients whose total bill amount is greater than the average bill amount of the insurance company they belong to.

Justification: This query helps the urgent care manager identify patients with higher than average bills for their insurance company. It can be used to analyze billing patterns, negotiate rates with insurance providers, and identify potential billing issues. Screenshot 2024-03-26 at 6 28 48 PM

  1. List the medical staff's first name and specialty who treat patients that are female and don't use State Farm insurance.

Justification: This query helps the manager identify the medical staff and their specialties that cater to a specific demographic of patients. It can be used for resource allocation, staff training, and understanding patient preferences. Screenshot 2024-03-26 at 6 29 32 PM

  1. List the patient's visit time, medication name, duration, and pharmacy name for patients who have 2 or more appointments. Group by patientID.

Justification: This query helps the manager identify patients with multiple appointments and their associated medications and pharmacies. By grouping the results by patient instead of visit time, we can still monitor medication adherence, pharmacy partnerships, and patient follow-up for patients with frequent visits. This information can be used to optimize patient care, ensure medication compliance, and strengthen relationships with pharmacies. Screenshot 2024-03-26 at 6 32 12 PM

  1. Print out the patient's full name and the number of payments they have made that were greater than $5,000 dollars.

Justification: This query helps the manager identify patients who have made payments higher than five thousand dollars. It can be used to analyze payment patterns, identify potential billing errors, and recognize patients who may be struggling financially. Screenshot 2024-03-26 at 6 32 30 PM

  1. Write a query to list the number of patients each specialty has seen.

Justification: This query helps the manager assess the workload of each specialty group and identify any potential staffing issues. It can be used for performance evaluations, resource allocation, and staff training. Screenshot 2024-03-26 at 6 32 47 PM

  1. Write a query to list the name of the pharmacy, the pharmacy phone number, and count the number of patients each pharmacy is responsible for if the patient's prescription is Xanax. List the pharmacies in alphabetical order.

Justification: This query helps the manager identify pharmacies that dispense a specific medication and the number of patients they serve. It can be used to monitor medication usage, pharmacy partnerships, and patient care. Screenshot 2024-03-26 at 6 33 13 PM

  1. Find the full patient names and the reason for visit for patients who had a visit but were not prescribed anything. Order the patients by their age, youngest to oldest.

Justification: This query helps the manager identify patients who visited the urgent care but did not receive any prescriptions. It can be used to analyze patient care, identify potential missed diagnoses, and improve patient outcomes. Screenshot 2024-03-26 at 6 33 30 PM

  1. Write a query that identifies patients with unpaid or pending bills and their total bill amount.

Justification: This helps the manager track the payment status of patient bills and identify any outstanding balances. They can be used for financial reporting, collections, and patient communication. Screenshot 2024-03-26 at 6 33 42 PM

  1. Write a query that lists the most commonly diagnosed conditions and their frequencies from greate st to least.

Justification: This query helps the manager identify the most common conditions treated at the urgent care. It can be used for resource allocation, staff training, and patient education. Screenshot 2024-03-26 at 6 35 01 PM

  1. Write a query that identifies the staff members and how many prescriptions they have written. Include their job title and specialty.

Justification: This query helps the urgent care manager identify the staff members who are the most active in prescribing medications. It can be used to analyze prescribing patterns, identify potential over-prescribing, and ensure that staff members are practicing within their scope of practice. By including the job title and specialty, the manager can also assess if the prescribing patterns align with the staff member's role and expertise. Screenshot 2024-03-26 at 6 39 27 PM

Database Information

Name of the database: ns_Sp24_47114_Group6

Additional information: Each query listed above is marked in the database using stored procedures which can be called using the following format: CALL TP_Q1();

About

Group Project Submission for MIST4610 Project 1