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

AGMSPI5.m

Go to the documentation of this file.
  1. AGMSPI5 ; IHS/SD/EFG - MSP INTERVIEW PART 5 ;
  1. ;;7.1;PATIENT REGISTRATION;**8,10**;AUG 25, 2005;Build 7
  1. ;
  1. EN ;EP -
  1. W !,"PART V - Disability"
  1. W !
  1. QUES1 ;ASK QUESTION NUMBER 1
  1. S DR=".41 Are you currently employed ? (Y/N) "
  1. D ^DIE
  1. K DIR("NO^")
  1. Q:$D(Y) ;AG*7.1*8
  1. S PARTV1=X
  1. I X="Y" D Q:$D(Y) ;AG*7.1*8
  1. . S DR=".42 Name of your employer : "
  1. . D ^DIE
  1. I X="N" D Q:$D(Y) ;AG*7.1*8
  1. . S DR=".43 Date of retirement : "
  1. . D ^DIE
  1. QUES2 ;ASK QUESTION NUMBER 2
  1. S DR=".44 Is a family member currently employed ? (Y/N) "
  1. D ^DIE
  1. K DIE("NO^")
  1. Q:$D(Y) ;AG*7.1*8
  1. S PARTV2=X
  1. I X="Y" D Q:$D(Y) ;AG*7.1*8
  1. . S DR=".45 Name of the family member's employer : "
  1. . D ^DIE
  1. I ($G(PARTV1)="N")&($G(PARTV2)="N") D Q ;AG*7.1*8
  1. . W !,"If the patient answers no to both questions 1 and 2, Medicare is primary"
  1. . W !,"unless the patient answered yes to questions in part I or II."
  1. . S DIR(0)="E"
  1. . S DIR("A")="STOP. DO NOT PROCEED. Press any key to exit."
  1. . D ^DIR ;AG*7.1*8
  1. . K DIR
  1. . Q
  1. ;
  1. QUES3 ;ASK QUESTION NUMBER 3
  1. S DR=".46 Do you have group health plan (GHP) coverage based on your own, or a family member's current employment ? (Y/N) "
  1. D ^DIE
  1. K DIE("NO^")
  1. Q:$D(Y) ;AG*7.1*8
  1. S PARTV3=X
  1. ; I X="N" W !,"STOP. Medicare is primary unless the patient answered yes to questions in part I or II." ;AG*7.1*8
  1. QUES4 ;ASK QUESTION NUMBER 4
  1. S DR=".47 Does the employer that sponsors your GHP employ 100 or more amployees ? (Y/N)"
  1. D ^DIE
  1. K DIE("NO^")
  1. Q:$D(Y) ;AG*7.1*8
  1. S PARTV4=X
  1. I X="Y" D Q:$D(Y)
  1. .W !,"The GHP is primary. Obtain the following information:"
  1. . S DR=".48 Name of GHP : "
  1. . D ^DIE
  1. . Q:$D(Y) ;AG*7.1*8
  1. . S DR=".49 Policy identification number : "
  1. . D ^DIE
  1. . Q:$D(Y) ;AG*7.1*8
  1. . S DR=".51 Group identification number : "
  1. . D ^DIE
  1. . Q:$D(Y) ;AG*7.1*8
  1. . S DR=".52 Name of policy holder : "
  1. . D ^DIE
  1. . Q:$D(Y) ;AG*7.1*8
  1. . S DR=".53 Relationship to patient : "
  1. . D ^DIE
  1. . Q:$D(Y) ;AG*7.1*8
  1. ; E W !,"STOP. Medicare is primary unless the patient answered yes to questions in part I and II." ;AG*7.1*8
  1. S DR=".05////^S X=DUZ"
  1. D ^DIE
  1. Q