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

DPTDSX.m

Go to the documentation of this file.
DPTDSX ; IHS/TUCSON/JCM - COMPARES THE SEX OF TWO PATIENTS ;
 ;;1.0;PATIENT MERGE;;FEB 02, 1994
START ;
 D INIT
 D COMPARE
END D EOJ
 Q
 ;
INIT ;
 D EOJ
 S DPTDSX=$G(XDRCD(XDRFL,XDRCD,.02,"I")),DPTDSX2=$G(XDRCD2(XDRFL,XDRCD2,.02,"I"))
 S DPTDSX("MATCH")=$P(XDRDTEST(XDRDTO),U,6)
 S DPTDSX("NO MATCH")=$P(XDRDTEST(XDRDTO),U,7)
 Q
 ;
COMPARE ;
 I DPTDSX']""!(DPTDSX2']"") G COMPAREX
 I DPTDSX=DPTDSX2 S XDRD("TEST SCORE")=DPTDSX("MATCH") G COMPAREX
 S XDRD("TEST SCORE")=DPTDSX("NO MATCH")
COMPAREX Q
 ;
EOJ ;
 K DPTDSX,DPTDSX2
 Q