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

BQIPLUSR.m

Go to the documentation of this file.
BQIPLUSR ;PRXM/HC/ALA-User Preferences ; 19 Oct 2005  6:29 PM
 ;;2.7;ICARE MANAGEMENT SYSTEM;;Dec 19, 2017;Build 23
 ;
 Q
 ;
OWNR(USR) ;EP -- Check owner
 ;
 ;Description
 ;  Check if this user who has signed into iCare is already
 ;  in ICARE USER File #90505
 ;Input
 ;  DUZ - User internal entry number signed into iCare
 ;Output
 ;   1 - if user exists or if user added okay
 ;   0 - if there was an error adding user
 ;
 I $G(^BQICARE(USR,0))'="" Q 1
 I $D(^BQICARE(USR)),$G(^BQICARE(USR,0))="" D  Q 1
 . NEW DIE,DA,DR
 . S DIE="^BQICARE(",DA=USR,DR=".01///^S X=USR" D ^DIE
 ;
CR ;  Create new entry
 NEW IENARRY,BQIUSR,ERROR
 S IENARRY(1)=USR
 S BQIUSR(90505,"+1,",.01)=USR
 D UPDATE^DIE("","BQIUSR","IENARRY","ERROR")
 I $D(ERROR) Q 0
 Q 1
 ;
USPF(DATA,FAKE) ;EP -- BQI GET USER PREFS
 ;
 ;Description
 ;  Get the user's preferences
 ;Input
 ;  FAKE - extra 'blank' parameter required by BMXNET async 'feature'
 ;Output
 ;  DATA  - name of global (passed by reference) in which the data
 ;          is stored
 ;Expects
 ;  DUZ - the internal entry number of the person signed on
 ;
 I '$$OWNR(DUZ) S BMXSEC="Unable to access user record" Q
 ;
 NEW UID,II,COD,NAME,PLIEN,PLNM,PLID,PTSRCH,X,PTVIEW,RCVIEW,CMVIEW,MUVIEW,CMFIL,CMTIP,FLFIL,FLTIP
 NEW CHLOC,FLLOC,TLLOC,IPCVIEW,PNVIEW,PNSIZE,IPTTIP,IPTFIL,IPVTIP,IPVFIL,MPQTIP,MPQFIL,PQTIP,PQFIL
 NEW MPTIP,MPFIL,MHTIP,MHFIL,MHQTIP,MHQFIL,MPATIP,MPAFIL,MQATIP,MQAFIL,OWNR,TRFIL,TRTIP,I,TRFND,PTFND
 NEW IPATIP,IPAFIL,IFATIP,IFAFIL,ITATIP,ITAFIL
 ;
 S UID=$S($G(ZTSK):"Z"_ZTSK,1:$J)
 S DATA=$NA(^TMP("BQIPLUSR",UID))
 K @DATA
 ;
 S II=0
 S @DATA@(II)="T00001DEFAULT_VIEW^I00010OWNER^I00099PANEL_IEN^I00010PANEL_ID^T00001PAT_SEARCH^"
 S @DATA@(II)=@DATA@(II)_"I00010PATIENT_VIEW^T00001RECORD_VIEW^T00001CMET_VIEW^T00001EVENT_TIP^"
 S @DATA@(II)=@DATA@(II)_"T00001EVENT_FILTER^T00001TRACKED_TIP^T00001TRACKED_FILTER^T00001TRACKED_FINDING^"
 S @DATA@(II)=@DATA@(II)_"T00001FOLLOWUP_TIP^T00001FOLLOWUP_FILTER^T00001MU_VIEW^"
 S @DATA@(II)=@DATA@(II)_"T00045CHRT_LOC^T00045FOL_LOC^T00045TEL_LOC^T00002IPC_VIEW^"
 S @DATA@(II)=@DATA@(II)_"T00010PANEL_VIEW^T00001PANEL_SIZE^T00001IPC_PT_TIP^T00001IPC_PT_FILTER^"
 S @DATA@(II)=@DATA@(II)_"T00001IPC_PV_TIP^T00001IPC_PV_FILTER^T00001MPQTIP^T00001MPQFIL^"
 S @DATA@(II)=@DATA@(II)_"T00001PANEL_EVENT_TIP^T00001PANEL_EVENT_FILTER^T00001PANEL_TRACKED_FINDING^"
 S @DATA@(II)=@DATA@(II)_"T00001MPTIP^T00001MPFIL^T00001MHTIP^T00001MPATIP^T00001MPAFIL^"
 S @DATA@(II)=@DATA@(II)_"T00001MHFIL^T00001MHQTIP^T00001MHQFIL^T00001MQATIP^T00001MQAFIL^"
 S @DATA@(II)=@DATA@(II)_"T00001IPC_PA_TIP^T00001IPC_PA_FILTER^T00001IPC_FA_TIP^T00001IPC_FA_FILTER^"
 S @DATA@(II)=@DATA@(II)_"T00001IPC_TA_TIP^T00001IPC_TA_FILTER"_$C(30)
 ;
 NEW $ESTACK,$ETRAP S $ETRAP="D ERR^BQIPLUSR D UNWIND^%ZTER" ; SAC 2006 2.2.3.3.2
 ;
 S PLIEN="",PLID=""
 S COD=$$GET1^DIQ(90505,DUZ_",",.02,"E")
 S NAME=$$GET1^DIQ(90505,DUZ_",",.02,"E")
 S PLNM=$$GET1^DIQ(90505,DUZ_",",.03,"E")
 S OWNR=$$GET1^DIQ(90505,DUZ_",",.04,"I")
 S PTSRCH=$$GET1^DIQ(90505,DUZ_",",.05,"I")
 S PTVIEW=$$GET1^DIQ(90505,DUZ_",",.07,"I") S:PTVIEW="" PTVIEW=$O(^BQI(90506.4,"B","Cover Sheet",""))
 S RCVIEW=$$GET1^DIQ(90505,DUZ_",",.08,"I") S:RCVIEW="" RCVIEW="N"
 S CMVIEW=$$GET1^DIQ(90505,DUZ_",",.09,"I")
 S CMTIP=$$GET1^DIQ(90505,DUZ_",",.1,"I") S:CMTIP="" CMTIP="S"
 S CMFIL=$$GET1^DIQ(90505,DUZ_",",.11,"I") S:CMFIL="" CMFIL="S"
 S TRTIP=$$GET1^DIQ(90505,DUZ_",",.12,"I") S:TRTIP="" TRTIP="S"
 S TRFIL=$$GET1^DIQ(90505,DUZ_",",.13,"I") S:TRFIL="" TRFIL="S"
 S TRFND=$$GET1^DIQ(90505,DUZ_",",2.21,"I") S:TRFND="" TRFND="I"
 S FLTIP=$$GET1^DIQ(90505,DUZ_",",.14,"I") S:FLTIP="" FLTIP="S"
 S FLFIL=$$GET1^DIQ(90505,DUZ_",",.15,"I") S:FLFIL="" FLFIL="S"
 S MUVIEW=$$GET1^DIQ(90505,DUZ_",",14.01,"I") S:MUVIEW="" MUVIEW="E"
 S CHLOC=$$GET1^DIQ(90505,DUZ_",",.18,"I")
 S FLLOC=$$GET1^DIQ(90505,DUZ_",",.19,"I")
 S TLLOC=$$GET1^DIQ(90505,DUZ_",",.2,"I")
 S IPCVIEW=$$GET1^DIQ(90505,DUZ_",",.21,"I") S:IPCVIEW="" IPCVIEW="PD"
 S PNVIEW=$$GET1^DIQ(90505,DUZ_",",2.05,"I")
 S PNSIZE=$$GET1^DIQ(90505,DUZ_",",2.06,"I") S:PNSIZE="" PNSIZE="N"
 S IPTTIP=$$GET1^DIQ(90505,DUZ_",",2.07,"I") S:IPTTIP="" IPTTIP="S"
 S IPTFIL=$$GET1^DIQ(90505,DUZ_",",2.08,"I") S:IPTFIL="" IPTFIL="S"
 S IPVTIP=$$GET1^DIQ(90505,DUZ_",",2.09,"I") S:IPVTIP="" IPVTIP="S"
 S IPVFIL=$$GET1^DIQ(90505,DUZ_",",2.1,"I") S:IPVFIL="" IPVFIL="S"
 S IPATIP=$$GET1^DIQ(90505,DUZ_",",2.23,"I") S:IPATIP="" IPATIP="S"
 S IPAFIL=$$GET1^DIQ(90505,DUZ_",",2.24,"I") S:IPAFIL="" IPAFIL="S"
 S IFATIP=$$GET1^DIQ(90505,DUZ_",",2.25,"I") S:IFATIP="" IFATIP="S"
 S IFAFIL=$$GET1^DIQ(90505,DUZ_",",2.26,"I") S:IFAFIL="" IFAFIL="S"
 S ITATIP=$$GET1^DIQ(90505,DUZ_",",2.27,"I") S:ITATIP="" ITATIP="S"
 S ITAFIL=$$GET1^DIQ(90505,DUZ_",",2.28,"I") S:ITAFIL="" ITAFIL="S"
 S MPQTIP=$$GET1^DIQ(90505,DUZ_",",2.11,"I") S:MPQTIP="" MPQTIP="S"
 S MPQFIL=$$GET1^DIQ(90505,DUZ_",",2.12,"I") S:MPQFIL="" MPQFIL="S"
 S PQTIP=$$GET1^DIQ(90505,DUZ_",",2.13,"I") S:PQTIP="" PQTIP="S"
 S PQFIL=$$GET1^DIQ(90505,DUZ_",",2.14,"I") S:PQFIL="" PQFIL="S"
 S PTFND=$$GET1^DIQ(90505,DUZ_",",2.22,"I") S:PTFND="" PTFND="I"
 S MPTIP=$$GET1^DIQ(90505,DUZ_",",2.01,"I") S:MPTIP="" MPTIP="S"
 S MPFIL=$$GET1^DIQ(90505,DUZ_",",2.15,"I") S:MPFIL="" MPFIL="S"
 S MHTIP=$$GET1^DIQ(90505,DUZ_",",2.02,"I") S:MHTIP="" MHTIP="S"
 S MHFIL=$$GET1^DIQ(90505,DUZ_",",2.16,"I") S:MHFIL="" MHFIL="S"
 S MHQTIP=$$GET1^DIQ(90505,DUZ_",",2.04,"I") S:MHQTIP="" MHQTIP="S"
 S MHQFIL=$$GET1^DIQ(90505,DUZ_",",2.17,"I") S:MHQFIL="" MHQFIL="S"
 S MQATIP=$$GET1^DIQ(90505,DUZ_",",2.03,"I") S:MQATIP="" MQATIP="S"
 S MQAFIL=$$GET1^DIQ(90505,DUZ_",",2.18,"I") S:MQAFIL="" MQAFIL="S"
 S MPATIP=$$GET1^DIQ(90505,DUZ_",",2.2,"I") S:MPATIP="" MPATIP="S"
 S MPAFIL=$$GET1^DIQ(90505,DUZ_",",2.19,"I") S:MPAFIL="" MPAFIL="S"
 I PTSRCH="" S PTSRCH="A"
 I OWNR="" S OWNR=DUZ
 ;
 I PLNM'="" D
 . NEW DIC,DA
 . S DA(1)=OWNR,DIC="^BQICARE("_DA(1)_",1,",X=PLNM,DIC(0)="Z"
 . D ^DIC
 . S PLIEN=+Y
 . S PLID=$$PLID^BQIUG1(OWNR,PLIEN)
 ;
 S II=II+1,@DATA@(II)=COD_U_OWNR_U_PLIEN_U_PLID_U_PTSRCH_U
 S @DATA@(II)=@DATA@(II)_PTVIEW_U_RCVIEW_U_CMVIEW_U_CMTIP_U
 S @DATA@(II)=@DATA@(II)_CMFIL_U_TRTIP_U_TRFIL_U_TRFND_U
 S @DATA@(II)=@DATA@(II)_FLTIP_U_FLFIL_U_MUVIEW_U
 S @DATA@(II)=@DATA@(II)_CHLOC_U_FLLOC_U_TLLOC_U_IPCVIEW_U
 S @DATA@(II)=@DATA@(II)_PNVIEW_U_PNSIZE_U_IPTTIP_U_IPTFIL_U
 S @DATA@(II)=@DATA@(II)_IPVTIP_U_IPVFIL_U_MPQTIP_U_MPQFIL_U
 S @DATA@(II)=@DATA@(II)_PQTIP_U_PQFIL_U_PTFND_U
 S @DATA@(II)=@DATA@(II)_MPTIP_U_MPFIL_U_MHTIP_U_MPATIP_U_MPAFIL_U
 S @DATA@(II)=@DATA@(II)_MHFIL_U_MHQTIP_U_MHQFIL_U_MQATIP_U_MQAFIL_U
 S @DATA@(II)=@DATA@(II)_IPATIP_U_IPAFIL_U_IFATIP_U_IFAFIL_U_ITATIP_U_ITAFIL_$C(30)
 ;
DONE ;
 S II=II+1,@DATA@(II)=$C(31)
 Q
 ;
ERR ;
 D ^%ZTER
 NEW Y,ERRDTM
 S Y=$$NOW^XLFDT() X ^DD("DD") S ERRDTM=Y
 S BMXSEC="Recording that an error occurred at "_ERRDTM
 I $D(II),$D(DATA) S II=II+1,@DATA@(II)=$C(31)
 Q
 ;
SVUP(DATA,TYPE,PARMS) ;EP -- BQI SET USER PREFS
 ;
 ; Input
 ;  TYPE   - the type of save (S-Startup View, P-Patient View, CE-CMET Events, PQ-CMET Panel Event Tips/Filters
 ;           CT-CMET Tracked, CF-CMET Followups,PN-Panel View,IP-Pat Det Tips/Filters,IR-Prv Det Tips/Filters,
 ;           MP-MU Peformance, MQ-MU Clinical Quality)
 ;  VIEW   - the default view code
 ;  OWNR   - the owner
 ;  PLIEN  - the panel ien (if default view is specified panel)
 ;  CMVIEW - the default CMET view (if default view is CMET or Split View CMET)
 ;  SEARCH - Patient search criteria
 ;  PTVIEW - Patient View opens with this tab
 ;  RCVIEW - View is opened maximized or minimized
 ;  CMTIP  - Queued Tip show or hide
 ;  CMFIL  - Queued Filter show or hide
 ;  TRTIP  - Tracked Tip show or hide
 ;  TRFIL  - Tracked Filter show or hide
 ;  TRFND  - Tracked Finding icon or text
 ;  FLTIP  - Followup Tip show or hide
 ;  FLFIL  - Followup Filter show or hide
 ;  MUVIEW - the default MU view (if default view is MU or Split MU)
 ;  CHLOC  - DEFAULT CHART REV LOCATION
 ;  FLLOC  - DEFAULT FOLLOWUP LTR LOCATION
 ;  TLLOC  - DEFAULT TELEPHONE LOCATION
 ;  IPCVIEW - DEFAULT IPC View (if default view is IPC or SIPC)
 ;  PNVIEW - Panel View opens with this tab
 ;  PNSIZE - Panel Size is opened maximized or minimized
 ;  IPTTIP - IPC Patient Detail Tip show or hide
 ;  IPTFIL - IPC Patient Detail Filter show or hide
 ;  IPVTIP - IPC Provider Detail Tip show or hide
 ;  IPVFIL - IPC Provider Detail Filter show or hide
 ;  MPQTIP - MU PCQ Tips show or hide
 ;  MPQFIL - MU PCQ Filters show or hide
 ;  PQTIP - Panel Event Tip show or hide
 ;  PQFIL - Panel Event Filter show or hide
 ;  PTFND - Panel Tracked Finding icon or text
 ;  MPTIP - MU Provider Tip show or hide
 ;  MPFIL - MU Provider Filter show or hide
 ;  MHTIP - MU Hospital Tip show or hide
 ;  MHFIL - MU Hospital Filter show or hide
 ;  MHQTIP - MU HCQ Tip show or hide
 ;  MHQFIL - MU HCQ Filter show or hide
 ;  MQATIP - MU CQ by division Tip show or hide
 ;  MQAFIL - MU CQ by division Filter show or hide
 ;  MPATIP - MU Perf by division Tip show or hide
 ;  MPAFIL - MU Perf by division Filter show or hide
 ;
 ;Output
 ;  DATA  - name of global (passed by reference) in which the data
 ;          is stored
 ;Assumes DUZ the user signed onto iCare
 ;
 NEW VIEW,OWNR,PLIEN,CMVIEW,SEARCH,PTVIEW,RCVIEW,CMTIP,CMFIL,TRTIP,TRFIL,FLTIP,FLFIL,MUVIEW,CHLOC
 NEW FLLOC,TLLOC,IPCVIEW,PNVIEW,PNSIZE,IPTTIP,IPTFIL,IPVTIP,IPVFIL,MPTIP,MPFIL,MHTIP,MHFIL,MHQTIP,MHQFIL
 NEW UID,II,X,BJ,MPQTIP,MPQFIL,PQTIP,PQFIL,MPATIP,MPAFIL,MQATIP,MQAFIL,TRFND,PTFND
 ;
 S UID=$S($G(ZTSK):"Z"_ZTSK,1:$J)
 S DATA=$NA(^TMP("BQIPLUSR",UID))
 K @DATA
 ;
 I '$$OWNR(DUZ) S BMXSEC="There is a problem with your entry." Q
 ;
 S II=0
 S @DATA@(II)="I00010RESULT"_$C(30)
 ;
 NEW $ESTACK,$ETRAP S $ETRAP="D ERR^BQIPLUSR D UNWIND^%ZTER" ; SAC 2006 2.2.3.3.2
 ;
 S VIEW=$G(VIEW,""),OWNR=$G(OWNR,""),PLIEN=$G(PLIEN,""),CMVIEW=$G(CMVIEW,""),SEARCH=$G(SEARCH,"")
 S PTVIEW=$G(PTVIEW,""),RCVIEW=$G(RCVIEW,""),CMTIP=$G(CMTIP,""),CMFIL=$G(CMFIL,""),TRTIP=$G(TRTIP,"")
 S TRFIL=$G(TRFIL,""),FLTIP=$G(FLTIP,""),FLFIL=$G(FLFIL),MUVIEW=$G(MUVIEW),CHLOC=$G(CHLOC,""),FLLOC=$G(FLLOC,"")
 S TLLOC=$G(TLLOC,""),IPCVIEW=$G(IPCVIEW,""),PNVIEW=$G(PNVIEW,""),PNSIZE=$G(PNSIZE,""),IPTTIP=$G(IPTTIP,"")
 S IPTFIL=$G(IPTFIL,""),IPVTIP=$G(IPVTIP,""),IPVFIL=$G(IPVFIL,""),TYPE=$G(TYPE,""),PARMS=$G(PARMS,"")
 S MPQTIP=$G(MPQTIP,""),MPQFIL=$G(MPQFIL,""),PQTIP=$G(PQTIP,""),PQFIL=$G(PQFIL,""),TRFND=$G(TRFND,"")
 S MPTIP=$G(MPTIP,""),MPFIL=$G(MPFIL,""),MHTIP=$G(MHTIP,""),MHFIL=$G(MHFIL,""),MHQTIP=$G(MHQTIP,"")
 S MHQFIL=$G(MHQFIL,""),MPATIP=$G(MPATIP,""),MPAFIL=$G(MPAFIL,""),MQATIP=$G(MQATIP,""),MQAFIL=$G(MQAFIL,"")
 S PTFND=$G(PTFND,"")
 ;
 ;Re-Assemble PARMS list string
 I PARMS="" D
 . N LIST,BN
 . S LIST="",BN=""
 . F  S BN=$O(PARMS(BN)) Q:BN=""  S LIST=LIST_PARMS(BN)
 . K PARMS
 . S PARMS=LIST
 . K LIST
 ;
 ;Define variables from PARMS string
 F BJ=1:1:$L(PARMS,$C(28)) D  Q:$G(BMXSEC)'=""
 .N PDATA,NAME,VALUE,BP,BV
 .S PDATA=$P(PARMS,$C(28),BJ) Q:PDATA=""
 .S NAME=$P(PDATA,"=",1) Q:NAME=""
 .S VALUE=$P(PDATA,"=",2,99) Q:VALUE=""
 .F BP=1:1:$L(VALUE,$C(29)) S BV=$P(VALUE,$C(29),BP),@NAME=$G(@NAME)_$S(BP=1:"",1:$C(29))_BV
 ;
 S:PTVIEW="" PTVIEW=$O(^BQI(90506.4,"B","Cover Sheet",""))
 S:RCVIEW="" RCVIEW="N"
 ;
 ;Convert Default View back to internal
 I VIEW]"" D
 . N X,Y,DIC
 . S X=VIEW,DIC="^BQI(90506.7," D ^DIC
 . I +Y>0 S VIEW=+Y
 ;
 ;Save Startup View information
 I TYPE="S" D
 . S BQIUPD(90505,DUZ_",",.02)=VIEW
 . S BQIUPD(90505,DUZ_",",.05)=SEARCH
 . S BQIUPD(90505,DUZ_",",14.01)=MUVIEW
 . ;
 . ;Save default panel information
 . I $G(PLIEN)'="" D
 .. NEW DA,IENS
 .. S DA(1)=OWNR,DA=PLIEN,IENS=$$IENS^DILF(.DA)
 .. S BQIUPD(90505,DUZ_",",.03)=$$GET1^DIQ(90505.01,IENS,.01,"E")
 .. S BQIUPD(90505,DUZ_",",.04)=OWNR
 . ;
 . ;Save the Default CMET view
 . S:CMVIEW]"" BQIUPD(90505,DUZ_",",.09)=CMVIEW
 . ;
 . ;Save the Default IPC view
 . S:IPCVIEW]"" BQIUPD(90505,DUZ_",",.21)=IPCVIEW
 ;
 ;Save Patient View information
 I TYPE="P" D
 . S BQIUPD(90505,DUZ_",",.07)=PTVIEW
 . S BQIUPD(90505,DUZ_",",.08)=RCVIEW
 . S BQIUPD(90505,DUZ_",",.18)=CHLOC
 . S BQIUPD(90505,DUZ_",",.19)=FLLOC
 . S BQIUPD(90505,DUZ_",",.2)=TLLOC
 ;
 ;Save Panel View information
 I TYPE="PN" D
 . S BQIUPD(90505,DUZ_",",2.05)=PNVIEW
 . S BQIUPD(90505,DUZ_",",2.06)=PNSIZE
 ;
 ;Save CMET Events information
 I TYPE="CE" D
 . S BQIUPD(90505,DUZ_",",.1)=CMTIP
 . S BQIUPD(90505,DUZ_",",.11)=CMFIL
 ;
 ;Save CMET Tracked Events information
 I TYPE="CT" D
 . S BQIUPD(90505,DUZ_",",.12)=TRTIP
 . S BQIUPD(90505,DUZ_",",.13)=TRFIL
 . S BQIUPD(90505,DUZ_",",2.21)=TRFND
 ;
 ;Save CMET Followup Events information
 I TYPE="CF" D
 . S BQIUPD(90505,DUZ_",",.14)=FLTIP
 . S BQIUPD(90505,DUZ_",",.15)=FLFIL
 ;
 ;Save IPC Patient Detail Tips/Filters
 I TYPE="IP" D
 . S BQIUPD(90505,DUZ_",",2.07)=IPTTIP
 . S BQIUPD(90505,DUZ_",",2.08)=IPTFIL
 ;
 ;Save IPC Provider Detail Tips/Filters
 I TYPE="IR" D
 . S BQIUPD(90505,DUZ_",",2.09)=IPVTIP
 . S BQIUPD(90505,DUZ_",",2.1)=IPVFIL
 ;
 ;Save IPC Provider Aggregate Tips/Filters
 I TYPE="PA" D
 . S BQIUPD(90505,DUZ_",",2.23)=IPATIP
 . S BQIUPD(90505,DUZ_",",2.24)=IPAFIL
 ;
 ;Save IPC Facility Aggregate Tips/Filters
 I TYPE="FA" D
 . S BQIUPD(90505,DUZ_",",2.25)=IFATIP
 . S BQIUPD(90505,DUZ_",",2.26)=IFAFIL
 ;
 ;Save IPC Team Aggregate Tips/Filters
 I TYPE="TA" D
 . S BQIUPD(90505,DUZ_",",2.27)=ITATIP
 . S BQIUPD(90505,DUZ_",",2.28)=ITAFIL
 ;
 ;Save MU Prov Tips/Filters
 I TYPE="MP" D
 . S BQIUPD(90505,DUZ_",",2.01)=MPTIP
 . S BQIUPD(90505,DUZ_",",2.15)=MPFIL
 ;
 ;Save MU Hosp Tips/Filters
 I TYPE="MH" D
 . S BQIUPD(90505,DUZ_",",2.02)=MHTIP
 . S BQIUPD(90505,DUZ_",",2.16)=MHFIL
 ;
 ;Save MU HCQ Tips/Filters
 I TYPE="MHQ" D
 . S BQIUPD(90505,DUZ_",",2.04)=MHQTIP
 . S BQIUPD(90505,DUZ_",",2.17)=MHQFIL
 ;
 ;Save MU PCQ Tips/Filters
 I TYPE="MPQ" D
 . S BQIUPD(90505,DUZ_",",2.11)=MPQTIP
 . S BQIUPD(90505,DUZ_",",2.12)=MPQFIL
 ;
 ;Save MU Pref by Division Tips/Filters
 I TYPE="MPD" D
 . S BQIUPD(90505,DUZ_",",2.2)=MPATIP
 . S BQIUPD(90505,DUZ_",",2.19)=MPAFIL
 ;
 ;Save MU CQ by Division Tips/Filters
 I TYPE="MCD" D
 . S BQIUPD(90505,DUZ_",",2.03)=MQATIP
 . S BQIUPD(90505,DUZ_",",2.18)=MQAFIL
 ;
 ;Save CMET Panel Event Tips/Filters
 I TYPE="PQ" D
 . S BQIUPD(90505,DUZ_",",2.13)=PQTIP
 . S BQIUPD(90505,DUZ_",",2.14)=PQFIL
 ;
 ; Save CMET Panel Tracked Events
 I TYPE="PT" D
 . S BQIUPD(90505,DUZ_",",2.22)=PTFND
 ;
 K ERROR
 D FILE^DIE("","BQIUPD","ERROR")
 K BQIUPD
 S II=II+1
 I '$D(ERROR) S @DATA@(II)="1"_$C(30)
 I $D(ERROR) S @DATA@(II)="-1"_$C(30)
 S II=II+1,@DATA@(II)=$C(31)
 Q