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 |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: PSJOCDS

Package: Inpatient Medications

Routine: PSJOCDS


Information

PSJOCDS ;BIR/MV - SET INPUT DATA FOR DOSING ORDER CHECKS ;6 Jun 07 / 3:37 PM

Source Information

Source file <PSJOCDS.m>

Call Graph

Call Graph

Call Graph Total: 14

Package Total Call Graph
Inpatient Medications 8 $$DRGNM^PSGSICHK  IN^PSIVOCDS  $$DOW^PSJAPIDS  $$OIDF^PSJLMUT1  ($$CLASS,$$DD53P45,$$DN,$$ONCALL,$$VAGEN)^PSJMISC  $$PING^PSJOC  (DISPLAY,DOSEOFF)^PSJOCDSD  $$ONE^PSJORPOE  
Pharmacy Data Management 3 DOSE^PSSDSAPD  ($$DS,$$EXMT,$$FRQ,$$MRT,$$UNIT)^PSSDSAPI  DOSE^PSSORPH  
Kernel 2 $$FMDIFF^XLFDT  $$UP^XLFSTR  
List Manager 1 FULL^VALM1  

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: 17

Package Total Caller Graph
Inpatient Medications 17 PSGOD  PSGOEE  PSGOEF  PSGOEF1  PSGOER  PSGOES  PSGOESF  PSGOEV  
PSGSICHK  PSIVOCDS  PSIVOPT1  PSIVOPT2  PSIVORC1  PSIVORE  PSJHL3  PSJLIACT  
PSJOE1  

Entry Points

Name Comments DBIA/ICR reference
IN(PSJPON,PSJTYPE,PSJDD) ;
UD ;Process data from a UD order
FDBDATA ;Set data needed by FDB's Dose API
DOWCHK(PSJSCHD,PSJADM) ;Append the admin times to the schedule if it's not defined in 51.1
LITER ;FDB requires "L" instead of ML for the particular conditions below
UND24HRS(PSJDUR,PSGAT,PSGS0XT,PSGSD,PSGFD,PSGSCH) ;
CNTDOSE(PSGSD,PSGFD) ;Count # of admins to set the Freq to
DURATION(PSGSD,PSGFD) ;Figure out the duration from the start, stop dates
DOSE() ;Figure out the dose, unit, & dosage Ordered
DOSE1(PSJDUP) ;
DATES(PSJPON) ;Check the correct Start, Stop dates to use
OINM(PSJPON) ;For speed renew, returns OI name if order has multiple DD else returns null

External References

Name Field # of Occurrence
$$DRGNM^PSGSICHK FDBDATA+8
IN^PSIVOCDS IN+29
$$DOW^PSJAPIDS FDBDATA+19
$$OIDF^PSJLMUT1 OINM+5
$$CLASS^PSJMISC LITER+7
$$DD53P45^PSJMISC DOSE+31
$$DN^PSJMISC FDBDATA+9
$$ONCALL^PSJMISC FDBDATA+35
$$VAGEN^PSJMISC LITER+6
$$PING^PSJOC IN+14
DISPLAY^PSJOCDSD IN+37
DOSEOFF^PSJOCDSD IN+10
$$ONE^PSJORPOE FDBDATA+34
DOSE^PSSDSAPD IN+36
$$DS^PSSDSAPI IN+9
$$EXMT^PSSDSAPI UD+6
$$FRQ^PSSDSAPI FDBDATA+22, UND24HRS+15
$$MRT^PSSDSAPI FDBDATA+27
$$UNIT^PSSDSAPI FDBDATA+15
DOSE^PSSORPH DOSE1+6
FULL^VALM1 IN+8
$$FMDIFF^XLFDT CNTDOSE+6, DURATION+4
$$UP^XLFSTR DOSE+19, DOSE+23

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^PS(51.1 - [#51.1] FDBDATA+33, DOWCHK+6
^PS(53.1 - [#53.1] DOSE+10, DATES+23, OINM+4, OINM+5
^PS(55 - [#55] DOSE+5, DOSE+11
^TMP($J IN+15!, IN+39!

Label References

Name Line Occurrences
$$CNTDOSE UND24HRS+10
$$DATES UD+16, UND24HRS+9
$$DOSE UD+11
$$DOSE1 DOSE+18, DOSE+22, DOSE+27, DOSE+33
$$DOWCHK FDBDATA+21
$$DURATION UD+17
$$OINM FDBDATA+7
FDBDATA UD+24
UD IN+28
UND24HRS FDBDATA+41

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
>> DFN IN+36, DOSE+5, DOSE+11
PSGAT FDBDATA+41, UND24HRS~, UND24HRS+8, CNTDOSE+3, CNTDOSE+12, CNTDOSE+13
>> PSGDO DOSE+5*, DOSE+7, DOSE+13, DOSE+15, DOSE+17, DOSE+19, DOSE+22, DOSE+23, DOSE+26, DOSE+30
, DOSE+35
>> PSGDRG DOSE+32
PSGFD FDBDATA+41, UND24HRS~, CNTDOSE~, CNTDOSE+5, CNTDOSE+6, CNTDOSE+9, CNTDOSE+11, DURATION~, DURATION+3, DURATION+4
, DATES+8, DATES+10, DATES+16, DATES+17, DATES+22
>> PSGMR UD+22, FDBDATA+27
>> PSGOEE FDBDATA+7
>> PSGORD DOSE+9, DOSE+10, DOSE+11, DOSE+13, DOSE+26
>> PSGRENEW DOSE+5
PSGS0XT FDBDATA+19*, FDBDATA+21, FDBDATA+22, FDBDATA+41, UND24HRS~, UND24HRS+15, UND24HRS+20
>> PSGS0Y FDBDATA+21
PSGSCH UD+23, FDBDATA+18, FDBDATA+19, FDBDATA+22, FDBDATA+33, FDBDATA+41, UND24HRS~, UND24HRS+15
PSGSD FDBDATA+41, UND24HRS~, CNTDOSE~, CNTDOSE+4, CNTDOSE+6, CNTDOSE+8, CNTDOSE+11, DURATION~, DURATION+3, DURATION+4
, DATES+8, DATES+10, DATES+14, DATES+22
>> PSGST FDBDATA+35, LITER+5
>> PSGUD DOSE+27
PSJADM DOWCHK~, DOWCHK+7
PSJADMIN CNTDOSE+2~, CNTDOSE+12*, CNTDOSE+13*, CNTDOSE+15, CNTDOSE+16, CNTDOSE+17
PSJALLGY DOSE+2~
PSJBASE IN+11~, IN+36
PSJBASE(1 IN+16*
PSJBASE(3 IN+16*
PSJCNT IN+7~, UD+7*, UD+12, UD+13, UD+14, UD+19, UD+22, UD+23, FDBDATA+3, FDBDATA+4
FDBDATA+9, FDBDATA+10, FDBDATA+11, FDBDATA+13, FDBDATA+14, FDBDATA+15, FDBDATA+16, FDBDATA+23, FDBDATA+24, FDBDATA+25
FDBDATA+26, FDBDATA+27, FDBDATA+28, FDBDATA+29, FDBDATA+36, FDBDATA+37, FDBDATA+38, FDBDATA+39, FDBDATA+40, FDBDATA+41
LITER+8, LITER+11, LITER+12, UND24HRS+11, UND24HRS+22, UND24HRS+23, UND24HRS+25, UND24HRS+26, CNTDOSE+2~, CNTDOSE+7*
, CNTDOSE+15*, CNTDOSE+16*, CNTDOSE+17*, CNTDOSE+18, OINM+1~, OINM+3*, OINM+4*, OINM+5
>> PSJCOM DOSE+5
PSJDD IN~, UD+3, UD+6, FDBDATA+4, FDBDATA+9, FDBDATA+22, LITER+3, LITER+6, LITER+7, UND24HRS+15
, DOSE+9, DOSE+10*, DOSE+11*, DOSE+17, DOSE+26, DOSE1+3, DOSE1+6, OINM+1~, OINM+4*
PSJDIFF DURATION+2~, DURATION+4*, DURATION+5
>> PSJDOSE("DO" DOSE+7
PSJDS UD+1~, UD+8*, DOSE+2~, DOSE+3*, DOSE+14*, DOSE+15, DOSE+18*, DOSE+19, DOSE+20*, DOSE+22*
, DOSE+23, DOSE+24*, DOSE+25, DOSE+27*, DOSE+28, DOSE+33*, DOSE+34, DOSE1+2~, DOSE1+5*, DOSE1+7*
, DOSE1+8
PSJDSOFF IN+7~, IN+9*, IN+10
PSJDTFLG CNTDOSE+2~, CNTDOSE+10*, CNTDOSE+11*, CNTDOSE+14
PSJDUP DOSE1~, DOSE1+6
PSJDUR UND24HRS~, UND24HRS+6, UND24HRS+15, UND24HRS+20
PSJFDB IN+11~, IN+12!, IN+32, IN+36, UD+4!
PSJFDB( FDBDATA+3*, FDBDATA+4*, FDBDATA+9*, FDBDATA+14*, FDBDATA+15*, FDBDATA+16*, FDBDATA+23*, FDBDATA+24*, FDBDATA+25*, FDBDATA+26*
FDBDATA+27*, FDBDATA+28*, FDBDATA+29*, FDBDATA+36!, FDBDATA+37*, FDBDATA+38*, FDBDATA+39*, FDBDATA+40*, LITER+11*, LITER+12*
, UND24HRS+11*, UND24HRS+22*, UND24HRS+23, UND24HRS+25*, UND24HRS+26*
PSJFDB(1 LITER+4
PSJFLG DATES+7~, DATES+9*, DATES+22*, DATES+26, DATES+27
PSJFREQ UD+1~
PSJFRQ1 UND24HRS+5~, UND24HRS+15*, UND24HRS+20*, UND24HRS+22
PSJFRQX UND24HRS+5~
PSJND0 DOSE+2~, DOSE+31*, DOSE+32*, DOSE+33
PSJND2 DOSE+2~, DOSE+10*, DOSE+11*, DOSE+14
PSJNDOSE UND24HRS+5~, UND24HRS+10*, UND24HRS+11
PSJNDS DOSE+2~
PSJOCDS IN+11~, IN+12!, IN+36, UD+4!
PSJOCDS( UD+12*, UD+13*, UD+14*, UD+19*, UD+22*, UD+23*, FDBDATA+10, FDBDATA+11, FDBDATA+13, FDBDATA+15
FDBDATA+41, LITER+8, LITER+11*
PSJOCDS("CONTEXT" UD+10*
PSJOCDS(1 LITER+12*
>> PSJOCDSC("CX" DATES+11, DATES+12, DATES+13
PSJOI OINM+1~, OINM+5*
PSJOINM FDBDATA+2~, FDBDATA+5*, FDBDATA+7*, FDBDATA+8*, FDBDATA+9, OINM+1~, OINM+5*, OINM+6
PSJOVR IN+11~
PSJOVRLP IN+11~
PSJP1 DATES+7~, DATES+10*, DATES+14*, DATES+26*, DATES+27
PSJP2 DATES+7~, DATES+10*, DATES+16*, DATES+17*, DATES+26*, DATES+27
PSJPON IN~, UD+16, FDBDATA+3, FDBDATA+7, UND24HRS+9, DOSE+5, DATES~, DATES+8, DATES+12, DATES+13
, DATES+23, DATES+26, OINM~, OINM+2, OINM+4, OINM+5
PSJSCHD DOWCHK~, DOWCHK+5, DOWCHK+6, DOWCHK+7*, DOWCHK+8
PSJSFFG FDBDATA+2~, FDBDATA+5*, FDBDATA+7*, FDBDATA+8
>> PSJSPEED FDBDATA+7
PSJSTPTM CNTDOSE+2~, CNTDOSE+9*, CNTDOSE+15, CNTDOSE+17
PSJSTRTM CNTDOSE+2~, CNTDOSE+8*, CNTDOSE+15, CNTDOSE+16
PSJTYPE IN~, IN+28, IN+29
PSJX IN+11~, UND24HRS+5~, UND24HRS+9*, UND24HRS+10, CNTDOSE+2~, CNTDOSE+12*, CNTDOSE+13, DOSE+2~, DOSE+21*, DOSE+22
PSJXDO LITER+2~, LITER+8*, LITER+9, LITER+10, LITER+11
PSJXDOX DOSE+2~, DOSE1+4!, DOSE1+6
PSJXDOX(1 DOSE+19, DOSE+21, DOSE+23, DOSE1+7
PSJXFD DATES+7~, DATES+13*, DATES+16, DATES+17*, DATES+21, DATES+22
PSJXSCH FDBDATA+2~, FDBDATA+18*, FDBDATA+21*, FDBDATA+22, FDBDATA+32*, FDBDATA+33*, FDBDATA+34, FDBDATA+35
PSJXSD DATES+7~, DATES+12*, DATES+14, DATES+21, DATES+22
U IN+10, UD+12, UD+13, UD+14, UD+17, FDBDATA+22, FDBDATA+27, UND24HRS+10, UND24HRS+15, DOSE+5
, DOSE+7, DOSE+14, DOSE+15, DOSE+19, DOSE+23, DOSE+33, DOSE1+7, DATES+8, DATES+14, DATES+16
, DATES+17, DATES+22, DATES+26, DATES+27
X UD+1~, UD+11*, UD+12, UD+13, UD+14, UD+16*, UD+17*, UD+19, FDBDATA+2~, FDBDATA+13*
FDBDATA+14, FDBDATA+18*, FDBDATA+22*, FDBDATA+23*, FDBDATA+24, FDBDATA+34*, FDBDATA+35, DOSE+2~, DOSE+22*, DOSE+33*
, DATES+7~, DATES+23*, DATES+26
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Global Variables Directly Accessed |  Label References |  Local Variables  | All