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

AGSSRV.m

Go to the documentation of this file.
  1. AGSSRV ; IHS/ASDS/EFG - REPORT WRITER #2 ;
  1. ;;7.1;PATIENT REGISTRATION;;AUG 25,2005
  1. ;
  1. ;report SSNs verified
  1. K AGSSDT
  1. Q:'$D(AGSSP("V")) ;this report not indicated
  1. ;crossreferences used
  1. LOAD ;EP - load crossreference into ^AGSTEMP
  1. ;gather dfns from "AS" cross reference(s)
  1. K ^AGSTEMP(AGSS("JOBID"),"RV")
  1. S AGSDFN=0,AGSSC("V")=0 F S AGSDFN=$O(^AUPNPAT("AS",1,AGSDFN)) Q:'AGSDFN Q:$G(DUOUT) I $D(^DPT(AGSDFN)) S AGSSC("V")=AGSSC("V")+1 I AGSSP("V")="C" S ^AGSTEMP(AGSS("JOBID"),"RV",$P(^DPT(AGSDFN,0),U),AGSDFN)=""
  1. S ^AGSTEMP(AGSS("JOBID"),"RV")=AGSSC("V")
  1. Q
  1. PRINT ;EP -
  1. Q:'$D(AGSSP("V"))
  1. I '$D(AGSSC("V")) S AGSSC("V")=$G(^AGSTEMP(AGSS("JOBID"),"RV"))
  1. S AGSLVC="V",AGSSPG=1,AGSCREC="",AGSGLO="RV"
  1. S AGSSHDR="SSNs VERIFIED " D AGSSHDR^AGSSPRT
  1. W !!,"The number of ",AGSSHDR," is ",$G(^AGSSTEMP(AGSSITE,"TOT","RV")),!
  1. Q:(AGSSP("V")'="C")!(AGSSC("V")=0)
  1. D AGSSHD^AGSSPRT
  1. D ^AGSSPRT
  1. Q