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

BPMPTTR.m

Go to the documentation of this file.
BPMPTTR ; IHS/TUCSON/JCM - IHS COMPARE TRIBE OF MEMBERSHIPS ;
 ;;1.0;IHS PATIENT MERGE;;MAR 01, 2010
 ;IHS/OIT/LJF 07/13/2006 took original ^DPTDZTR routine and renamespaced it
START ;
 D INIT
 D COMPARE
END D EOJ
 Q
 ;
INIT ;
 D EOJ
 S BPMTR=$G(XDRCD(9000001,XDRCD,1108,"I")),BPMTR2=$G(XDRCD2(9000001,XDRCD2,1108,"I"))
 S BPMTR("MATCH")=$P(XDRDTEST(XDRDTO),U,6)
 S BPMTR("NO MATCH")=$P(XDRDTEST(XDRDTO),U,7)
 Q
 ;
COMPARE ;
 I BPMTR']""!(BPMTR2']"") G COMPAREX
 I BPMTR=BPMTR2 S XDRD("TEST SCORE")=BPMTR("MATCH") G COMPAREX
 S XDRD("TEST SCORE")=BPMTR("NO MATCH")
COMPAREX Q
 ;
EOJ ;
 K BPMTR,BPMTR2
 Q