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

Package: Outpatient Pharmacy

Routine: PSOERXO1


Information

PSOERXO1 ;ALB/BWF - eRx Outbound Error messages ; 8/3/2016 5:14pm

Source Information

Source file <PSOERXO1.m>

Call Graph

Call Graph

Call Graph Total: 12

Package Total Call Graph
Outpatient Pharmacy 6 $$PRESOLV^PSOERXA1  $$EXTIME^PSOERXO1  ($$ERRSEQ,FILERR,UPDSTAT)^PSOERXU1  ($$GETREQ,$$RESOLV)^PSOERXU2  $$FINDNRX^PSOERXU6  CONVXML^PSOERXX1  
Kernel 2 UNWIND^%ZTER  ($$FMTE,$$FMTHL7,$$NOW)^XLFDT  
VA FileMan 2 UPDATE^DIE  ($$GET1,GETS)^DIQ  
M XML Parser 1 $$SYMENC^MXMLUTL  
Web Services Client 1 ($$GETREST,$$POST)^XOBWLIB  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 18

Package Total Caller Graph
Outpatient Pharmacy 18 PSOERX1B  PSOERXA5  PSOERXO1  PSOERXOA  PSOERXOB  PSOERXOC  PSOERXOF  PSOERXOG  
PSOERXOH  PSOERXOL  PSOERXOM  PSOERXU4  PSOERXU5  PSOERXU6  PSOERXX1  PSOERXX2  
PSOERXX3  PSOERXX4  

Entry Points

Name Comments DBIA/ICR reference
MSGERR() ;check errors from XML return
; note - not currently in use
ERRHNDL(DFN) ;handle any errors that may get thrown in call to GET^ORRDI1
POST(ERXIEN,PSSOUT,ECODE,DESCODE,DESC,RXVERIFY,INST,OVRESP) ;
C ;
RESTPOST(PSSOUT,GBL) ;
PRSSTRM(RESTOBJ,PSSOUT) ; parse the XML into token
; input: RESTOBJ--a rest object
; output: PSSOUT - array containing the list of route names for the given drug.
PARSXML(AREADER,PSSOUT) ; extract the list of routes from XML results
; input: AREADER-%XML.TextReader object.
; output: PSSOUT - array containing the list of route names for the given drug.
POSTRES(AREADER,PSSOUT,ATOKEN) ; get value of success/failure
POSTERR(AREADER,PSSOUT) ; get error message
GETREADR(RESTOBJ) ; set up and return a Textreader object to be used to parse the XML stream
; input: RESTOBJ- REST object
; output: returns a %XML.TextReader object.
GETTOKEN(READER) ; get a token at a time
; input: AREADER-%XML.TextReader object
; Output: returns a token
GETATTS(AREADER) ; get attributes
; input: AREADER-%XML.TextReader object
; Output: returns the attributes
EXTIME(IDTTM) ;
CMFILE(HUBID,MID,RTMID,TOQUAL,TO,FRQUAL,FROM,RXREFN,PON,RESPONSE,RESTYPE,MTYPE,INST) ;
MSG2017(GBL,CNT) ; ADAPTED FROM PSOERXX2
HDR2017(GLB,CNT,PSDAT,IEN,TOQUAL,TOVAL,FRQUAL,FRVAL,MID,RTMID,ERXHID,PON,INST) ; ADAPTED FROM PSOERXX2

External References

Name Field # of Occurrence
UNWIND^%ZTER ERRHNDL+2
UPDATE^DIE CMFILE+21, CMFILE+29, CMFILE+31
$$GET1^DIQ POST+29, POST+54, POST+55, POST+57
GETS^DIQ POST+10
$$SYMENC^MXMLUTL POST+27
$$PRESOLV^PSOERXA1 CMFILE+9
$$EXTIME^PSOERXO1 HDR2017+22
$$ERRSEQ^PSOERXU1 POST+71
FILERR^PSOERXU1 POST+72
UPDSTAT^PSOERXU1 POST+70
$$GETREQ^PSOERXU2 CMFILE+23
$$RESOLV^PSOERXU2 POST+9
$$FINDNRX^PSOERXU6 CMFILE+24
CONVXML^PSOERXX1 HDR2017+4
$$FMTE^XLFDT POST+54, POST+57
$$FMTHL7^XLFDT EXTIME+3, EXTIME+5
$$NOW^XLFDT POST+13, EXTIME+3, EXTIME+5, CMFILE+6
$$GETREST^XOBWLIB RESTPOST+12
$$POST^XOBWLIB RESTPOST+23

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^PSRX - [#52] GET1^DIQ
^PS(52.49 - [#52.49] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^PS(52.49 - [#52.49] CMFILE+28, CMFILE+30
^PSRX - [#52] POST+56
^TMP( RESTPOST+13!, RESTPOST+20!, RESTPOST+24!
^TMP("POST^PSOERXO1" POST+6
^TMP($J MSGERR+6, MSGERR+8, MSGERR+9, ERRHNDL+1!, RESTPOST+5!
^XTMP("ORRDI" ERRHNDL+1!

Label References

Name Line Occurrences
$$EXTIME POST+36
$$GETATTS GETTOKEN+32
$$GETREADR PRSSTRM+9
$$GETTOKEN PARSXML+6, POSTRES+4, POSTERR+3
C POST+34, POST+35, POST+36, POST+37, POST+38, POST+39, POST+44, POST+61, POST+62, POST+63
, POST+64, POST+79, POST+80, POST+81, POST+82, MSG2017+8, HDR2017+17, HDR2017+18, HDR2017+19, HDR2017+21
, HDR2017+22, HDR2017+24, HDR2017+26, HDR2017+29, HDR2017+30, HDR2017+31, HDR2017+33, HDR2017+34, HDR2017+35, HDR2017+37
, HDR2017+38, HDR2017+39, HDR2017+40, HDR2017+41, HDR2017+44, HDR2017+45, HDR2017+46
CMFILE POST+76
HDR2017 POST+32
MSG2017 POST+31
PARSXML PRSSTRM+10
POSTERR PARSXML+9
POSTRES PARSXML+10, PARSXML+11
PRSSTRM RESTPOST+35
PSS RESTPOST+19
RESTPOST POST+45, POST+65, POST+83

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ALLTOKEN GETTOKEN+24~, GETTOKEN+25*, GETTOKEN+44*, GETTOKEN+45
AREADER PRSSTRM+8~, PRSSTRM+9*, PRSSTRM+10, PARSXML~, PARSXML+6, PARSXML+9, PARSXML+10, PARSXML+11, POSTRES~, POSTRES+4
, POSTERR~, POSTERR+3, GETREADR+4~, GETREADR+5*, GETREADR+6, GETREADR+7, GETATTS~
ATOKEN PARSXML+4~, PARSXML+6*, PARSXML+7, PARSXML+8*, PARSXML+9, PARSXML+10, PARSXML+11, POSTRES~, POSTRES+2, POSTRES+7
ATTRB GETATTS+4~, GETATTS+8*
C POST+1~, POST+3*, POST+31, POST+32, POST+34, POST+35, POST+36, POST+37, POST+38, POST+39
, POST+44, POST+46!, POST+61, POST+62, POST+63, POST+64, POST+77!, POST+79, POST+80, POST+81
, POST+82, POST+84!, C+1*
CNT MSG2017~, MSG2017+8, HDR2017~, HDR2017+17, HDR2017+18, HDR2017+19, HDR2017+21, HDR2017+22, HDR2017+24, HDR2017+26
, HDR2017+29, HDR2017+30, HDR2017+31, HDR2017+33, HDR2017+34, HDR2017+35, HDR2017+37, HDR2017+38, HDR2017+39, HDR2017+40
, HDR2017+41, HDR2017+44, HDR2017+45, HDR2017+46
CREQ CMFILE+1~, CMFILE+23*, CMFILE+24, CMFILE+26
DD EXTIME+1~, EXTIME+7*, EXTIME+13
DESC POST~, POST+81
DESCODE POST~, POST+80
DFN ERRHNDL~, ERRHNDL+1
DTTM EXTIME+1~, EXTIME+3*, EXTIME+4, EXTIME+6*, EXTIME+7
DUZ CMFILE+17
ECODE POST~, POST+79
ERRSEQ POST+2~, POST+71*, POST+72
ERXHID HDR2017~, HDR2017+44
ERXIEN POST~, POST+7, POST+8, POST+9, POST+13, POST+29, POST+32, POST+70, POST+71
ERXIENS POST+2~, POST+8*, POST+10, POST+11, POST+15, POST+17, POST+18, POST+20, POST+21, POST+23
, POST+24, POST+72
EXDT EXTIME+1~, EXTIME+13*, EXTIME+14
F POST+2~, POST+3*, POST+10, POST+11, POST+15, POST+17, POST+18, POST+20, POST+21, POST+23
, POST+24, CMFILE+1~, CMFILE+2*, CMFILE+4, CMFILE+5, CMFILE+6, CMFILE+7, CMFILE+8, CMFILE+9, CMFILE+10
, CMFILE+11, CMFILE+12, CMFILE+13, CMFILE+14, CMFILE+15, CMFILE+16, CMFILE+17, CMFILE+18, CMFILE+19, CMFILE+20
, HDR2017+1~, HDR2017+2*, HDR2017+6, HDR2017+7, HDR2017+9, HDR2017+14
FDA CMFILE+1~, CMFILE+21!, CMFILE+29!, CMFILE+31!
FDA( CMFILE+4*, CMFILE+5*, CMFILE+6*, CMFILE+7*, CMFILE+8*, CMFILE+9*, CMFILE+10*, CMFILE+11*, CMFILE+12*, CMFILE+13*
, CMFILE+14*, CMFILE+15*, CMFILE+16*, CMFILE+17*, CMFILE+18*, CMFILE+19*, CMFILE+20*, CMFILE+29*, CMFILE+31*
FFILL POST+1~, POST+54*, POST+58
FROM POST+2~, POST+17*, POST+32, POST+35, POST+76, CMFILE~, CMFILE+11
FRQUAL POST+2~, POST+18*, POST+32, POST+35, POST+76, CMFILE~, CMFILE+12, HDR2017~, HDR2017+18
FRVAL HDR2017~, HDR2017+18
GBL POST+1~, POST+6*, POST+31, POST+32, POST+34, POST+35, POST+36, POST+37, POST+38, POST+39
, POST+44, POST+45, POST+46, POST+61, POST+62, POST+63, POST+64, POST+65, POST+77, POST+79
, POST+80, POST+81, POST+82, POST+83, POST+84, RESTPOST~, RESTPOST+17, RESTPOST+18, MSG2017~, MSG2017+8
, HDR2017+17, HDR2017+18, HDR2017+19, HDR2017+21, HDR2017+22, HDR2017+24, HDR2017+26, HDR2017+29, HDR2017+30, HDR2017+31
, HDR2017+33, HDR2017+34, HDR2017+35, HDR2017+37, HDR2017+38, HDR2017+39, HDR2017+40, HDR2017+41, HDR2017+44, HDR2017+45
, HDR2017+46
GDAT RESTPOST+2~, RESTPOST+18*, RESTPOST+19
GLB HDR2017~
GLOOP RESTPOST+2~, RESTPOST+17*, RESTPOST+18
HUBID POST+68*, POST+74*, POST+76, CMFILE~, CMFILE+4
I MSGERR+7~*, MSGERR+8, MSGERR+9, POST+56*, GETATTS+4~, GETATTS+7*, GETATTS+8, EXTIME+1~, EXTIME+10*
IDTTM EXTIME~, EXTIME+2*, EXTIME+3
IEN HDR2017~, HDR2017+3
IENS HDR2017+1~, HDR2017+3*, HDR2017+6, HDR2017+7, HDR2017+9, HDR2017+14
INDEX GETATTS+4~, GETATTS+6*, GETATTS+7
INST POST~, POST+5*, POST+11*, POST+13, POST+32, POST+76, CMFILE~, CMFILE+7, CMFILE+15, HDR2017~
J MSGERR+8~*, MSGERR+9
LDDATE POST+2~, POST+57*, POST+58
MID POST+2~, POST+13*, POST+32, POST+35, POST+76, CMFILE~, CMFILE+16, HDR2017~, HDR2017+19
MM EXTIME+1~, EXTIME+7*, EXTIME+13
MTYPE CMFILE~, CMFILE+8
NERXIEN POST+2~, CMFILE+22*, CMFILE+23, CMFILE+28, CMFILE+29, CMFILE+30, CMFILE+31
NEWRX CMFILE+1~, CMFILE+24*, CMFILE+26*, CMFILE+28, CMFILE+29, CMFILE+30, CMFILE+31
NEWRXIEN POST+1~, POST+9*
NODETYPE PARSXML+4~, PARSXML+8*, GETTOKEN+24~, GETTOKEN+25*, GETTOKEN+31*, GETTOKEN+33*, GETTOKEN+34, GETTOKEN+35, GETTOKEN+36, GETTOKEN+37
, GETTOKEN+38, GETTOKEN+39, GETTOKEN+40, GETTOKEN+41, GETTOKEN+44
NRXIEN CMFILE+1~
NRXIEN( CMFILE+22
NRXIEN(0 CMFILE+22
ORRET MSGERR+5~*, MSGERR+10*, MSGERR+11
ORSTR MSGERR+9~*, MSGERR+10
OVRESP POST~, POST+52, POST+53
PON POST+1~, POST+23*, POST+32, POST+38, POST+76, CMFILE~, HDR2017~, HDR2017+45
PSDAT HDR2017~, HDR2017+1~
PSDAT( HDR2017+6, HDR2017+7, HDR2017+9, HDR2017+14
PSODAT POST+2~, POST+32
PSODAT( POST+11, POST+15, POST+17, POST+18, POST+20, POST+21, POST+23, POST+24
PSREQ POST+1~, RESTPOST+1~, RESTPOST+2~
PSS POST+1~, RESTPOST+2~
PSS("parameterName" RESTPOST+9*
PSS("path" RESTPOST+8*, RESTPOST+23
PSS("postResult" RESTPOST+23*, RESTPOST+29, RESTPOST+35
PSS("restObject" RESTPOST+12*, RESTPOST+16*, RESTPOST+23, RESTPOST+35
PSS("result" RESTPOST+31*, RESTPOST+35*, RESTPOST+37
PSS("server" RESTPOST+6*, RESTPOST+12
PSS("webserviceName" RESTPOST+7*, RESTPOST+12
PSSERR POST+1~, RESTPOST+2~, RESTPOST+23
PSSFDBRT POST+1~, POST+4*
PSSOUT POST~, POST+45, POST+65, POST+83, RESTPOST~, RESTPOST+13, RESTPOST+20, RESTPOST+24, RESTPOST+35, PRSSTRM~
, PRSSTRM+10, PARSXML~, PARSXML+9, PARSXML+10, PARSXML+11, POSTRES~, POSTERR~
PSSOUT( POSTRES+7*
PSSOUT("errorMessage" POST+67*, POST+68*, POST+69, POST+72, POSTERR+6*
PSSOUT("outboundMsgId" POST+68
PSSOUT(0 POST+11*, POST+67, RESTPOST+13*, RESTPOST+20*, RESTPOST+24*, RESTPOST+30*, RESTPOST+35*
QPARAM POSTRES+1~, POSTRES+2*, POSTRES+3, POSTRES+6
READER GETTOKEN~, GETTOKEN+32
REFL POST+1~, POST+56*, POST+58
REQREF HDR2017+1~, HDR2017+7*, HDR2017+8*
RESPONSE POST+50~, POST+51*, POST+52*, POST+58*, POST+62, POST+63, POST+76, CMFILE~, CMFILE+19
RESTAG POST+50~, POST+60*, POST+61, POST+64
RESTOBJ PRSSTRM~, PRSSTRM+9, GETREADR~
RESTYP POST+50~, POST+59*, POST+62, POST+63, POST+76
RESTYPE CMFILE~, CMFILE+18
RETREC HDR2017+1~, HDR2017+6*, HDR2017+8*
RSECID HDR2017+1~, HDR2017+14*
RTERTID HDR2017+1~, HDR2017+16*, HDR2017+33
RTMID POST+2~, POST+15*, POST+32, POST+36, POST+76, CMFILE~, CMFILE+5, HDR2017~, HDR2017+21
RXIEN POST+2~, POST+53, POST+54, POST+55, POST+56, POST+57
RXREFN POST+1~, POST+24*, POST+32, POST+37, POST+76, CMFILE~, CMFILE+10
RXVERIFY POST~, POST+43, POST+49, POST+51, POST+59, POST+60
S2017 POST+2~, POST+29*
SSECID HDR2017+1~, HDR2017+9*
STERTID HDR2017+1~, HDR2017+13*, HDR2017+29
STIME HDR2017+1~
SUBTOKEN GETTOKEN+24~, GETTOKEN+25*, GETATTS+4~, GETATTS+5*, GETATTS+9*, GETATTS+10, GETATTS+11
TIME EXTIME+1~, EXTIME+7*, EXTIME+8, EXTIME+9, EXTIME+11*, EXTIME+13
TLEN EXTIME+1~, EXTIME+9*, EXTIME+10
TO POST+2~, POST+20*, POST+32, POST+35, POST+76, CMFILE~, CMFILE+13
TOKEN POSTRES+1~, POSTRES+3, POSTRES+4*, POSTRES+5*, POSTRES+6, POSTRES+7, POSTERR+1~, POSTERR+2, POSTERR+3*, POSTERR+4*
, POSTERR+5, POSTERR+6, GETTOKEN+24~, GETTOKEN+25*, GETTOKEN+32*, GETTOKEN+33, GETTOKEN+34*, GETTOKEN+35*, GETTOKEN+36*, GETTOKEN+37*
, GETTOKEN+38*, GETTOKEN+39*, GETTOKEN+40*, GETTOKEN+41*, GETTOKEN+42*, GETTOKEN+44, GETATTS+4~, GETATTS+5*, GETATTS+10*, GETATTS+11*
, GETATTS+12
TOQUAL POST+2~, POST+21*, POST+32, POST+35, POST+76, CMFILE~, CMFILE+14, HDR2017~, HDR2017+17
TOTREFL POST+1~, POST+55*, POST+56
TOVAL HDR2017~, HDR2017+17
TYPE POSTRES+1~, POSTRES+5*, POSTERR+1~, POSTERR+4*
TZONE EXTIME+1~, EXTIME+4*, EXTIME+5*, EXTIME+6*, EXTIME+13
U POST+11, POST+67, RESTPOST+30
VAR POST+1~, POST+26*, POST+27
X MSG2017+2~, MSG2017+3*, MSG2017+4*, MSG2017+5*, MSG2017+6*, MSG2017+7*, MSG2017+8
YY EXTIME+1~, EXTIME+7*, EXTIME+13
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All