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 |  Local Variables |  All
Print Page as PDF
Routine: BDGAPI

Package: IHS Changes To ADT

Routine: BDGAPI


Information

BDGAPI ; IHS/ANMC/LJF - PATIENT MOVEMENT API'S ; [ 09/26/2002 12:59 PM ]

Source Information

Source file <BDGAPI.m>

Call Graph

Call Graph Total: 12

Package Total Call Graph
Registration 5 UC^DGPMV  ^DGPMV3  (DIE,Q)^DGSWITCH  PID^VADPT  PID^VADPT6  
VA Fileman 4 ^%DT  ^DIC  ^DIE  $$GET1^DIQ  
IHS Changes To ADT 3 $$CANCEL^BDGAPI1  ($$EDIT,FINDADM)^BDGAPI2  $$PRIORMVT^BDGF1  

Caller Graph

Caller Graph Total: 2

Package Total Caller Graph
IHS Changes To ADT 2 BDGAPI1  BDGAPI2  

Entry Points

Name Comments DBIA/ICR reference
CHECK(ARRAY) ; check common required fields
ADMD ; check admitting and referring provider fields
ADD(BDGR) ;PEP; silent API to add patient movement entries to file 405
ADMT ; -- check admit types/source
DSCT ; -- check discharge types
ATMD ; check attending and primary provider fields
ADX ; check admitting dx
1 ; add admission
DATE ; check event date field
3 ; add discharge
2 ; add transfer
EDIT(BDGR) ;PEP; silent API to edit patient movement entry in file 405
BED ; switch bed
6 ; add treating specialty transfer
CANCEL(BDGR) ;PEP; silent API to cancel patient movement entry in file 405
SRV ; -- check service (screen for active admitting services)
WARD ; -- check ward and room-bed

External References

Name Field # of Occurrence
^%DT CHECK+5
$$CANCEL^BDGAPI1 CANCEL+1
$$EDIT^BDGAPI2 EDIT+1
FINDADM^BDGAPI2 2+7, 6+7
$$PRIORMVT^BDGF1 BED+11
UC^DGPMV 1+18, 2+25, 3+26, 6+23
^DGPMV3 1+19, 2+26, 3+27, 6+24
DIE^DGSWITCH BED+13
Q^DGSWITCH BED+13
^DIC WARD+4, WARD+9, SRV+6, ADMT+4, ADMT+20, DSCT+5, DSCT+11, ADMD+7, ATMD+6, ATMD+12
^DIE 1+26
$$GET1^DIQ 1+25, 2+10, 2+11, 6+11, 6+12, ADMT+9, ADMT+10, CHECK+7, BED+12
PID^VADPT 2+3, 3+3, 6+3
PID^VADPT6 1+3

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: ERR=ERR_1_U_"Referring Provider too short: "_X,BDGR("REFP")=""
  • Line Location: ADMD+11
Function Call: WRITE
  • Prompt: ERR=ERR_1_U_"Referring Provider too long: "_X,BDGR("REFP")=""
  • Line Location: ADMD+12
Routine Call
  • DIE
  • Line Location:
    • 1+26
Routine Call
  • DIC
  • Line Location:
    • WARD+4
    • WARD+9
    • SRV+6
    • ADMT+4
    • ADMT+20
    • DSCT+5
    • DSCT+11
    • ADMD+7
    • ATMD+6
    • ATMD+12

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^VA(200 - [#200] GET1^DIQ
^DGPM - [#405] Classic Fileman Calls,  GET1^DIQ
^DG(405.1 - [#405.1] GET1^DIQ
^AUPNVSIT - [#9000010] Classic Fileman Calls
^AUTTASRC - [#9999999.53] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DGPM - [#405] 2+13, 2+24, 3+14, 3+25, 6+14, 6+22
^DGPM("APMV" 3+17
^DGPM("APTT" DATE+2
^DGPM("APTT1" 1+21, 1+25, 3+7, 3+8
^DGPM("APTT2" 2+27
^DGPM("APTT3" 3+28
^DGPM("APTT6" 6+25
^DGPM("ATS" 3+18
^DGPM(0 1+6, 1+9, 1+11, 1+12, 1+20
^DPT - [#2] 1+9, 2+21, BED+3
^DPT("RM" WARD+11, BED+4
^UTILITY("DGPM" BED+8!

Label References

Name Line Occurrences
$$CHECK ADD+6
@( ADD+8, 1+11, 2+17, 3+21, 6+17
BED 2+21

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT CHECK+1~, CHECK+5*
ARRAY CHECK~
BDGAPI ADD+1~, ADD+3*
BDGCA 2+1~, 2+8, 2+9, 6+1~, 6+8, 6+9
BDGR ADD~, ADD+6, EDIT~, EDIT+1, CANCEL~, CANCEL+1
BDGR("ACCT" 1+26
BDGR("ADMD" ADMD+3*, ADMD+4, ADMD+7
BDGR("ADMIT D ATE" , 1+16, 1+17, 1+21, 1+25, DATE+1
BDGR("ADMT" ADMT+8, ADMT+10*, ADMT+11, ADMT+13, ADMT+23*
BDGR("ADX" ADX+2
BDGR("ATMD" ADMD+3, ATMD+3, ATMD+6, ATMD+9
BDGR("DATE" 1+16*, 2+8, 2+12, 2+13, 2+24, 2+27, 6+8, 6+13, 6+14, 6+22
, 6+25, DATE+1, CHECK+4, CHECK+6*, BED+11
BDGR("DISCHAR GE DATE" , 3+7, 3+9, 3+16, 3+25, 3+28, DATE+1
BDGR("DSCT" DSCT+2*, DSCT+4, DSCT+6, DSCT+8
BDGR("MINOR T YPE" , SRV+3
BDGR("PAT" 1+2, 2+2, 3+2, 6+2, CHECK+2
BDGR("PRMD" ATMD+9*, ATMD+12
BDGR("PROOM" BED+2
BDGR("REFP" ADMD+10, ADMD+11, ADMD+12
BDGR("ROOM" 2+16, WARD+8, WARD+10*, WARD+11*, BED+1, BED+2, BED+3, BED+4*, BED+9, BED+10
BDGR("SRV" SRV+3*, SRV+5, SRV+7
BDGR("TFAC" ADMT+15, ADMT+21, DSCT+9, DSCT+12
BDGR("TRAN" ADD+8, 1+2, 2+2, 3+2, 6+2, DATE+1, DATE+2, CHECK+3
BDGR("UBAS" ADMT+3, ADMT+5, ADMT+11, ADMT+13, ADMT+16, ADMT+23
BDGR("UBAT" ADMT+26, ADMT+27*, ADMT+28*
BDGR("UBDS" DSCT+15, DSCT+16*
BDGR("USER" CHECK+7
BDGR("VIEN" 1+27*
BDGR("WARD" 2+21, WARD+3, WARD+5
BDGRM 2+16~*, BED+1
BDGV 2+1~, 6+1~
DA 1+24~, 1+25*, 1+26, 1+27, BED+7~, BED+11*, BED+12
DATE DATE+1~*, DATE+2
DFN 1+1~, 1+2*, 1+9, 1+21, 1+25, 2+1~, 2+2*, 2+21, 2+27, 3+1~
, 3+2*, 3+7, 3+8, 3+17, 3+18, 3+28, 6+1~, 6+2*, 6+25, DATE+2
, WARD+11, BED+3, BED+11
>> DGOERR BED+8*
DGPMAN 2+1~, 2+24*, 3+1~, 3+25*, 6+1~, 6+22*
DGPMCA 1+1~, 1+17*, 2+1~, 2+9*, 2+10, 2+13, 2+24, 3+1~, 3+8*, 3+9
, 3+14, 3+17, 3+18, 3+25, 6+1~, 6+9*, 6+11, 6+14, 6+22, BED+11
DGPMN 1+1~, 1+4*, 2+1~, 2+4*, 3+1~, 3+4*, 6+1~, 6+4*
>> DGPMP 1+2*, 2+2*, 3+2*, 6+2*
DGPMSA 1+1~, 1+17*, 2+1~, 3+1~, 6+1~
DGPMT 1+1~, 1+2*, 2+1~, 2+2*, 3+1~, 3+2*, 6+1~, 6+2*, BED+12*
DGPMUC 1+1~, 2+1~, 3+1~, 6+1~
DGPMY 1+1~, 1+17*, 2+1~, 2+24*, 3+1~, 3+25*, 6+1~, 6+22*
DGQUIET ADD+1~, ADD+2*
>> DGSWITCH BED+8*
DIC WARD+1~, WARD+3*, WARD+9!*, SRV+1~, SRV+5*, ADMT+1~, ADMT+4!*, ADMT+19!*, DSCT+1~, DSCT+4*
, DSCT+10!*, ADMD+1~, ADMD+5*, ATMD+1~, ATMD+4*, ATMD+10*
DIC("S" WARD+4*, SRV+6*, ADMT+20*, DSCT+5*, DSCT+11*, ADMD+6*, ATMD+5*, ATMD+11*
DIC(0 WARD+3*, WARD+9*, SRV+5*, ADMT+4*, ADMT+19*, DSCT+4*, DSCT+10*, ADMD+5*, ATMD+4*, ATMD+10*
DIE 1+24~, 1+26*, BED+7~, BED+9*
DR 1+24~, 1+26*, BED+7~, BED+9*, BED+10*
DUZ("AG" ADD+4
ERR ADD+1~, ADD+6*, ADD+9, 1+2*, 1+9*, 1+11, 1+12, 1+21*, 2+2*, 2+8*
, 2+12*, 2+13*, 2+17, 2+18, 2+27*, 3+2*, 3+9*, 3+14*, 3+17*, 3+18*
, 3+21, 3+22, 3+28*, 6+2*, 6+8*, 6+13*, 6+14*, 6+17, 6+18, 6+25*
, DATE+2*, WARD+5*, WARD+10*, WARD+11*, SRV+7*, ADMT+3*, ADMT+5*, ADMT+11*, ADMT+13, ADMT+17*
, ADMT+21*, ADMT+28*, DSCT+6*, DSCT+8, DSCT+9*, DSCT+12*, DSCT+16*, ADX+2*, ADX+3*, ADX+4*
, ADMD+4*, ADMD+7*, ADMD+11, ADMD+12, ATMD+3*, ATMD+6*, ATMD+12*, BED+4*
HRCN 1+1~, 2+3~, 3+3~, 6+3~
I 1+1~, 1+11*, 2+1~, 2+17*, 3+1~, 3+21*, 6+1~, 6+17*
ORACTION BED+8!
RVDT 3+1~, 3+16*, 3+17, 3+18
U ADD+4, 1+9, 1+21, 2+8, 2+12, 2+13, 2+27, 3+9, 3+14, 3+17
, 3+18, 3+28, 6+8, 6+13, 6+14, 6+25, DATE+2, WARD+5, WARD+10, WARD+11
, SRV+7, ADMT+3, ADMT+5, ADMT+11, ADMT+17, ADMT+21, ADMT+28, DSCT+6, DSCT+9, DSCT+12
, DSCT+16, ADX+2, ADX+3, ADX+4, ADMD+4, ADMD+7, ADMD+11, ADMD+12, ATMD+3, ATMD+6
, ATMD+12, CHECK+2, CHECK+3, CHECK+4, CHECK+7, BED+4
VA 1+1~, 2+3~, 3+3~, 6+3~
X 2+10*, 2+11, 2+12, 2+13, 3+1~, 3+7*, 3+8, 3+9, 3+14*, 3+17*
, 3+18*, 6+11*, 6+12*, 6+13, WARD+1~, WARD+3*, WARD+8*, SRV+1~, SRV+5*, ADMT+1~
, ADMT+3*, ADMT+9*, ADMT+10, ADMT+15*, ADMT+26*, ADMT+27, ADMT+28, DSCT+1~, DSCT+4*, DSCT+9*
, DSCT+15*, DSCT+16, ADX+1~, ADX+2*, ADX+3, ADX+4, ADMD+1~, ADMD+4*, ADMD+10*, ADMD+11
, ADMD+12, ATMD+1~, ATMD+3*, ATMD+9*, CHECK+1~, CHECK+4*
>> XQORQUIT BED+8*
Y 2+11*, 2+12, WARD+1~, WARD+5, WARD+10, SRV+1~, SRV+7, ADMT+1~, ADMT+5, ADMT+9
, ADMT+21, DSCT+1~, DSCT+6, DSCT+12, ADMD+1~, ADMD+7, ATMD+1~, ATMD+6, ATMD+12, CHECK+1~
, CHECK+4, CHECK+5, CHECK+6
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 |  Local Variables |  All