Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: AQACQR1

AQACQR1.m

Go to the documentation of this file.
AQACQR1 ;IHS/ASU/RPL;QUARTERLY REPORT PRINTOUTS FOR CHS INPATIENT REGISTER-PART 2; [ 11/07/87  4:50 PM ] ; 11/7/89  9:16 AM
 ;;CHS QA/UR Version 2.04;11/7/89
R2 ;
 S DHD="[AQACCGMHDR]"
 S DIC="^AQACHSAD(",FLDS="[AQACCLASSGM]",L=0,BY="'DISCHARGE DATE,SERVICE=""GEN MED"",+(CODE:QA GMS CLASS:RANGE);""ICD-9-CM CLASSIFICATION: "";S,"" "";"" """,FR=AQASD_",,,",TO=AQAFD_",,,"
 D PRT^AQACQR
 Q
R3 ;
 S DHD="[AQACCGYNHDR]"
 S DIC="^AQACHSAD(",FLDS="[AQACCLASSGYN]",L=0,BY="'DISCHARGE DATE,'(CODE=174!((CODE>178&(CODE<185)))!((CODE>609&(CODE<630)))),+CODE:QA GYN CLASS:RANGE;""ICD-9-CM CLASSIFICATION: "";S,"" "";"" """,FR=AQASD_",,,",TO=AQAFD_",,,"
 D PRT^AQACQR
 Q
R4 ;
 S DHD="[AQACCINJHDR]"
 S DIC="^AQACHSAD(",FLDS="[AQACCLASSINJ]",L=0,BY="'DISCHARGE DATE,CODE>799&(CODE<996),+CODE:QA INJ CLASS:RANGE;""ICD-9-CM CLASSIFICATION: "";S,"" "";"" """,FR=AQASD_",,,",TO=AQAFD_",,,"
 D PRT^AQACQR
 Q
R5 ;
 S DHD="[AQACCSRGHDR]"
 S DIC="^AQACHSAD(",FLDS="[AQACCLASSSRG]",L=0,BY="'DISCHARGE DATE,SERVICE=""SURGERY"",+CODE:QA GMS CLASS:RANGE;""ICD-9-CM CLASSIFICATION: "";S,"" "";"" """,FR=AQASD_",,,",TO=AQAFD_",,,"
 D PRT^AQACQR
 Q
R6 ;
 S DHD="[AQACCPEDHDR]"
 S DIC="^AQACHSAD(",FLDS="[AQACCLASSPED]",L=0,BY="'DISCHARGE DATE,SERVICE=""PEDIATRICS"",+CODE:QA GMS CLASS:RANGE;""ICD-9-CM CLASSIFICATION: "";S,"" "";"" """,FR=AQASD_",,,",TO=AQAFD_",,,"
 D PRT^AQACQR
 Q
R7 ;
 S DHD="[AQACCPSYHDR]"
 S DIC="^AQACHSAD(",FLDS="[AQACCLASSPSY]",L=0,BY="'DISCHARGE DATE,SERVICE=""PSYCHIATRY"",+CODE:QA GMS CLASS:RANGE;""ICD-9-CM CLASSIFICATION: "";S,"" "";"" """,FR=AQASD_",,,",TO=AQAFD_",,,"
 D PRT^AQACQR
 Q
R8 ;
 S DHD="[AQACLALLHDR]"
 S DIC="^AQACHSAD(",FLDS="[AQACLOSALL]",L=0,BY="'DISCHARGE DATE,+CONTRACT FACILITY;C1;S,"" "";"" "",@(+ICD-9CM)",FR=AQASD_",,,",TO=AQAFD_",,,"
 D PRT^AQACQR
 Q
R9 ;
 S DHD="[AQACLGMHDR]"
 S DIC="^AQACHSAD(",FLDS="[AQACLOSGM]",L=0,BY="'DISCHARGE DATE,SERVICE=""GEN MED"",+CONTRACT FACILITY;C1;S,"" "";"" "",@(+ICD-9CM)",FR=AQASD_",,,,",TO=AQAFD_",,,,"
 D PRT^AQACQR
 Q
R10 ;
 S DHD="[AQACLGYNHDR]"
 S DIC="^AQACHSAD(",FLDS="[AQACLOSGYN]",L=0,BY="'DISCHARGE DATE,'(CODE=174!((CODE>178&(CODE<185)))!((CODE>609&(CODE<630)))),+CONTRACT FACILITY;S;C1,"" "";"" "",@(+ICD-9CM)",FR=AQASD_",,,,",TO=AQAFD_",,,,"
 D PRT^AQACQR
 Q