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

ORY176.m

Go to the documentation of this file.
  1. ORY176 ; slc/CLA - Pre and Post-init for patch OR*3*176 ; Mar 19, 2003@11:02:31
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**176**;Dec 17, 1997
  1. ;
  1. PRE ;initiate pre-init processes
  1. N FDA,ERR
  1. S FDA(9.4,"?+1,",.01)="HERBAL/OTC/NON-VA MEDS"
  1. S FDA(9.4,"?+1,",1)="PSH"
  1. S FDA(9.4,"?+1,",2)="Non-VA Medications"
  1. D UPDATE^DIE("","FDA","","ERR")
  1. I $D(ERR) D BMES^XPDUTL("Error creating HERBAL/OTC/OUTSIDE MEDS Package entry.")
  1. Q
  1. ;
  1. POST ;initiate post-init processes
  1. ;update Pharmacy Display Group:
  1. N FDA,ERR
  1. S FDA(100.98,"?1,",.01)="PHARMACY"
  1. S FDA(100.981,"?+2,?1,",.01)="NON-VA MEDICATIONS"
  1. D UPDATE^DIE("E","FDA","","ERR")
  1. I $D(ERR) D BMES^XPDUTL("Error adding OUTSIDE MEDICATIONS to Pharmacy Display Group.")
  1. ;
  1. D BMES^XPDUTL("Updating OE/RR Orderable Item file with Outside Meds...")
  1. S XPDIDTOT=0 D UPDATE^XPDID(0) ; reset status bar
  1. S XPDIDTOT=$P(^PS(50.7,0),"^",4) ; Pharmacy Orderable Item file
  1. ;
  1. ;call PDM to send Master File Updates to CPRS
  1. N OI,PSSCROSS,PSSTEST
  1. S OI=0,PSSCROSS=1
  1. F S OI=$O(^PS(50.7,OI)) Q:'OI D
  1. . I '(OI#100) D UPDATE^XPDID(OI) ; update status bar
  1. . I '$P(^PS(50.7,OI,0),"^",10) Q
  1. . S PSSTEST=OI D EN1^PSSPOIDT
  1. ;
  1. Q