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

BQIPLMF.m

Go to the documentation of this file.
  1. BQIPLMF ;PRXM/HC/DB-BQI Manual Patients Exist by Panel ; 23 Aug 2006 3:52 PM
  1. ;;2.1;ICARE MANAGEMENT SYSTEM;;Feb 07, 2011
  1. ;
  1. Q
  1. ;
  1. EN(DATA,OWNR,PLIEN) ; EP -- BQI MANUAL PATS EXIST BY PANEL
  1. ;
  1. ;Description
  1. ; Does panel have manually added or removed patients?
  1. ;
  1. ;Input
  1. ; OWNR - owner of the panel
  1. ; PLIEN - panel internal entry number
  1. ;Output
  1. ; DATA - name of global (passed by reference) in which the data
  1. ; is stored: 0=no manuals; 1=manual(s) included
  1. ;
  1. NEW UID,II,DFN,X,STAT,MAN
  1. S UID=$S($G(ZTSK):"Z"_ZTSK,1:$J)
  1. S DATA=$NA(^TMP("BQIPLMF",UID))
  1. K @DATA
  1. ;
  1. S II=0,MAN=0
  1. NEW $ESTACK,$ETRAP S $ETRAP="D ERR^BQIPLMF D UNWIND^%ZTER" ; SAC 2006 2.2.3.3.2
  1. ;
  1. S DFN=0
  1. F S DFN=$O(^BQICARE(OWNR,1,PLIEN,40,DFN)) Q:'DFN D Q:MAN
  1. . NEW DA,IENS
  1. . S DA(2)=OWNR,DA(1)=PLIEN,DA=DFN,IENS=$$IENS^DILF(.DA)
  1. . S STAT=$$GET1^DIQ(90505.04,IENS,.02,"I"),MAN=STAT]""
  1. ;
  1. DONE ;
  1. S II=II+1,@DATA@(II)="I00001RESULT"_$C(30)
  1. S II=II+1,@DATA@(II)=MAN_$C(30)
  1. S II=II+1,@DATA@(II)=$C(31)
  1. Q
  1. ;
  1. ERR ;
  1. D ^%ZTER
  1. NEW Y,ERRDTM
  1. S Y=$$NOW^XLFDT() X ^DD("DD") S ERRDTM=Y
  1. S BMXSEC="Recording that an error occurred at "_ERRDTM
  1. I $D(II),$D(DATA) S II=II+1,@DATA@(II)=$C(31)
  1. Q