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

BPSOSO.m

Go to the documentation of this file.
  1. BPSOSO ;BHAM ISC/FCS/DRS/DLF - "O" is for Override NCPDP field values ;06/01/2004
  1. ;;1.0;E CLAIMS MGMT ENGINE;**1,5**;JUN 2004;Build 45
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. ; File 9002313.511 BPS NCPDP OVERRIDE
  1. ;
  1. ; IHS/SD/lwj 8/20/02 NCPDP 5.1 changes
  1. ; In 5.1 there is now some repeating fields/records. The DUR/PPS
  1. ; segment is a repeating segment (i.e. all the fields in this
  1. ; segment repeat.) Much like the values for the BPS NCPDP
  1. ; Overrides are stored in a separate file, and referenced in
  1. ; the prescription file, the DUR/PPS values will be stored in
  1. ; a separate file (BPS DUR/PPS) and simply referenced in the
  1. ; prescription file. For this reason, I'm adding the retrieval
  1. ; of the prescription DUR/PPS pointer in this routine to keep
  1. ; things consistent.
  1. ;
  1. Q
  1. ;
  1. OVERRIDE(IEN) ; main entry point
  1. ; IEN points to file 9002313.511
  1. ; Sometimes we have IEN; sometimes we don't
  1. ; called from pharmacy package
  1. ; called from somewhere in POS, too
  1. I $D(IEN) D
  1. . I '$D(^BPS(9002313.511,IEN)) D ; it must have been winnowed
  1. . . S IEN=$$NEW^BPSOSO2
  1. E D
  1. . I '$D(IEN) S IEN=$$NEW^BPSOSO2
  1. I 'IEN N RETVAL S RETVAL=$$IMPOSS^BPSOSUE("FM,P","TI","Failed to create Overrides record / or bad parameter in call",,"OVERRIDE",$T(+0)) Q ""
  1. D MENU^BPSOSO1(IEN)
  1. Q IEN
  1. OVERRIDR(RXI,RXR) ; alternative entry point - given RXI,RXR instead of IEN
  1. N IEN
  1. I $G(RXR) S IEN=$$GETIEN(RXI,RXR)
  1. E S IEN=$$GETIEN(RXI)
  1. S IEN=$$OVERRIDE(IEN)
  1. Q IEN
  1. GETIEN(RXI,RXR) ;EP - also called from claim construction
  1. Q ""