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

BYIMNTEG.m

Go to the documentation of this file.
BYIMNTEG ;INTEGRITY CHECKER;
 ;;2.0;BYIM IMMUNIZATION DATA EXCHANGE;**8**;OCT 13, 2017;Build 310
 ;
START ;
 NEW BYTE,COUNT,RTN
 K ^UTILITY($J)
 F I=1:1 S X=$T(LIST+I) Q:X=""  S X=$P(X,";;",2),R=$P(X,"^",1),B=$P(X,"^",2),C=$P(X,"^",3),^UTILITY($J,R)=B_"^"_C
 F I=1:1:6 S X=$P($T(@("LINE"_I)),";;",2,99),@("XBINTEG("_I_")=X")
 X XBINTEG(1)
 Q
 ;
LINE1 ;;X XBINTEG(2),XBINTEG(6)
LINE2 ;;S RTN="" F  S RTN=$O(^UTILITY($J,RTN)) Q:RTN=""  W !,RTN ZL @RTN S (BYTE,COUNT)=0 S X=$T(+1),X=$P(X," [ ",1) X XBINTEG(4),XBINTEG(3),XBINTEG(5)
LINE3 ;;F I=2:1 S X=$T(+I) Q:X=""  X XBINTEG(4)
LINE4 ;;F J=1:1 S Y=$E(X,J) Q:Y=""  S BYTE=BYTE+1,COUNT=COUNT+$A(Y)
LINE5 ;;S B=$P(^(RTN),"^",1),C=$P(^(RTN),"^",2) I B'=BYTE!(C'=COUNT) W "  has been modified"
LINE6 ;;K XBINTEG,B,C,I,J,R,X,Y
 ;
LIST ;
 ;;BYIMD^2235^155945
 ;;BYIMIMM^13884^912059
 ;;BYIMIMM1^13276^840755
 ;;BYIMIMM2^12752^794065
 ;;BYIMIMM3^12584^784231
 ;;BYIMIMM4^13832^878165
 ;;BYIMIMM5^10778^709692
 ;;BYIMIMM6^12283^780926
 ;;BYIMMU2^7968^497399
 ;;BYIMMU21^9839^561593
 ;;BYIMNTEG^1133^70116
 ;;BYIMPORT^13129^833370
 ;;BYIMRT^13249^856999
 ;;BYIMSEG1^11961^771136
 ;;BYIMSEGS^13606^834494
 ;;BYIMXIS^1940^125005