QAOSPAUD ;HISC/DAD-OCCURRENCE SCREEN AUDIT TRAIL DISPLAY ;10/19/92 14:58
;;3.0;Occurrence Screen;;09/14/1993
ASKPAT ;
K DIC S DIC="^QA(741,",DIC(0)="AEMNQ",DIC("A")="Select PATIENT: " W ! D ^DIC K DIC G:Y'>0 EXIT S QAOSD0=+Y
D LOOP G ASKPAT
EXIT ;
K DIC,QAOSD0,Y,QAOSAUDT,QAOSWHAT,L,BY,FR,TO,FLDS,DHD
Q
LOOP ;
D ENDISP^QAOUTL0
S QAOSAUDT=+$G(^QA(741,QAOSD0,"AUDIT"))
I $S(QAOSAUDT'>0:1,$D(^QA(740.5,QAOSAUDT,0))[0:1,1:0) W *7,!!?5,"*** NO AUDIT TRAIL EXISTS FOR THIS RECORD ***",!,*7 Q
S L=0,DIC="^QA(740.5,",BY="@NUMBER",(FR,TO)=QAOSAUDT,FLDS=".02;""PATIENT"",1,.01;S1;C5,.03;C33,.02;C47,.04;C5;W70",DHD="OCCURRENCE SCREEN AUDIT TRAIL"
D EN1^DIP
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HQAOSPAUD 676 printed Oct 16, 2024@18:22:14 Page 2
QAOSPAUD ;HISC/DAD-OCCURRENCE SCREEN AUDIT TRAIL DISPLAY ;10/19/92 14:58
+1 ;;3.0;Occurrence Screen;;09/14/1993
ASKPAT ;
+1 KILL DIC
SET DIC="^QA(741,"
SET DIC(0)="AEMNQ"
SET DIC("A")="Select PATIENT: "
WRITE !
DO ^DIC
KILL DIC
if Y'>0
GOTO EXIT
SET QAOSD0=+Y
+2 DO LOOP
GOTO ASKPAT
EXIT ;
+1 KILL DIC,QAOSD0,Y,QAOSAUDT,QAOSWHAT,L,BY,FR,TO,FLDS,DHD
+2 QUIT
LOOP ;
+1 DO ENDISP^QAOUTL0
+2 SET QAOSAUDT=+$GET(^QA(741,QAOSD0,"AUDIT"))
+3 IF $SELECT(QAOSAUDT'>0:1,$DATA(^QA(740.5,QAOSAUDT,0))[0:1,1:0)
WRITE *7,!!?5,"*** NO AUDIT TRAIL EXISTS FOR THIS RECORD ***",!,*7
QUIT
+4 SET L=0
SET DIC="^QA(740.5,"
SET BY="@NUMBER"
SET (FR,TO)=QAOSAUDT
SET FLDS=".02;""PATIENT"",1,.01;S1;C5,.03;C33,.02;C47,.04;C5;W70"
SET DHD="OCCURRENCE SCREEN AUDIT TRAIL"
+5 DO EN1^DIP
+6 QUIT