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

Package: Pharmacy Data Management

Routine: PSSDSAPD


Information

PSSDSAPD ;BIR/RTR-Main Dose Check API ;09/16/08

Source Information

Source file <PSSDSAPD.m>

Call Graph

Call Graph

Call Graph Total: 13

Package Total Call Graph
Pharmacy Data Management 10 (INFRQ,INRATE,ONT,REM,SXCL)^PSSDSAPA  ($$EXMT,$$MRT,$$UNIT)^PSSDSAPI  ($$FRCON,$$MTCH,BDOSE,DOWN,DPL,DPOP,FTX,FTXRS,ITEM,SING)^PSSDSAPK  ($$QORDLEM,NUM)^PSSDSAPL  (ADDCT,ERST,FDRUG,FRQE,INERR,INFUE,MLT,MLTNO,MLTNP,MLTS,NXDRUG,PAT)^PSSDSAPM  ($$DFM,ADJU,FMT)^PSSDSEXC  $$FCY^PSSDSUTA  (PTH,RANGE)^PSSDSUTL  
IN^PSSHRQ2  SCHD^PSSSCHMS  
Kernel 1 $$UP^XLFSTR  
National Drug File 1 $$PROD0^PSNAPIS  
Toolkit 1 ($$GETVUID,$$SCREEN)^XTID  

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

Package Total Caller Graph
Pharmacy Data Management 4 PSSDSAPA  PSSDSAPI  PSSDSAPK  PSSSCHMS  
Inpatient Medications 2 PSJAPIDS  PSJOCDS  
Order Entry Results Reporting 1 ORDSGCHK  
Outpatient Pharmacy 1 PSODOSCL  

Entry Points

Name Comments DBIA/ICR reference
DOSE(PSSDBASX,PSSDBDFN,PSSDBDS,PSSDBFDB) ;
  • ICR #5426
    • Status: Active
    • Usage: Private
    AMT ;Set Dose Amount and Dose Unit
    AMTRT ;Retry for Local Dosages with parenthesis
    LDZ ;
    RTE ;Get First DataBank Med Route
    DTYPE ;Find Dose Type
    DURR ;Set Duration
    DURRAT ;Set Duration Rate
    COMP ;Handle complex order, set PSSDBCAR array, see routine PSSDSEXC for PSSBDCAR piece details
    DRT(PSSDBJV) ;Return number of minutes based on duration, API also called from Inpatient Medications
  • ICR #5617
    • Status: Active
    • Usage: Private
    CRT ;Possibly create new Input Dose Node just for Daily Dose purposes
    NDINFO ;Set National Drug File information
    ERR ;Loop through PSSDBCAR, set PSSDBCAX error array
    EXCPS(PSSDBEQ1) ;Set errors
    S12 ;
    NX(PSSNX) ;

    External References

    Name Field # of Occurrence
    $$PROD0^PSNAPIS DOSE+22
    INFRQ^PSSDSAPA ERR+10
    INRATE^PSSDSAPA ERR+7
    ONT^PSSDSAPA DOSE+18
    REM^PSSDSAPA DOSE+52
    SXCL^PSSDSAPA COMP+10
    $$EXMT^PSSDSAPI DOSE+16
    $$MRT^PSSDSAPI RTE+4
    $$UNIT^PSSDSAPI AMT+10
    $$FRCON^PSSDSAPK CRT+20, CRT+28
    $$MTCH^PSSDSAPK AMTRT+5
    BDOSE^PSSDSAPK ERR+8
    DOWN^PSSDSAPK DOSE+6
    DPL^PSSDSAPK AMT+1
    DPOP^PSSDSAPK AMTRT+12
    FTX^PSSDSAPK DOSE+51
    FTXRS^PSSDSAPK DOSE+51
    ITEM^PSSDSAPK AMTRT+13
    SING^PSSDSAPK ERR+11
    $$QORDLEM^PSSDSAPL DOSE+17
    NUM^PSSDSAPL AMTRT+13
    ADDCT^PSSDSAPM DOSE+52
    ERST^PSSDSAPM CRT+34
    FDRUG^PSSDSAPM DOSE+18
    FRQE^PSSDSAPM DOSE+42
    INERR^PSSDSAPM DOSE+18
    INFUE^PSSDSAPM DOSE+41
    MLT^PSSDSAPM AMT+16
    MLTNO^PSSDSAPM COMP+10
    MLTNP^PSSDSAPM CRT+31
    MLTS^PSSDSAPM AMT+2
    NXDRUG^PSSDSAPM DOSE+19
    PAT^PSSDSAPM DOSE+47
    $$DFM^PSSDSEXC DOSE+37
    ADJU^PSSDSEXC DOSE+40
    FMT^PSSDSEXC DOSE+52
    $$FCY^PSSDSUTA ERR+10
    PTH^PSSDSUTL AMT+15
    RANGE^PSSDSUTL AMTRT+13
    IN^PSSHRQ2 DOSE+5, DOSE+51
    SCHD^PSSSCHMS DOSE+29
    $$UP^XLFSTR AMT+9
    $$GETVUID^XTID DOSE+23
    $$SCREEN^XTID AMTRT+7

    Global Variables Directly Accessed

    Name Line Occurrences  (* Changed,  ! Killed)
    ^PS(51.1 - [#51.1] DTYPE+7, DTYPE+8, DTYPE+9, CRT+12, CRT+13
    ^PS(51.24 - [#51.24] AMTRT+8
    ^PSDRUG - [#50] AMTRT+2, AMTRT+3, NDINFO+1, NDINFO+2
    ^TMP($J DOSE+2!, DOSE+3!, DOSE+4!, DOSE+5*, DOSE+6, DOSE+7!, DOSE+35*, DOSE+36*, DOSE+37*, DOSE+43*
    , DOSE+45*, DOSE+46*, DOSE+47!, DOSE+49, DOSE+52, COMP+4!, COMP+6, COMP+7, COMP+11, COMP+15*
    COMP+16!, CRT+7, CRT+35*, CRT+36*, CRT+37*, CRT+38*, ERR+2, ERR+5, ERR+6

    Label References

    Name Line Occurrences
    $$DRT CRT+21, CRT+29
    AMT DOSE+25
    AMTRT AMTRT+14
    COMP DOSE+44
    CRT COMP+11
    DTYPE DOSE+26
    DURR DOSE+30
    DURRAT DOSE+31
    ERR DOSE+50
    LDZ AMT+5, AMT+11
    NDINFO DOSE+20
    NX CRT+9, CRT+11, CRT+13, CRT+15, CRT+17, CRT+19, CRT+20, CRT+21, CRT+23, CRT+24
    CRT+25, CRT+26, CRT+27, CRT+28, CRT+29
    RTE DOSE+28
    S12 CRT+1

    Local Variables

    Legend:

    >> Not killed explicitly
    * Changed
    ! Killed
    ~ Newed

    Name Field # of Occurrence
    PSSCNX1 COMP+2~, COMP+6*, COMP+11
    PSSDBADJ DOSE+8~
    PSSDBAR DOSE+8~, DOSE+12!
    PSSDBAR("AMN" DOSE+25*, DOSE+36, AMT+5*, AMT+11*, AMTRT+9*, LDZ+1*
    PSSDBAR("DRR" DOSE+36, DURRAT+1*, DURRAT+2*
    PSSDBAR("DSE" DOSE+27*, DOSE+36
    PSSDBAR("DUR" DOSE+36, DURR+1*, DURR+2*
    PSSDBAR("FREQ" DOSE+36
    PSSDBAR("GCN" DOSE+22*, DOSE+33
    PSSDBAR("NAME" DOSE+24*, DOSE+33
    PSSDBAR("RT" DOSE+36, RTE+3*, RTE+4*, RTE+5*
    PSSDBAR("SPFC" DOSE+32*, DOSE+37
    PSSDBAR("TYPE" DOSE+36, DTYPE+2*, DTYPE+4*, DTYPE+10*, DTYPE+11*, DURR+2, DURRAT+2
    PSSDBAR("UNIT" DOSE+36, AMT+5*, AMT+11*, AMTRT+9*
    PSSDBAR("VUID" DOSE+23*, DOSE+33
    PSSDBASA DOSE+2~, DOSE+3*, DOSE+52
    PSSDBASB DOSE+2~, DOSE+4*, DOSE+52
    PSSDBASE DOSE+2~*, DOSE+5, DOSE+6, DOSE+7, DOSE+10, DOSE+35, DOSE+36, DOSE+37, DOSE+43, DOSE+45
    , DOSE+46, DOSE+49, DOSE+51, DOSE+52, COMP+7, COMP+15, CRT+7, CRT+35, CRT+36, ERR+2
    ERR+5, ERR+6
    PSSDBASF DOSE+2~*, DOSE+3
    PSSDBASG DOSE+2~*, DOSE+4
    PSSDBASX DOSE~
    PSSDBASX(1 DOSE+1, DOSE+2
    PSSDBASX(2 DOSE+2
    PSSDBASX(3 DOSE+2
    PSSDBCAR DOSE+8~
    PSSDBCAR( COMP+9*, COMP+10*, COMP+11, COMP+14*, CRT+1*, CRT+8*, CRT+31*, CRT+32*, CRT+39*, ERR+5*
    ERR+7*, ERR+8*, ERR+11, EXCPS+1, EXCPS+2, S12+1*
    PSSDBCAX DOSE+8~
    PSSDBCAX( EXCPS+3*, EXCPS+4*
    PSSDBCAZ DOSE+8~
    PSSDBCAZ( AMT+2, COMP+7, CRT+19, CRT+27, ERR+7, EXCPS+3
    PSSDBCDA COMP+2~, COMP+11!
    PSSDBCDA( COMP+8*
    PSSDBCDP DOSE+8~
    PSSDBCOT DOSE+8~
    PSSDBDFN DOSE~, DOSE+9, DOSE+45
    PSSDBDGO DOSE+48~, DOSE+49*, DOSE+51, ERR+7*, ERR+10*, ERR+11*, ERR+12*
    PSSDBDS DOSE~
    PSSDBDS( DOSE+38, DOSE+39*, DOSE+40, AMT+6, AMT+8, AMT+11, AMT+14, RTE+4, DTYPE+3
    PSSDBEB1 ERR+1~, ERR+5*, ERR+6, ERR+7, ERR+8, ERR+11, EXCPS+1, EXCPS+2, EXCPS+3, EXCPS+4
    PSSDBEB2 ERR+1~, ERR+6*, ERR+8
    PSSDBEB3 ERR+1~, ERR+2*, ERR+5
    PSSDBEQ1 EXCPS~, EXCPS+1, EXCPS+2, EXCPS+3, EXCPS+4
    PSSDBEQ2 CRT+2~
    PSSDBEQ2( NX+2*
    PSSDBEQ2(10 CRT+12
    PSSDBEQ3 CRT+2~
    PSSDBEQ4 CRT+2~, CRT+12*, CRT+13
    PSSDBFAL AMT+3~, AMT+4*, AMT+11*, AMT+12, AMTRT+2, AMTRT+9*, AMTRT+11, AMTRT+12, AMTRT+13, AMTRT+14
    PSSDBFDB DOSE~
    PSSDBFDB( DOSE+11, DOSE+13, DOSE+14, DOSE+15, DOSE+16, DOSE+18, DOSE+24, DOSE+27, DOSE+32, DOSE+33
    , DOSE+35, DOSE+36, DOSE+37, DOSE+38, DOSE+40, DOSE+43, AMT+2, AMT+5, AMTRT+2, AMTRT+3
    RTE+3, DTYPE+2, DURR+1, DURRAT+1, NDINFO+1
    PSSDBFDB("OI" DOSE+15*
    PSSDBFLG DOSE+8~, DOSE+10*, DOSE+34*
    PSSDBFRB DOSE+8~
    PSSDBFRB( DOSE+40*, CRT+1, CRT+16, CRT+21, CRT+26, CRT+29
    PSSDBFRC DOSE+8~
    PSSDBFRC( DOSE+38*, COMP+9, COMP+10, COMP+11, CRT+1, CRT+11, CRT+12
    PSSDBFST DOSE+8~, DOSE+33*, DOSE+35, DOSE+36
    PSSDBFTX DOSE+8~, DOSE+51
    PSSDBIFG DOSE+8~, DOSE+12*, DOSE+18, DOSE+19, DOSE+33, NDINFO+2
    PSSDBIFL DOSE+8~, DOSE+12*, DOSE+19, DOSE+33, AMT+5, AMT+6, AMT+16, NDINFO+1
    PSSDBJV DRT~, DRT+2, DRT+3, DRT+4, DRT+5, DRT+6, DRT+7, DRT+8
    PSSDBKFL COMP+2~, COMP+5*, COMP+11*, COMP+12*, CRT+1
    PSSDBKFQ COMP+2~, COMP+7*, COMP+9, CRT+39
    PSSDBKGG COMP+2~, COMP+7*, CRT+1
    PSSDBKLP COMP+2~, COMP+6*, COMP+7, COMP+8, COMP+9, COMP+10, COMP+11, COMP+13, COMP+14, CRT+1
    CRT+8, S12+1
    PSSDBKMR COMP+2~
    PSSDBKND COMP+2~, COMP+7*, COMP+8, COMP+9, COMP+10, CRT+39
    PSSDBKNW COMP+2~, COMP+11!
    PSSDBKNW( COMP+11*, COMP+13*, CRT+6, CRT+8, CRT+22, CRT+30, CRT+32
    PSSDBKRF COMP+2~
    PSSDBKTM COMP+2~, COMP+3*, COMP+4, COMP+15, COMP+16, CRT+35, CRT+36, CRT+37, CRT+38
    PSSDBKUN COMP+2~
    PSSDBLP DOSE+8~, DOSE+11*, DOSE+13, DOSE+14, DOSE+15, DOSE+16, DOSE+18, DOSE+24, DOSE+27, DOSE+32
    , DOSE+33, DOSE+35, DOSE+36, DOSE+37, DOSE+38, DOSE+39, DOSE+40, DOSE+43, AMT+2, AMT+5
    AMT+6, AMT+8, AMT+11, AMT+14, AMTRT+2, AMTRT+3, RTE+3, RTE+4, DTYPE+2, DTYPE+3
    DURR+1, DURRAT+1, NDINFO+1
    PSSDBLPD AMT+3~, AMT+4*, AMTRT+5*, AMTRT+12, AMTRT+14*
    PSSDBMRT RTE+1~, RTE+2!, RTE+4*
    PSSDBND1 DOSE+8~, DOSE+12!, DOSE+21, DOSE+22, NDINFO+1*, NDINFO+2*
    PSSDBND3 DOSE+8~, DOSE+12!, DOSE+21, DOSE+22, DOSE+23, NDINFO+1*, NDINFO+2*
    PSSDBNOD AMT+3~, AMTRT+3*, AMTRT+5, AMTRT+7, AMTRT+8, AMTRT+9
    PSSDBNT AMT+3~, AMTRT+8*, AMTRT+9
    PSSDBR1 CRT+2~, CRT+6*, CRT+7, CRT+11, CRT+12, CRT+16, CRT+19, CRT+21, CRT+22, CRT+26
    CRT+27, CRT+29, CRT+30, NX+3
    PSSDBR2 CRT+2~, CRT+7*, CRT+9, CRT+15, CRT+17, CRT+18, CRT+20, CRT+23, CRT+24, CRT+25
    CRT+27, CRT+28
    PSSDBR3 CRT+2~, CRT+17*, CRT+24
    PSSDBR4 CRT+2~, CRT+17*, CRT+25
    PSSDBR5 CRT+2~, CRT+3*, CRT+18*, CRT+20, CRT+27*, CRT+28
    PSSDBR6 CRT+2~, CRT+20*, CRT+28*, CRT+38
    PSSDBR7 CRT+2~, CRT+21*, CRT+29*
    PSSDBR8 CRT+2~, CRT+20*, CRT+28*
    PSSDBR9 CRT+2~, CRT+32*
    PSSDBR91 CRT+2~, CRT+16*, CRT+26
    PSSDBRCT CRT+2~, CRT+3*, CRT+10*, CRT+14
    PSSDBRLA CRT+2~, CRT+32*
    PSSDBRLP CRT+2~, CRT+6*, CRT+8, CRT+22, CRT+30
    PSSDBRLS CRT+2~, CRT+22*, CRT+30*, CRT+31, CRT+35, CRT+36, CRT+37, CRT+38, CRT+39
    PSSDBRNO CRT+2~, CRT+3*, CRT+17*, CRT+20, CRT+28, CRT+31, NX+1*
    PSSDBSNO DOSE+8~, DOSE+10*, DOSE+49*, DOSE+51, COMP+11*
    PSSDBST1 DTYPE+1~, DTYPE+3*, DTYPE+4, DTYPE+7*, DTYPE+8
    PSSDBST2 DTYPE+1~, DTYPE+8*, DTYPE+9
    PSSDBST3 DTYPE+1~, DTYPE+5*, DTYPE+8, DTYPE+10*, DTYPE+11
    PSSDBST4 DTYPE+1~, DTYPE+9*, DTYPE+10
    PSSDBSTX DTYPE+1~, DTYPE+7*
    PSSDBUNA AMT+3~, AMT+10*, AMT+11
    PSSDBUNT AMT+3~, AMT+8*, AMT+9*, AMT+10
    PSSDBXAX CRT+2~
    PSSDBXAX( NX+3*
    PSSDBXP AMT+3~, AMTRT+2*, AMTRT+3
    PSSDCLX COMP+2~, COMP+8*, COMP+10*
    PSSDLEM DOSE+8~, DOSE+17*
    PSSDSDPL DOSE+8~
    PSSDSIVF DOSE+8~, DOSE+12*
    PSSDSLC1 AMT+3~
    PSSDSLC1( AMTRT+14
    PSSDSLCL AMT+3~, AMT+14*, AMT+15, AMTRT+1, AMTRT+14*
    PSSDSLCT AMT+3~, AMT+4*, AMTRT+14*
    PSSDSWHE DOSE+8~, DOSE+10*
    PSSDSXTD AMT+3~, AMTRT+7*
    PSSENHK DOSE+8~
    PSSENHK( DOSE+32*
    PSSENHKZ DOSE+8~
    PSSENO DOSE+8~, DOSE+12*, DOSE+18
    PSSNX NX~, NX+2, NX+3
    Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Global Variables Directly Accessed |  Label References |  Local Variables  | All