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

QAMPINQ5.m

Go to the documentation of this file.
QAMPINQ5 ;HISC/DAD-INQUIRE: AUDIT FILE ;2/17/93  07:23
 ;;1.0;Clinical Monitoring System;;09/13/1993
 F  K DIC S DIC="^QA(743.1,",DIC(0)="AEMNQ",DIC("A")="Select PATIENT: " W ! D ^DIC Q:Y'>0  S QAMD0=+Y D LOOP
 K DIC,QAMD0,Y,QAMAUDT,L,BY,FR,TO,FLDS,DHD,%Y,B,DFN,DGA1DGT,DIJ,DP,P
 Q
LOOP ;
 S QAMAUDT=$S($D(^QA(743.1,QAMD0,"AUDIT"))#2:+^("AUDIT"),1:0)
 I $S(QAMAUDT'>0:1,$D(^QA(740.5,QAMAUDT,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)=QAMAUDT,FLDS=".02;""PATIENT"",1,.01;S1;C5,.03;C33,.02;C47,.04;C5;W70",DHD="CLINICAL MONITORING SYSTEM AUDIT TRAIL"
 W ! D EN1^DIP
 Q