Hi All:
I am trying to use 4 columns that pull data of various diagnosis codes. Before I had the limit to 4 different kinds of diagnosis codes. Now I need to show each column with information from only 1 diagnosis code per column. For instance I need diagnosis code "V08" for each column for the calendar year of 2007. If I do just one column at a time I get data. When I pull from all 4 at the same time. No data. How can I word this to show the data needed from each column?
TABLE FILE OI_CHARGES
PRINT
'MPI.MPI.DISPLAY_NM'
'OI_CHARGES.OI_CHARGES.BILLED_AMT'
'OI_CHARGES.OI_CHARGES.OPEN_AMT'
'MPI_CURRENT_ADDR.MPI_CURRENT_ADDR.ADDRESS_1'
'MPI_CURRENT_ADDR.MPI_CURRENT_ADDR.ADDRESS_2'
'MPI_CURRENT_ADDR.MPI_CURRENT_ADDR.CITY'
'MPI_CURRENT_ADDR.MPI_CURRENT_ADDR.STATE_CD'
'MPI_CURRENT_ADDR.MPI_CURRENT_ADDR.ZIP_CD'
'MPI_CURRENT_ADDR.MPI_CURRENT_ADDR.PHN_NBR'
'OI_CHARGES.OI_CHARGES.SERV_LOCATION'
'OI_CHARGES.OI_CHARGES.AGC_CD'
'OI_CHARGES.OI_CHARGES.PAT_MPI_NBR'
'OI_CHARGES.OI_CHARGES.PAT_NBR'
'OI_CHARGES.OI_CHARGES.DT_OF_SERVICE'
'MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.DIAGNOSIS_CODE'
'MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.DIAGNOSIS_DESC'
'MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.DIAG_CODE_2'
'MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.DIAG_CODE_3'
'MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.DIAG_CODE_4'
'MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.MISC_TEXT'
'MPI_INSURANCE.MPI_INSURANCE.CARRIER_NBR'
'ER_CARR_ASSIGN.ER_CARR_ASSIGN.CARRIER_ID_DESC'
WHERE MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.DIAGNOSIS_CODE EQ 'V08' AND
MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.DIAG_CODE_2 EQ 'V08' AND
MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.DIAG_CODE_3 EQ 'V08' AND
MPI_PATIENT_VISIT.MPI_PATIENT_VISIT.DIAG_CODE_4 EQ 'V08';
WHERE OI_CHARGES.OI_CHARGES.SERV_LOCATION EQ 'FC';
WHERE ( OI_CHARGES.OI_CHARGES.DT_OF_SERVICE GE 20070101 ) AND ( OI_CHARGES.OI_CHARGES.DT_OF_SERVICE LE 20071231 );
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
END
V. 762
Windows XP