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

ABPACLG8.m

Go to the documentation of this file.
  1. ABPACLG8 ;CHECK LOG MODIFICATIONS REPORT; [ 03/29/91 2:02 PM ]
  1. ;;1.4;AO PVT-INS TRACKING;*0*;IHS-OKC/KJR;JULY 25, 1991
  1. W !!,"NOT AN ENTRY POINT - ACCESS DENIED",!! Q
  1. ;--------------------------------------------------------------------
  1. RETURNS ;PROCEDURE TO PROCESS RETURN NODES
  1. S R=0 F I=0:0 D Q:R=""
  1. .S R=$O(^TMP("ABPACLG1","R",R)) Q:R=""
  1. .S R1=0 F M=0:0 D Q:R1=""
  1. ..S R1=$O(^TMP("ABPACLG1","R",R,R1)) Q:R1=""
  1. ..S RR=0 F J=0:0 D Q:RR=""
  1. ...S RR=$O(^TMP("ABPACLG1","R",R,R1,RR)) Q:RR=""
  1. ...S R3=0 F K=0:0 D Q:R3=""
  1. ....S R3=$O(^TMP("ABPACLG1","R",R,R1,RR,R3)) Q:R3=""
  1. ....S R4=0 F L=0:0 D Q:R4=""
  1. .....S R4=$O(^TMP("ABPACLG1","R",R,R1,RR,R3,R4)) Q:R4=""
  1. .....S Y=^(R4),Y=+$E(Y,4,5)_"/"_+$E(Y,6,7)_"/"_+$E(Y,2,3)
  1. .....S ABPACHK("XMIT")=Y,ABPAINS=$P(^AUTNINS(RR,0),"^")
  1. .....S ACCTPT=$P(^DIC(4,R3,0),"^")
  1. .....S TCNT=TCNT+1 W !!,$J(TCNT,2),".",?4,"It is requested that "
  1. .....W "check number ",R," in the amount of $",$J(R1,8,2),!?4
  1. .....W "from ",ABPAINS," originally deposited for",!?4
  1. .....W ACCTPT," be returned per attached instructions from the "
  1. .....W "insurer.",!!?4,"This was originally submitted on the "
  1. .....W "transmittal dated ",ABPACHK("XMIT"),"."
  1. .....I $Y>46 D ^%AUCLS,HD^ABPACLG4
  1. Q
  1. ;--------------------------------------------------------------------
  1. IMPROPER ;PROCEDURE TO PROCESS IMPROPER NODES
  1. S R=0 F I=0:0 D Q:R=""
  1. .S R=$O(^TMP("ABPACLG1","I",R)) Q:R=""
  1. .S R1=0 F M=0:0 D Q:R1=""
  1. ..S R1=$O(^TMP("ABPACLG1","I",R,R1)) Q:R1=""
  1. ..S RR=0 F J=0:0 D Q:RR=""
  1. ...S RR=$O(^TMP("ABPACLG1","I",R,R1,RR)) Q:RR=""
  1. ...S R3=0 F K=0:0 D Q:R3=""
  1. ....S R3=$O(^TMP("ABPACLG1","I",R,R1,RR,R3)) Q:R3=""
  1. ....S R4=0 F L=0:0 D Q:R4=""
  1. .....S R4=$O(^TMP("ABPACLG1","I",R,R1,RR,R3,R4)) Q:R4=""
  1. .....S Y=^(R4),Y=+$E(Y,4,5)_"/"_+$E(Y,6,7)_"/"_+$E(Y,2,3)
  1. .....S ABPACHK("XMIT")=Y,ABPAINS=$P(^AUTNINS(RR,0),"^")
  1. .....S ACCTPT=$P(^DIC(4,R3,0),"^")
  1. .....S TCNT=TCNT+1 W !!,$J(TCNT,2),".",?4,"It is requested that "
  1. .....W "check number ",R," in the amount of $",$J(R1,8,2),!?4
  1. .....W "from ",ABPAINS," originally deposited for",!?4
  1. .....W ACCTPT," be deducted from private insurance collections"
  1. .....W !?4,"as it has been determined the check was not issued "
  1. .....W "as reimbursement",!?4,"for patient care.",!!?4
  1. .....W "This was originally submitted on the transmittal dated "
  1. .....W ABPACHK("XMIT"),"." I $Y>46 D ^%AUCLS,HD^ABPACLG4
  1. Q