SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Medical Billing Database
Noelle Vaughn
Tables Created From Entity Sets:
Patient: pt_id, pt_name (C), birth_date, pt_address (C), phone_no (MV),
gender
Insurance: insurance_id, ins_name, address (C), phone_no
Doctor: doc_name (C), doc_id, NPI, address (C), phone_no
Diagnosis: dx_code, diag_desc
Procedure: px_code, proc_desc
Bill: bill_no, bill_date, due_date, bill_amount, bill_type
Payment: transaction_id, date_received, pmnt_type, bill_no,
payment_amount
Encounter: visit_date, pt_id
Pt_phone: pt_id, pt_phone
Tables Created From Relationship Sets:
Attends: doc_id, pt_id, visit_date
Is_made_during: dx_code, pt_id, visit_date
Is_performed_during: px_code, pt_id, visit_date
Generates: pt_id, bill_no, visit_date
Has: pt_id, insurance_id
Is_submitted_to: bill_no, insurance_id
Makes_a: insurance_id, transaction_id
QUERIES I CREATED TO TEST THE DATABASE
What accounts have unpaid balances?
(SELECT bill.bill_no, bill_amount - (SELECT SUM(payment_amount)
FROM payment WHERE payment.bill_no = bill.bill_no)
FROM bill WHERE bill_amount - (SELECT SUM(payment_amount)
FROM payment WHERE payment.bill_no = bill.bill_no) > 0)
UNION
(SELECT bill.bill_no, bill_amount FROM bill WHERE (SELECT COUNT(*)
FROM payment WHERE payment.bill_no = bill.bill_no) = 0);
Results
bill_no | ?column?
---------+----------
106 | 35.00
115 | 50.00
118 | 100.00
107 | 75.00
109 | 150.00
108 | 150.00
114 | 50.00
117 | 50.00
103 | 50.00
111 | 30.00
110 | 75.00
113 | 50.00
104 | 25.00
116 | 50.00
Which diagnosis codes have been billed most within the past
year?
SELECT is_made_during.dx_code, diag_desc
FROM is_made_during, diagnosis
WHERE is_made_during.dx_code = diagnosis.dx_code
GROUP BY is_made_during.dx_code, diagnosis.diag_desc
HAVING COUNT(*) =
(SELECT MAX(num) FROM
(SELECT COUNT(*) AS num FROM is_made_during GROUP BY
dx_code) AS mycount);
dx_code | diag_desc
---------+------------------------------
V70.0 | routine general medical exam
Which procedure codes were billed most within the past year?
SELECT is_performed_during.px_code, procedure.proc_desc
FROM is_performed_during, procedure
WHERE is_performed_during.px_code = procedure.px_code
GROUP BY is_performed_during.px_code,
procedure.proc_desc
HAVING COUNT(*) =
(SELECT MAX(num) FROM
(SELECT COUNT(*) AS num FROM is_performed_during GROUP
BY px_code) AS mycount);
Results
px_code | proc_desc
---------+-----------------------------------
G0463 | visit for assessment & management
What encounters took place on a certain date?
SELECT pt_id, visit_date
FROM encounter
WHERE visit_date = '2014-10-01';
Results:
pt_id | visit_date
-------+------------
6 | 2014-10-01
7 | 2014-10-01
Which insurance companies have made the most payments within
the past year?
SELECT makes_a.insurance_id, insurance.ins_name
FROM makes_a, insurance
WHERE makes_a.insurance_id = insurance.insurance_id
GROUP BY makes_a.insurance_id, insurance.ins_name
HAVING COUNT(*) =
(SELECT MAX(num) FROM
(SELECT COUNT(*) AS num FROM makes_a
GROUP BY insurance_id) AS mycount);
Results
insurance_id | ins_name
-------------- ----------
1 | Aetna
How many visits has a certain patient had within the past
year?
SELECT COUNT(visit_date)
FROM encounter
WHERE pt_id = '1';
Results
count
-------
3
Medical Billing Database

Weitere ähnliche Inhalte

Was ist angesagt?

Top 15 Use-Cases for Chatbots in Healthcare
Top 15 Use-Cases for Chatbots in Healthcare Top 15 Use-Cases for Chatbots in Healthcare
Top 15 Use-Cases for Chatbots in Healthcare Comm100
 
ppt on stock management in medical store using php
ppt on stock management in medical store using phpppt on stock management in medical store using php
ppt on stock management in medical store using phpsachin993
 
Clinic management system
Clinic management systemClinic management system
Clinic management systemMike Taylor
 
Smart Health Prediction Report
Smart Health Prediction ReportSmart Health Prediction Report
Smart Health Prediction ReportArhind Gautam
 
Artificial intelligence in Health Care
Artificial intelligence in Health CareArtificial intelligence in Health Care
Artificial intelligence in Health CareMuhammedIyas
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management SystemPranil Dukare
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management SystemSaurabh Tripathi
 
synopsis on stock management system in medical store in php
synopsis on stock management system in medical store in phpsynopsis on stock management system in medical store in php
synopsis on stock management system in medical store in phpsachin993
 
Hospital Management System.pptx
Hospital Management System.pptxHospital Management System.pptx
Hospital Management System.pptxLakshayPanchal
 
Apache Spark NLP for Healthcare: Lessons Learned Building Real-World Healthca...
Apache Spark NLP for Healthcare: Lessons Learned Building Real-World Healthca...Apache Spark NLP for Healthcare: Lessons Learned Building Real-World Healthca...
Apache Spark NLP for Healthcare: Lessons Learned Building Real-World Healthca...Databricks
 
Human computer interaction-web interface design and mobile eco system
Human computer interaction-web interface design and mobile eco systemHuman computer interaction-web interface design and mobile eco system
Human computer interaction-web interface design and mobile eco systemN.Jagadish Kumar
 
Hospital management system 1819095.pptx
Hospital management system 1819095.pptxHospital management system 1819095.pptx
Hospital management system 1819095.pptxRakshyaPariyar1
 
Hostpital management system(srs)
Hostpital management system(srs)Hostpital management system(srs)
Hostpital management system(srs)maamir farooq
 
Hospital management final report presentation
Hospital management final report presentationHospital management final report presentation
Hospital management final report presentationMd Abul Kalam Azad
 
come funzionano le casse automatiche dell'Ipercoop?
come funzionano le casse automatiche dell'Ipercoop?come funzionano le casse automatiche dell'Ipercoop?
come funzionano le casse automatiche dell'Ipercoop?Lorena Priolo
 
drug store mangement documentation
drug store mangement documentation drug store mangement documentation
drug store mangement documentation Andualem Atryhun
 
Hospital management synopsis
Hospital management synopsisHospital management synopsis
Hospital management synopsisYogeshDhamke2
 

Was ist angesagt? (20)

Top 15 Use-Cases for Chatbots in Healthcare
Top 15 Use-Cases for Chatbots in Healthcare Top 15 Use-Cases for Chatbots in Healthcare
Top 15 Use-Cases for Chatbots in Healthcare
 
ppt on stock management in medical store using php
ppt on stock management in medical store using phpppt on stock management in medical store using php
ppt on stock management in medical store using php
 
Clinic management system
Clinic management systemClinic management system
Clinic management system
 
Smart Health Prediction Report
Smart Health Prediction ReportSmart Health Prediction Report
Smart Health Prediction Report
 
Artificial intelligence in Health Care
Artificial intelligence in Health CareArtificial intelligence in Health Care
Artificial intelligence in Health Care
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
 
Hospital Management System
Hospital Management SystemHospital Management System
Hospital Management System
 
synopsis on stock management system in medical store in php
synopsis on stock management system in medical store in phpsynopsis on stock management system in medical store in php
synopsis on stock management system in medical store in php
 
Hospital Management System.pptx
Hospital Management System.pptxHospital Management System.pptx
Hospital Management System.pptx
 
Apache Spark NLP for Healthcare: Lessons Learned Building Real-World Healthca...
Apache Spark NLP for Healthcare: Lessons Learned Building Real-World Healthca...Apache Spark NLP for Healthcare: Lessons Learned Building Real-World Healthca...
Apache Spark NLP for Healthcare: Lessons Learned Building Real-World Healthca...
 
Problem statements
Problem statementsProblem statements
Problem statements
 
Human computer interaction-web interface design and mobile eco system
Human computer interaction-web interface design and mobile eco systemHuman computer interaction-web interface design and mobile eco system
Human computer interaction-web interface design and mobile eco system
 
Security & Privacy for Health Data
Security & Privacy for Health DataSecurity & Privacy for Health Data
Security & Privacy for Health Data
 
Hospital management system 1819095.pptx
Hospital management system 1819095.pptxHospital management system 1819095.pptx
Hospital management system 1819095.pptx
 
Hostpital management system(srs)
Hostpital management system(srs)Hostpital management system(srs)
Hostpital management system(srs)
 
Hospital management final report presentation
Hospital management final report presentationHospital management final report presentation
Hospital management final report presentation
 
come funzionano le casse automatiche dell'Ipercoop?
come funzionano le casse automatiche dell'Ipercoop?come funzionano le casse automatiche dell'Ipercoop?
come funzionano le casse automatiche dell'Ipercoop?
 
drug store mangement documentation
drug store mangement documentation drug store mangement documentation
drug store mangement documentation
 
Majd
MajdMajd
Majd
 
Hospital management synopsis
Hospital management synopsisHospital management synopsis
Hospital management synopsis
 

Andere mochten auch

Top 10 mailroom interview questions with answers
Top 10 mailroom interview questions with answersTop 10 mailroom interview questions with answers
Top 10 mailroom interview questions with answersandersonshaun106
 
Query Management System- overview
Query Management System- overviewQuery Management System- overview
Query Management System- overviewlogeshprabu
 
Psak 65 laporan keuangan konsolidasian 05032015
Psak 65 laporan keuangan konsolidasian 05032015Psak 65 laporan keuangan konsolidasian 05032015
Psak 65 laporan keuangan konsolidasian 05032015PPA FEUI
 
Your Bullet-proof, All-in-One Searchlight Web Presence Management (WPM) Start...
Your Bullet-proof, All-in-One Searchlight Web Presence Management (WPM) Start...Your Bullet-proof, All-in-One Searchlight Web Presence Management (WPM) Start...
Your Bullet-proof, All-in-One Searchlight Web Presence Management (WPM) Start...Conductor
 
Power Hour: 50 Actionable SEO Tips & Tricks -- Delucchi Plus, Conductor, R2in...
Power Hour: 50 Actionable SEO Tips & Tricks -- Delucchi Plus, Conductor, R2in...Power Hour: 50 Actionable SEO Tips & Tricks -- Delucchi Plus, Conductor, R2in...
Power Hour: 50 Actionable SEO Tips & Tricks -- Delucchi Plus, Conductor, R2in...Conductor
 
Power Hour: 50 Actionable SEO Tips & Tricks
Power Hour: 50 Actionable SEO Tips & TricksPower Hour: 50 Actionable SEO Tips & Tricks
Power Hour: 50 Actionable SEO Tips & TricksConductor
 
Testing SharePoint solutions overview
Testing SharePoint solutions overviewTesting SharePoint solutions overview
Testing SharePoint solutions overviewSpiffy
 
Cloud Migration, Application Modernization and Security for Partners
Cloud Migration, Application Modernization and Security for PartnersCloud Migration, Application Modernization and Security for Partners
Cloud Migration, Application Modernization and Security for PartnersAmazon Web Services
 
Sap modules overview and business processes
Sap modules overview and business processesSap modules overview and business processes
Sap modules overview and business processessrilu999
 
Customer ordering system
Customer ordering systemCustomer ordering system
Customer ordering systemSuriey Tafar
 
Credit insurance Solutions
Credit insurance SolutionsCredit insurance Solutions
Credit insurance SolutionsZayd Soobedar
 

Andere mochten auch (15)

Top 10 mailroom interview questions with answers
Top 10 mailroom interview questions with answersTop 10 mailroom interview questions with answers
Top 10 mailroom interview questions with answers
 
Query Management System- overview
Query Management System- overviewQuery Management System- overview
Query Management System- overview
 
Psak 65 laporan keuangan konsolidasian 05032015
Psak 65 laporan keuangan konsolidasian 05032015Psak 65 laporan keuangan konsolidasian 05032015
Psak 65 laporan keuangan konsolidasian 05032015
 
Sample of Minutes of meeting
Sample of Minutes of meetingSample of Minutes of meeting
Sample of Minutes of meeting
 
Your Bullet-proof, All-in-One Searchlight Web Presence Management (WPM) Start...
Your Bullet-proof, All-in-One Searchlight Web Presence Management (WPM) Start...Your Bullet-proof, All-in-One Searchlight Web Presence Management (WPM) Start...
Your Bullet-proof, All-in-One Searchlight Web Presence Management (WPM) Start...
 
M2M Strategies
M2M StrategiesM2M Strategies
M2M Strategies
 
Power Hour: 50 Actionable SEO Tips & Tricks -- Delucchi Plus, Conductor, R2in...
Power Hour: 50 Actionable SEO Tips & Tricks -- Delucchi Plus, Conductor, R2in...Power Hour: 50 Actionable SEO Tips & Tricks -- Delucchi Plus, Conductor, R2in...
Power Hour: 50 Actionable SEO Tips & Tricks -- Delucchi Plus, Conductor, R2in...
 
Power Hour: 50 Actionable SEO Tips & Tricks
Power Hour: 50 Actionable SEO Tips & TricksPower Hour: 50 Actionable SEO Tips & Tricks
Power Hour: 50 Actionable SEO Tips & Tricks
 
Testing SharePoint solutions overview
Testing SharePoint solutions overviewTesting SharePoint solutions overview
Testing SharePoint solutions overview
 
Cloud Migration, Application Modernization and Security for Partners
Cloud Migration, Application Modernization and Security for PartnersCloud Migration, Application Modernization and Security for Partners
Cloud Migration, Application Modernization and Security for Partners
 
Research proposal anemia
Research proposal anemiaResearch proposal anemia
Research proposal anemia
 
Sap modules overview and business processes
Sap modules overview and business processesSap modules overview and business processes
Sap modules overview and business processes
 
Customer ordering system
Customer ordering systemCustomer ordering system
Customer ordering system
 
Life Insurance Riders
Life Insurance RidersLife Insurance Riders
Life Insurance Riders
 
Credit insurance Solutions
Credit insurance SolutionsCredit insurance Solutions
Credit insurance Solutions
 

Medical Billing Database

  • 2.
  • 3. Tables Created From Entity Sets: Patient: pt_id, pt_name (C), birth_date, pt_address (C), phone_no (MV), gender Insurance: insurance_id, ins_name, address (C), phone_no Doctor: doc_name (C), doc_id, NPI, address (C), phone_no Diagnosis: dx_code, diag_desc Procedure: px_code, proc_desc Bill: bill_no, bill_date, due_date, bill_amount, bill_type Payment: transaction_id, date_received, pmnt_type, bill_no, payment_amount Encounter: visit_date, pt_id Pt_phone: pt_id, pt_phone
  • 4. Tables Created From Relationship Sets: Attends: doc_id, pt_id, visit_date Is_made_during: dx_code, pt_id, visit_date Is_performed_during: px_code, pt_id, visit_date Generates: pt_id, bill_no, visit_date Has: pt_id, insurance_id Is_submitted_to: bill_no, insurance_id Makes_a: insurance_id, transaction_id
  • 5. QUERIES I CREATED TO TEST THE DATABASE What accounts have unpaid balances? (SELECT bill.bill_no, bill_amount - (SELECT SUM(payment_amount) FROM payment WHERE payment.bill_no = bill.bill_no) FROM bill WHERE bill_amount - (SELECT SUM(payment_amount) FROM payment WHERE payment.bill_no = bill.bill_no) > 0) UNION (SELECT bill.bill_no, bill_amount FROM bill WHERE (SELECT COUNT(*) FROM payment WHERE payment.bill_no = bill.bill_no) = 0); Results bill_no | ?column? ---------+---------- 106 | 35.00 115 | 50.00 118 | 100.00 107 | 75.00 109 | 150.00 108 | 150.00 114 | 50.00 117 | 50.00 103 | 50.00 111 | 30.00 110 | 75.00 113 | 50.00 104 | 25.00 116 | 50.00
  • 6. Which diagnosis codes have been billed most within the past year? SELECT is_made_during.dx_code, diag_desc FROM is_made_during, diagnosis WHERE is_made_during.dx_code = diagnosis.dx_code GROUP BY is_made_during.dx_code, diagnosis.diag_desc HAVING COUNT(*) = (SELECT MAX(num) FROM (SELECT COUNT(*) AS num FROM is_made_during GROUP BY dx_code) AS mycount); dx_code | diag_desc ---------+------------------------------ V70.0 | routine general medical exam
  • 7. Which procedure codes were billed most within the past year? SELECT is_performed_during.px_code, procedure.proc_desc FROM is_performed_during, procedure WHERE is_performed_during.px_code = procedure.px_code GROUP BY is_performed_during.px_code, procedure.proc_desc HAVING COUNT(*) = (SELECT MAX(num) FROM (SELECT COUNT(*) AS num FROM is_performed_during GROUP BY px_code) AS mycount); Results px_code | proc_desc ---------+----------------------------------- G0463 | visit for assessment & management
  • 8. What encounters took place on a certain date? SELECT pt_id, visit_date FROM encounter WHERE visit_date = '2014-10-01'; Results: pt_id | visit_date -------+------------ 6 | 2014-10-01 7 | 2014-10-01
  • 9. Which insurance companies have made the most payments within the past year? SELECT makes_a.insurance_id, insurance.ins_name FROM makes_a, insurance WHERE makes_a.insurance_id = insurance.insurance_id GROUP BY makes_a.insurance_id, insurance.ins_name HAVING COUNT(*) = (SELECT MAX(num) FROM (SELECT COUNT(*) AS num FROM makes_a GROUP BY insurance_id) AS mycount); Results insurance_id | ins_name -------------- ---------- 1 | Aetna
  • 10. How many visits has a certain patient had within the past year? SELECT COUNT(visit_date) FROM encounter WHERE pt_id = '1'; Results count ------- 3

Hinweis der Redaktion

  1. THE ENTITY RELATIONSHIP DIAGRAM
  2. The reporting of diagnosis codes is important for statistical healthcare reporting agencies that gather information about diagnoses is demographical areas. This is how they are able to report where epidemics are happening, such as when there was an avian flu outbreak in the midwest several years back.
  3. The reporting of procedure codes is important to facilities such as hospitals. They may want to see what types of procedures are being performed, such as nose jobs for example, in that case they may want to bring in more plastic surgeons.
  4. Insurance Company query, providers may want to know which insurance companies are making payments, or not because they may want to reconsider their contract with these insurance companies or may want to contact Provider Relations to discuss why their claims are not being paid.
  5. Example of a Medical Billing Database on the front-end from a users point of view.