Question: 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 generaladt
WHERE admitdate NOW INTERVAL Days'
AND patientclass IN I'INPATIENT','Inpatient',IN
GROUP BY ;
Here is some information about my tables; The payer table has the following: code, name, payercategorycode. The visit table has the following: visitid accountno admitstatus, locpoc. The visitpayer table has the following: planid visitid The configurationoption table has the following: configkey. The facility table has the following: code, name. The location table has the following: facilitycode, code, name. The generaladt table has the following: accountno patientid visitno Please let me know if you have any questions!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
