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

ABMNARRQ.m

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