Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Caller Graph |  Entry Points |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Local Variables |  All
Print Page as PDF
Routine: AGMSP5

Package: IHS Patient Registration

Routine: AGMSP5


Information

AGMSP5 ; IHS/ASDS/EFG - PRINT PAGE 5 OF MSP FORM ;

Source Information

Source file <AGMSP5.m>

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
IHS Patient Registration 1 AGMSPFRM  

Entry Points

Name Comments DBIA/ICR reference
BLANK1 ;THIS SECTION IS USED TO PRINT THE BLANK PAGE 5
EN ;EP
MAP1 ;THIS SECTION IS USED TO PRINT THE PATIENT'S DATA ON THE FORM

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !,"PART V - Disability (con't)",!
  • Line Location: EN+1
Function Call: WRITE
  • Prompt: !,?50,"Continued on next page ==>"
  • Line Location: EN+4
Function Call: WRITE
  • Prompt: !,AGLINE("EQ")
  • Line Location: EN+5
Function Call: WRITE
  • Prompt: !,$P($G(^DIC(4,DUZ(2),0)),U),?73,"PAGE 5"
  • Line Location: EN+6
Function Call: WRITE
  • Prompt: !,?2,"2. Is a family member currently employed ? "
  • Line Location: BLANK1+1
Function Call: WRITE
  • Prompt: !,?5,"[ ] YES"
  • Line Location: BLANK1+2
Function Call: WRITE
  • Prompt: !,?14,"Name and address of family member's employer : ",!
  • Line Location: BLANK1+3
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: BLANK1+4
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: BLANK1+5
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50)
  • Line Location: BLANK1+6
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO",!
  • Line Location: BLANK1+7
Function Call: WRITE
  • Prompt: !?2,"If the patient answers no to both questions 1 and 2, Medicare is primary"
  • Line Location: BLANK1+8
Function Call: WRITE
  • Prompt: !?2,"unless the patient answered yes to questions in part I or II."
  • Line Location: BLANK1+9
Function Call: WRITE
  • Prompt: !?2,"STOP. DO NOT PROCEED ANY FURTHER."
  • Line Location: BLANK1+10
Function Call: WRITE
  • Prompt: !!?2,"3. Do you have group health plan (GHP) coverage based on your own or a family"
  • Line Location: BLANK1+11
Function Call: WRITE
  • Prompt: !,?5,"member's current employment ? "
  • Line Location: BLANK1+12
Function Call: WRITE
  • Prompt: !,?5,"[ ] YES"
  • Line Location: BLANK1+13
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO. STOP. Medicare is primary unless the patient answered yes to"
  • Line Location: BLANK1+14
Function Call: WRITE
  • Prompt: !?19,"questions in part I or II.",!
  • Line Location: BLANK1+15
Function Call: WRITE
  • Prompt: !,?2,"4. Does the employer that sponsors your GHP employ 100 or more employees ? ",!
  • Line Location: BLANK1+16
Function Call: WRITE
  • Prompt: !,?5,"[ ] YES. STOP. The GHP is primary. Obtain the following information:",!
  • Line Location: BLANK1+17
Function Call: WRITE
  • Prompt: !,?14,"Name and address of GHP : ",!
  • Line Location: BLANK1+18
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: BLANK1+19
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: BLANK1+20
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: BLANK1+21
Function Call: WRITE
  • Prompt: !,?14,"Policy Identification Number : _______________",!
  • Line Location: BLANK1+22
Function Call: WRITE
  • Prompt: !,?14,"Group Identification Number : _______________",!
  • Line Location: BLANK1+23
Function Call: WRITE
  • Prompt: !,?14,"Name of Policy Holder : ______________________",!
  • Line Location: BLANK1+24
Function Call: WRITE
  • Prompt: !,?14,"Relationship to Patient : ____________________",!
  • Line Location: BLANK1+25
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO. STOP. Medicare is primary unless the patient answered yes to"
  • Line Location: BLANK1+26
Function Call: WRITE
  • Prompt: !?19,"questions in part I or II.",!
  • Line Location: BLANK1+27
Function Call: WRITE
  • Prompt: !!!
  • Line Location: BLANK1+28
Function Call: WRITE
  • Prompt: !,?2,"2. Is a family member currently employed ? ",!
  • Line Location: MAP1+1
Function Call: WRITE
  • Prompt: !,?5,"[ ] YES",!
  • Line Location: MAP1+3
Function Call: WRITE
  • Prompt: !,?14,"Name and address of family member's employer : ",!
  • Line Location: MAP1+4
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+5
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+6
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+7
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO",!
  • Line Location: MAP1+8
Function Call: WRITE
  • Prompt: !,?5,"[X] NO",!
  • Line Location: MAP1+9
Function Call: WRITE
  • Prompt: !,?5,"[X] YES",!
  • Line Location: MAP1+14
Function Call: WRITE
  • Prompt: !,?14,"Name and address of family member's employer : ",!
  • Line Location: MAP1+15
Function Call: WRITE
  • Prompt: !,?14,$P(AG("EMPADDR"),U),!
  • Line Location: MAP1+16
Function Call: WRITE
  • Prompt: !,?14,$P(AG("EMPADDR"),U,2),!
  • Line Location: MAP1+17
Function Call: WRITE
  • Prompt: !,?14,$P(AG("EMPADDR"),U,3)
  • Line Location: MAP1+18
Function Call: WRITE
  • Prompt: ", ",$P($G(^DIC(5,$P(AG("EMPADDR"),U,4),0)),U,2)
  • Line Location: MAP1+20
Function Call: WRITE
  • Prompt: ", ",$P(AG("EMPADDR"),U,5),!
  • Line Location: MAP1+21
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO",!
  • Line Location: MAP1+22
Function Call: WRITE
  • Prompt: !,?5,"[X] YES",!
  • Line Location: MAP1+24
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+25
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+26
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+27
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO",!
  • Line Location: MAP1+28
Function Call: WRITE
  • Prompt: !?2,"3. Do you have group health plan (GHP) coverage based on your own, or a family"
  • Line Location: MAP1+30
Function Call: WRITE
  • Prompt: !,?5,"member's current employment ? ",!
  • Line Location: MAP1+31
Function Call: WRITE
  • Prompt: !,?5,"[ ] YES",!
  • Line Location: MAP1+33
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO",!
  • Line Location: MAP1+34
Function Call: WRITE
  • Prompt: !,?5,"[X] NO",!
  • Line Location: MAP1+35
Function Call: WRITE
  • Prompt: !,?5,"[X] YES",!
  • Line Location: MAP1+37
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO",!
  • Line Location: MAP1+38
Function Call: WRITE
  • Prompt: !,?2,"4. Does the employer that sponsors your GHP employ 100 or more employees ? ",!
  • Line Location: MAP1+40
Function Call: WRITE
  • Prompt: !,?5,"[ ] YES",!
  • Line Location: MAP1+42
Function Call: WRITE
  • Prompt: !,?14,"Name and address of GHP : ",!
  • Line Location: MAP1+43
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+44
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+45
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+46
Function Call: WRITE
  • Prompt: !,?14,"Policy Identification Number : _______________",!
  • Line Location: MAP1+47
Function Call: WRITE
  • Prompt: !,?14,"Group Identification Number : _______________",!
  • Line Location: MAP1+48
Function Call: WRITE
  • Prompt: !,?14,"Name of Policy Holder : ______________________",!
  • Line Location: MAP1+49
Function Call: WRITE
  • Prompt: !,?14,"Relationship to Patient : ____________________",!
  • Line Location: MAP1+50
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO",!
  • Line Location: MAP1+51
Function Call: WRITE
  • Prompt: !,?5,"[X] NO",!
  • Line Location: MAP1+52
Function Call: WRITE
  • Prompt: !,?5,"[X] YES",!
  • Line Location: MAP1+54
Function Call: WRITE
  • Prompt: !,?14,"Name and address of GHP : ",!
  • Line Location: MAP1+55
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+57
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+58
Function Call: WRITE
  • Prompt: !,?14,$E(AGLINE("_"),1,50),!
  • Line Location: MAP1+59
Function Call: WRITE
  • Prompt: !,?14,$P(AG("INSADDR"),U),!
  • Line Location: MAP1+63
Function Call: WRITE
  • Prompt: !,?14,$P(AG("INSADDR"),U,2),!
  • Line Location: MAP1+64
Function Call: WRITE
  • Prompt: !,?14,$P(AG("INSADDR"),U,3)
  • Line Location: MAP1+65
Function Call: WRITE
  • Prompt: ", ",$P($G(^DIC(5,$P(AG("INSADDR"),U,4),0)),U,2)
  • Line Location: MAP1+67
Function Call: WRITE
  • Prompt: ", ",$P(AG("INSADDR"),U,5),!
  • Line Location: MAP1+68
Function Call: WRITE
  • Prompt: !,?14,"Policy Identification Number : _______________",!
  • Line Location: MAP1+70
Function Call: WRITE
  • Prompt: !,?14,"Policy Identification Number : ",$P(MSPRES(9000037,AG("DA"),.49),U),!
  • Line Location: MAP1+72
Function Call: WRITE
  • Prompt: !,?14,"Group Identification Number : _______________",!
  • Line Location: MAP1+74
Function Call: WRITE
  • Prompt: !,?14,"Group Identification Number : ",$P(MSPRES(9000037,AG("DA"),.51),U),!
  • Line Location: MAP1+76
Function Call: WRITE
  • Prompt: !,?14,"Name of Policy Holder : ______________________",!
  • Line Location: MAP1+78
Function Call: WRITE
  • Prompt: !,?14,"Name of Policy Holder : ",$P(MSPRES(9000037,AG("DA"),.52),U),!
  • Line Location: MAP1+80
Function Call: WRITE
  • Prompt: !,?14,"Relationship to Patient : ____________________",!
  • Line Location: MAP1+82
Function Call: WRITE
  • Prompt: !,?14,"Relationship to Patient : ",$P($G(^AUTTRLSH(AG("RELPTR"),0)),U),!
  • Line Location: MAP1+85
Function Call: WRITE
  • Prompt: !,?5,"[ ] NO",!
  • Line Location: MAP1+86

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AUPNMSP - [#9000037] MAP1+11, MAP1+61, MAP1+84
^AUTNEMPL - [#9999999.75] MAP1+13
^AUTNINS - [#9999999.18] MAP1+62
^AUTTRLSH - [#9999999.36] MAP1+85
^DIC(4 - [#4] EN+6
^DIC(5 - [#5] MAP1+20, MAP1+67

Label References

Name Line Occurrences
BLANK1 EN+2
MAP1 EN+3

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> AG("DA" MAP1+2, MAP1+8, MAP1+9, MAP1+10, MAP1+11, MAP1+32, MAP1+34, MAP1+35, MAP1+36, MAP1+41
, MAP1+51, MAP1+52, MAP1+53, MAP1+56, MAP1+60, MAP1+61, MAP1+69, MAP1+71, MAP1+72, MAP1+73
, MAP1+75, MAP1+76, MAP1+77, MAP1+79, MAP1+80, MAP1+81, MAP1+83, MAP1+84
>> AG("EMPADDR" MAP1+13*, MAP1+16, MAP1+17, MAP1+18, MAP1+19, MAP1+20, MAP1+21, MAP1+23, MAP1+87!
>> AG("EMPPTR" MAP1+11*, MAP1+12, MAP1+13, MAP1+87!
>> AG("INSADDR" MAP1+62*, MAP1+63, MAP1+64, MAP1+65, MAP1+66, MAP1+67, MAP1+68, MAP1+87!
>> AG("INSPTR" MAP1+61*, MAP1+62, MAP1+87!
>> AG("MSPPRINT" EN+2, EN+3
>> AG("RELPTR" MAP1+84*, MAP1+85, MAP1+87!
>> AGLINE("EQ" EN+5
>> AGLINE("_" BLANK1+4, BLANK1+5, BLANK1+6, BLANK1+19, BLANK1+20, BLANK1+21, MAP1+5, MAP1+6, MAP1+7, MAP1+25
, MAP1+26, MAP1+27, MAP1+44, MAP1+45, MAP1+46, MAP1+57, MAP1+58, MAP1+59
DUZ(2 EN+6
>> MSPRES(9000037 MAP1+2, MAP1+8, MAP1+9, MAP1+10, MAP1+32, MAP1+34, MAP1+35, MAP1+36, MAP1+41, MAP1+51
, MAP1+52, MAP1+53, MAP1+56, MAP1+60, MAP1+69, MAP1+71, MAP1+72, MAP1+73, MAP1+75, MAP1+76
, MAP1+77, MAP1+79, MAP1+80, MAP1+81, MAP1+83
U EN+6, MAP1+2, MAP1+8, MAP1+9, MAP1+10, MAP1+11, MAP1+16, MAP1+17, MAP1+18, MAP1+19
, MAP1+20, MAP1+21, MAP1+32, MAP1+34, MAP1+35, MAP1+36, MAP1+41, MAP1+51, MAP1+52, MAP1+53
, MAP1+56, MAP1+60, MAP1+61, MAP1+63, MAP1+64, MAP1+65, MAP1+66, MAP1+67, MAP1+68, MAP1+69
, MAP1+71, MAP1+72, MAP1+73, MAP1+75, MAP1+76, MAP1+77, MAP1+79, MAP1+80, MAP1+81, MAP1+83
, MAP1+84, MAP1+85
Info |  Source |  Caller Graph |  Entry Points |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Local Variables |  All