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

BQIPLRFU.m

Go to the documentation of this file.
  1. BQIPLRFU ;GDIT/HS/ALA-Referrals Utility ; 06 Jan 2015 8:34 AM
  1. ;;2.5;ICARE MANAGEMENT SYSTEM;;May 24, 2016;Build 27
  1. ;
  1. ;
  1. REF(DATA,FAKE) ;EP -- BQI GET REFERRALS LIST
  1. NEW UID,II,BQILOC,LII,BI
  1. S UID=$S($G(ZTSK):"Z"_ZTSK,1:$J)
  1. S DATA=$NA(^TMP("BQIUTB2",UID))
  1. K @DATA
  1. S II=0
  1. NEW $ESTACK,$ETRAP S $ETRAP="D ERR^BQIUTB1 D UNWIND^%ZTER" ; SAC 2006 2.2.3.3.2
  1. ;
  1. D EN^BQIMSLST(.BQILOC,"D")
  1. S LII=$O(@BQILOC@(""),-1)
  1. F II=0:1:LII-1 S @DATA@(II)=@BQILOC@(II)
  1. D EN^BQIMSLST(.BQILOC,"RF")
  1. S LII=$O(@BQILOC@(""),-1)
  1. F BI=1:1:LII-1 S II=II+1,@DATA@(II)=@BQILOC@(BI)
  1. ;
  1. S II=II+1,@DATA@(II)=$C(31)
  1. K @BQILOC
  1. Q
  1. ;
  1. CON(DATA,FAKE) ;EP -- BQI GET CONSULTS LIST
  1. NEW UID,II,BQILOC,LII,BI,EDIT,BATCH
  1. S UID=$S($G(ZTSK):"Z"_ZTSK,1:$J)
  1. S DATA=$NA(^TMP("BQIUTB2",UID))
  1. K @DATA
  1. S II=0
  1. NEW $ESTACK,$ETRAP S $ETRAP="D ERR^BQIUTB1 D UNWIND^%ZTER" ; SAC 2006 2.2.3.3.2
  1. ;
  1. D EN^BQIMSLST(.BQILOC,"D")
  1. S LII=$O(@BQILOC@(""),-1)
  1. F II=0:1:LII-1 S @DATA@(II)=@BQILOC@(II)
  1. D EN^BQIMSLST(.BQILOC,"CN")
  1. S LII=$O(@BQILOC@(""),-1)
  1. F BI=1:1:LII-1 S II=II+1,@DATA@(II)=@BQILOC@(BI)
  1. ;
  1. S II=II+1,@DATA@(II)=$C(31)
  1. K @BQILOC
  1. Q