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: BHSMEDG

Package: Health Summary Components

Routine: BHSMEDG


Information

BHSMEDG ;IHS/CIA/MGH - Health Summary for V MED file ;01-May-2014 11:06;DU

Source Information

Source file <BHSMEDG.m>

Call Graph

Call Graph Total: 6

Package Total Call Graph
Health Summary Components 2 (HOLDDSP,MEDRU)^BHSMED  DISPREF^BHSRAD  
Health Summary 1 CKP^GMTSUP  
IHS VA Utilities 1 $$VAL^XBDIQ1  
Kernel 1 ($$FMADD,$$FMTE)^XLFDT  
VA Fileman 1 $$GET1^DIQ  

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Health Summary Components 1 BHSMEDCS  

Entry Points

Name Comments DBIA/ICR reference
OTH ;gather up all others by date range in components, get last of each
GETMEDS(DFN,Y,Z,SIGT) ;PEP - return array of meds for patient P
S1 ;
SITE ;DETERMINE IF OUTSIDE LOCATION INFO PRESENT
S(Y,F,C,T) ;set up array
MEDS ;EP - called from component - <SETUP>
CHRONIC(N) ;
SIG ;CONSTRUCT THE FULL TEXT FROM THE ENCODED SIG
SETARRAY ;DISPLAY MEDICATION
MEDX ;
NONVA ; S DFN=APCHSPAT,PSOACT=1 D ^PSOHCSUM
DISPLAY ;
REORDER ;

External References

Name Field # of Occurrence
HOLDDSP^BHSMED MEDS+10
MEDRU^BHSMED MEDS+15
DISPREF^BHSRAD MEDS+3, MEDS+13
$$GET1^DIQ SETARRAY+15
CKP^GMTSUP MEDS+4, DISPLAY+2, DISPLAY+4
$$VAL^XBDIQ1 REORDER+2, REORDER+3
$$FMADD^XLFDT GETMEDS+16, GETMEDS+18
$$FMTE^XLFDT SETARRAY+5, SETARRAY+9

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: ?4,"LAST OF EACH CHRONIC MEDICATION (no limit on days)",?57,"Last fill date",!!
  • Line Location: DISPLAY+1
Function Call: WRITE
  • Prompt: ^TMP("BHSMEDS",$J,"C",BHSX),!
  • Line Location: DISPLAY+2
Function Call: WRITE
  • Prompt: !?4,"LAST OF EACH OTHER MEDICATION "_GMTSEGL_"",?57,"Last fill date",!!
  • Line Location: DISPLAY+3
Function Call: WRITE
  • Prompt: ^TMP("BHSMEDS",$J,"A",BHSX),!
  • Line Location: DISPLAY+4

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^PSDRUG - [#50] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AUPNVMED - [#9000010.14] GETMEDS+24, GETMEDS+25, GETMEDS+27, OTH+3, OTH+4, OTH+6, NONVA+3, CHRONIC+2, CHRONIC+4, SETARRAY+2
^AUPNVMED("AA" GETMEDS+22, GETMEDS+23, OTH+1, OTH+2
^AUPNVMED("AC" MEDS+3
^AUPNVSIT - [#9000010] SETARRAY+5, SITE+2, SITE+3, SITE+4
^DIC(4 - [#4] SITE+4
^DPT - [#2] GETMEDS+12
^PS(50.7 - [#50.7] NONVA+9
^PS(51 - [#51] SIG+3
^PS(55 - [#55] NONVA+2, NONVA+3, NONVA+4, NONVA+7, NONVA+9, NONVA+10, CHRONIC+6
^PSDRUG - [#50] NONVA+9, NONVA+10, SETARRAY+8
^PSRX("APCC" CHRONIC+5
^TMP("BHSMEDS" MEDX+1!, DISPLAY+1, DISPLAY+2, DISPLAY+3, DISPLAY+4, GETMEDS+10!, REORDER+6!, S1+1*, S1+2*, S1+3*
^TMP($J MEDX+1!, GETMEDS+10!, GETMEDS+25, GETMEDS+27*, OTH+4, OTH+6*, NONVA+10*, REORDER+2, REORDER+3, REORDER+7!

Label References

Name Line Occurrences
$$CHRONIC GETMEDS+26, OTH+5
DISPLAY MEDS+8
GETMEDS MEDS+7
S SETARRAY+12, SETARRAY+13, SETARRAY+16, SETARRAY+17
S1 S+5, S+7, S+10
SETARRAY REORDER+4, REORDER+5
SIG SETARRAY+10
SITE SETARRAY+11

Naked Globals

Name Field # of Occurrence
^( CHRONIC+5
^(21 SITE+2
^(9 SIG+3

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% GETMEDS+9~, SETARRAY+2*, SETARRAY+3, SETARRAY+5, SETARRAY+7, SETARRAY+8, S+8*, S+9*, S1+2*, S1+3
A GETMEDS+9~, REORDER+3~
A( REORDER+3*, REORDER+5
B GETMEDS+9~
BHSC REORDER+4~*, REORDER+5~*
BHSFN MEDS+3*, MEDS+13*, MEDS+16!
BHSPAT MEDS+1~, MEDS+2*, MEDS+3, MEDS+7, NONVA+2, NONVA+3, NONVA+4, NONVA+7, NONVA+9, NONVA+10
BHST MEDS+3*, MEDS+13*, MEDS+16!
BHSX MEDX+2!, DISPLAY+2*, DISPLAY+4*, REORDER+4~*, REORDER+5~*
C GETMEDS+9~, REORDER+2*, REORDER+3*, S~, S+7
D GETMEDS+9~, NONVA+7*, NONVA+8*, NONVA+9, NONVA+10, SETARRAY+5*, SETARRAY+6*, SETARRAY+12
DFN MEDS+2, GETMEDS~, GETMEDS+11, GETMEDS+12, GETMEDS+22, GETMEDS+23, OTH+1, OTH+2
DRG SETARRAY+1~, SETARRAY+3*, SETARRAY+15
DT GETMEDS+16, GETMEDS+18
DUZ(2 SITE+4
E GETMEDS+9~, SETARRAY+7*, SETARRAY+9*
F GETMEDS+9~, S~, S+2*, S+5*
G GETMEDS+9~, SETARRAY+7*, SETARRAY+10*, SETARRAY+17, SIG+1, SIG+2, SIG+3
>> GMTS1 GETMEDS+13
>> GMTS2 GETMEDS+14
>> GMTSDLM GETMEDS+22, OTH+1, NONVA+6
>> GMTSEGL DISPLAY+3
>> GMTSQIT MEDS+4, MEDS+11, DISPLAY+2, DISPLAY+4
H GETMEDS+9~
I GETMEDS+9~, GETMEDS+21~, GETMEDS+22*, GETMEDS+23, OTH+1~*, OTH+2, REORDER+2~*, REORDER+3~*, REORDER+4~*, REORDER+5~*
, S1+1, S1+2, S1+3
J GETMEDS+9~
K GETMEDS+9~, SETARRAY+8*, SETARRAY+12
L GETMEDS+9~, NONVA+4*, NONVA+5*, NONVA+6, NONVA+10, S+7*
M GETMEDS+9~, REORDER+2~
M( REORDER+2*, REORDER+4
N GETMEDS+9~, NONVA+9*, NONVA+10, REORDER+2~*, REORDER+3~*, REORDER+4~*, REORDER+5~*, CHRONIC~, CHRONIC+1, CHRONIC+2
, CHRONIC+4, CHRONIC+5, SETARRAY+2, SETARRAY+8
O GETMEDS+9~, REORDER+2~*, REORDER+3~*
P GETMEDS+9~, CHRONIC+3~, CHRONIC+4*, CHRONIC+6, SIG+2~*, SIG+3
Q GETMEDS+9~, SETARRAY+7*, SETARRAY+12
R GETMEDS+9~
RXNORM SETARRAY+1~, SETARRAY+15*, SETARRAY+16
S GETMEDS+9~, REORDER+2~*, REORDER+3~*, SETARRAY+13, SITE+1*, SITE+2*, SITE+4*
SIGT GETMEDS~, SIG+1
T GETMEDS+9~, SETARRAY+5*, SETARRAY+6*, S~, S+3*, S+7*, S+8, S+9
U GETMEDS+25, GETMEDS+27, OTH+4, OTH+6, NONVA+3, NONVA+4, NONVA+7, NONVA+9, NONVA+10, CHRONIC+4
, SETARRAY+5, SETARRAY+7, SETARRAY+8, SITE+2, SITE+3, SITE+4, S1+2
V GETMEDS+9~, SETARRAY+5*, SETARRAY+6, SITE+2, SITE+3, SITE+4
W GETMEDS+9~
X MEDS+1~, MEDX+3!, GETMEDS+9~, GETMEDS+23~*, GETMEDS+24, GETMEDS+25, GETMEDS+26, GETMEDS+27, OTH+2*, OTH+3
, OTH+4, OTH+5, OTH+6, NONVA+2*, NONVA+3, NONVA+4, NONVA+7, NONVA+9, NONVA+10, CHRONIC+3~
, CHRONIC+5*, CHRONIC+6, SETARRAY+12*, SETARRAY+13*, SETARRAY+16*, SETARRAY+17*, SIG+2*, SIG+3*, SIG+4, S+1~
, S+5*, S+6*, S+8*, S+9*, S1+3
X1 MEDX+3!
X2 MEDX+3!
Y MEDS+1~, MEDS+6*, MEDS+7, MEDX+3!, GETMEDS~, GETMEDS+13*, GETMEDS+16*, GETMEDS+17*, CHRONIC+3~, CHRONIC+6*
, CHRONIC+7, SIG+3*, S~, S+6, S+7, S+9
Z MEDS+1~, MEDS+6*, MEDS+7, GETMEDS~, GETMEDS+14*, GETMEDS+18*, GETMEDS+19*, SETARRAY+10, SIG+1*, SIG+2*
, SIG+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