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

AQACQRI2.m

Go to the documentation of this file.
AQACQRI2 ;IHS/ASU/RPL;QUARTERLY REPORT PRINTOUTS FOR IHS QA INPATIENT REGISTER-PART 3 ; [ 11/22/87  6:00 PM ] ; 11/7/89  9:31 AM
 ;;IHS QA/UR Version 2.04;11/7/89
R11 ;
 S DHD="[AQACILINJHDR]"
 S DIC="^AQACIHS(",FLDS="[AQACILOSINJ]",L=0,BY="'DISCHARGE DATE,'(CODE>799&(CODE<996)),@(+ICD-9CM)",FR=AQASD_",,",TO=AQAFD_",,"
 D PRT^AQACQRI
 Q
R12 ;
 S DHD="[AQACILSRGHDR]"
 S DIC="^AQACIHS(",FLDS="[AQACILOSSRG]",L=0,BY="'DISCHARGE DATE,SERVICE=""SURGERY"",@(+ICD-9CM)",FR=AQASD_",,",TO=AQAFD_",,"
 D PRT^AQACQRI
 Q
R13 ;
 S DHD="[AQACILPEDHDR]"
 S DIC="^AQACIHS(",FLDS="[AQACILOSPED]",L=0,BY="'DISCHARGE DATE,SERVICE=""PEDIATRICS"",@(+ICD-9CM)",FR=AQASD_",,",TO=AQAFD_",,"
 D PRT^AQACQRI
 Q
R14 ;
 S DHD="[AQACILPSYHDR]"
 S DIC="^AQACIHS(",FLDS="[AQACILOSPED]",L=0,BY="'DISCHARGE DATE,SERVICE=""PSYCHIATRY"",@(+ICD-9CM)",FR=AQASD_",,",TO=AQAFD_",,"
 D PRT^AQACQRI
 Q
R15 ;
 S DHD="[AQACIINJHDR]"
 S DIC="^AQACIHS(",FLDS="[AQACIINJANALYSIS]",L=0
 S BY="'DISCHARGE DATE,(CODE>799&(CODE<996)),+NAME:NAME:SEX;""SEX: "";C1;S2,+AGE RANGE:QA AGE RANGE:RANGE;""AGE RANGE: "";S;C5,DISCHARGE STATUS;""DISCHARGE STATUS: "";S;C10,"" "";"" """,FR=AQASD_",,,,,",TO=AQAFD_",,,,,"
 D PRT^AQACQRI
 Q
R16 ;
 S DHD="[AQACIMSHDR]"
 S DIC="^AQACIHS(",FLDS="[AQACIMATSTAT]",L=0,BY="'DISCHARGE DATE,(CODE>629&(CODE<677)),+AGE RANGE2:QA AGE RANGE:RANGE;""AGE RANGE: "";S,ICD-9CM,"" "";"" """,FR=AQASD_",,,,",TO=AQAFD_",,,,"
 D PRT^AQACQRI
 Q
R17 ;
 S DHD="[AQACINBHDR]"
 S DIC="^AQACIHS(",FLDS="[AQACINBSTAT]",L=0,BY="'DISCHARGE DATE,SERVICE=""OB"",NBN ICD-9'=""""",FR=AQASD_",,",TO=AQAFD_",,"
 D PRT^AQACQRI
 Q