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

BPSOSQC.m

Go to the documentation of this file.
  1. BPSOSQC ;BHAM ISC/FCS/DRS/FLS - ECME background, Part 1 ;06/01/2004
  1. ;;1.0;E CLAIMS MGMT ENGINE;**1,3,5**;JUN 2004;Build 45
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;External reference private DBIA 4303
  1. Q
  1. ;
  1. ; Function to return division linked to the prescription or refill
  1. ; Input
  1. ; RX - Prescription IEN
  1. ; RXR - Refill
  1. ; Returns
  1. ; BPSDIV - Outpatient Site
  1. GETDIV(RX,RXR) ; Get Division from RX or Refill
  1. N BPSDIV
  1. I '$G(RX) Q ""
  1. I $G(RXR)="" Q ""
  1. I RXR S BPSDIV=$$RXSUBF1^BPSUTIL1(RX,52,52.1,RXR,8,"I")
  1. E S BPSDIV=$$RXAPI1^BPSUTIL1(RX,20,"I")
  1. Q BPSDIV