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

ABMDVS13.m

Go to the documentation of this file.
ABMDVS13 ; IHS/ASDST/DMJ - PCC VISIT STUFF, V CPT code ; 
 ;;2.6;IHS 3P BILLING SYSTEM**9,11**;NOV 12, 2009;;Build 133
 ;Original;DMJ;
 ;
 ; IHS/SD/SDR - 11/04/02 - V2.5 P2 - ZZZ-0301-210046
 ;     Modified to capture modifiers from PCC
 ;
 ; IHS/SD/SDR - v2.6 CSV
 ; IHS/SD/SDR - 2.6*9 - HEAT36314 - Correction for modifiers; was coming back NO SUCH MODIFIER
 ;
 Q:ABMIDONE
START ;START
 N ABMDA,ABMCPT,X,ABMCORDI,ABMSRGPR
 K AUPNCPT
 S X=$$CPT^AUPNCPT(ABMVDFN)
 Q:X
 D SURGTAB^ABMDVCK1                  ;Make sure CPT table exists
 S ABMSDT=$P(ABMP("V0"),U)
 N SF
 ;Get corresponding diagnosis
 S ABM=0
 F  S ABM=$O(^AUPNVPRC("AD",ABMVDFN,ABM)) Q:'ABM  D
 .S Y=^AUPNVPRC(ABM,0)
 .Q:$P(Y,U,5)=""
 .Q:$P(Y,U,16)=""
 .S ABMCORDI($P(Y,U,16))=$P(Y,U,5)
 S N=""
 F  S N=$O(AUPNCPT(N)) Q:N=""  D
 .S ABMDA=$P(AUPNCPT(N),U,5)
 .S SF=$P($P(AUPNCPT(N),U,4),".",2)   ;Source file
 .S ABMSRC=SF_"|"_ABMDA_"|CPT"               ;Source file|ien
 .S DA(1)=ABMP("CDFN")
 .S ABMCPT=$P(AUPNCPT(N),U)
 .S ABMMOD1=$P(AUPNCPT(N),"^",6)
 .;I $G(ABMMOD1)'="" S ABMMOD1=$P($$MOD^ABMCVAPI(ABMMOD1,"E",ABMP("VDT")),U,2)  ;CSV-c  ;abm*2.6*9 HEAT36314
 .I $G(ABMMOD1)'="" S ABMMOD1=$P($$MOD^ABMCVAPI(ABMMOD1,"I",ABMP("VDT")),U,2)  ;CSV-c  ;abm*2.6*9 HEAT36314
 .S ABMMOD2=$P(AUPNCPT(N),"^",7)
 .;I $G(ABMMOD2)'="" S ABMMOD2=$P($$MOD^ABMCVAPI(ABMMOD2,"E",ABMP("VDT")),U,2)  ;CSV-c  ;abm*2.6*9 HEAT36314
 .I $G(ABMMOD2)'="" S ABMMOD2=$P($$MOD^ABMCVAPI(ABMMOD2,"I",ABMP("VDT")),U,2)  ;CSV-c  ;abm*2.6*9 HEAT36314
 .;The next line is intended to prevent dupes being stuffed into the
 .;claim file.  It requires that other stuffing rtns put in ABMSRC
 .I $D(^ABMDCLM(DUZ(2),DA(1),"ASRC",ABMSRC)),(ABMCPT<ABMCPTTB("SURGERY","L"))!(ABMCPT>ABMCPTTB("SURGERY","H")) Q
 .;start new code abm*2.6*11 HEAT83923
 .I ($P(AUPNCPT(N),U,4)="9000010.08") D
 ..S ABMAST=$$GET1^DIQ($P(AUPNCPT(N),U,4),$P(AUPNCPT(N),U,5),".19","I")  ;Anes. start dt/tm
 ..S ABMAET=$$GET1^DIQ($P(AUPNCPT(N),U,4),$P(AUPNCPT(N),U,5),".21","I")  ;Anes. end dt/tm
 .I ($P(AUPNCPT(N),U,4)="9000010.18") D
 ..S ABMAST=$$GET1^DIQ($P(AUPNCPT(N),U,4),$P(AUPNCPT(N),U,5),".13","I")  ;Anes. start dt/tm
 ..S ABMAET=$$GET1^DIQ($P(AUPNCPT(N),U,4),$P(AUPNCPT(N),U,5),".14","I")  ;Anes. end dt/tm
 .;end new code HEAT83923
 .; Needs ABMCPT, ABMSDT, ABMSRC, & DA(1) OR ABMP("CDFN")
 .D ^ABMFCPT
 ;K ABMSDT,N,AUPNCPT,ABMSRC  ;abm*2.6*11 HEAT83923
 K ABMSDT,N,AUPNCPT,ABMSRC,ABMAST,ABMAET  ;abm*2.6*11 HEAT83923
 Q