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

ATSERCHA.m

Go to the documentation of this file.
ATSERCHA ; TUCSON/DG;DISPLAY RESULT OF COMPARISON VALUES [ 10/25/91  3:20 PM ]
 ;;2.5;SEARCH TEMPLATE COMPARISON;;OCT 25, 1991
 ;
 D DISPLAY
 D START
 D EOJ
 Q
 ;
DISPLAY ;
 W:$D(IOF) @IOF
 I $D(IO)#2 U IO ; Use of USE command granted exemption by OMB
 E  U 0 ; Use of USE command granted exemption by OMB
 Q
 ;
START ;GET VALUES OUT OF ^UTILITY("ATSEARCH",$J,"MERGED",3
 S ATSECMPT=0 F L=0:0 S ATSECMPT=$O(^UTILITY("ATSEARCH",$J,"MERGED",3,ATSECMPT)) Q:ATSECMPT'=+ATSECMPT  D @$S(ATSEARCH("FILELINK")=ATSEARCH("PTRFILENUM"):"PTRFILE",1:"NOTPTRFL")
 I IO=IO(0) R !!,"Press return when ready to continue ... ",X:DTIME
 I IO'=IO(0) X ^%ZIS("C")
 Q
 ;
PTRFILE ;DISPLAYS .01 FIELD ONLY FROM POINTER FILE IF MERGED RESULTS
 ;LINKED TO POINTER FILE
 S DR=".01",DA=ATSECMPT,DIC=ATSEARCH("FILELINK") D EN^DIQ1
 I $D(^UTILITY("DIQ1",$J,ATSEARCH("FILELINK"),DA,.01)) W !,^(.01)
 E  W *7,!,"STORED ENTRY, DFN=",DA,", NOT FOUND IN THE ",$P(^DIC(ATSEARCH("FILELINK"),0),U)," FILE"
 K ^UTILITY("DIQ1",$J,ATSEARCH("FILELINK"),DA,.01)
 Q
 ;
NOTPTRFL ;DISPLAYS .01 FIELD AND COMMON FIELD VALUE FROM NOT
 ;POINTED TO FILE WITH MERGED RESULTS LINKED TO IT
 I ATSEARCH("FILELINK")=ATSEARCH(1,"SRCHFILENUM") S DR=".01;"_ATSEARCH(1,"FIELD")
 E  S DR=".01;"_ATSEARCH(2,"FIELD")
 S DIC=ATSEARCH("FILELINK"),DA=ATSECMPT D EN^DIQ1
 I $D(^UTILITY("DIQ1",$J,ATSEARCH("FILELINK"),DA,.01)) W !,^(.01) S ATSEVLU=$S($D(^($P(DR,";",2))):^($P(DR,";",2)),1:"") I ATSEVLU'=^UTILITY("DIQ1",$J,ATSEARCH("FILELINK"),DA,.01) W ?32,$S(ATSEVLU]"":ATSEVLU,1:"POINTER FIELD VALUE IS NULL")
 I '$D(^UTILITY("DIQ1",$J,ATSEARCH("FILELINK"),DA,.01)) W *7,!,"STORED ENTRY, DFN=",DA,", NOT FOUND IN THE ",$P(^DIC(ATSEARCH("FILELINK"),0),U)," FILE"
 K ^UTILITY("DIQ1",$J,ATSEARCH("FILELINK"),DA)
 Q
 ;
EOJ ;
 K ATSECMPT,ATSEVLU
 Q
 ;