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

BARBLLK.m

Go to the documentation of this file.
  1. BARBLLK ; IHS/SD/LSL - LOOKUPS INTO THE BILL FILE ;07/10/2010
  1. ;;1.8;IHS ACCOUNTS RECEIVABLE;**19**;OCT 26, 2005
  1. ;;
  1. ; IHS/SD/TMM 06/18/2010 1.8*Patch 19 (M819_5), Add Prepayment functionality.
  1. ; See work order 3PMS10001
  1. ; New tags EN1 and PAT1
  1. ; to pass default values (DIC("B")) during lookup
  1. ; (^BARCLU,^BARCLU01,^BARPUTL,^BARPST1,^BARBLLK)
  1. ; ********************************************************************* ;
  1. ;
  1. ;asks PATIENT and returns BARBL = IEN if found
  1. ;bill=open & A/R service/section matches users
  1. K BARBL
  1. S BARBLDA=0
  1. D ^XBNEW("PAT^BARBLLK:BARBLDA") ;new environment
  1. I $G(BARBLDA)>0 S BARBL(.01)=$$VAL^XBDIQ1(90050.01,BARBLDA,.01)
  1. E K BARBL
  1. Q
  1. ; *********************************************************************
  1. ;
  1. PAT ;EP lookup bill by patient with open accounts
  1. S BARPASS=$$EN^BARPST1()
  1. I BARPASS'["" Q
  1. S BARCNT=$$EN^BARPNP2(BARPASS)
  1. I 'BARCNT W !,?10," NO SELECTION ",! Q
  1. D HIT^BARPNP2(BARPASS)
  1. K DIR
  1. S DIR(0)="N^0:"_BARCNT
  1. S DIR("A")="LINE # or 0 to quit"
  1. D ^DIR
  1. I Y'>0 Q
  1. S BARBLDA=$O(^BARTMP($J,"B",Y,0))
  1. Q
  1. ;
  1. ;--->NEW TAG EN1---> ;M819*ADD*TMM*20100711 (819_4)
  1. ; (copied entry to ^BARBLLK but calls PAT1^BARBLLK instead of PAT^BARBLLK
  1. EN1(DICB,DICB2,DICB3) ;
  1. ;asks PATIENT and returns BARBL = IEN if found
  1. ;bill=open & A/R service/section matches users
  1. K BARBL
  1. S BARBLDA=0
  1. D ^XBNEW("PAT1^BARBLLK:BARBLDA;DICB;DICB2;DICB3") ;new environment ;M819*ADD*TMM*20100711 ;use default for looup
  1. I $G(BARBLDA)>0 S BARBL(.01)=$$VAL^XBDIQ1(90050.01,BARBLDA,.01)
  1. E K BARBL
  1. Q
  1. ;
  1. PAT1 ;EP lookup bill by patient with open accounts
  1. ;--->NEW TAG PAT1---> ;M819*ADD*TMM*20100711 (819_4)
  1. ; (copied from PAT^BARBLLK passes default DIC("B") values to ^BARPUTL
  1. ;
  1. ;M819*DEL*TMM*20100711*** S BARPASS=$$EN^BARPST1()
  1. S DICB=$G(DICB)
  1. S DICB2=$G(DICB2)
  1. S DICB3=$G(DICB3)
  1. S BARPASS=$$EN1^BARPST1(DICB,DICB2,DICB3)
  1. I BARPASS'["" Q
  1. S BARCNT=$$EN^BARPNP2(BARPASS)
  1. I 'BARCNT W !,?10," NO SELECTION ",! Q
  1. D HIT^BARPNP2(BARPASS)
  1. K DIR
  1. S DIR(0)="N^0:"_BARCNT
  1. S DIR("A")="LINE # or 0 to quit"
  1. D ^DIR
  1. I Y'>0 Q
  1. S BARBLDA=$O(^BARTMP($J,"B",Y,0))
  1. Q