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

XDRPTSX.m

Go to the documentation of this file.
  1. XDRPTSX ;SF-IRMFO/IHS/OHPRD/JCM;COMPARES THE SEX OF TWO PATIENTS; ;8/28/96 09:26 [ 04/02/2003 8:47 AM ]
  1. ;;7.3;TOOLKIT;**1001**;APR 1, 2003
  1. ;;7.3;TOOLKIT;**23**;Apr 25, 1995
  1. ;;
  1. START ;
  1. D INIT
  1. D COMPARE
  1. END D EOJ
  1. Q
  1. ;
  1. INIT ;
  1. D EOJ
  1. S XDRDSX=XDRCD(XDRFL,XDRCD,.02,"I"),XDRDSX2=XDRCD2(XDRFL,XDRCD2,.02,"I")
  1. S XDRDSX("MATCH")=$P(XDRDTEST(XDRDTO),U,6)
  1. S XDRDSX("NO MATCH")=$P(XDRDTEST(XDRDTO),U,7)
  1. Q
  1. ;
  1. COMPARE ;
  1. I XDRDSX']""!(XDRDSX2']"") G COMPAREX
  1. I XDRDSX=XDRDSX2 S XDRD("TEST SCORE")=XDRDSX("MATCH") G COMPAREX
  1. S XDRD("TEST SCORE")=XDRDSX("NO MATCH")
  1. COMPAREX Q
  1. ;
  1. EOJ ;
  1. K XDRDSX,XDRDSX2
  1. Q