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

PSUPRE.m

Go to the documentation of this file.
  1. PSUPRE ;BIR/PDW - PBM PRE-INIT ;25 AUG 1998
  1. ;;3.0;PHARMACY BENEFITS MANAGMENT;;Oct 15, 1998
  1. EN ;EP CHANGE MENU OPTION NAMES
  1. ; Menu Items
  1. ; "PSU DPPM MANUAL" to be "PSU PBM MANUAL"
  1. ; "PSU DPPM AUTO" to be "PSU PBM AUTO"
  1. ;
  1. K DIC
  1. S X="PSU DPPM MANUAL",DIC=19,DIC(0)="XM" D ^DIC
  1. I +Y>0 D
  1. . S Z="PSU PBM MANUAL"
  1. . S DIE=DIC,DR=".01///^S X=Z",DA=+Y D ^DIE
  1. K DIC
  1. S X="PSU DPPM AUTO",DIC=19,DIC(0)="XM" D ^DIC
  1. I +Y>0 D
  1. . S Z="PSU PBM AUTO"
  1. . S DIE=DIC,DR=".01///^S X=Z",DA=+Y D ^DIE
  1. ;
  1. ; Mail Group
  1. ; "PSU DPPM" to be "PSU PBM"
  1. ;
  1. K DIC
  1. S X="PSU DPPM",DIC=3.8,DIC(0)="XM" D ^DIC
  1. I +Y>0 D
  1. . S Z="PSU PBM"
  1. . S DIE=DIC,DR=".01///^S X=Z",DA=+Y D ^DIE
  1. ;
  1. PACKAGE ;EP update fields in the package file
  1. K DIC
  1. S DIC=9.4,DIC(0)="M",X="PSU" D ^DIC
  1. S DA=+Y
  1. Q:Y'>0
  1. K ^DIC(9.4,+Y,1)
  1. K Z,X F I=1:1 S Z=$T(DESC+I) Q:Z[";;END" D
  1. . S X=$P(Z,";;",2),X(I,0)=Z
  1. S ^DIC(9.4,DA,1,0)="^^20^20^2980916^^^^"
  1. M ^DIC(9.4,DA,1)=X
  1. K DIE S DIE="^DIC(9.4,"
  1. S DEV="HOLLOWAY/WESLEY/BIRMINGHAM",NAME="PHARMACY BENEFITS MANAGEMENT"
  1. S DR="10///^S X=DEV;.01///^S X=NAME;2///^S X=NAME" D ^DIE
  1. ; update synonyms
  1. S Y=DA
  1. K DIC,DA
  1. S DA(1)=Y
  1. S DIC("P")=$P(^DD(9.4,15007,0),"^",2)
  1. S DIC="^DIC(9.4,DA(1),15007,"
  1. S DIC(0)="XL"
  1. S X="PBM" D ^DIC
  1. S X="D&PPM" D ^DIC
  1. Q
  1. DESC ; $T reference for package description
  1. ;;Pharmacy Benefits Management (PBM) software extracts statistics from
  1. ;;the following files on a monthly basis:
  1. ;;
  1. ;;File Name File Number
  1. ;;---------------------------------------------------------
  1. ;;Pharmacy Patient IV Subfile......................55.01
  1. ;;Pharmacy Patient UD Subfile......................55.06
  1. ;;AR/WS STOCK Stats................................58.5
  1. ;;Prescription.....................................52
  1. ;;Procurement......................................442, 58.811, 58.81
  1. ;;Controlled Substances............................58.81
  1. ;;Laboratory.......................................60, 63
  1. ;;
  1. ;;This data is electronically exported via MailMan to the National
  1. ;;PBM Section. These messages are then passed through a translation
  1. ;;process to convert all local drug names to a common drug name and all
  1. ;;local dispensing units to a common dispensing unit. After translation
  1. ;;the information will be added to a national database. The PBM
  1. ;;Section will be able to provide information on facility, regional, and
  1. ;;national product use on a monthly, quarterly, and annual intervals.
  1. ;;END