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

PSUV11.m

Go to the documentation of this file.
  1. PSUV11 ;BIR/DAM - IV AMIS Summary Message I;04 MAR 2004
  1. ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005
  1. ;
  1. ;No DBIA's required
  1. ;
  1. EN ;Entry point for MailMan message
  1. ;Called from PSUIV0
  1. ;
  1. D SITE
  1. D EN^PSUV12
  1. D MAIL
  1. Q
  1. ;
  1. SITE ;Create the IV AMIS summary mailman message
  1. ;
  1. ;
  1. K LVP,PB,TPN,CH,SYR ;KILL ARRAYS
  1. ;
  1. ;PSUDIV is the division number
  1. ;PSUDIVNM is the division name
  1. ;
  1. S PSUDIV=0
  1. F S PSUDIV=$O(^XTMP(PSUIVSUB,"RECORDS",PSUDIV)) Q:PSUDIV="" D
  1. .D GETDIV^PSUV3
  1. .D LVP
  1. .D IVP
  1. .D TPN
  1. .D CHEM
  1. .D SYR
  1. Q
  1. ;
  1. LVP ;Set contents of LVP ^XTMP global into local array
  1. ;
  1. M LVP(PSUDIV)=^XTMP(PSUIVSUB,"LVP",PSUDIV) ;Data array
  1. ;
  1. ;
  1. Q
  1. ;
  1. IVP ;Set contents of IVPB ^XTMP global into local array
  1. ;
  1. M PB(PSUDIV)=^XTMP(PSUIVSUB,"PB",PSUDIV) ;Data array
  1. ;
  1. Q
  1. ;
  1. TPN ;Set contents of TPN ^XTMP global into local array
  1. ;
  1. M TPN(PSUDIV)=^XTMP(PSUIVSUB,"TPN",PSUDIV)
  1. ;
  1. Q
  1. ;
  1. CHEM ;Set contents of CHEMO ^XTMP global into local array
  1. ;
  1. M CH(PSUDIV)=^XTMP(PSUIVSUB,"CH",PSUDIV)
  1. ;
  1. Q
  1. ;
  1. SYR ;Set contents of SYR ^XTMP global into local array
  1. ;
  1. M SYR(PSUDIV)=^XTMP(PSUIVSUB,"SYR",PSUDIV)
  1. ;
  1. Q
  1. ;
  1. MAIL ;Send AMIS summary mailman message
  1. ;
  1. ;Do not send message if option selection includes 1,2,3,4,6
  1. I $D(^XTMP("PSU_"_PSUJOB,"CBAMIS")) D Q
  1. .M ^XTMP("PSU_"_PSUJOB,"IVCOMBO")=AMIS
  1. .S ^XTMP("PSU_"_PSUJOB,"IVCOMBO",1)=""
  1. ;
  1. S PSUDIV=PSUSNDR D GETDIV^PSUV3
  1. S XMSUB="V. 4.0 PBMIV "_PSUMON_" "_PSUSNDR_" "_PSUDIVNM
  1. S XMTEXT="AMIS("
  1. M ^XTMP("PSU_"_PSUJOB,"IVAMIS")=AMIS
  1. S XMCHAN=1
  1. M XMY=PSUXMYS2
  1. D ^XMD
  1. ;
  1. Q