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

ABMERUT2.m

Go to the documentation of this file.
  1. ABMERUT2 ; IHS/FCS/DRS - ABMERUTL cont.;
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;
  1. ; New Routine - Split from ABMERUTL on 08/30/2001
  1. Q
  1. ; ABM*2.4*9 IHS/FCS/DRS 09/21/01 ; Part 15 - split POS out from large ABMERUTL and validate
  1. ; the POS code before sending to Envoy. Necessitated by San Xavier's
  1. ; hardcopy 1500 override value "03" which is rejected by Envoy's
  1. ; edit checks. If it turns out that this payer really absolutely
  1. ; has to have 03 even in the electronic form, then Envoy will have
  1. ; to do something - either stuff in the 03 at Envoy, or have us do
  1. ; it and have Envoy disable their POS check for that one payer.
  1. ; Though it seems as if that one payer had an exception, that some
  1. ; other Envoy customer would have encountered the problem by now
  1. ; and Envoy already would have adjusted their checking accordingly.
  1. ; So either we're the first or the 03 really isn't needed.
  1. ;
  1. POS(X) ;EP - Point of Service ; parameter X apparently unused - comment said
  1. ; it was Mode of Export
  1. S X=$G(^ABMNINS(DUZ(2),ABMP("INS"),2,"AOVR",3,37,3,ABMP("VTYP")))
  1. D POSOK
  1. I X="" S X=$G(^ABMNINS(DUZ(2),ABMP("INS"),2,"AOVR",3,37,3,0))
  1. D POSOK
  1. I X="" S X=$G(^ABMNINS(DUZ(2),ABMP("INS"),2,"AOVR",14,37,3,ABMP("VTYP")))
  1. D POSOK
  1. I X="" S X=$G(^ABMNINS(DUZ(2),ABMP("INS"),2,"AOVR",14,37,3,0))
  1. D POSOK
  1. I X'="" Q X
  1. S X=$P($G(^ABMDPARM(ABMP("LDFN"),1,3)),"^",6)
  1. S:X="" X=$P($G(^ABMDPARM(DUZ(2),1,3)),"^",6)
  1. S:X X=$P(^ABMDCODE(X,0),"^")
  1. I X="" S X=11
  1. Q X
  1. ;
  1. ; POSOK new in ABM*2.4*9
  1. POSOK ; Valid Point of Service code in X; reset X="" if invalid
  1. Q:X="" Q:'$$ENVOY^ABMEF19 ; only enforce for Envoy
  1. S:'$D(^ABMDCODE("AC","H",X)) X="" Q