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

ABME5L13.m

Go to the documentation of this file.
ABME5L13 ; IHS/ASDST/DMJ - Header 
 ;;2.6;IHS Third Party Billing System;**6,8,11**;NOV 12, 2009;Build 133
 ;Header Segments
 ; 
START ;START HERE
 S ABMLOOP=2300
 D ^ABME5CLM ;5010 837P
 D WR^ABMUTL8("CLM")
 I $P(ABMB8,U,2) D  ;accident
 .D EP^ABME8DTP(439,"D8",$P(ABMB8,U,2))
 .D WR^ABMUTL8("DTP")
 ;start new code abm*2.6*11 HEAT78400
 I $P(ABMB4,U,5)'="" D
 .D EP^ABME8DTP(452,"D8",$P(ABMB4,U,5))
 .D WR^ABMUTL8("DTP")
 ;end new code HEAT78400
 I $P(ABMB7,U)'=$P(ABMB7,"^",2) D
 .D EP^ABME5DTP(472,"RD8",$P(ABMB7,U),$P(ABMB7,"^",2))
 .D WR^ABMUTL8("DTP")
 I $P(ABMB7,U)=$P(ABMB7,"^",2) D
 .D EP^ABME5DTP(472,"D8",$P(ABMB7,U))
 .D WR^ABMUTL8("DTP")
 ;start new code abm*2.6*11 HEAT78400
 I $P(ABMB4,U,13)'="" D
 .D EP^ABME5DN1
 .D WR^ABMUTL8("DN1")
 ;end new code HEAT78400
 I $D(^ABMDBILL(DUZ(2),ABMP("BDFN"),71)) D
 .K ABM71CNT
 .S ABM71IEN=0
 .F  S ABM71IEN=$O(^ABMDBILL(DUZ(2),ABMP("BDFN"),71,ABM71IEN)) Q:+ABM71IEN=0  D  Q:$G(ABM71CNT)=10
 ..D ^ABME5PWK,WR^ABMUTL8("PWK")
 ..S ABM71CNT=+$G(ABM71CNT)+1
 I $P(ABMB9,"^",9) D
 .D EP^ABME5AMT("F5")
 .D WR^ABMUTL8("AMT")
 I $P(ABMB5,U,11)'="" D  ;Referral Number
 .D EP^ABME5REF("9F")
 .D WR^ABMUTL8("REF")
 I $P(ABMB5,U,12)'="" D  ;Prior Authorization
 .D EP^ABME5REF("G1")
 .D WR^ABMUTL8("REF")
 I $D(^ABMDBILL(DUZ(2),ABMP("BDFN"),61)) D
 .D EP^ABME5NTE("ADD")
 .D WR^ABMUTL8("NTE")
 D DXSET^ABMUTL8(ABMP("BDFN"))
 ;principal DX (BK)
 D EP^ABME5HI("BK")
 D WR^ABMUTL8("HI")
 Q