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

Package: IHS Electronic Health Record

Routine: BEHORXRT


Information

BEHORXRT ;IHS/MSC/MGH - E-Prescribing receipt ;06-Sep-2013 10:42;MGH

Source Information

Source file <BEHORXRT.m>

Call Graph

Call Graph Total: 16

Package Total Call Graph
IHS Changes To Pharmacy 3 $$LOC^APSPFNC2  $$WRDFMT^APSPFNC7  $$NDCVAL^APSPFUNC  
IHS Electronic Health Record 3 ($$GETNDRSN,$$ORDCOM,$$RXINSTR)^BEHORXF1  (BLDPT,BLDPTADD,DATA,PROV)^BEHORXF2  ($$GETDAW,$$GETIND,$$GETPSIFN,$$GETRXNRM,$$PSTATE)^BEHORXFN  
Kernel 2 $$FMTE^XLFDT  ($$CJ,$$REPEAT)^XLFSTR  
CIA Utilities 1 CAPTURE^CIAUHFS  
IHS VA Utilities 1 $$VAL^XBDIQ1  
M XML Parser 1 $$SYMENC^MXMLUTL  
Order Entry Results Reporting 1 $$VALUE^ORCSAVE2  
Outpatient Pharmacy 1 OEL^PSOORRL  
Toolkit 1 $$GET^XPAR  
VA Fileman 1 $$GET1^DIQ  
VueCentric Framework 1 $$TMPGBL^CIAVMRPC  

Caller Graph

Caller Graph Total: 2

Package Total Caller Graph
IHS Electronic Health Record 1 BEHORXF1  
IHS Mods To Text Integration Utilities 1 BTIUMED1  

Entry Points

Name Comments DBIA/ICR reference
REPORTS(DFN,BEHFLG,STRT,END) ;
GETRPTS(DATA,DFN,BEHFLG,STRT,END) ;EP
HDR
RESORT ;
ADD(VAL) ;EP-
FOOTER ;
RECXML(DATA,RXARY,DFN) ;EP-
PHARM2(PHMI) ;Add pharmacy data
RECEIPT(RX,ORDID) ;EP
REPORT ;
PHARM ;Get the data for the pharmacy
INST ;Get the data for the institution
INST2(INI) ;Enter Institution data
SAVE(IEN,DATA) ;EP
; Generate specified report segments for a visit abstract
ADDXML(RX) ;EP-
XMTDATE(RX) ;EP-
OERRRPTS(ROOT,ORDFN,ID,ALPHA,OMEGA,ORDTRNG,REMOTE,ORMAX,ORFHIE) ;EP
TAG(TAG,TYPE,VAL) ;EP -

External References

Name Field # of Occurrence
$$LOC^APSPFNC2 RECEIPT+8
$$WRDFMT^APSPFNC7 ADDXML+28
$$NDCVAL^APSPFUNC RECEIPT+9
$$GETNDRSN^BEHORXF1 ADDXML+35
$$ORDCOM^BEHORXF1 ADDXML+18
$$RXINSTR^BEHORXF1 ADDXML+17
BLDPT^BEHORXF2 RECXML+10
BLDPTADD^BEHORXF2 RECXML+11
DATA^BEHORXF2 RECXML+12
PROV^BEHORXF2 ADDXML+27
$$GETDAW^BEHORXFN ADDXML+12
$$GETIND^BEHORXFN ADDXML+15, ADDXML+16
$$GETPSIFN^BEHORXFN RECXML+14
$$GETRXNRM^BEHORXFN ADDXML+33
$$PSTATE^BEHORXFN ADDXML+34, ADDXML+35
CAPTURE^CIAUHFS GETRPTS+2
$$TMPGBL^CIAVMRPC GETRPTS+1, RECXML+2
$$GET1^DIQ REPORT+27, INST+1, INST+2, INST+3, INST+4, RECXML+5, RECEIPT+8, ADDXML+3, ADDXML+4, ADDXML+6
, ADDXML+7, ADDXML+8, ADDXML+9, ADDXML+11, ADDXML+20, ADDXML+21, ADDXML+22, ADDXML+23, ADDXML+38, ADDXML+39
, ADDXML+41, ADDXML+43, ADDXML+44, INST2+1, INST2+2, INST2+3, INST2+4, INST2+5, INST2+7, PHARM2+3
, PHARM2+4, PHARM2+5, PHARM2+6, PHARM2+7, PHARM2+8, PHARM2+9, XMTDATE+3
$$SYMENC^MXMLUTL TAG+2
$$VALUE^ORCSAVE2 ADDXML+19, ADDXML+23
OEL^PSOORRL RECEIPT+3
$$VAL^XBDIQ1 PHARM+1, PHARM+2, PHARM+3
$$FMTE^XLFDT REPORT+15, REPORT+31, ADDXML+24
$$CJ^XLFSTR REPORT+18, REPORT+19, REPORT+20, HDR+3, HDR+4, HDR+8, FOOTER+13, FOOTER+14, FOOTER+15, FOOTER+16
, FOOTER+17, FOOTER+18
$$REPEAT^XLFSTR FOOTER+20
$$GET^XPAR INST+5, INST2+6

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: HDR+1
Function Call: WRITE
  • Prompt: !,$$CJ^XLFSTR("RECEIPT",IOM)
  • Line Location: HDR+3
Function Call: WRITE
  • Prompt: !,$$CJ^XLFSTR("E-Prescription Transmission Summary",IOM),!!
  • Line Location: HDR+4
Function Call: WRITE
  • Prompt: !,$$CJ^XLFSTR(NAME,IOM),!
  • Line Location: HDR+8
Function Call: WRITE
  • Prompt: !!!,"Important Note: This is the summary of your medications"
  • Line Location: FOOTER+2
Function Call: WRITE
  • Prompt: !,"you will be receiving from your pharmacy. You do not have"
  • Line Location: FOOTER+3
Function Call: WRITE
  • Prompt: !,"to present this slip at your pharmacy in order to pick up your"
  • Line Location: FOOTER+4
Function Call: WRITE
  • Prompt: !,"prescription(s), but sharing this slip with the pharmacist can"
  • Line Location: FOOTER+5
Function Call: WRITE
  • Prompt: !,"help to ensure that you get all of the medicines that have been"
  • Line Location: FOOTER+6
Function Call: WRITE
  • Prompt: !,"prescribed for you",!!
  • Line Location: FOOTER+7
Function Call: WRITE
  • Prompt: !,"To the Pharmacist:",!
  • Line Location: FOOTER+8
Function Call: WRITE
  • Prompt: !,"Prescriptions for the medications listed above were sent to your"
  • Line Location: FOOTER+9
Function Call: WRITE
  • Prompt: !,"pharmacy via the Surescripts network. Please look for these"
  • Line Location: FOOTER+10
Function Call: WRITE
  • Prompt: !,"prescriptions in your computer's electronic prescriptions queue"
  • Line Location: FOOTER+11
Function Call: WRITE
  • Prompt: !,"and/or your fax machine.",!!
  • Line Location: FOOTER+12
Function Call: WRITE
  • Prompt: !,$$CJ^XLFSTR(NNAME,IOM)
  • Line Location: FOOTER+13
Function Call: WRITE
  • Prompt: !,$$CJ^XLFSTR(INAME,IOM)
  • Line Location: FOOTER+14
Function Call: WRITE
  • Prompt: !,$$CJ^XLFSTR(IADDRESS,IOM)
  • Line Location: FOOTER+15
Function Call: WRITE
  • Prompt: !,$$CJ^XLFSTR(ICITY,IOM)
  • Line Location: FOOTER+16
Function Call: WRITE
  • Prompt: !,$$CJ^XLFSTR("Phone: "_IPHONE,IOM)
  • Line Location: FOOTER+17
Function Call: WRITE
  • Prompt: !,$$CJ^XLFSTR("Fax: "_IFAX,IOM)
  • Line Location: FOOTER+18
Function Call: WRITE
  • Prompt: !!,$$REPEAT^XLFSTR("=",80),!
  • Line Location: FOOTER+20
Function Call: WRITE
  • Prompt: !
  • Line Location: FOOTER+21

Used in RPC

RPC Name Call Tags
BEHORXRT RECXML RECXML

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^OR(100 - [#100] GET1^DIQ
^ORD(101.43 - [#101.43] GET1^DIQ
^DPT - [#2] GET1^DIQ
^DIC(4 - [#4] GET1^DIQ
^SC - [#44] GET1^DIQ
^PSDRUG - [#50] GET1^DIQ
^PSRX - [#52] GET1^DIQ
^PS(52.51 - [#52.51] GET1^DIQ
^PS(59 - [#59] GET1^DIQ
^APSPCTRL - [#9009033] GET1^DIQ
^APSPRREQ - [#9009033.91] GET1^DIQ
^AUTTLOC - [#9999999.06] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^APSPOPHM - [#9009033.9] SAVE+12
^DPT - [#2] HDR+5
^PS(52.51 - [#52.51] REPORTS+4, REPORTS+6, REPORTS+7, REPORTS+8, XMTDATE+2
^PSDRUG - [#50] SAVE+7, REPORT+29
^PSRX - [#52] SAVE+5, SAVE+8, SAVE+10, REPORT+25
^TMP("BEHRX" REPORTS+2!, SAVE+14*, RESORT+3, RESORT+4, RESORT+5, RESORT+6, REPORT+6, REPORT+9, REPORT+12, REPORT+23
, REPORT+30
^TMP("BEHRX2" REPORTS+2!, RESORT+8*, REPORT+14
^TMP("PS" RECEIPT+2!, RECEIPT+4, RECEIPT+5
^VA(200 - [#200] REPORT+8

Label References

Name Line Occurrences
$$TAG RECXML+8, RECXML+9, RECXML+18, ADDXML+10, ADDXML+11, ADDXML+12, ADDXML+13, ADDXML+14, ADDXML+15, ADDXML+16
, ADDXML+17, ADDXML+18, ADDXML+21, ADDXML+22, ADDXML+23, ADDXML+24, ADDXML+25, ADDXML+26, ADDXML+31, ADDXML+32
, ADDXML+33, ADDXML+34, ADDXML+35, ADDXML+38, ADDXML+39, ADDXML+40, ADDXML+44, ADDXML+45, ADDXML+46, INST2+1
, INST2+2, INST2+3, INST2+4, INST2+5, INST2+6, INST2+7, PHARM2+3, PHARM2+4, PHARM2+5, PHARM2+6
, PHARM2+7, PHARM2+8, PHARM2+9
$$XMTDATE ADDXML+40
ADD RECXML+7, RECXML+8, RECXML+9, RECXML+18, ADDXML+10, ADDXML+11, ADDXML+12, ADDXML+13, ADDXML+14, ADDXML+15
, ADDXML+16, ADDXML+17, ADDXML+18, ADDXML+21, ADDXML+22, ADDXML+23, ADDXML+24, ADDXML+25, ADDXML+26, ADDXML+31
, ADDXML+32, ADDXML+33, ADDXML+34, ADDXML+35, ADDXML+38, ADDXML+39, ADDXML+40, ADDXML+44, ADDXML+45, ADDXML+46
, INST2+1, INST2+2, INST2+3, INST2+4, INST2+5, INST2+6, INST2+7, PHARM2+3, PHARM2+4, PHARM2+5
, PHARM2+6, PHARM2+7, PHARM2+8, PHARM2+9
ADDXML RECEIPT+10
FOOTER REPORT+13, REPORT+32
GETRPTS OERRRPTS+1
HDR REPORT+5, REPORT+13
INST REPORT+28
INST2 ADDXML+37
PHARM REPORT+11
PHARM2 ADDXML+36
RECEIPT RECXML+16
REPORT REPORTS+10
RESORT REPORTS+10
SAVE REPORTS+9

Naked Globals

Name Field # of Occurrence
^("RXN" RECEIPT+4

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ADDRESS REPORT+2~, REPORT+19, PHARM+2*
ALPHA OERRRPTS~, OERRRPTS+1
BEHFLG GETRPTS~, REPORTS~
CITY REPORT+2~, REPORT+20, PHARM+3*
CNT RESORT+1~, RESORT+2*, RESORT+6*, RESORT+7*, RESORT+8, REPORT+14*, REPORT+16, HDR*, RECXML+1~, RECXML+4*
, ADD+1*, ADD+2
DAT RECXML+1~
DATA GETRPTS~, GETRPTS+1*, GETRPTS+2, GETRPTS+3, REPORTS+1~, REPORTS+7*, REPORTS+8, REPORTS+9, SAVE~, SAVE+3
, RECXML~, RECXML+2*, RECXML+3, ADD+2
DFN GETRPTS~, REPORTS~, REPORTS+9, HDR+5, RECXML~, RECXML+5, RECXML+10, RECXML+11, RECXML+12, RECEIPT+3
DISPU ADDXML+1~, ADDXML+9*, ADDXML+31
DNAME REPORT+1~, REPORT+29*, REPORT+31
DRG ADDXML+1~, ADDXML+41*, ADDXML+43
DRUG SAVE+2~, SAVE+7*, REPORT+29*, ADDXML+1~, ADDXML+8*, ADDXML+9
DTE REPORT+2~, REPORT+15*, REPORT+16
END GETRPTS~, REPORTS~, REPORTS+3*, REPORTS+5
FIRST REPORT+2~, REPORT+3*, REPORT+13, REPORT+24*
FNAME REPORT+1~, HDR+6*, HDR+7
HLOC REPORT+1~, REPORT+26*, REPORT+27
I FOOTER+1~, FOOTER+21*
IADDRESS REPORT+2~, REPORT+4*, INST+2*, FOOTER+15
ICITY REPORT+2~, REPORT+4*, INST+3*, FOOTER+16
ID OERRRPTS~, RECXML+1~, RECXML+15*, RECXML+16
IEN REPORTS+1~, REPORTS+6*, REPORTS+7, REPORTS+8, REPORTS+9, SAVE~, XMTDATE+1~, XMTDATE+2*, XMTDATE+3
IFAX REPORT+2~, REPORT+4*, INST+5*, FOOTER+18
INAME REPORT+2~, REPORT+4*, INST+1*, FOOTER+14
INI ADDXML+1~, ADDXML+4*, ADDXML+5, ADDXML+7*, ADDXML+37, INST2~, INST2+1, INST2+2, INST2+3, INST2+4
, INST2+5, INST2+7
INST REPORT+1~, REPORT+27*, INST+1, INST+2, INST+3, INST+4
IOF HDR+1
IOM REPORT+18, REPORT+19, REPORT+20, HDR+3, HDR+4, HDR+8, FOOTER+13, FOOTER+14, FOOTER+15, FOOTER+16
, FOOTER+17, FOOTER+18
IOSL FOOTER+21
IPHONE REPORT+2~, REPORT+4*, INST+4*, FOOTER+17
LNAME REPORT+1~, HDR+6*, HDR+7, ADDXML+1~, ADDXML+42*, ADDXML+43*, ADDXML+44
LP RECXML+1~, RECXML+13*, RECXML+14, RECXML+15
NAME REPORT+1~, HDR+5*, HDR+6, HDR+7*, HDR+8
NNAME REPORT+1~, REPORT+3*, REPORT+8*, FOOTER+13
OMEGA OERRRPTS~, OERRRPTS+1
ORDFN OERRRPTS~, OERRRPTS+1
ORDID RECEIPT~, RECEIPT+8, ADDXML+12, ADDXML+15, ADDXML+16, ADDXML+18, ADDXML+19, ADDXML+21, ADDXML+22, ADDXML+23
, ADDXML+33
ORDTRNG OERRRPTS~
ORFHIE OERRRPTS~
ORMAX OERRRPTS~
PAGE REPORT+1~, REPORT+3*, HDR*, FOOTER+19*
PAT REPORTS+1~, REPORTS+8*, REPORTS+9
PFN ADDXML+1~, ADDXML+2*, PHARM2+1~, PHARM2+2*, PHARM2+3, PHARM2+4, PHARM2+5, PHARM2+6, PHARM2+7, PHARM2+8
, PHARM2+9
PHARM SAVE+2~, SAVE+12*
PHMI ADDXML+1~, ADDXML+3*, ADDXML+36, PHARM2~, PHARM2+3, PHARM2+4, PHARM2+5, PHARM2+6, PHARM2+7, PHARM2+8
, PHARM2+9
PNM RECXML+1~, RECXML+5*, RECXML+6*, RECXML+9
PROV SAVE+2~, SAVE+10*, SAVE+11, SAVE+14, RESORT+1~, RESORT+3*, RESORT+4, RESORT+5, RESORT+6, RESORT+8
, REPORT+1~, REPORT+6*, REPORT+8, REPORT+9, REPORT+12, REPORT+14, REPORT+23, REPORT+30
PRVIEN RECEIPT+1~, RECEIPT+6*, ADDXML+27
QTY RECEIPT+1~, ADDXML+1~, ADDXML+28*, ADDXML+31
QTYW RECEIPT+1~, ADDXML+1~, ADDXML+28*, ADDXML+31
REMOTE OERRRPTS~
ROOT OERRRPTS~, OERRRPTS+1
RRIEN ADDXML+1~, ADDXML+19*, ADDXML+20
RX REPORTS+1~, SAVE+2~, SAVE+3*, SAVE+4, SAVE+5, SAVE+8, SAVE+10, SAVE+14, RESORT+1~, RESORT+6*
, REPORT+1~, REPORT+23*, REPORT+25, REPORT+30, RECXML+1~, RECXML+14*, RECXML+16, RECEIPT~, RECEIPT+3, RECEIPT+7
, RECEIPT+9, RECEIPT+10, ADDXML~, ADDXML+3, ADDXML+4, ADDXML+6, ADDXML+8, ADDXML+11, ADDXML+33, ADDXML+34
, ADDXML+35, ADDXML+38, ADDXML+39, ADDXML+40, ADDXML+41, ADDXML+44, XMTDATE~, XMTDATE+2
RX0 REPORT+1~, REPORT+25*, REPORT+26, REPORT+29
RXARY RECXML~
RXARY( RECXML+13, RECXML+14, RECXML+15
RXDIV ADDXML+1~, ADDXML+6*, ADDXML+7
RXDRUG SAVE+2~, SAVE+5*, SAVE+6, SAVE+7
RXINFO RECEIPT+1~, RECEIPT+4*, RECEIPT+5*, RECEIPT+6, RECEIPT+7*, RECEIPT+8*, RECEIPT+9*, ADDXML+13, ADDXML+14, ADDXML+24
, ADDXML+25, ADDXML+26, ADDXML+28, ADDXML+32
RXPHARM SAVE+2~, SAVE+8*, SAVE+9, SAVE+12, SAVE+14, RESORT+1~, RESORT+4*, RESORT+5, RESORT+6, RESORT+8
, REPORT+1~, REPORT+9*, REPORT+12, REPORT+14, REPORT+23, REPORT+30, PHARM+1, PHARM+2, PHARM+3
SNAME REPORT+2~, REPORT+18, PHARM+1*
SSNUM ADDXML+1~, ADDXML+20*, ADDXML+45
STATUS REPORTS+1~, REPORTS+8*, REPORTS+9
STRT GETRPTS~, REPORTS~, REPORTS+3
TAG TAG~, TAG+3, TAG+4, TAG+5, TAG+6
TDATE SAVE+2~, SAVE+13*, SAVE+14, REPORT+1~, REPORT+30*, REPORT+31
TDT XMTDATE+1~
TRANSDT REPORTS+1~, REPORTS+3*, REPORTS+4*, REPORTS+5, REPORTS+6, SAVE+13, SAVE+14, RESORT+1~, RESORT+5*, RESORT+6
, RESORT+8, REPORT+1~, REPORT+12*, REPORT+14, REPORT+15, REPORT+23, REPORT+30
TYPE TAG~, TAG+1*, TAG+3, TAG+4, TAG+5
U REPORTS+8, SAVE+3, SAVE+5, SAVE+7, SAVE+8, SAVE+10, SAVE+12, REPORT+8, REPORT+26, REPORT+29
, HDR+5, RECEIPT+4, RECEIPT+5, RECEIPT+6, RECEIPT+7, RECEIPT+8, RECEIPT+9, ADDXML+13, ADDXML+14, ADDXML+24
, ADDXML+25, ADDXML+26, ADDXML+28, ADDXML+32
VAL ADD~, ADD+2, TAG~, TAG+2*, TAG+5
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All