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

Package: Pharmacy Data Management

Routine: PSSDSAPK


Information

PSSDSAPK ;BIR/RTR-Miscellaneous APIs for Dose Call ;09/02/09

Source Information

Source file <PSSDSAPK.m>

Call Graph

Call Graph

Call Graph Total: 7

Package Total Call Graph
Pharmacy Data Management 5 ($$DUNIT,$$IPM,$$SOL)^PSSDSAPA  ($$DRT,EXCPS)^PSSDSAPD  ($$EXMT,$$UNIT,$$UNITD)^PSSDSAPI  $$EN^PSSDSBBP  $$DFM^PSSDSEXC  
Kernel 1 $$UP^XLFSTR  
National Drug File 1 $$PROD0^PSNAPIS  

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

Package Total Caller Graph
Pharmacy Data Management 5 PSSDSAPA  PSSDSAPD  PSSDSAPI  PSSDSAPM  PSSDSEXC  
Inpatient Medications 1 PSIVOCDS  
Order Entry Results Reporting 1 ORKPS  

Entry Points

Name Comments DBIA/ICR reference
DRG(PSSGTOI,PSSGTPK,PSSGTRTE,PSSGTAB) ;
DRGINP ;Inpatient Order with IV Route
PRE(PSSLGTOI,PSSDIAG) ;Determine if CPRS needs to do order checks
  • ICR #5497
    • Status: Active
    • Usage: Controlled Subscription
    CONV(PSSCVTVL) ;Convert hours into format for Dose API for Inpatient Medications
  • ICR #5497
    • Status: Active
    • Usage: Controlled Subscription
    ITEM ;Only Orderable Item passed in, no Dispense Drug
    FRCON(PSSCFQ1) ;Convert frequency into a number for complex dose additions
    SING ;
    DOWN ;
    BDOSE ;Missing Numeric Dose or Dose Unit
    FTX ;Pull Dosing sequences out of Input for complex orders where Free Text Dosage could not be evaluated
    FTXRS ;Reset input globals that were pulled because of invalid dosage
    ERR1() ;Screen out Daily Dose errors for Single Dose Sequences, unless New Daily Dose created based on previous Dosing sequences
    ERR2() ;Screen out Frequency errors if Dosing Sequence is flagged for Single Dose only
    INFERR ;Infusion Rate Height and Weight Errors
    INFERRS ;
    GENERRX ;Set General Dosing Guidelines exception
    MTCH() ;Called from PSSDSAPD, looking for Local Possible Dosages Match
    DPOP ;Use Pre release logic to find Dose unit and Numeric Dose
    FRDR ;Check if Duration exists, and is less than Duration of Schedule
    NOEXP ;Don't show any exceptions for a drug level error
    NOEXPS ;Set Drug level error
    NOEXPG ;Set GCNSEQNO exception
    DPL ;Set Dose display text, called from PSSDSAPD
    DPLZ ;
    COMMENT ;
    CKWRN ;Set flag indicating a warning exists
    ADOSE ;Add DOSE subscript to any EXCEPTION from interface without DOSE subscript

    External References

    Name Field # of Occurrence
    $$PROD0^PSNAPIS DRG+10, DRGINP+10, DRGINP+22
    $$DUNIT^PSSDSAPA BDOSE+11
    $$IPM^PSSDSAPA PRE+13
    $$SOL^PSSDSAPA PRE+12
    $$DRT^PSSDSAPD FRDR+4
    EXCPS^PSSDSAPD BDOSE+1, BDOSE+2, BDOSE+4, BDOSE+5, INFERRS+2, INFERRS+3, INFERRS+4
    $$EXMT^PSSDSAPI DRG+11, DRGINP+11, DRGINP+23
    $$UNIT^PSSDSAPI ITEM+20
    $$UNITD^PSSDSAPI ITEM+19
    $$EN^PSSDSBBP DPOP+2, DPOP+5, DPOP+7
    $$DFM^PSSDSEXC BDOSE+11
    $$UP^XLFSTR ITEM+4, ERR1+4, ERR2+6

    Global Variables Directly Accessed

    Name Line Occurrences  (* Changed,  ! Killed)
    ^PS(51.2 - [#51.2] DRG+6
    ^PS(51.24 - [#51.24] DPOP+3, DPOP+4, DPOP+6
    ^PS(52.6 - [#52.6] DRGINP+4, DRGINP+5, DRGINP+6
    ^PS(52.7 - [#52.7] DRGINP+15, DRGINP+16, DRGINP+17, DRGINP+18
    ^PSDRUG - [#50] DRG+8, DRG+13, DRG+14, DRGINP+8, DRGINP+20
    ^PSDRUG("ASP" DRG+7
    ^TMP($J SING+2*, SING+3*, SING+4*, DOWN+1*, BDOSE+6*, BDOSE+7*, BDOSE+8*, BDOSE+9*, BDOSE+10*, BDOSE+11*
    FTX+3, FTX+4, FTX+5!, FTX+6!, FTXRS+3*, FTXRS+4*, ERR1+3, GENERRX+5, GENERRX+7*, GENERRX+8*
    GENERRX+9*, GENERRX+10*, GENERRX+11*, GENERRX+13*, GENERRX+16, GENERRX+18*, GENERRX+21, GENERRX+23*, NOEXP+2, NOEXP+3
    NOEXPS+3*, NOEXPS+4*, NOEXPS+6*, NOEXPS+7*, NOEXPG+3*, NOEXPG+5*, CKWRN+2, CKWRN+3, CKWRN+4, ADOSE+1
    ADOSE+3, ADOSE+5, ADOSE+6, ADOSE+7*, ADOSE+8*

    Label References

    Name Line Occurrences
    $$FRCON FRDR+8
    DPLZ DPL+2, DPL+3
    DRGINP DRG+6
    NOEXPG NOEXP+3
    NOEXPS NOEXP+4

    Local Variables

    Legend:

    >> Not killed explicitly
    * Changed
    ! Killed
    ~ Newed

    Name Field # of Occurrence
    DT DRG+14, DRGINP+5, DRGINP+17
    PSSCFQ1 FRCON~, FRCON+3, FRCON+4, FRCON+5, FRCON+8, FRCON+9, FRCON+11, FRCON+12, FRCON+16, FRCON+17
    , FRCON+21, FRCON+22, FRCON+24, FRCON+25, FRCON+28, FRCON+29, FRCON+30, FRCON+33
    PSSCFQ2 FRCON+1~, FRCON+5*, FRCON+6, FRCON+9*, FRCON+10, FRCON+12*, FRCON+13, FRCON+17*, FRCON+18, FRCON+22*
    , FRCON+23, FRCON+25*, FRCON+26, FRCON+29*, FRCON+30*, FRCON+31
    PSSCFQ3 FRCON+1~, FRCON+6*, FRCON+7, FRCON+13*, FRCON+14, FRCON+18*, FRCON+19
    PSSCFQ4 FRCON+1~, FRCON+14*, FRCON+15, FRCON+19*, FRCON+20
    PSSCFQRS FRCON+1~, FRCON+2*, FRCON+3*, FRCON+4, FRCON+7*, FRCON+8, FRCON+10*, FRCON+11, FRCON+15*, FRCON+16
    , FRCON+20*, FRCON+21, FRCON+23*, FRCON+24, FRCON+26*, FRCON+27*, FRCON+28, FRCON+31*, FRCON+32*, FRCON+33*
    PSSCVT1 CONV+1~, CONV+4*, CONV+5, CONV+6
    PSSCVT2 CONV+1~, CONV+5*, CONV+6*
    PSSCVT3 CONV+1~, CONV+5*
    PSSCVTRS CONV+1~, CONV+2*, CONV+3, CONV+5*, CONV+6*, CONV+7
    PSSCVTVL CONV~, CONV+3, CONV+4
    >> PSSDBAR("AMN" ITEM+22*, DPOP+3*, DPOP+4*, DPOP+6*
    >> PSSDBAR("FREQ" FRDR+6
    >> PSSDBAR("FREQZZ" FRDR+6
    >> PSSDBAR("TYPE" FRDR+1
    >> PSSDBAR("UNIT" ITEM+22*, BDOSE+11*, DPOP+3*, DPOP+4*, DPOP+6*
    >> PSSDBASA DOWN+1, GENERRX+7, GENERRX+9, GENERRX+14, NOEXPS+2, NOEXPG+2
    >> PSSDBASB DOWN+1, GENERRX+8, GENERRX+10, GENERRX+19, NOEXPS+5, NOEXPG+4
    >> PSSDBASE SING+2, SING+3, SING+4, DOWN+1, BDOSE+6, BDOSE+7, BDOSE+8, BDOSE+9, BDOSE+10, BDOSE+11
    FTX+3, FTX+4, FTX+5, FTX+6, FTXRS+3, FTXRS+4, ERR1+3, GENERRX+5, GENERRX+11, GENERRX+13
    NOEXP+2, NOEXP+3, NOEXPS+3, NOEXPS+4, NOEXPS+6, NOEXPS+7, NOEXPG+3, NOEXPG+5, CKWRN+2, CKWRN+3
    CKWRN+4, ADOSE+1, ADOSE+3, ADOSE+5, ADOSE+6, ADOSE+7, ADOSE+8
    >> PSSDBASF DOWN+1, GENERRX+7, GENERRX+9, GENERRX+16, GENERRX+18, NOEXPS+3, NOEXPS+4, NOEXPG+3
    >> PSSDBASG DOWN+1, GENERRX+8, GENERRX+10, GENERRX+21, GENERRX+23, NOEXPS+6, NOEXPS+7, NOEXPG+5
    >> PSSDBCAR( SING+1*, SING+5*, BDOSE+2*, BDOSE+12*, BDOSE+14*, ERR1+5, ERR1+6, ERR2+4, GENERRX+7, GENERRX+8
    GENERRX+11, GENERRX+13, CKWRN+5*, ADOSE+8
    >> PSSDBCAZ( BDOSE+1, BDOSE+2, BDOSE+5, INFERR+1*, INFERR+2*, INFERRS+1, INFERRS+2, INFERRS+3, FRDR+10*, FRDR+11*
    >> PSSDBDGO BDOSE+1*, BDOSE+3*
    >> PSSDBDS( DPL+3, DPL+4
    >> PSSDBEB1 SING+1, SING+2, SING+3, SING+4, SING+5, BDOSE+1, BDOSE+2, BDOSE+5, BDOSE+6, BDOSE+7
    BDOSE+8, BDOSE+9, BDOSE+10, BDOSE+11, BDOSE+12, BDOSE+14, INFERRS+1, INFERRS+2, INFERRS+3
    >> PSSDBEB2 BDOSE+1
    >> PSSDBEB3 BDOSE+1
    >> PSSDBFAL ITEM+22*, DPOP+3*, DPOP+4*, DPOP+6*
    >> PSSDBFDB( INFERR+1, INFERR+2, DPOP+2, DPOP+5, DPOP+7, FRDR+3, FRDR+10, FRDR+11, DPL+1, DPL+2
    DPL+3, DPL+4, DPLZ+1
    >> PSSDBFRB( FRDR+3
    >> PSSDBFTX( BDOSE+2*, FTX+2, FTX+3*, FTX+4*, FTXRS+2, FTXRS+3, FTXRS+4
    PSSDBI1 ITEM+1~, ITEM+2*, ITEM+3, ITEM+4*, ITEM+6, ITEM+8, ITEM+9, ITEM+11*, ITEM+12*, ITEM+13
    ITEM+14, ITEM+15, ITEM+16
    PSSDBI2 ITEM+1~, ITEM+14*, ITEM+15, ITEM+16, ITEM+22
    PSSDBI3 ITEM+1~, ITEM+16*, ITEM+17
    PSSDBI4 ITEM+1~, ITEM+17*, ITEM+18, ITEM+19, ITEM+20
    PSSDBI5 ITEM+1~, ITEM+19*, ITEM+20*, ITEM+21, ITEM+22
    PSSDBI6 ITEM+1~, ITEM+6*, ITEM+7, ITEM+8
    PSSDBI7 ITEM+1~, ITEM+6*
    PSSDBI8 ITEM+1~, ITEM+6*
    PSSDBI9 ITEM+1~, ITEM+8*, ITEM+9
    PSSDBI91 ITEM+1~, ITEM+9*, ITEM+10
    PSSDBI92 ITEM+1~, ITEM+9*, ITEM+11
    PSSDBI93 ITEM+1~, ITEM+10*, ITEM+11
    PSSDBI94 ITEM+1~
    >> PSSDBIFL ITEM+19, ITEM+20
    >> PSSDBLP INFERR+1, INFERR+2, DPOP+2, DPOP+5, DPOP+7, FRDR+3, FRDR+10, FRDR+11, DPL+1, DPL+2
    DPL+3, DPL+4, DPLZ+1
    >> PSSDBNOD MTCH+2, MTCH+3, MTCH+4
    PSSDDPOP DPOP+1~, DPOP+2*, DPOP+3, DPOP+4, DPOP+5*, DPOP+6, DPOP+7*
    PSSDIAG PRE~, PRE+9, PRE+10, PRE+11, PRE+12, PRE+13
    PSSDRSC1 FRDR+2~, FRDR+3*, FRDR+4
    PSSDRSC2 FRDR+2~, FRDR+8*, FRDR+9
    PSSDRSC3 FRDR+2~, FRDR+4*, FRDR+5
    PSSDRSC4 FRDR+2~, FRDR+5*, FRDR+9
    PSSDRSC5 FRDR+2~, FRDR+6*, FRDR+7, FRDR+8
    >> PSSDSDPL( DPL+1*, DPL+2*, DPL+3*, DPL+4*, DPLZ+1*
    >> PSSDSIVF DRGINP+1*
    >> PSSDSLCL ITEM+2, MTCH+2, MTCH+3, MTCH+4, DPOP+2, DPOP+4, DPOP+6
    PSSDSLPO DPOP+1~, DPOP+4*, DPOP+5, DPOP+6*, DPOP+7
    PSSDSLTM MTCH+1~, MTCH+3*, MTCH+4*
    PSSDTX1 FTX+1~, FTX+2*, FTX+3, FTX+4, FTX+5, FTX+6
    PSSDTX2 FTXRS+1~, FTXRS+2*, FTXRS+3, FTXRS+4
    >> PSSDWE1 ERR2+4, NOEXP+2, NOEXP+3, NOEXP+4, NOEXPS+1, NOEXPS+3, NOEXPS+4, NOEXPS+6, NOEXPS+7, NOEXPG+1
    NOEXPG+3, NOEXPG+5
    >> PSSDWE5 GENERRX+5, GENERRX+7, GENERRX+8, GENERRX+9, GENERRX+10, GENERRX+11, GENERRX+13, GENERRX+16, GENERRX+18, GENERRX+21
    GENERRX+23
    >> PSSDWEGC ERR2+5
    >> PSSDWEX3 ADOSE+1, ADOSE+3, ADOSE+5, ADOSE+6, ADOSE+7, ADOSE+8
    PSSDWEZ4 ADOSE+2~, ADOSE+3*, ADOSE+4*, ADOSE+7, ADOSE+8, ADOSE+9*
    PSSDWEZ5 ADOSE+2~, ADOSE+5*, ADOSE+6
    PSSDWEZ6 ADOSE+2~, ADOSE+6*, ADOSE+7, ADOSE+8
    PSSDWEZ7 ADOSE+2~, ADOSE+3*
    PSSDWF1 GENERRX+4~, GENERRX+5*
    PSSDWF2 GENERRX+4~, GENERRX+5*, GENERRX+6, GENERRX+12*, GENERRX+13
    PSSDWF3 GENERRX+4~, GENERRX+15*, GENERRX+16*, GENERRX+17*, GENERRX+18, GENERRX+20*, GENERRX+21*, GENERRX+22*, GENERRX+23
    PSSDWF4 GENERRX+4~, GENERRX+16*, GENERRX+21*
    >> PSSDWL1 ERR1+3
    >> PSSDWLP ERR1+3, ERR1+5, ERR1+6, CKWRN+2, CKWRN+3, CKWRN+4, CKWRN+5
    >> PSSENHKZ( NOEXPS+1*, NOEXPG+1*
    PSSERH ERR2+2~, ERR2+5*, ERR2+6
    PSSERHRS ERR2+2~, ERR2+3*, ERR2+7*, ERR2+8
    PSSERHU ERR2+2~, ERR2+6*, ERR2+7
    PSSERS ERR1+2~, ERR1+3*, ERR1+4
    PSSERSU ERR1+2~, ERR1+4*, ERR1+5, ERR1+7
    PSSGT1 DRG+3~, DRG+7*, DRG+8, DRG+11, DRG+12, DRG+13, DRG+14, DRG+15
    PSSGT2 DRG+3~, DRG+14*
    PSSGT3 DRG+3~, DRG+8*, DRG+9, DRG+10
    PSSGT4 DRG+3~, DRG+8*, DRG+9, DRG+10
    PSSGT5 DRG+3~, DRG+10*
    PSSGT6 DRGINP+2~, DRGINP+4*, DRGINP+5, DRGINP+6, DRGINP+15*, DRGINP+16, DRGINP+17, DRGINP+18
    PSSGT7 DRGINP+2~, DRGINP+5*, DRGINP+17*
    PSSGT8 DRGINP+2~, DRGINP+6*, DRGINP+8, DRGINP+11, DRGINP+12, DRGINP+18*, DRGINP+20, DRGINP+23, DRGINP+24
    PSSGTAB DRG~, DRG+6, DRGINP+3, DRGINP+14
    PSSGTHL1 DRG+3~, DRG+5*, DRG+12*, DRG+16
    PSSGTHL2 DRG+3~, DRG+5*, DRG+7, DRG+15*, DRG+16
    PSSGTN1 DRGINP+2~, DRGINP+8*, DRGINP+9, DRGINP+10, DRGINP+20*, DRGINP+21, DRGINP+22
    PSSGTN3 DRGINP+2~, DRGINP+8*, DRGINP+9, DRGINP+10, DRGINP+20*, DRGINP+21, DRGINP+22
    PSSGTN4 DRGINP+2~, DRGINP+10*, DRGINP+22*
    PSSGTOI DRG~, DRG+1, DRG+7, DRGINP+4, DRGINP+15
    PSSGTPK DRG~, DRG+2, DRG+4, DRG+6
    PSSGTPM DRG+3~, DRG+4*, DRG+13
    PSSGTRES DRG+3~, DRG+5*, DRG+16*, DRG+17, DRGINP+4, DRGINP+12*, DRGINP+13, DRGINP+15, DRGINP+24*, DRGINP+25
    PSSGTRTE DRG~, DRG+6
    PSSLGTOI PRE~, PRE+8, PRE+12, PRE+13
    PSSNOE1 NOEXP+1~, NOEXP+2*, NOEXP+3, NOEXPS+3, NOEXPS+4, NOEXPS+6, NOEXPS+7, NOEXPG+3, NOEXPG+5
    PSSNOE2 NOEXP+1~, NOEXP+3*, NOEXP+4, NOEXPS+1
    >> PSSNOE9( NOEXP+3*, NOEXP+4*
    PSSWAF1 CKWRN+1~, CKWRN+2*, CKWRN+3, CKWRN+4
    PSSWAF2 CKWRN+1~, CKWRN+4*, CKWRN+5
    PSSWAF3 CKWRN+1~, CKWRN+2*, CKWRN+5*
    Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Global Variables Directly Accessed |  Label References |  Local Variables  | All