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

ABMDF3B.m

Go to the documentation of this file.
  1. ABMDF3B ; IHS/ASDST/DMJ - Set HCFA1500 Print Array PART 2 ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;Original;TMD;
  1. ;
  1. ; IHS/ASDS/SDH - 04/10/01 - V2.4 Patch 9 - NOIS NFA-0600-180065
  1. ; Allow FL 18 to display when inpatient with more than one
  1. ; provider that was split for billing purposes.
  1. ;
  1. ; IHS/SD/SDR - v2.5 p3 - 2/26/2003 - NDA-0402-180192
  1. ; Added new block 19 stuff
  1. ;
  1. ; IHS/SD/SDR - v2.5 p8 - task 6
  1. ; Ambulance origin zip
  1. ;
  1. ; IHS/SD/SDR - v2.5 p9 - IM19291
  1. ; Added supervising provider UPIN to block 19
  1. ;
  1. ; IHS/SD/SDR - v2.5 p10 - IM21068
  1. ; Added CLIA number to code
  1. ;
  1. ; IHS/SD/SDR - v2.5 p10 - IM21468
  1. ; Made change so it won't error if there is an outside lab
  1. ; charge and the ref lab CLIA is missing
  1. ;
  1. ; *********************************************************************
  1. ;
  1. BNODES S ABM("B5")=$G(^ABMDBILL(DUZ(2),ABMP("BDFN"),5)),ABM("B6")=$G(^(6)),ABM("B7")=$G(^(7)),ABM("B8")=$G(^(8)),ABM("B9")=$G(^(9)),ABM("B10")=$G(^(10))
  1. I $P(ABM("B5"),U,12)]"" S $P(ABMF(33),U,3)=$P(ABM("B5"),U,12)
  1. I $P($G(^DIC(40.7,ABMP("CLN"),0)),U)="AMBULANCE" S $P(ABMF(33),U,3)=$E($P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),12)),U,6),1,5)
  1. I +$O(^ABMDBILL(DUZ(2),ABMP("BDFN"),37,0))'=0 D
  1. .I +$P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),8)),U)'=0,($P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),9)),U,23)'="") S $P(ABMF(33),U,3)=$P($G(^ABMRLABS($P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),9)),U,23),0)),U,2)
  1. .I +$P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),8)),U)=0 S $P(ABMF(33),U,3)=$P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),9)),U,22) ;default in-house
  1. ;no labs but CLIA wanted on form
  1. I +$O(^ABMDBILL(DUZ(2),ABMP("BDFN"),37,0))=0 D
  1. .I $P($G(^ABMNINS(DUZ(2),ABMP("INS"),1,ABMP("VTYP"),1)),U,6)="R" D
  1. ..S $P(ABMF(33),U,3)=$P($G(^ABMRLABS($P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),9)),U,23),0)),U,2)
  1. .I $P($G(^ABMNINS(DUZ(2),ABMP("INS"),1,ABMP("VTYP"),1)),U,6)="I" D
  1. ..S $P(ABMF(33),U,3)=$P($G(^ABMDBILL(DUZ(2),ABMP("BDFN"),9)),U,22)
  1. EMPL I $P(ABM("B9"),U)]"" S $P(ABMF(13),U,2)="X"
  1. E S $P(ABMF(13),U,3)="X" G ACCD
  1. I $P(ABM("B9"),U,3)]"" S $P(ABMF(25),U,3)=$P(ABM("B9"),U,3)
  1. I $P(ABM("B9"),U,4)]"" S $P(ABMF(25),U,4)=$P(ABM("B9"),U,4)
  1. ;
  1. ACCD S $P(ABMF(15),U,$S('$P(ABM("B8"),U,3):5,"12"[$P(ABM("B8"),U,3):4,1:5))="X"
  1. S $P(ABMF(17),U,$S("12"[$P(ABM("B8"),U,3):3,1:2))="X"
  1. FSYM S $P(ABMF(25),U)=$P(ABM("B8"),U,6)
  1. SIML S $P(ABMF(25),U,2)=$P(ABM("B8"),U,9)
  1. REFR S $P(ABMF(27),U)=$P(ABM("B8"),U,8),$P(ABMF(27),U,2)=$P(ABM("B8"),U,11)
  1. BLK19 ;
  1. S ABMBLK19=$$SDT^ABMDUTL($P(ABM("B9"),U,11)) ;date last seen
  1. S ABMBLK19=ABMBLK19_" "_$P(ABM("B9"),U,24) ;supervising prov UPIN
  1. S ABMBLK19=ABMBLK19_" "_$P(ABM("B9"),U,12) ;supervising prov
  1. S ABMBLK19=ABMBLK19_" "_$$SDT^ABMDUTL($P(ABM("B9"),U,13)) ;last x-ray
  1. S ABMBLK19=ABMBLK19_" "_$S($P(ABM("B9"),U,14)="Y":"HOMEBOUND",1:"")
  1. S ABMBLK19=ABMBLK19_" "_$S($P(ABM("B9"),U,15)="Y":"HOSPICE EMP. PROV",1:"")
  1. S ABMBLK19=ABMBLK19_" "_$P(ABM("B10"),U,1)
  1. S $P(ABMF(29),U)=$E(ABMBLK19,1,48)
  1. K ABMBLK19
  1. LAB I '$P(ABM("B8"),U) S $P(ABMF(29),U,3)="X"
  1. E S $P(ABMF(29),U,2)="X",$P(ABMF(29),U,4)=$P(ABM("B8"),U)
  1. I $P(ABM("B7"),U,4)="Y" S ABMF("23")="SIGNATURE ON FILE"_U_DT
  1. I $P(ABM("B7"),U,5)="Y" S $P(ABMF("23"),U,3)="SIGNATURE ON FILE"
  1. ;
  1. I $P(ABMP("B0"),U,7)'=111,($P(ABMP("B0"),U,7)'=999),($P(ABMP("B0"),U,7)'=141) G XIT
  1. ;
  1. ; Hosp Info
  1. ADMIT I $P(ABM("B6"),U,1)]"" S $P(ABMF(27),U,3)=$P(ABM("B6"),U,1)
  1. DISCH I $P(ABM("B6"),U,3)]"" S $P(ABMF(27),U,4)=$P(ABM("B6"),U,3)
  1. ;
  1. XIT K ABM,ABMV,ABMX
  1. Q