source: WorldVistAEHR/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPZ07C.m@ 1396

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

initial load of WorldVistAEHR

File size: 1.3 KB
Line 
1DGPZ07C ;BAJ - HL7 Z07 CONSISTENCY CHECKER -- DRIVER ROUTINE ; 10/14/05 11:48am
2 ;;5.3;Registration;**653**;Aug 13,1993;Build 2
3 ;
4 ; This routine prompts the user for a patient name. Then, when found, calls the IVMZ07C support routine
5 ; to check for inconsistencies in the patient record which will prevent the building of a Z07 HL7 record.
6 ; Data from this routine will be available on the Inconsistent Data report.
7 ;
8 ; structure:
9 ; 1. Begin loop
10 ; 2. Select patient
11 ; 3. Call IVMZ07C support routine
12 ; 4. Notify user of Pass/Fail
13 ;
14 ; Must be called from entry point
15 Q
16 ;
17EN ; entry point.
18 ; Start loop, quit when no more patients to check
19 F I '$$SELECT() Q
20 ;
21SELECT() ; Select patient and call support routine
22 N DFN,DIC,Y,DGP,DGSD,PASS,SEL
23 S SEL=0
24 W !! S DIC=2,DIC(0)="AEQM",DIC("A")="Check consistency for which PATIENT: " D ^DIC
25 I Y<0 Q SEL
26 S DFN=+Y,SEL=1
27 W !,"Checking..."
28 S PASS=$$EN^IVMZ07C(DFN)
29 D NOTIFY(PASS)
30 ; we only need "CC" counter in batch mode so kill it here.
31 K ^TMP($J,"CC")
32 Q SEL
33 ;
34NOTIFY(PASS) ; Notify user of Pass/Fail
35 W !! ;write two blank lines
36 I PASS W "NO INCONSISTENCIES FOUND..." Q
37 W "INCONSISTENCIES FOUND..."
38 D ON^DGRPC Q:DGER
39 S DGVAR="DUZ^DFN",DGPGM="^DGPZ07P" D ZIS^DGUTQ G Q^DGPZ07P:POP U IO G ^DGPZ07P
40 Q
41 ;
Note: See TracBrowser for help on using the repository browser.