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

ABMLABRQ.m

Go to the documentation of this file.
ABMLABRQ ; IHS/SD/SDR - Require lab results by insurer ;  
 ;;2.6;IHS Third Party Billing;**3**;NOV 12, 2009
EN ;EP
 W !!?5,"An insurer and a list of CPT/HCPCS codes will be prompted for."
 W !?5,"Any codes entered for that insurer will require that a lab result be"
 W !?5,"entered.  If no result is entered, an error will display in the claim"
 W !?5,"editor.",!!
 ;
SELINS ;select insurer
 K DIC,DIE,DIR,X,Y,DA
 S DIC="^AUTNINS("
 S DIC(0)="AEQM"
 S DIC("A")="Select INSURER: "
 D ^DIC
 Q:$D(DUOUT)!$D(DTOUT)
 I +Y<0 G SELINS
 S ABMP("INS")=+Y
 ;
 ;For selected insurer, display list of CPTs (if any) entered w/status
 W !!?2,"Current Codes",?18,"Req'd?"
 S ABMCPT=0
 F  S ABMCPT=$O(^ABMNINS(DUZ(2),ABMP("INS"),4,ABMCPT)) Q:+ABMCPT=0  D
 .S ABMCNT=+$G(ABMCNT)+1
 .W !?2,$P($G(^ABMNINS(DUZ(2),ABMP("INS"),4,ABMCPT,0)),U),?18,$S($P($G(^ABMNINS(DUZ(2),ABMP("INS"),4,ABMCPT,0)),U,2)="Y":"YES",1:"NO")
 W !
 I +$G(ABMCNT)=0 W !?3,"No entries at this time"
 W !
 ;
 ;prompt for new codes
 F  D  Q:+$G(Y)<0
 .K DIC,DIE,DIR,X,Y,DA
 .S DA(1)=ABMP("INS")
 .S DIC(0)="AEQLM"
 .S DIC="^ABMNINS("_DUZ(2)_","_DA(1)_",4,"
 .S DIC("A")="Enter CPT/HCPCS codes: "
 .S DIC("P")=$P(^DD(9002274.09,4,0),U,2)
 .S DIC("DR")=".02"
 .D ^DIC
 .Q:Y<0
 .S ABMIEN=Y
 .I $P(ABMIEN,U,3)'=1 D
 ..K DIC,DIE,DIR,X,Y,DA
 ..S DA(1)=ABMP("INS")
 ..S DA=+ABMIEN
 ..S DIE="^ABMNINS("_DUZ(2)_","_DA(1)_",4,"
 ..S DR=".01//;.02//"
 ..D ^DIE
 Q