- ABMNARRQ ; IHS/SD/SDR - Require Narrative by insurer ;
- ;;2.6;IHS Third Party Billing;**9**;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 send a NARRATIVE of "
- W !?5,"""NOT OTHERWISE CLASSIFIED"" in the 5010 Professional/Institutional"
- W !?5,"export. If no narrative 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"),5,ABMCPT)) Q:+ABMCPT=0 D
- .S ABMCNT=+$G(ABMCNT)+1
- .W !?2,$P($$CPT^ABMCVAPI($P($G(^ABMNINS(DUZ(2),ABMP("INS"),5,ABMCPT,0)),U),DT),U,2),?18,$S($P($G(^ABMNINS(DUZ(2),ABMP("INS"),5,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)_",5,"
- .S DIC("A")="Enter CPT/HCPCS codes: "
- .S DIC("P")=$P(^DD(9002274.09,5,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)_",5,"
- ..S DR=".01//;.02//"
- ..D ^DIE
- Q
- ABMNARRQ ; IHS/SD/SDR - Require Narrative by insurer ;
- +1 ;;2.6;IHS Third Party Billing;**9**;NOV 12, 2009
- EN ;EP
- +1 WRITE !!?5,"An insurer and a list of CPT/HCPCS codes will be prompted for."
- +2 WRITE !?5,"Any codes entered for that insurer will send a NARRATIVE of "
- +3 WRITE !?5,"""NOT OTHERWISE CLASSIFIED"" in the 5010 Professional/Institutional"
- +4 WRITE !?5,"export. If no narrative is entered, an error will display in the claim"
- +5 WRITE !?5,"editor.",!!
- +6 ;
- SELINS ;select insurer
- +1 KILL DIC,DIE,DIR,X,Y,DA
- +2 SET DIC="^AUTNINS("
- +3 SET DIC(0)="AEQM"
- +4 SET DIC("A")="Select INSURER: "
- +5 DO ^DIC
- +6 IF $DATA(DUOUT)!$DATA(DTOUT)
- QUIT
- +7 IF +Y<0
- GOTO SELINS
- +8 SET ABMP("INS")=+Y
- +9 ;
- +10 ;For selected insurer, display list of CPTs (if any) entered w/status
- +11 WRITE !!?2,"Current Codes",?18,"Req'd?"
- +12 SET ABMCPT=0
- +13 FOR
- SET ABMCPT=$ORDER(^ABMNINS(DUZ(2),ABMP("INS"),5,ABMCPT))
- IF +ABMCPT=0
- QUIT
- Begin DoDot:1
- +14 SET ABMCNT=+$GET(ABMCNT)+1
- +15 WRITE !?2,$PIECE($$CPT^ABMCVAPI($PIECE($GET(^ABMNINS(DUZ(2),ABMP("INS"),5,ABMCPT,0)),U),DT),U,2),?18,$SELECT($PIECE($GET(^ABMNINS(DUZ(2),ABMP("INS"),5,ABMCPT,0)),U,2)="Y":"YES",1:"NO")
- End DoDot:1
- +16 WRITE !
- +17 IF +$GET(ABMCNT)=0
- WRITE !?3,"No entries at this time"
- +18 WRITE !
- +19 ;
- +20 ;prompt for new codes
- +21 FOR
- Begin DoDot:1
- +22 KILL DIC,DIE,DIR,X,Y,DA
- +23 SET DA(1)=ABMP("INS")
- +24 SET DIC(0)="AEQLM"
- +25 SET DIC="^ABMNINS("_DUZ(2)_","_DA(1)_",5,"
- +26 SET DIC("A")="Enter CPT/HCPCS codes: "
- +27 SET DIC("P")=$PIECE(^DD(9002274.09,5,0),U,2)
- +28 SET DIC("DR")=".02"
- +29 DO ^DIC
- +30 IF Y<0
- QUIT
- +31 SET ABMIEN=Y
- +32 IF $PIECE(ABMIEN,U,3)'=1
- Begin DoDot:2
- +33 KILL DIC,DIE,DIR,X,Y,DA
- +34 SET DA(1)=ABMP("INS")
- +35 SET DA=+ABMIEN
- +36 SET DIE="^ABMNINS("_DUZ(2)_","_DA(1)_",5,"
- +37 SET DR=".01//;.02//"
- +38 DO ^DIE
- End DoDot:2
- End DoDot:1
- IF +$GET(Y)<0
- QUIT
- +39 QUIT