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

DG53426N.m

Go to the documentation of this file.
  1. DG53426N ;ALB/AEG - DG*5.3*426 POST INSTALL CONT. ;2-21-02
  1. ;;5.3;Registration;**426,1015**;2-21-02;Build 21
  1. ;
  1. CAT2P ; Process those tests where the patient was in a 'REQUIRED' status but
  1. ; had a test on file previously that was Category C, patient declined
  1. ; to provide income information but did agree to pay the deductible.
  1. I $D(^TMP("P-REQ",$J)) D
  1. .N DFN,IEN,NODE0,I
  1. .S (DFN,IEN,I,NODE0)=""
  1. .S ^UTILITY($J,1)="The following 'REQUIRED' status Means Test records have"
  1. .S ^UTILITY($J,2)="been purged from your database. These records were purged"
  1. .S ^UTILITY($J,3)="due to the patient having a Means Test previously on file"
  1. .S ^UTILITY($J,4)="with a status of Category C. The Category C test on these"
  1. .S ^UTILITY($J,5)="persons is a result of the patient declining to provide"
  1. .S ^UTILITY($J,6)="income information but agreeing to pay the deductible charges."
  1. .S ^UTILITY($J,7)=" "
  1. .S ^UTILITY($J,8)=$$BLDSTR^DG53426M("PATIENT NAME","SSN"," ","PURGED TEST DATE")
  1. .S ^UTILITY($J,9)=$$BLDSTR^DG53426M("------------","---"," ","-------------")
  1. .F I=10:1 S DFN=$O(^TMP("P-REQ",$J,DFN)) Q:'DFN D
  1. ..N DFN1,MTIEN1,TDATE,PID,PNAME,TDATE1
  1. ..S DFN1=$P($G(DFN),"~~",1),MTIEN1=$P($G(DFN),"~~",2)
  1. ..S NODE0=$G(^TMP("P-REQ",$J,DFN)),TDATE=$P(NODE0,U,1)
  1. ..S Y=TDATE X ^DD("DD") S TDATE1=Y
  1. ..S PNAME=$P($G(^DPT(DFN1,0)),U,1)
  1. ..S PID=$E($P($G(^DPT(DFN1,0)),U,9),1,3)_"-"_$E($P($G(^DPT(DFN1,0)),U,9),4,5)_"-"_$E($P($G(^DPT(DFN1,0)),U,9),6,9)
  1. ..S ^UTILITY($J,I)=$$BLDSTR^DG53426M(PNAME,PID," ",TDATE1)
  1. ..Q
  1. .Q
  1. I $D(^UTILITY($J)) D
  1. .N DIFROM,%,Y,XMDUZ,XMSUB,XMTEXT,XMY,XMZ
  1. .S XMDUZ="REGISTRATION PACKAGE",XMY(DUZ)="",XMY(.5)=""
  1. .S XMTEXT="^UTILITY($J,",XMSUB="DG*5.3*426 POST INSTALL REPORT #3"
  1. .D ^XMD
  1. .D MM^DG53426U(XMZ)
  1. K ^UTILITY($J),^TMP("P-REQ"),^TMP($J,"CAT 2")
  1. Q
  1. NOCAT3 ; report no Cat Cs who declined to provide income info and who also
  1. ; refused AGREE TO PAY.
  1. I '$D(^TMP($J,"CAT 3")) D
  1. .S ^UTILITY($J,1)="No patients on file with a Means Test status of 'REQUIRED' who have"
  1. .S ^UTILITY($J,2)="a Category C test in which the patient declined to give income"
  1. .S ^UTILITY($J,3)="information and did NOT agree to pay deductible."
  1. .S ^UTILITY($J,4)=" "
  1. .N DIFROM,%,XMDUZ,XMTEXT,XMY,Y
  1. .S XMDUZ="REGISTRATION PACKAGE",XMY(DUZ)="",XMY(.5)=""
  1. .S XMSUB="DG*5.3*426 POST INSTALL REPORT #4",XMTEXT="^UTILITY($J,"
  1. .D ^XMD
  1. .D MM^DG53426U(XMZ)
  1. .K ^UTILITY($J)
  1. Q
  1. CAT3 ; report on those patients who are currently in a REQUIRED status but
  1. ; have a CAT C test on file in which they declined to give income info
  1. ; & did NOT agree to pay deductible.
  1. I $D(^TMP($J,"CAT 3")) D
  1. .N DFN,IEN,NODE0
  1. .S (DFN,IEN,NODE0)=""
  1. .S ^UTILITY($J,1)="The following patients have a current Means Test status of 'REQUIRED'."
  1. .S ^UTILITY($J,2)="The veteran declined to provide income information AND did"
  1. .S ^UTILITY($J,3)="NOT agree to pay the deductible on a previous test. Please update"
  1. .S ^UTILITY($J,4)="the 'REQUIRED' status test(s)."
  1. .S ^UTILITY($J,5)=" "
  1. .S ^UTILITY($J,6)=$$BLDSTR^DG53426M("PATIENT NAME","SSN"," ","**TEST DATE**")
  1. .S ^UTILITY($J,7)=$$BLDSTR^DG53426M("------------","---"," ","-------------")
  1. .N PID,PNAME,LST,DGMTDT,DGMTDT1
  1. .F I=8:1 S DFN=$O(^TMP($J,"CAT 3",DFN)) Q:'DFN D
  1. ..S PNAME=$P($G(^DPT(DFN,0)),U,1)
  1. ..S PID=$E($P($G(^DPT(DFN,0)),U,9),1,3)_"-"_$E($P($G(^DPT(DFN,0)),U,9),4,5)_"-"_$E($P($G(^DPT(DFN,0)),U,9),6,9)
  1. ..S LST=$$LST^DGMTU(DFN),DGMTDT=$P(LST,U,2)
  1. ..S Y=DGMTDT X ^DD("DD") S DGMTDT1=Y
  1. ..S ^UTILITY($J,I)=$$BLDSTR^DG53426M(PNAME,PID," ",DGMTDT1)
  1. ..Q
  1. .Q
  1. I $D(^UTILITY($J)) D
  1. .N DIFROM,%,XMDUZ,XMSUB,XMTEXT,XMY,XMZ
  1. .S XMDUZ="REGISTRATION PACKAGE",XMY(DUZ)="",XMY(.5)=""
  1. .S XMTEXT="^UTILITY($J,",XMSUB="DG*5.3*426 POST INSTALL REPORT #4"
  1. .D ^XMD
  1. .D MM^DG53426U(XMZ)
  1. .K ^UTILITY($J),^TMP($J,"CAT 3")
  1. Q
  1. CAT4 ;
  1. I $D(^TMP($J,"CAT 4")) D
  1. .N DFN,IEN,NODE0
  1. .S (DFN,IEN,NODE0)=""
  1. .S ^UTILITY($J,1)="The following patients have a current Means Test status of 'REQUIRED'."
  1. .S ^UTILITY($J,2)="The below patient(s) previously had a Means Test in which they did"
  1. .S ^UTILITY($J,3)="provide income information but did NOT agree to pay the deductible."
  1. .S ^UTILITY($J,4)="Please update these records."
  1. .S ^UTILITY($J,5)=" "
  1. .S ^UTILITY($J,6)=$$BLDSTR^DG53426M("PATIENT NAME","SSN"," ","**TEST DATE**")
  1. .S ^UTILITY($J,7)=$$BLDSTR^DG53426M("------------","---"," ","-------------")
  1. .N PID,PNAME,LST,DGMTDT,DGMTDT1
  1. .F I=8:1 S DFN=$O(^TMP($J,"CAT 4",DFN)) Q:'DFN D
  1. ..S PNAME=$P($G(^DPT(DFN,0)),U,1)
  1. ..S PID=$E($P($G(^DPT(DFN,0)),U,9),1,3)_"-"_$E($P($G(^DPT(DFN,0)),U,9),4,5)_"-"_$E($P($G(^DPT(DFN,0)),U,9),6,9)
  1. ..S LST=$$LST^DGMTU(DFN),DGMTDT=$P(LST,U,2)
  1. ..S Y=DGMTDT X ^DD("DD") S DGMTDT1=Y
  1. ..S ^UTILITY($J,I)=$$BLDSTR^DG53426M(PNAME,PID," ",DGMTDT1)
  1. ..Q
  1. .Q
  1. I $D(^UTILITY($J)) D
  1. .N DIFROM,%,XMDUZ,XMSUB,XMTEXT,XMY,XMZ
  1. .S XMDUZ="REGISTRATION PACKAGE",XMY(DUZ)="",XMY(.5)=""
  1. .S XMTEXT="^UTILITY($J,",XMSUB="DG*5.3*426 POST INSTALL REPORT #5"
  1. .D ^XMD
  1. .D MM^DG53426U(XMZ)
  1. .K ^UTILITY($J),^TMP($J,"CAT 4")
  1. Q
  1. NOCAT4 ;
  1. I '$D(^TMP($J,"CAT 4")) D
  1. .S ^UTILITY($J,1)="No patients currently in a Means Test 'REQUIRED' status who"
  1. .S ^UTILITY($J,2)="previously had a Category C test in which income information"
  1. .S ^UTILITY($J,3)="was provided but patient did NOT agree to pay deductible."
  1. .N DIFROM,%,XMDUZ,XMTEXT,XMY,Y
  1. .S XMDUZ="REGISTRATION PACKAGE",XMY(DUZ)="",XMY(.5)=""
  1. .S XMSUB="DG*5.3*426 POST INSTALL REPORT #5",XMTEXT="^UTILITY($J,"
  1. .D ^XMD
  1. .D MM^DG53426U(XMZ)
  1. .K ^UTILITY($J)
  1. Q