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

ABMDVE04.m

Go to the documentation of this file.
  1. ABMDVE04 ; IHS/ASDST/DMJ - Recreate cancelled claim from PCC ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;Allows user to look up visit by patient and reset .04 field
  1. ;in visit file and creates ABILL X-ref so claim will be
  1. ;recreated by claim generator
  1. START ;EP
  1. S DIC="^AUPNPAT("
  1. S DIC(0)="AEMQ"
  1. S DIC("S")="I $D(^AUPNVSIT(""AC"",Y))"
  1. D ^DIC
  1. I Y<0 G Q
  1. S DFN=+Y
  1. S DIC="^AUPNVSIT("
  1. S DIC(0)="AEQ"
  1. S DIC("S")="I $D(^AUPNVSIT(""AC"",DFN,Y))&'$P(^AUPNVSIT(Y,0),U,11)"
  1. D ^DIC
  1. I Y<0 G Q
  1. S ABMV=+Y
  1. S Y=^AUPNVSIT(ABMV,0)
  1. N ABMDTC,ABMDTM
  1. S ABMDTC=$P(Y,U,2)
  1. S ABMDTM=$P(Y,U,13)
  1. I $P(Y,U,4)=1 D
  1. .S DIE=DIC
  1. .S DR=".04///@"
  1. .S DA=ABMV
  1. .D ^DIE
  1. I '$D(^AUPNVSIT("ABILL",ABMDTC,ABMV)),'$D(^AUPNVSIT("ABILL",+ABMDTM,ABMV)) D
  1. .S ^AUPNVSIT("ABILL",ABMDTC,ABMV)="" ;Set ABILL X-ref
  1. W !!,"Claim will be created for this visit next time claim generator runs."
  1. G START
  1. ;
  1. Q K DIC,DIE,ABMV,DR
  1. Q