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

Package: IHS Changes To Pharmacy

Routine: APSPFNC2


Information

APSPFNC2 ;IHS/MSC/PLS - Prescription Creation Support ;07-Jul-2015 15:21;DU

Source Information

Source file <APSPFNC2.m>

Call Graph

Call Graph Total: 22

Package Total Call Graph
Outpatient Pharmacy 10 CAN^PSOCAN  EN^PSOFSIG  SSIG^PSOHELP  EN^PSOHLSN1  EN^PSON52  AUTO^PSONRXN  DRG^PSOORDRG  (CLOZ,USER)^PSOORFI2  
EXPPRC^PSOORFI4  DREN^PSOORNW2  
IHS Changes To Pharmacy 4 EN^APSPELRX  $$SPI^APSPES1  $$SPECID^APSPFNC5  $$LOC^APSPFNC6  
Kernel 3 ($$FMADD,$$NOW)^XLFDT  $$UP^XLFSTR  SETUP^XQALERT  
VA Fileman 2 (,UPDATE)^DIE  $$GET1^DIQ  
Order Entry Results Reporting 1 $$VALUE^ORCSAVE2  
Toolkit 1 $$GET^XPAR  
VueCentric Framework 1 $$ENT^CIAVMRPC  

Caller Graph

Caller Graph Total: 20

Package Total Caller Graph
IHS Changes To Pharmacy 10 APSPEC14  APSPEC16  APSPELRX  APSPES1  APSPES2  APSPES3  APSPFNC5  APSPFNC6  
APSPFUNC  APSPRIS  
Outpatient Pharmacy 6 PSON52  PSOORED6  PSOOREDT  PSORESK1  PSOUTIL  PSOUTL  
IHS Electronic Health Record 3 BEHORXF1  BEHORXFN  BEHORXRT  
Order Entry Results Reporting 1 ORWDXA  

Entry Points

Name Comments DBIA/ICR reference
ERXOI(DATA,OIIEN,SCH) ; EP
NOTIF(USR,DFN,ORIEN,MSG,ALRTD) ;EP -
MAKEVRX(DATA,RXORD) ;
ERXUSER(DATA,USR) ; EP
LOC(ORIEN) ; PEP
INSCMT ; Extract provider comments
PHMLST2(DATA,IEN) ;EP
AFLOG(DATA,OIEN,SUC,COM) ;EP
GETZC(ARY,ZIP,R) ;EP
ADDPHM(IEN,DIST,NEWRX) ;
PHMLST(DATA,ZIP,RAD) ;EP
UPTLOG(DATA,RX,TYPE,ARY) ;EP
DRG
CREATE(ORIEN,FORCE) ;
DOSE(ORD) ;pending orders
SETDATA(DA,DIE,DR) ;
GETPRVI ; EP-Get provider instructions
CHKRNW(RXIEN) ;
DEACLS(DATA,ORD,CLS) ; EP -
ADDPCSIG ;EP - Add provider comments to SIG
INS1 ;
SIG ;
ISSCH(DRUG,SCH) ;PEP - Returns boolean value

External References

Name Field # of Occurrence
EN^APSPELRX DRG+60
$$SPI^APSPES1 ERXUSER+3
$$SPECID^APSPFNC5 PHMLST+12
$$LOC^APSPFNC6 LOC+1
$$ENT^CIAVMRPC ERXUSER+4
^DIE SETDATA+1
UPDATE^DIE UPTLOG+21, AFLOG+10
$$GET1^DIQ CREATE+10, CREATE+32, CREATE+33, CHKRNW+9, CHKRNW+11, CHKRNW+13, CHKRNW+15, CHKRNW+17
$$VALUE^ORCSAVE2 CREATE+17, CREATE+18, CREATE+19, DRG+23, DRG+24, DRG+25, DRG+26, DRG+27, DRG+29, DEACLS+2
CAN^PSOCAN CHKRNW+21
EN^PSOFSIG SIG+3, GETPRVI+12
SSIG^PSOHELP INS1+6
EN^PSOHLSN1 DRG+58, DRG+59
EN^PSON52 DRG+52
AUTO^PSONRXN DRG+10
DRG^PSOORDRG CREATE+27
CLOZ^PSOORFI2 DRG
USER^PSOORFI2 DRG+21
EXPPRC^PSOORFI4 GETPRVI+4
DREN^PSOORNW2 CREATE+28
$$FMADD^XLFDT DRG+35
$$NOW^XLFDT UPTLOG+7, UPTLOG+16, AFLOG+6
$$UP^XLFSTR ADDPCSIG+5
$$GET^XPAR CREATE+15, DRG+17, GETPRVI+1, PHMLST+8, ERXUSER+4
SETUP^XQALERT NOTIF+6

Used in RPC

RPC Name Call Tags
APSPFNC2 UPTLOG UPTLOG
APSPFNC2 PHMLST PHMLST
APSPFNC2 PHMLST2 PHMLST2
APSPFNC2 ERXUSER ERXUSER
APSPFNC2 ERXOI ERXOI
APSPFNC2 DEACLS DEACLS

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^OR(100 - [#100] GET1^DIQ
^DPT - [#2] GET1^DIQ
^PS(50.7 - [#50.7] GET1^DIQ
^PSRX - [#52] GET1^DIQ
^PS(59 - [#59] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^APSPAF("C" AFLOG+2
^APSPOPHM - [#9009033.9] PHMLST+11, ADDPHM+4, ADDPHM+12, ADDPHM+13, ADDPHM+14
^APSPOPHM("ZIP" PHMLST+7
^APSPZCPX - [#9009033.8] GETZC+4, GETZC+5, GETZC+6
^APSPZCPX("B" GETZC+3
^DD("DD" DRG+33
^OR(100 - [#100] CREATE+11
^ORD(101.43 - [#101.43] ERXOI+4, DEACLS+5
^PS(50.607 - [#50.607] DOSE+5
^PS(50.7 - [#50.7] CREATE+26, INS1+6
^PS(51.2 - [#51.2] DOSE+7
^PS(52.41 - [#52.41] CREATE+14, CREATE+16, DRG+46, INSCMT+1, INSCMT+2, INSCMT+3, INSCMT+4, INSCMT+5, INSCMT+6, INS1+3
, INS1+5, SIG+1, SIG+2, SIG+5, SIG+6, DOSE+3
^PS(55 - [#55] DRG+16, INS1+5
^PSDRUG - [#50] DRG, ISSCH+3
^PSDRUG("ASP" ERXOI+5, DEACLS+6
^TMP("APSPOPHM" PHMLST+2, PHMLST2+2

Label References

Name Line Occurrences
$$ISSCH ERXOI+6, DEACLS+7
$$LOC CREATE+8
ADDPHM PHMLST+7, PHMLST+12, PHMLST2+6
AFLOG CREATE+34, DRG+57
CHKRNW DRG+62
CREATE MAKEVRX+2
DOSE DRG+8
GETPRVI DRG+50
GETZC PHMLST+5
INS1 DRG+48
INSCMT DRG+47
NOTIF CREATE+33
SETDATA CHKRNW+23, CHKRNW+24
SIG DRG+49
UPTLOG DRG+56

Naked Globals

Name Field # of Occurrence
^(1 ADDPHM+4
^(2 DOSE+3, ADDPHM+4
^(7 ADDPHM+4

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ALRTD NOTIF~, NOTIF+5
APSPPRIO CREATE+3~, CREATE+25*
ARY CREATE+3~, DRG+56, UPTLOG~, GETZC~, GETZC+2!
ARY( GETZC+6*
ARY("COM" DRG+53*, UPTLOG+11, UPTLOG+18
ARY("DEV" UPTLOG+12, UPTLOG+20
ARY("REASON" DRG+54*, UPTLOG+8
ARY("RX REF" DRG+55*, UPTLOG+10, UPTLOG+17
ARY("TYPE" UPTLOG+13
ARY("USER" UPTLOG+3
>> CLOZPAT DRG+5, DRG+6
CLS DEACLS~, DEACLS+7
CNT PHMLST+1~, PHMLST+6*, PHMLST2+1~, PHMLST2+5*, ADDPHM+10*, ADDPHM+20
COM AFLOG~, AFLOG+9
D SIG+5*, SIG+6, GETZC+1~
DA CHKRNW+8~, CHKRNW+18*, CHKRNW+20, SETDATA~
DATA MAKEVRX~, UPTLOG~, UPTLOG+4*, UPTLOG+22*, UPTLOG+23*, AFLOG~, AFLOG+4*, AFLOG+11*, AFLOG+12*, PHMLST~
, PHMLST+2*, PHMLST+3, PHMLST2~, PHMLST2+2*, PHMLST2+3, ADDPHM+20, ERXUSER~, ERXUSER+1*, ERXUSER+3*, ERXUSER+4*
, ERXOI~, ERXOI+2*, ERXOI+5, ERXOI+6*, DEACLS~, DEACLS+3*, DEACLS+6, DEACLS+7*
>> DEA DRG+4*
DFN CREATE+30~, CREATE+31*, CREATE+33, NOTIF~, NOTIF+4
DIC DRG+3!
DIE SETDATA~
>> DIEN ERXOI+5*, ERXOI+6, DEACLS+6*, DEACLS+7
DIR DRG+3!
DIST ADDPHM~, ADDPHM+10*, ADDPHM+20
DOENT DOSE+1~, DOSE+2*, DOSE+11*, DOSE+12
DOSE DOSE+1~, DOSE+3*, DOSE+4, DOSE+5, DOSE+6, DOSE+7, DOSE+8, DOSE+11
DOSE1 DOSE+1~, DOSE+3*, DOSE+4
DR SETDATA~
>> DREN CREATE+27*
DRUG ISSCH~, ISSCH+3
DS ISSCH+1~, ISSCH+3*, ISSCH+4
DT DRG+15, DRG+33, DRG+34, DRG+35, DRG+37, ADDPHM+8, ADDPHM+9
DUZ CREATE+33, UPTLOG+3
DUZ(2 CREATE+15
>> ENT ERXUSER+4
EPHMFLG CREATE+3~, CREATE+15*, CREATE+20, CREATE+21, CREATE+22, DRG+40
ERR UPTLOG+1~, UPTLOG+22, AFLOG+1~, AFLOG+11
FDA UPTLOG+1~, AFLOG+1~
FDA( UPTLOG+7*, UPTLOG+8*, UPTLOG+9*, UPTLOG+10*, UPTLOG+11*, UPTLOG+12*, UPTLOG+13*, UPTLOG+16*, UPTLOG+17*, UPTLOG+18*
, UPTLOG+19*, UPTLOG+20*, AFLOG+6*, AFLOG+7*, AFLOG+8*, AFLOG+9*
FN UPTLOG+1~, UPTLOG+6*, UPTLOG+7, UPTLOG+8, UPTLOG+9, UPTLOG+10, UPTLOG+11, UPTLOG+12, UPTLOG+13, UPTLOG+15*
, UPTLOG+16, UPTLOG+17, UPTLOG+18, UPTLOG+19, UPTLOG+20, AFLOG+1~, AFLOG+5*, AFLOG+6, AFLOG+7, AFLOG+8
, AFLOG+9
FORCE CREATE~, CREATE+4*, CREATE+20*, CREATE+21*, CREATE+22
I GETPRVI+3*, GETPRVI+5*, GETPRVI+10*, DOSE+1~, DOSE+3*, DOSE+4, DOSE+6, DOSE+8, DOSE+9, DOSE+11
, ADDPHM+1~, ADDPHM+13*, ADDPHM+14
ID ADDPHM+1~, ADDPHM+14*, ADDPHM+15*, ADDPHM+16, ADDPHM+17, ADDPHM+18
IEN CREATE+3~, CREATE+5*, INS1+1~, INS1+2*, INS1+4*, INS1+8*, PHMLST+1~, PHMLST+7*, PHMLST2~, PHMLST2+4
, PHMLST2+5*, PHMLST2+6*, ADDPHM~, ADDPHM+4, ADDPHM+12, ADDPHM+13, ADDPHM+14, ADDPHM+20
IEN( PHMLST2+4*, PHMLST2+6
IENS UPTLOG+1~, UPTLOG+2*, UPTLOG+7, UPTLOG+8, UPTLOG+9, UPTLOG+10, UPTLOG+11, UPTLOG+12, UPTLOG+13, UPTLOG+16
, UPTLOG+17, UPTLOG+18, UPTLOG+19, UPTLOG+20, AFLOG+3*, AFLOG+6, AFLOG+7, AFLOG+8, AFLOG+9
INST INS1+1~, INS1+3*
INSTIEN CREATE+3~, CREATE+10*, DRG+17, GETPRVI+1
JUNK INS1+1~
JUNK("PSOPO" INS1+4*, INS1+8*
LP ADDPCSIG+1~, ADDPCSIG+3*, ADDPCSIG+4, PHMLST+10*, PHMLST+11*, PHMLST+12
LP1 ADDPCSIG+1~
MIG INS1+1~, INS1+3*, INS1+4
MSG NOTIF~, NOTIF+3, CHKRNW+8~, CHKRNW+19*
N0 ADDPHM+1~, ADDPHM+4*, ADDPHM+5, ADDPHM+6, ADDPHM+20
N1 ADDPHM+1~, ADDPHM+4*, ADDPHM+20
N2 ADDPHM+1~, ADDPHM+4*, ADDPHM+20
N7 ADDPHM+1~, ADDPHM+4*, ADDPHM+8, ADDPHM+9
N8 ADDPHM+1~
NC GETPRVI+2~, GETPRVI+5*, GETPRVI+6
NEWRX ADDPHM~, ADDPHM+3*, ADDPHM+7
NI GETPRVI+2~, GETPRVI+3*, GETPRVI+6, GETPRVI+7, GETPRVI+10*
NODE0 CREATE+1~
>> OI CREATE+26*
>> OID CREATE+26*
OIEN AFLOG~, AFLOG+2, AFLOG+7
OIIEN ERXOI~, ERXOI+3, ERXOI+4, DEACLS+1~, DEACLS+2*, DEACLS+4, DEACLS+5
OR0 CREATE+1~, CREATE+16*, CREATE+17, CREATE+18, CREATE+19, CREATE+23, CREATE+24, CREATE+26, CREATE+27, CREATE+31
, CREATE+32, CREATE+34, DRG+6, DRG+15, DRG+18, DRG+19, DRG+20, DRG+21, DRG+22, DRG+23
, DRG+24, DRG+25, DRG+26, DRG+27, DRG+28, DRG+29, DRG+30, DRG+31, DRG+32, DRG+33
, DRG+35, DRG+57
ORD CREATE+1~, CREATE+11*, CREATE+12, CREATE+13*, CREATE+14, CREATE+16, DRG+8, DRG+46, INSCMT+1, INSCMT+2
, INSCMT+3, INSCMT+4, INSCMT+5, INSCMT+6, INS1+3, INS1+5, SIG+1, SIG+2, SIG+5, SIG+6
, DOSE~, DOSE+3, DEACLS~, DEACLS+2
ORGIEN CHKRNW+7~, CHKRNW+11*, CHKRNW+12, CHKRNW+13, CHKRNW+15
ORGPKGID CHKRNW+7~, CHKRNW+15*, CHKRNW+16, CHKRNW+17, CHKRNW+18
ORIEN CREATE~, CREATE+6*, CREATE+7, CREATE+8, CREATE+11, CREATE+33, LOC~, LOC+1, NOTIF~, NOTIF+5
ORXNUM CHKRNW+7~, CHKRNW+17*, CHKRNW+20
>> PHI INSCMT+2*
>> PHI( INSCMT+3*
PICKUP CREATE+3~, CREATE+19*, CREATE+20, CREATE+21, DRG+40, DRG+42
PLACER CHKRNW+7~, CHKRNW+9*, CHKRNW+10, CHKRNW+11
POERR CREATE+27*!
POIN CREATE+30~, CREATE+32*, CREATE+33, CREATE+34
PRC CREATE+3~, INSCMT+5*, GETPRVI+4
PRC( INSCMT+6*, GETPRVI+5, GETPRVI+10
PRC(0 GETPRVI+1
PRC(1 GETPRVI+6, GETPRVI+7
PSCAN CHKRNW+8~
PSCAN( CHKRNW+20*
PSOCOU CREATE+1~
PSOCOUU CREATE+2~
PSOCS CREATE+2~, DRG+3*, DRG+4*, DRG+5
PSODFN CREATE+1~, CREATE+23*, DRG+16, INS1+5
PSODRUG CREATE+1~
PSODRUG("DEA" DRG+1*, DRG+2, DRG+4, DRG+5
PSODRUG("IEN" CREATE+29, DRG
PSODRUG("OI" CREATE+26*, INS1+6
PSODRUG("OIN" CREATE+26*
PSOFDR CREATE+2~, DRG+45*
>> PSOFINFL SIG+1*
PSOI ERXOI+1~, ERXOI+4*, ERXOI+5, DEACLS+1~, DEACLS+5*, DEACLS+6
PSOINSFL CREATE+3~, DRG+46*
PSOMAX CREATE+1~, DRG+5*, DRG+6*
PSOMSG CREATE+1~
PSONEW CREATE+1~, DRG+52, SIG+3, GETPRVI+12
PSONEW("# OF REFILLS" , DRG+30*
PSONEW("AUTOFIN" DRG+13*
PSONEW("CLERK CODE" , DRG+22*
PSONEW("CLINIC" DRG+31*
PSONEW("CLININD" DRG+24*
PSONEW("CLININD2" DRG+25*
PSONEW("CM" DRG+23*
PSONEW("CONJUNCTION" DOSE+11*
PSONEW("DAW" CREATE+18*
PSONEW("DAYS SUPPLY" , DRG+28*
PSONEW("DISPE NSE DATE" , DRG+34*
PSONEW("DOSE ORDERED" , DOSE+4*
PSONEW("DOSE" DOSE+4*
PSONEW("DSCMED" DRG+27*
PSONEW("DURATION" DOSE+8*, DOSE+9*
PSONEW("ELECT RONIC PHARMACY" , CREATE+17*, CREATE+22, DRG+29*, DRG+60
PSONEW("ENT" DOSE+12*
PSONEW("EXPIR ATION DATE" , DRG+35*, DRG+36
PSONEW("FILL DATE" , DRG+33*
PSONEW("INS" SIG+6*, GETPRVI+8*, GETPRVI+10*
PSONEW("IRXN" DRG+56, DRG+58, DRG+59, DRG+60, DRG+62
PSONEW("ISSUE DATE" , DRG+15*
PSONEW("LAST DISPENSE DATE" , DRG+37*
PSONEW("LOGIN DATE" , DRG+32*
PSONEW("MAIL/WINDOW" DRG+20*
PSONEW("NOUN" DOSE+4*
PSONEW("PATIE NT STATUS" , DRG+16*, DRG+17*
PSONEW("PICKUP" DRG+42*
PSONEW("POE" DRG+38*
PSONEW("PROVI DER NAME" , DRG+22*
PSONEW("PROVIDER" DRG+18*, DRG+22*
PSONEW("QTY" DRG+19*
PSONEW("REMARKS" DRG+40*
PSONEW("ROUTE" DOSE+6*
PSONEW("RX #" , DRG+11*, DRG+12
PSONEW("SCHEDULE" DOSE+8*
PSONEW("SIG" INS1+3*, GETPRVI+3, GETPRVI+6, GETPRVI+7*, GETPRVI+8*, GETPRVI+10*, GETPRVI+11*, ADDPCSIG+3, ADDPCSIG+4
PSONEW("SINS" INS1+6*, INS1+7*, INS1+8
PSONEW("SNMDCNPTID" DRG+26*
PSONEW("STATUS" DRG+44*
PSONEW("STOP DATE" , DRG+36*
PSONEW("UNITS" DOSE+4*
PSONEW("VERB" DOSE+6*
PSONOOR CREATE+2~
PSOPAR CREATE+2~
>> PSOPRC GETPRVI+3*
PSORX CREATE+2~
PSORX("FILL D ATE" , DRG+33*
PSOSITE CREATE+2~, CREATE+8*, CREATE+9, CREATE+10
PSOX CREATE+1~, DRG+3!, DRG+12*
PTYPE PHMLST+1~, PHMLST+9*, PHMLST+12
R GETZC~, GETZC+4
RAD PHMLST~, PHMLST+5, GETZC+1~, GETZC+4*, GETZC+5, GETZC+6
REA CHKRNW+8~, CHKRNW+18*
RENEWED CHKRNW+7~, CHKRNW+13*, CHKRNW+14
RES ISSCH+1~, ISSCH+2*, ISSCH+4*, ISSCH+5
RET CREATE+3~, CREATE+34, DRG+56, DRG+57
RNWORDER CREATE+3~, CREATE+24*, CHKRNW+22, CHKRNW+23, CHKRNW+24
ROUTE DOSE+1~, DOSE+7*
RX UPTLOG~, UPTLOG+2
RXFL CREATE+2~
RXIEN CHKRNW~, CHKRNW+6, CHKRNW+9, CHKRNW+23, CHKRNW+24
RXORD MAKEVRX~, MAKEVRX+1*, MAKEVRX+2, CREATE+2~
RXORD( MAKEVRX+1, MAKEVRX+2
SCH ERXOI~, ERXOI+2*, ERXOI+6, ISSCH~, ISSCH+4
SCNT ADDPCSIG+1~, ADDPCSIG+2*, ADDPCSIG+4*, ADDPCSIG+5
SEG1 CREATE+2~
SG INS1+1~, INS1+4*
>> SIG SIG+1*, SIG+2
>> SIG( SIG+2*, ADDPCSIG+2, ADDPCSIG+4*, ADDPCSIG+5*
>> SIG(0 SIG+4
SIGOK CREATE+1~, SIG+4*
SINS1 INS1+1~, INS1+7
SPEC ADDPHM+1~, ADDPHM+2*, ADDPHM+17*, ADDPHM+18*, ADDPHM+20
SPEED CREATE+2~, DRG+43*
SUC AFLOG~, AFLOG+2, AFLOG+8
SVL ADDPHM+1~, ADDPHM+6*, ADDPHM+7
>> T INSCMT+2*, INSCMT+3*, INSCMT+5*, INSCMT+6*
TALK CREATE+3~
TYPE UPTLOG~, UPTLOG+5, UPTLOG+14
U CREATE+23, CREATE+24, CREATE+26, CREATE+31, CREATE+32, DRG+15, DRG+18, DRG+19, DRG+20, DRG+21
, DRG+22, DRG+28, DRG+30, DRG+32, DRG+35, ADDPHM+6, ADDPHM+9, ADDPHM+20, GETZC+6, ERXOI+4
, DEACLS+5, ISSCH+3
UNITS DOSE+1~, DOSE+5*
USER1 CREATE+1~, DRG+22
USR UPTLOG+1~, UPTLOG+3*, UPTLOG+9, UPTLOG+19, ERXUSER~, ERXUSER+2, ERXUSER+3, ERXUSER+4, NOTIF~, NOTIF+2
>> X INS1+6*
XQA NOTIF+1~
XQA( NOTIF+2*
XQADATA NOTIF+1~, NOTIF+5*
XQAID NOTIF+1~, NOTIF+4*
XQAMSG NOTIF+1~, NOTIF+3*
>> Y DRG+33*
ZARY PHMLST+1~, PHMLST+5
ZARY( PHMLST+6, PHMLST+7
ZC PHMLST+1~, PHMLST+6*, PHMLST+7, GETZC+1~, GETZC+5*, GETZC+6
ZIEN GETZC+1~, GETZC+3*, GETZC+4, GETZC+5
ZIP PHMLST~, PHMLST+4, PHMLST+5, GETZC~, GETZC+3
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 |  Naked Globals |  Local Variables |  All