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

Package: Mental Health Social Services

Routine: AMHRLKUP


Information

AMHRLKUP ; IHS/CMI/LAB - lookup up record ;

Source Information

Source file <AMHRLKUP.m>

Call Graph

Call Graph Total: 5

Package Total Call Graph
VA Fileman 3 DD^%DT  $$GET1^DIQ  ^DIR  
Mental Health Social Services 2 PAUSE^AMHLEIN  ($$ALLOWP,$$ALLOWVI,$$PPNAME,NALLOWP)^AMHUTIL  

Caller Graph

Caller Graph Total: 5

Package Total Caller Graph
Mental Health Social Services 5 AMHDLOG  AMHLEER  AMHLEP1  AMHLEP2  AMHRDISP  

Entry Points

Name Comments DBIA/ICR reference
DISPRECS ;display visits for selection by user
HEAD ;
EN ;EP
HEAD1 ;
EOJ ;
COLLECT ;
SELECT ;

External References

Name Field # of Occurrence
DD^%DT HEAD1+4
PAUSE^AMHLEIN SELECT+2
$$ALLOWP^AMHUTIL EN+3, COLLECT+7
$$ALLOWVI^AMHUTIL COLLECT+6
$$PPNAME^AMHUTIL DISPRECS+5
NALLOWP^AMHUTIL EN+3
$$GET1^DIQ DISPRECS+14
^DIR HEAD+2, SELECT+1

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"No visits currently on file for ",$P(^DPT(AMHPAT,0),U),".",!
  • Line Location: EN+4
Function Call: WRITE
  • Prompt: !!,"No visits currently on file for ",$P(^DIC(4,AMHLOC,0),U),".",!
  • Line Location: EN+5
Function Call: WRITE
  • Prompt: !
  • Line Location: HEAD+2
Function Call: WRITE
  • Prompt: !,AMHDASH
  • Line Location: HEAD1+3
Function Call: WRITE
  • Prompt: !?13,"Behavioral Health visits for "
  • Line Location: HEAD1+4
Function Call: WRITE
  • Prompt: Y
  • Line Location: HEAD1+4
Function Call: WRITE
  • Prompt: Y
  • Line Location: HEAD1+4
Function Call: WRITE
  • Prompt: !,AMHDASH
  • Line Location: HEAD1+5
Function Call: WRITE
  • Prompt: !," #",?7,"PROVIDER",?18,"LOC",?23,"COMMUNITY",?33,"ACT",?37,"CONT",?42,"PATIENT",?55,"PROB",?64,"NARRATIVE",!,AMHDASH
  • Line Location: HEAD1+6
Function Call: WRITE
  • Prompt: !
  • Line Location: SELECT+1
Function Call: WRITE
  • Prompt: !,"No Records selected to display."
  • Line Location: SELECT+2
Function Call: WRITE
  • Prompt: !,"Invalid selection!!"
  • Line Location: SELECT+3
Function Call: WRITE
  • Prompt: ?42,$P(^AUTTLOC($P(AMHR0,U,4),0),U,7)," ",$P(^AUPNPAT($P(AMHR0,U,8),41,$P(AMHR0,U,4),0),U,2)
  • Line Location: DISPRECS+10
Function Call: WRITE
  • Prompt: ?42,$P(^AUTTLOC(DUZ(2),0),U,7)," ",$P(^AUPNPAT($P(AMHR0,U,8),41,DUZ(2),0),U,2)
  • Line Location: DISPRECS+11
Function Call: WRITE
  • Prompt: ?42,"-----"
  • Line Location: DISPRECS+12
Function Call: WRITE
  • Prompt: ?55,"No Problems recorded."
  • Line Location: DISPRECS+13
Function Call: WRITE
  • Prompt: ?64,$E($$GET1^DIQ(9002011.01,AMHP,.04),1,15)
  • Line Location: DISPRECS+14
Routine Call
  • DIR
  • Line Location:
    • HEAD+2
    • SELECT+1

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^AMHRPRO - [#9002011.01] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AMHPROB - [#9002012.2] DISPRECS+14
^AMHREC - [#9002011] COLLECT+2, COLLECT+5, DISPRECS+3
^AMHREC("AA" EN+5
^AMHREC("B" COLLECT+1, COLLECT+2
^AMHREC("C" EN+4
^AMHRPRO - [#9002011.01] DISPRECS+14
^AMHRPRO("AD" DISPRECS+13
^AMHTACT - [#9002012] DISPRECS+8
^AMHTSET - [#9002012.1] DISPRECS+8
^AUPNPAT - [#9000001] DISPRECS+10, DISPRECS+11
^AUTTCOM - [#9999999.05] DISPRECS+7
^AUTTLOC - [#9999999.06] DISPRECS+6, DISPRECS+10, DISPRECS+11
^DIC(4 - [#4] EN+5, HEAD1+4
^DPT - [#2] EN+4

Label References

Name Line Occurrences
COLLECT EN+7
DISPRECS EN+10
EOJ EN+1, EN+8, EN+9
HEAD DISPRECS+2, DISPRECS+4
HEAD1 HEAD+1
SELECT EN+11, SELECT+3

Naked Globals

Name Field # of Occurrence
^(0 DISPRECS+6

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> AMHDASH EN+6*, HEAD1+3, HEAD1+5, HEAD1+6
>> AMHDATE EN+5, HEAD1+4, COLLECT+1
>> AMHEHR COLLECT+5
>> AMHLOC EN+5, HEAD1+4, COLLECT+3
AMHODAT EOJ+1!, COLLECT+1*, COLLECT+2
AMHP EOJ+1!, DISPRECS+13*, DISPRECS+14
>> AMHPAT EN+3, EN+4, COLLECT+4
AMHPG EOJ+1!, HEAD+1, HEAD1+1*, DISPRECS+1*
AMHQUIT EOJ+1!, HEAD+2*, COLLECT+1, COLLECT+2, DISPRECS+4
AMHR EN+2!, EN+8*, EN+9!, SELECT+4*
AMHR0 EOJ+1!, COLLECT+2*, COLLECT+3, COLLECT+4, COLLECT+7, DISPRECS+3*, DISPRECS+6, DISPRECS+7, DISPRECS+8, DISPRECS+9
, DISPRECS+10, DISPRECS+11
AMHRCNT EN+8, EN+9, EOJ+1!, SELECT+1, COLLECT+1*, COLLECT+8*
AMHRCTR EOJ+1!, DISPRECS+1*, DISPRECS+3*, DISPRECS+5
>> AMHRIEN COLLECT+1*, COLLECT+2*, COLLECT+5, COLLECT+6, COLLECT+8, DISPRECS+1*, DISPRECS+3*, DISPRECS+5, DISPRECS+13
AMHRRECS EOJ+1!
AMHRRECS( SELECT+3, SELECT+4, COLLECT+8*, DISPRECS+3
AMHRRECS(1 EN+8
DIR HEAD+2!, SELECT+1!
DIR("A" SELECT+1*
DIR(0 HEAD+2*, SELECT+1*
>> DIRUT SELECT+1*, SELECT+2
>> DTOUT HEAD+2
>> DUOUT SELECT+1
DUZ EN+3, COLLECT+6, COLLECT+7
DUZ(2 DISPRECS+11
IO HEAD+2
IO(0 HEAD+2
IOF HEAD1+2
IOSL DISPRECS+4
IOST HEAD+2
U EN+4, EN+5, HEAD1+4, COLLECT+3, COLLECT+4, COLLECT+5, COLLECT+7, DISPRECS+6, DISPRECS+7, DISPRECS+8
, DISPRECS+9, DISPRECS+10, DISPRECS+11, DISPRECS+14
>> Y HEAD+2, HEAD1+4*, SELECT+3, SELECT+4
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All