source: FOIAVistA/trunk/r/CLINICAL_MONITORING_SYSTEM-QAM/QAMPINQ5.m@ 1608

Last change on this file since 1608 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 647 bytes
Line 
1QAMPINQ5 ;HISC/DAD-INQUIRE: AUDIT FILE ;2/17/93 07:23
2 ;;1.0;Clinical Monitoring System;;09/13/1993
3 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
4 K DIC,QAMD0,Y,QAMAUDT,L,BY,FR,TO,FLDS,DHD,%Y,B,DFN,DGA1DGT,DIJ,DP,P
5 Q
6LOOP ;
7 S QAMAUDT=$S($D(^QA(743.1,QAMD0,"AUDIT"))#2:+^("AUDIT"),1:0)
8 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
9 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"
10 W ! D EN1^DIP
11 Q
Note: See TracBrowser for help on using the repository browser.