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 |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables |  All
Print Page as PDF
Routine: AMHGP

Package: Mental Health Social Services

Routine: AMHGP


Information

AMHGP ; IHS/CMI/MAW - AMHG Patient Lookup 4/28/2009 12:43:21 PM ;

Source Information

Source file <AMHGP.m>

Call Graph

Call Graph Total: 7

Package Total Call Graph
Mental Health Social Services 2 $$LVDT^AMHGU  $$GUIPL^AMHUTIL  
VA Fileman 2 ^%DT  $$GET1^DIQ  
IHS Changes To ADT 1 $$STATUS^BDGSPT2  
IHS Patient 1 ($$AGE,$$HRN)^AUPNPAT  
Registration 1 (NOTICE,OWNREC,SENS)^DGSEC4  

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Mental Health Social Services 1 AMHGDA  

Entry Points

Name Comments DBIA/ICR reference
PATSSN(PAT) ;EP -- look up by ssn
GETPAT(RETVAL,AMHSTR) ;EP -- return patient in ADO table
BEGIN(PT) ;EP -- get begin point
PATSTR(RETVAL,AMHSTR) ;EP -- return the patient demographic information
PATDOB(AMHPATE,PAT) ;EP -- lookup by DOB
LOGPAT(RETVAL,AMHSTR) ;-- log sensitive patient information
DGSEC(RESULT,DFN,DUZ,DGMSG) ;EP -- mock the dgsec call but dont log, couldnt find a way to call PTSEC^DGSEC4 without logging
PATADO(PIEN) ;EP -- ado return
PATNAM(AMHPATE,PAT,NPAT) ;lookup by name
PATCHT(AMHPIEN,PAT) ;EP -- lookup by chart

External References

Name Field # of Occurrence
^%DT GETPAT+22
$$LVDT^AMHGU PATADO+21, PATADO+33
$$GUIPL^AMHUTIL PATADO+5
$$AGE^AUPNPAT PATADO+34
$$HRN^AUPNPAT PATADO+24
$$STATUS^BDGSPT2 DGSEC+2
NOTICE^DGSEC4 LOGPAT+11, LOGPAT+13
OWNREC^DGSEC4 DGSEC+6
SENS^DGSEC4 DGSEC+10
$$GET1^DIQ PATADO+36, LOGPAT+12

Used in RPC

RPC Name Call Tags
AMHG GET PATIENT GETPAT
AMHG GET PATIENT DEMOGRAPHICS PATSTR
AMHG LOG SENSITIVE PATIENT LOGPAT

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DG(43 - [#43] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^%ZOSF("TRAP" GETPAT+1, PATSTR+1, LOGPAT+1
^AMHTMP($J GETPAT+4!, GETPAT+8*, GETPAT+26*, PATADO+38*, PATSTR+4!, PATSTR+8*, PATSTR+13*, LOGPAT+4!
^AUPNPAT - [#9000001] PATADO+31
^AUPNPAT("D" PATCHT+4, PATCHT+5, PATCHT+6
^DGSL(38.1 - [#38.1] LOGPAT+13
^DPT - [#2] PATADO+19, PATADO+21, PATADO+23, PATADO+25, PATADO+33
^DPT("ADOB" PATDOB+3, PATDOB+4
^DPT("B" PATNAM+7, PATNAM+8, PATNAM+10, PATNAM+11, PATNAM+16, BEGIN+4, BEGIN+5, BEGIN+6, BEGIN+8
^DPT("SSN" PATSSN+1

Label References

Name Line Occurrences
$$BEGIN PATNAM+5
$$PATCHT GETPAT+20
$$PATDOB GETPAT+23
$$PATSSN GETPAT+18
DGSEC PATADO+7, LOGPAT+8
PATADO GETPAT+25, PATSTR+12
PATNAM GETPAT+24

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
AMHAGE GETPAT+27!, PATADO+34*, PATADO+35*, PATADO+38
>> AMHAL PATADO+4*, PATADO+19
AMHCNT GETPAT+27!, PATCHT+2~, PATCHT+3*, PATCHT+4, PATCHT+10*, PATCHT+11, PATCHT+12, PATDOB+1~, PATDOB+2*, PATDOB+3
, PATDOB+5, PATDOB+6*, PATDOB+7, PATDOB+8, PATNAM+1*, PATNAM+13*, PATNAM+14, PATNAM+15, PATNAM+17*, PATNAM+18
, PATNAM+19, PATNAM+20
AMHCNTR GETPAT+27!, PATADO+1*, PATADO+17, PATADO+18*
AMHCT GETPAT+27!, PATADO+24*, PATADO+38
AMHDA GETPAT+27!, PATCHT+4*, PATCHT+5, PATCHT+6, PATADO+2*, PATADO+3, PATADO+4
AMHDB GETPAT+27!, PATADO+21*, PATADO+22*, PATADO+38
AMHDG GETPAT+27!, PATADO+7
AMHDG( PATADO+13, PATADO+14, PATADO+15
AMHDG(1 PATADO+9, PATADO+10
AMHDGDA PATADO+11~, PATADO+13*, PATADO+14, PATADO+15, LOGPAT+2~
AMHDGMSG PATADO+8~, PATADO+12*, PATADO+15*, PATADO+16*, PATADO+38, LOGPAT+2~
>> AMHDOB PATDOB+3*, PATDOB+4
AMHDOD GETPAT+27!, PATADO+33*, PATADO+38
AMHDUZ2 GETPAT+9*, GETPAT+13*, GETPAT+27!, PATCHT+8, PATADO+5, PATADO+24, PATSTR+10*
AMHERRR GETPAT+2~, GETPAT+7*, PATSTR+2~, PATSTR+7*, LOGPAT+2~
AMHFLAG PATADO+8~, PATADO+10*, PATADO+22, PATADO+30, PATADO+35, PATADO+36*, PATADO+38, LOGPAT+2~, LOGPAT+9*, LOGPAT+10*
, LOGPAT+11
>> AMHHD PATADO+38
AMHI GETPAT+2~, GETPAT+6*, GETPAT+8, GETPAT+26, PATADO+37*, PATADO+38, PATSTR+2~, PATSTR+6*, PATSTR+8, PATSTR+13
, LOGPAT+2~, LOGPAT+6*, LOGPAT+14, LOGPAT+15*, LOGPAT+16, LOGPAT+17
AMHIEN GETPAT+27!, PATCHT+5*, PATCHT+6, PATCHT+8, PATDOB+4*, PATDOB+7, PATNAM+8*, PATNAM+10, PATNAM+11, PATNAM+15
, PATNAM+16, PATNAM+19
AMHLEN PATNAM+2~, PATNAM+3*, PATNAM+7
>> AMHMCNT PATCHT+3*
AMHMORE GETPAT+27!, PATADO+38
AMHMT GETPAT+11*, GETPAT+15*, GETPAT+16*, GETPAT+27!, PATCHT+4, PATDOB+3, PATADO+17, PATSTR+11*
AMHNAM GETPAT+27!, PATNAM+4*, PATNAM+5*, PATNAM+6*, PATNAM+7*, PATNAM+8, PATNAM+10, PATNAM+11, PATNAM+15, PATNAM+16
AMHNM GETPAT+27!, PATADO+19*, PATADO+38
AMHNPAT GETPAT+12*, GETPAT+24, GETPAT+28!
AMHOEN PATCHT+2~, PATCHT+6*, PATCHT+8, PATNAM+9~, PATNAM+11*
AMHPAT GETPAT+10*, GETPAT+17, GETPAT+18, GETPAT+19, GETPAT+20, GETPAT+21, GETPAT+22*, GETPAT+23, GETPAT+24, GETPAT+27!
, PATSTR+12, LOGPAT+2~, LOGPAT+7*, LOGPAT+8, LOGPAT+11, LOGPAT+13
AMHPAT(1 PATSTR+9*
AMHPATE GETPAT+27!, PATCHT+3*, PATDOB~, PATDOB+2*, PATDOB+6*, PATDOB+8*, PATDOB+9, PATNAM~, PATNAM+1*, PATNAM+20*
, PATNAM+21
AMHPATE( PATDOB+5*, PATDOB+7*, PATNAM+14*, PATNAM+15*, PATNAM+18*, PATNAM+19*
AMHPATS GETPAT+25, GETPAT+28!
AMHPCNT BEGIN+1~, BEGIN+2*
AMHPDA BEGIN+1~, BEGIN+3*, BEGIN+4, BEGIN+5*, BEGIN+6*, BEGIN+7, BEGIN+8
AMHPI GETPAT+28!, PATADO+3*, PATADO+5, PATADO+7, PATADO+19, PATADO+21, PATADO+23, PATADO+24, PATADO+25, PATADO+31
, PATADO+33, PATADO+34, PATADO+38
AMHPIEN GETPAT+18*, GETPAT+20*, GETPAT+23*, GETPAT+24, GETPAT+25, GETPAT+27!, PATSSN+1*, PATSSN+2, PATSSN+3, PATCHT~
, PATCHT+6, PATCHT+8*, PATCHT+9, PATCHT+12, PATCHT+13, BEGIN+1~
AMHPIEN( PATCHT+11*, PATCHT+12*
AMHPIEN(1 PATSSN+2*
AMHSSN GETPAT+27!, PATADO+25*, PATADO+26, PATADO+28, PATADO+29*, PATADO+30*, PATADO+38
AMHSTR GETPAT~, GETPAT+9, GETPAT+10, GETPAT+11, GETPAT+12, PATSTR~, PATSTR+9, PATSTR+10, LOGPAT~, LOGPAT+7
AMHSX GETPAT+27!, PATADO+23*, PATADO+38
AMHUIEN GETPAT+2~, PATSTR+2~
AMHUPD GETPAT+28!, PATADO+31*
DFN DGSEC~, DGSEC+2, DGSEC+6, DGSEC+10
DGMSG DGSEC~, DGSEC+1*, DGSEC+3, DGSEC+6
DT PATADO+34
DUZ PATADO+5, PATADO+7, LOGPAT+8, DGSEC~, DGSEC+2, DGSEC+6, DGSEC+10
DUZ(2 GETPAT+13
LN PATADO+27~, PATADO+28*, PATADO+29
NPAT PATNAM~, PATNAM+6
P GETPAT+2~, GETPAT+3*, GETPAT+9, GETPAT+10, GETPAT+11, GETPAT+12, PATSTR+2~, PATSTR+3*, PATSTR+9, PATSTR+10
, LOGPAT+2~, LOGPAT+3*, LOGPAT+7
PAT PATSSN~, PATSSN+1, PATCHT~, PATCHT+4, PATDOB~, PATDOB+3, PATNAM~, PATNAM+3, PATNAM+4, PATNAM+5
, PATNAM+7
PIEN PATADO~
PIEN( PATADO+2, PATADO+3, PATADO+4
PT BEGIN~, BEGIN+3
RESULT LOGPAT+2~, LOGPAT+8, LOGPAT+11, LOGPAT+13, LOGPAT+16, DGSEC~, DGSEC+6, DGSEC+9!, DGSEC+10
RESULT(1 LOGPAT+9, LOGPAT+10, LOGPAT+11, LOGPAT+12, DGSEC+3*, DGSEC+7*, DGSEC+8*
RESULT(2 DGSEC+4*
RESULT(3 DGSEC+5*
RETVAL GETPAT~, GETPAT+5*, PATSTR~, PATSTR+5*, LOGPAT~, LOGPAT+5*, LOGPAT+14, LOGPAT+16, LOGPAT+17
U PATNAM+15, PATADO+3, PATADO+4, PATADO+19, PATADO+21, PATADO+23, PATADO+25, PATADO+31, PATADO+33, PATADO+38
, LOGPAT+13
>> X GETPAT+1*, GETPAT+22*, PATSTR+1*, LOGPAT+1*
>> Y GETPAT+22
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables |  All