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

ABSPOSB.m

Go to the documentation of this file.
  1. ABSPOSB ; IHS/FCS/DRS - utilities used by ABSPOSB* ;
  1. ;;1.0;PHARMACY POINT OF SALE;;JUN 21, 2001
  1. ;
  1. ; A/R Interfaces - in routines ABSPOSB*
  1. ;
  1. ; ABSPOSBC,ABSPOSBD - the billing background job
  1. ; ABSPOSBB - calls to various interfaces
  1. ; ABSPOSBB - Third Party Billing
  1. ; ABSPOSBQ - reserved for Other interfaces (stub)
  1. ; ABSPOSBT - reserved for ANMC
  1. ; ABSPOSBP - reserved for PAC (BBM*)
  1. ; ABSPOSBV,ABSPOSBW - ILC A/R, main program
  1. ; ABSPOSB* all others - mostly ILC A/R, many obsolete
  1. ;
  1. ; ILC old A/R's NCPDP forms printing in ABSPOSN*
  1. ; New NCPDP forms printing in ABSPOSF* - usable by all, not just ILC
  1. ;
  1. ; The following ILC A/R routines are invoked by Point of Sale:
  1. ; (this list written on November 12, 2000)
  1. ; EN^ABSB1592 - called by ABSPOSN1 - main routine to print bills
  1. ; ^ABSBMAKE - called by ABSPOSBM - create an A/R account
  1. ; OFFNCPDP^ABSBPBRX - called by ABSPOSBM -
  1. ; ^ABSBVCN - called by ABSPOSQD - to assign a VCN
  1. Q
  1. AGE57(N) ;EP - ABSPOSB5 ; how old is ^ABSPTL(N,... ?
  1. ; $$AGE57(N)=number of days, with decimal
  1. N %,%H,%I,X D NOW^%DTC ; % = now
  1. N LAST S LAST=$P(^ABSPTL(N,0),U,8)
  1. I 'LAST S LAST=$P(^ABSPTL(N,0),U,11)
  1. N RET S RET=$$TIMEDIFI^ABSPOSUD(LAST,%)
  1. Q RET/86400
  1. ARSYSTEM() ;EP - what A/R system do we interface to?
  1. ; 0 (or null?) is the ILC system.
  1. ; Other true-valued ones are IHS 3PBilling, etc.
  1. ; The value "NONE" is non-zero, too
  1. Q $P($G(^ABSP(9002313.99,1,"A/R INTERFACE")),U)
  1. DOINGAR() ;EP - from many places - Do we do a Billing Interface in ABSPOSB*?
  1. Q $S($$ISABMAR:1,$$ISILCAR:1,1:0)
  1. ISILCAR() ;EP - various places
  1. Q $$ARSYSTEM=0 ; returns TRUE if it's ILC's billing system
  1. ISABMAR() ; EP - various places
  1. Q $$ARSYSTEM=3 ; returns TRUE if it's IHS 3rd Party Billing
  1. MUSTILC() ; EP - from many places
  1. I $$ISILCAR Q 1
  1. W "Requires the ILC Accounts Receivable system",!
  1. D PRESSANY^ABSPOSU5()
  1. Q
  1. ; ZWRITE command
  1. ZW(%) ;EP - ABSPOSB* ; should instead ZWRITE^ABSPOS
  1. I $D(%)=0 W %," undefined",! Q
  1. I $D(%)#10=1 W %,"=",@%,!
  1. N Q S Q=% F S Q=$Q(@Q) Q:Q="" W Q,"=",@Q,!
  1. Q