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

ABME5L3.m

Go to the documentation of this file.
ABME5L3 ; IHS/ASDST/DMJ - Header 
 ;;2.6;IHS Third Party Billing System;**6,9,14,21**;NOV 12, 2009;Build 379
 ;Header Segments
 ;IHS/SD/SDR - 2.6*21 - HEAT119570 - Added code to look in secondary place for Case Number
 ;IHS/SD/SDR - 2.6*21 - HEAT123457 - Updated 61044 check to be 'contains' not 'equals'
 ;
START ;START HERE
 S ABMI=1
 S ABMLOOP="2000B"
 D EP^ABME5HL(22,+$G(ABMCHILD))
 D WR^ABMUTL8("HL")
 D EP^ABME5SBR(ABMPSQ)
 D WR^ABMUTL8("SBR")
 S ABMLOOP="2010BA"
 D EP^ABME5NM1("IL")
 D WR^ABMUTL8("NM1")
 ;abm*2.6*9 IHS/SD/AML 12/22/2011 - HEAT51571 BEGIN OLD CODE
 ;D EP^ABME5N3(ABMSFILE,ABMSIEN)
 ;D WR^ABMUTL8("N3")
 ;D EP^ABME5N4(ABMSFILE,ABMSIEN)
 ;D WR^ABMUTL8("N4")
 ;D EP^ABME5DMG(ABMSFILE,ABMSIEN)
 ;D WR^ABMUTL8("DMG")
 ;IHS/SD/AML 12/22/2011 - HEAT51571 END OLD CODE, BEGIN NEW CODE
 I +$G(ABMCHILD)=0 D  ;if patient is subscriber, send address
 .D EP^ABME5N3(ABMSFILE,ABMSIEN)
 .D WR^ABMUTL8("N3")
 .D EP^ABME5N4(ABMSFILE,ABMSIEN)
 .D WR^ABMUTL8("N4")
 .D EP^ABME5DMG(ABMSFILE,ABMSIEN)
 .D WR^ABMUTL8("DMG")
 ;IHS/SD/AML 12/22/2011 - HEAT51571 END NEW CODE
 ;I $P(ABMB7,U,13)'="",(+$G(ABMCHILD)=0) D  ;if patient is subscriber  ;abm*2.6*21 IHS/SD/SDR HEAT119570
 I ($P(ABMB7,U,13)'=""!($P(ABMB4,U,8)'="")) D  ;if patient is subscriber  ;abm*2.6*21 IHS/SD/SDR HEAT119570
 .D EP^ABME5REF("Y4","","")
 .D WR^ABMUTL8("REF")
 S ABMLOOP="2010BB"
 D EP^ABME5NM1("PR",ABMP("INS"))
 D WR^ABMUTL8("NM1")
 ;I $$RCID^ABMUTLP(ABMP("INS"))'=610442 D  ;abm*2.6*21 IHS/SD/SDR HEAT123457
 I $$RCID^ABMUTLP(ABMP("INS"))'["61044" D  ;abm*2.6*21 IHS/SD/SDR HEAT123457
 .D EP^ABME5N3(9999999.18,ABMP("INS"))
 .D WR^ABMUTL8("N3")
 .D EP^ABME5N4(9999999.18,ABMP("INS"))
 .D WR^ABMUTL8("N4")
 Q:'ABMCHILD
PTCHG ;EP
 S ABMI=1
 S ABMLOOP="2000C"
 D EP^ABME5HL(23,0)
 D WR^ABMUTL8("HL")
 D ^ABME5PAT
 D WR^ABMUTL8("PAT")
 S ABMLOOP="2010CA"
 D EP^ABME5NM1("QC")
 D WR^ABMUTL8("NM1")
 D EP^ABME5N3(2,ABMP("PDFN"))
 D WR^ABMUTL8("N3")
 D EP^ABME5N4(2,ABMP("PDFN"))
 D WR^ABMUTL8("N4")
 D EP^ABME5DMG(2,ABMP("PDFN"))
 D WR^ABMUTL8("DMG")
 I $P(ABMB7,U,13)'="",(+$G(ABMCHILD)=1) D  ;if patient is not subscriber
 .D EP^ABME5REF("Y4","","")
 .D WR^ABMUTL8("REF")
 I $P(ABMB7,U,26)'="" D
 .D EP^ABME5REF($P(ABMB7,U,25),"","")
 .D WR^ABMUTL8("REF")
 Q