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

Package: Outpatient Pharmacy

Routine: PSOSIGDS


Information

PSOSIGDS ;BIR/RTR-Utility to calculate Days Supply ;6/04/00

Source Information

Source file <PSOSIGDS.m>

Call Graph

Call Graph Total: 2

Package Total Call Graph
Kernel 1 $$FMADD^XLFDT  
Outpatient Pharmacy 1 EN^PSOSIGMX  

Caller Graph

Caller Graph Total: 7

Package Total Caller Graph
Order Entry Results Reporting 4 ORBCMA1  ORCDPS1  ORWDPS1  ORWDPS2  
Outpatient Pharmacy 3 PSOSIG  PSOSIGCX  PSOSIGTX  

Entry Points

Name Comments DBIA/ICR reference
QTYCP ;CPRS days supply call comes through here
DSUP(PSOQX) ;Max Days Supply for CPRS, without QTY (just patient and drug)
  • ICR #3278
    • Status: Active
    • Usage: Private
    DAY(DATE) ;First 5 digits of FileMan date
    EN(PSOSIGX) ;
    SCH ;SCH = schedule entered SCHEX = expanded schedule
    QTYOPS ;
    COMP ;COMPLEX DOSE HERE
    MAX(PSOQX) ;
  • ICR #3278
    • Status: Active
    • Usage: Private
    QTY(PSOQX) ;
    DSUPDG ;
    RXP ;Compare against Rx Patient Status
    QEND ;
    QTYX(PSOQX) ;
    ROUND ;
    CLOZ ;check for clozapine
    QTS ;Find frequency

    External References

    Name Field # of Occurrence
    EN^PSOSIGMX MAX+1
    $$FMADD^XLFDT DAY+5

    Global Variables Directly Accessed

    Name Line Occurrences  (* Changed,  ! Killed)
    ^PS(51 - [#51] SCH+6, SCH+14, QTS+9, QTS+18
    ^PS(51.1 - [#51.1] SCH+4, SCH+12, QTS+7, QTS+16
    ^PS(53 - [#53] RXP+4, DSUP+7
    ^PS(55 - [#55] RXP+3, DSUP+6
    ^PSDRUG - [#50] CLOZ+3, DSUPDG+3
    ^YSCL(603.01 CLOZ+4, CLOZ+5, DSUPDG+4, DSUPDG+5

    Label References

    Name Line Occurrences
    CLOZ RXP+3, RXP+4
    COMP QTYCP+7
    DSUPDG DSUP+6, DSUP+7
    QEND QTYCP+31, COMP+13, COMP+17, COMP+28, COMP+29, COMP+30, COMP+31, COMP+32, COMP+35
    QTS QTYCP+17, COMP+20
    QTYCP QTYX+5
    ROUND QTYCP+31, COMP+31, COMP+34
    RXP ROUND+2

    Naked Globals

    Name Field # of Occurrence
    ^( SCH+6, SCH+14
    ^(0 SCH+4, SCH+12, QTS+7, QTS+9, QTS+16, QTS+18, DSUPDG+6

    Local Variables

    Legend:

    >> Not killed explicitly
    * Changed
    ! Killed
    ~ Newed

    Name Field # of Occurrence
    DATE DAY~, DAY+2, DAY+3, DAY+4
    PSO55 RXP+2~, RXP+3*, RXP+4, DSUP+5~, DSUP+6*, DSUP+7
    PSO553 RXP+2~, RXP+4*, RXP+5, DSUP+5~, DSUP+7*, DSUP+8
    PSOCLMAX CLOZ+1~, CLOZ+6*, CLOZ+7, DSUPDG+1~, DSUPDG+6*, DSUPDG+7
    PSOCLPAT CLOZ+1~, CLOZ+4*, CLOZ+5*, CLOZ+6, DSUPDG+1~, DSUPDG+4*, DSUPDG+5*, DSUPDG+6
    PSOCPRQT QTYCP+3, QTYCP+5, QTYX+1~*, QTYX+8!
    PSODSMIN COMP+1~, COMP+10*
    PSODUDIF COMP+1~, COMP+10*
    PSODUMIS COMP+1~, COMP+10*, COMP+15, COMP+16*, COMP+17, COMP+30, COMP+31
    PSODUPTT COMP+1~, COMP+27*, COMP+30, COMP+32, COMP+33*
    PSODUREP COMP+1~, COMP+10*, COMP+16*, COMP+33
    PSODUTOT COMP+1~, COMP+10*, COMP+24*, COMP+31, COMP+34*
    PSODUX COMP+1~
    PSODUXX COMP+1~
    PSOFRQ QTYCP+2!, QTYCP+17, QTYCP+26, COMP+20, COMP+25, COMP+26, QTS+4!, QTS+7*, QTS+9*, QTS+16*
    , QTS+18*, QTS+19!, QTS+20, QEND+1!
    PSOFRQZ COMP+1~, COMP+25*, COMP+32, COMP+33
    PSOLEFT COMP+1~, COMP+33*, COMP+34
    PSOLOWER QTYCP+1~, QTYCP+10*, QTYCP+14*, QTYCP+21, QTYCP+27
    PSOLOWST QTYCP+1~
    PSOLOWX QTYCP+1~, QTYCP+12*, QTYCP+13
    PSOLOWXL QTYCP+1~, QTYCP+13*, QTYCP+14
    PSOQAR QTYX+1~
    PSOQAR("DURATION" QTYX+2*, QTYX+6, QTYX+7
    PSOQLD COMP+2~, COMP+12*
    PSOQLDA COMP+2~, COMP+10*, COMP+12*, COMP+13
    PSOQLDT COMP+2~, COMP+10*, COMP+12*
    PSOQLDX COMP+2~, COMP+10*, COMP+12*, COMP+13
    PSOQLN QTYX+1~, QTYX+3*
    PSOQLP QTYX+1~*, QTYX+2, QTYX+3, QTYX+6*, QTYX+7
    PSOQRND QTYCP+1~
    PSOQUTOT COMP+1~, COMP+14*, COMP+29, COMP+30, COMP+32, COMP+33
    PSOQX QTY~, QTYX~, DSUP~, MAX~
    PSOQX("CONJUNCTION" COMP+12
    PSOQX("DAYS S UPPLY" , ROUND+2*, ROUND+3*, RXP+5*, CLOZ+7*, DSUP+3*, DSUP+8*, DSUPDG+7*
    PSOQX("DOSE O RDERED" , QTYCP+3, QTYCP+8, QTYCP+25, COMP+19, COMP+27, COMP+33, QTYX+4
    PSOQX("DOSE" QTYCP+3
    PSOQX("DRUG" CLOZ+2, CLOZ+3, DSUPDG+2, DSUPDG+3
    PSOQX("DURATION" QTYCP+11, QTYCP+12, QTYCP+13, QTYCP+14, COMP+16, COMP+21, COMP+22, COMP+23, COMP+24, COMP+25
    , QTYX+1, QTYX+2, QTYX+3*, QTYX+7*
    PSOQX("PATIENT" RXP+1, RXP+3, CLOZ+4, DSUP+4, DSUP+6, DSUPDG+4
    PSOQX("QTY" QTYCP+25, COMP+14
    PSOQX("SCHEDULE" QTYCP+17, COMP+19, COMP+20
    PSOSIGX EN~
    PSOZMIN QTYCP+1~, QTYCP+24*, QTYCP+25*, QTYCP+26*, QTYCP+27*, QTYCP+28*, COMP+1~, COMP+31*, COMP+34*, ROUND+1
    , ROUND+2, ROUND+3
    PSQ QTYCP+1~, QTYCP+3*, COMP+18*, COMP+19, COMP+20, COMP+21, COMP+22, COMP+23, COMP+24, COMP+25
    , COMP+27
    PSQ1 COMP+1~, COMP+15*, COMP+16
    PSQMIN QTYCP+1~, QTYCP+21*, COMP+23*, COMP+26
    PSQMINZ QTYCP+1~, COMP+26*, COMP+27
    PSQMNL COMP+1~, COMP+21*, COMP+22
    PSQMNLX COMP+1~, COMP+22*, COMP+23, COMP+24
    PSQQUIT QTYCP+1~, QTYCP+2*, QTYCP+3*, QTYCP+5, QTYCP+17, COMP+18, COMP+19*, COMP+20*, COMP+28, QTS+6*
    , QTS+12*, QTS+20*
    PZQT QTS+3~, QTS+14*
    QDOSE QTYOPS+1~, QTYCP+3*, QTYCP+6, QTYCP+7, COMP+12, COMP+15, COMP+18, QTYX+1~, QTYX+4*
    QDOSEX QTYX+1~, QTYX+4*
    QGLFLAG QTS+3~, QTS+5*, QTS+14*, QTS+16*, QTS+18*, QTS+19
    QTSH QTYCP+1~, QTYCP+17*, COMP+20*, QTS+6, QTS+7, QTS+9, QTS+11, QTS+14
    >> SCH SCH+3, SCH+4, SCH+6, SCH+7, SCH+8, SCH+10
    SCHEX SCH+2!, SCH+3*, SCH+4*, SCH+6*, SCH+8*, SCH+15*
    SCIN SCH+1~, SCH+10*, SCH+12, SCH+14
    SCLHOLD SCH+1~, SCH+10!
    SCLHOLD( SCH+10*, SCH+12*, SCH+14*, SCH+15
    SCLOOP SCH+1~, SCH+4*, SCH+7*, SCH+8, SCH+9*, SCH+10, SCH+15
    SCLP SCH+1~, SCH+7*
    SCLPS SCH+1~, SCH+7*
    SODL SCH+1~, SCH+10*, SCH+11, SCH+12, SCH+14
    SQFLAG SCH+1~, SCH+2*, SCH+4*, SCH+5, SCH+12*, SCH+13, SCH+15*
    SQQT QTS+3~, QTS+7*, QTS+9*, QTS+16*, QTS+18*
    SQTFLAG QTS+3~, QTS+7*, QTS+8, QTS+9*, QTS+10
    SST SCH+1~, SCH+12*, SCH+15*
    VARIABLE EN+1~
    X DAY+1~, DAY+3*, DAY+4*, DAY+5
    ZDL QTS+3~, QTS+14*, QTS+15, QTS+16, QTS+18
    ZQHOLD QTS+3~, QTS+14!*
    ZZQ QTS+3~, QTS+11*
    ZZQQ QTS+3~, QTS+11*
    ZZQT QTS+3~, QTS+11*, QTS+12, QTS+13*, QTS+14
    ZZQX QTS+3~, QTS+5*, QTS+16*, QTS+17, QTS+18*
    Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  All