Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want a sql query that will give me an output with :the payer code, payer name, payer category code, example inpatient visit, inpatient count,

I want a sql query that will give me an output with :the payer code, payer name, payer category code, example inpatient visit, inpatient count, facility name, and facility code. NOTE: You can get the inpatientcount
FROM general_adt
WHERE admit_date > NOW()- INTERVAL '30 Days'
AND patient_class IN ('I','INPATIENT','Inpatient','IN')
GROUP BY 1,2;
Here is some information about my tables; The payer table has the following: code, name, payer_category_code. The visit table has the following: visit_id, account_no, admit_status, loc_poc. The visit_payer table has the following: plan_id, visit_id. The configuration_option table has the following: config_key. The facility table has the following: code, name. The location table has the following: facility_code, code, name. The general_adt table has the following: account_no, patient_id, visit_no. Please let me know if you have any questions!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Real Time Database And Information Systems Research Advances

Authors: Azer Bestavros ,Victor Fay-Wolfe

1st Edition

1461377803, 978-1461377801

More Books

Students also viewed these Databases questions

Question

What are the attributes of an auditor?

Answered: 1 week ago

Question

i need 3 8 7 .

Answered: 1 week ago