PSSHRVAL ;WOIFO/Alex Vasquez,Timothy Sabat,Steve Gordon - Data Validation routine for drug checks ;01/15/07
Source file <PSSHRVAL.m>
Package | Total | Call Graph |
---|---|---|
Pharmacy Data Management | 2 | $$ISPROF^PSSHRCOM ($$CHKDOSE,$$CHKDRATN,$$CHKDSTYP,$$CHKRATE,$$CHKUNIT,$$DEMOCHK,$$DOSEMSG,$$GCNREASN,$$GETUCI,$$INRSON,$$MEDRTE,$$OIMSG,KILLALL,KILLCHEK,KILLNODE,WRITE)^PSSHRVL1 |
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Package | Total | Caller Graph |
---|---|---|
Pharmacy Data Management | 1 | PSSHRQ2 |
Name | Comments | DBIA/ICR reference |
---|---|---|
DRIVER(PSSBASE) | ;
|
|
CHKNODES(PSSHASH) | ;
|
|
CONTINUE(PSSHASH) | ;
|
|
BUILD(PSSHASH) | ;
|
|
CHKINEXP(PSSHASH) | ;
|
|
DRUGPROS(PSSHASH) | ;
|
|
DEMOGRAF(PSS,PSSHASH,PSDRUG) | ;
|
|
PSSDBCAR | ; set global array for setting dose output globals ; cmf RTC #159140, #163341
|
|
CHECKDOS(PSS,PSSHASH) | ;
|
|
SETDSEXP(PSS,PSSHASH,MESSAGE,DOSPIECE,PSSDBIN) | ;
|
|
DOSINEXP(PSSHASH) | ;
|
|
OIEXP(PSSHASH) | ;
|
|
NEXTDOS(PSS,PSSHASH) | ;
|
|
NEXTGCN(PSS,PSSHASH) | ;
|
|
DOSPIECE(PSS) | ;
|
|
CHECKGCN(PSS,PSSHASH) | ;
|
|
SETEXCP(PSS,PSSHASH) | ;
|
|
DRUGPROF(PSSHASH) | ;
|
|
HDOSE(PSSDLDOS) | ; If it's a Dose Call
|
Name | Field # of Occurrence |
---|---|
$$ISPROF^PSSHRCOM | OIEXP+12 |
$$CHKDOSE^PSSHRVL1 | CHECKDOS+28 |
$$CHKDRATN^PSSHRVL1 | CHECKDOS+40 |
$$CHKDSTYP^PSSHRVL1 | CHECKDOS+24 |
$$CHKRATE^PSSHRVL1 | CHECKDOS+34, CHECKDOS+43 |
$$CHKUNIT^PSSHRVL1 | CHECKDOS+31 |
$$DEMOCHK^PSSHRVL1 | DEMOGRAF+25 |
$$DOSEMSG^PSSHRVL1 | DOSINEXP+7 |
$$GCNREASN^PSSHRVL1 | CHECKGCN+13 |
$$GETUCI^PSSHRVL1 | CHECKDOS+10, DOSINEXP+14, OIEXP+15, CHECKGCN+26 |
$$INRSON^PSSHRVL1 | DOSINEXP+8, OIEXP+8 |
$$MEDRTE^PSSHRVL1 | CHECKDOS+46 |
$$OIMSG^PSSHRVL1 | OIEXP+7 |
KILLALL^PSSHRVL1 | CHKNODES+10 |
KILLCHEK^PSSHRVL1 | CHKNODES+12 |
KILLNODE^PSSHRVL1 | SETDSEXP+15, SETDSEXP+16, OIEXP+18, CHECKGCN+30, HDOSE+2 |
WRITE^PSSHRVL1 | DRIVER+12 |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^TMP( | CHKNODES+7, CHKNODES+9, CONTINUE+6, CONTINUE+9, CONTINUE+12, CONTINUE+15, CHKINEXP+4, CHKINEXP+5, DRUGPROS+8, DRUGPROS+9 , DEMOGRAF+20, CHECKDOS+5, CHECKDOS+7, CHECKDOS+8, DOSINEXP+3, DOSINEXP+4, OIEXP+3, OIEXP+4, DRUGPROF+7, DRUGPROF+8 |
^TMP($J | DEMOGRAF+21, DEMOGRAF+22, DEMOGRAF+23, HDOSE+1 |
Name | Line Occurrences |
---|---|
$$CONTINUE | DRIVER+14 |
$$DOSPIECE | SETDSEXP+13 |
$$NEXTDOS | SETDSEXP+8 |
$$NEXTGCN | OIEXP+16, CHECKGCN+15 |
BUILD | DRIVER+10 |
CHECKDOS | DRUGPROS+11 |
CHECKGCN | DRUGPROS+10, DRUGPROF+9 |
CHKINEXP | BUILD+4 |
CHKNODES | DRIVER+13 |
DEMOGRAF | CHECKDOS+23 |
DOSINEXP | CHKINEXP+5 |
DRUGPROF | BUILD+6 |
DRUGPROS | BUILD+5 |
HDOSE | OIEXP+18, CHECKGCN+30 |
OIEXP | CHKINEXP+4 |
PSSDBCAR | DEMOGRAF+27 |
SETDSEXP | DEMOGRAF+27, CHECKDOS+25, CHECKDOS+29, CHECKDOS+32, CHECKDOS+35, CHECKDOS+41, CHECKDOS+44, CHECKDOS+47, DOSINEXP+15 |
SETEXCP | OIEXP+17, CHECKGCN+29 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
AGE | DEMOGRAF+5~, DEMOGRAF+21*, DEMOGRAF+25, DEMOGRAF+27 |
BADGCN | CHECKGCN+6~, CHECKGCN+11*, CHECKGCN+12*, CHECKGCN+13 |
BSA | DEMOGRAF+5~, DEMOGRAF+23*, DEMOGRAF+25 |
DOSE | CHECKDOS+4~, CHECKDOS+19*, CHECKDOS+28 |
DOSERATE | CHECKDOS+4~, CHECKDOS+19*, CHECKDOS+34 |
DOSETYPE | CHECKDOS+4~, CHECKDOS+21*, CHECKDOS+24 |
DOSEUNIT | CHECKDOS+4~, CHECKDOS+19*, CHECKDOS+31 |
DOSEVALUE | CHECKDOS+4~, CHECKDOS+17*, CHECKDOS+18, CHECKDOS+19, CHECKDOS+20, CHECKDOS+21 |
DOSPIECE | SETDSEXP~, SETDSEXP+14 |
DRUGIEN | CHECKGCN+6~, CHECKGCN+9*, CHECKGCN+13 |
DRUGNM | CHECKDOS+4~, CHECKDOS+18*, CHECKDOS+23, CHECKDOS+24, CHECKDOS+28, CHECKDOS+31, CHECKDOS+34, CHECKDOS+40, CHECKDOS+43, CHECKDOS+46 , DOSINEXP+1~, DOSINEXP+6*, DOSINEXP+7, CHECKGCN+6~, CHECKGCN+10*, CHECKGCN+13 |
DURATION | CHECKDOS+4~, CHECKDOS+20*, CHECKDOS+40, CHECKDOS+43 |
DURRATE | CHECKDOS+4~, CHECKDOS+21*, CHECKDOS+43 |
ERRNUM | DOSINEXP+1~, DOSINEXP+5*, DOSINEXP+8, OIEXP+1~, OIEXP+5*, OIEXP+8 |
FREQ | CHECKDOS+4~, CHECKDOS+20* |
MESSAGE | DEMOGRAF+5~, DEMOGRAF+25*, DEMOGRAF+27, CHECKDOS+4~, CHECKDOS+24*, CHECKDOS+25, CHECKDOS+28*, CHECKDOS+29, CHECKDOS+31*, CHECKDOS+32 , CHECKDOS+34*, CHECKDOS+35, CHECKDOS+40*, CHECKDOS+41, CHECKDOS+43*, CHECKDOS+44, CHECKDOS+46*, CHECKDOS+47, SETDSEXP~, SETDSEXP+10 , SETDSEXP+11, DOSINEXP+1~, DOSINEXP+7*, DOSINEXP+9*, DOSINEXP+15, OIEXP+1~, OIEXP+7*, OIEXP+9, CHECKGCN+6~, CHECKGCN+13* , CHECKGCN+14*, CHECKGCN+22 |
ORDER | CHKNODES+4~, CHKNODES+6*, CHKNODES+7, CHKNODES+9, DEMOGRAF+5~ |
ORDERNUM | DOSINEXP+1~, DOSINEXP+2*, DOSINEXP+3*, DOSINEXP+4, DOSINEXP+10, OIEXP+1~, OIEXP+6*, OIEXP+7, OIEXP+8, OIEXP+11 , OIEXP+12, OIEXP+18 |
ORDITEM | OIEXP+1~, OIEXP+2*, OIEXP+3*, OIEXP+4, OIEXP+7 |
PSDRUG | DEMOGRAF~, DEMOGRAF+25 |
PSNEXT | NEXTDOS+7~, NEXTDOS+8*, NEXTDOS+9*, NEXTDOS+10, NEXTGCN+5~, NEXTGCN+6*, NEXTGCN+7*, NEXTGCN+8 |
PSS | CONTINUE+4~, DRUGPROS+4~, DRUGPROS+10, DRUGPROS+11, DEMOGRAF~, DEMOGRAF+27, CHECKDOS~, CHECKDOS+23, CHECKDOS+25, CHECKDOS+29 , CHECKDOS+32, CHECKDOS+35, CHECKDOS+41, CHECKDOS+44, CHECKDOS+47, SETDSEXP~, SETDSEXP+8, SETDSEXP+13, DOSINEXP+1~, DOSINEXP+15 , OIEXP+1~, OIEXP+16, OIEXP+17, NEXTDOS~, NEXTGCN~, DOSPIECE~, CHECKGCN~, CHECKGCN+15, CHECKGCN+29, SETEXCP~ , DRUGPROF+4~, DRUGPROF+9 |
PSS("AnyChecksLeft" | CONTINUE+5*, CONTINUE+7*, CONTINUE+10*, CONTINUE+13*, CONTINUE+16*, CONTINUE+18 |
PSS("Counter" | SETDSEXP+8*, SETDSEXP+13, OIEXP+16*, CHECKGCN+7*, CHECKGCN+15*, SETEXCP+1 |
PSS("CprsOrderNumber" | SETDSEXP+12*, DOSPIECE+9 |
PSS("DoseValue" | DEMOGRAF+7, DEMOGRAF+9, DEMOGRAF+11, DEMOGRAF+13, DEMOGRAF+15, DEMOGRAF+17, CHECKDOS+8*, CHECKDOS+17, DOSINEXP+13*, OIEXP+14* , DOSPIECE+5, DOSPIECE+6, DOSPIECE+7, DOSPIECE+8 |
PSS("DrugValue" | DRUGPROS+9*, CHECKGCN+8, CHECKGCN+9, CHECKGCN+10, CHECKGCN+12, CHECKGCN+17, CHECKGCN+18, CHECKGCN+19, CHECKGCN+20, CHECKGCN+21 , DRUGPROF+8* |
PSS("I" | OIEXP+9*, OIEXP+10*, DOSPIECE+5*, DOSPIECE+6*, DOSPIECE+7*, DOSPIECE+8*, DOSPIECE+9*, DOSPIECE+10*, DOSPIECE+11*, DOSPIECE+12* , DOSPIECE+13*, DOSPIECE+14*, DOSPIECE+15, CHECKGCN+16*, CHECKGCN+17*, CHECKGCN+18*, CHECKGCN+19*, CHECKGCN+20*, CHECKGCN+21*, CHECKGCN+22* , CHECKGCN+24*, CHECKGCN+26*, CHECKGCN+27*, SETEXCP+1 |
PSS("Message" | SETDSEXP+10*, DOSPIECE+11 |
PSS("Package" | CHECKDOS+9*, DOSINEXP+12*, OIEXP+13*, DOSPIECE+10 |
PSS("PharmOrderNum" | DRUGPROS+6*, DRUGPROS+8*, DRUGPROS+9, PSSDBCAR+2, PSSDBCAR+3, CHECKDOS+5, CHECKDOS+7, CHECKDOS+8, SETDSEXP+13, SETDSEXP+15 , SETDSEXP+16, SETDSEXP+17, SETDSEXP+18, SETDSEXP+19, SETDSEXP+20, SETDSEXP+21, DOSINEXP+10*, OIEXP+11*, NEXTDOS+9, NEXTGCN+7 , CHECKGCN+13, CHECKGCN+30, SETEXCP+1, DRUGPROF+6*, DRUGPROF+7*, DRUGPROF+8 |
PSS("ProspectiveOrProfile" | DRUGPROS+5*, SETDSEXP+13, DOSINEXP+11*, OIEXP+12*, OIEXP+18, NEXTGCN+7, CHECKGCN+30, SETEXCP+1, DRUGPROF+5*, DRUGPROF+7 , DRUGPROF+8 |
PSS("ReasonCode" | SETDSEXP+9*, DOSPIECE+12 |
PSS("ReasonSource" | CHECKDOS+10*, DOSINEXP+14*, OIEXP+15*, DOSPIECE+13 |
PSS("ReasonText" | SETDSEXP+11*, DOSPIECE+14 |
PSS("T" | DEMOGRAF+7*, DEMOGRAF+9*, DEMOGRAF+11*, DEMOGRAF+13*, DEMOGRAF+15*, DEMOGRAF+17*, DEMOGRAF+33! |
PSSBASE | DRIVER~, DRIVER+7 |
>> PSSDBCAR | PSSDBCAR+1 |
>> PSSDBCAR( | PSSDBCAR+3*, SETDSEXP+17*, SETDSEXP+18*, SETDSEXP+19*, SETDSEXP+20*, SETDSEXP+21*, HDOSE+3* |
PSSDBIN | SETDSEXP~, SETDSEXP+18, SETDSEXP+19, SETDSEXP+20, SETDSEXP+21 |
PSSDLDOS | HDOSE~, HDOSE+1, HDOSE+2, HDOSE+3 |
>> PSSDSWHE | DEMOGRAF+25 |
PSSHASH | DRIVER+5~, DRIVER+10, DRIVER+12, DRIVER+13, DRIVER+14, CHKNODES~, CONTINUE~, BUILD~, BUILD+4, BUILD+5 , BUILD+6, CHKINEXP~, CHKINEXP+4, CHKINEXP+5, DRUGPROS~, DRUGPROS+10, DRUGPROS+11, DEMOGRAF~, DEMOGRAF+27, CHECKDOS~ , CHECKDOS+23, CHECKDOS+25, CHECKDOS+29, CHECKDOS+32, CHECKDOS+35, CHECKDOS+41, CHECKDOS+44, CHECKDOS+47, SETDSEXP~, SETDSEXP+8 , DOSINEXP~, DOSINEXP+15, OIEXP~, OIEXP+16, OIEXP+17, NEXTDOS~, NEXTGCN~, CHECKGCN~, CHECKGCN+15, CHECKGCN+29 , SETEXCP~, DRUGPROF~, DRUGPROF+9 |
PSSHASH("Base" | DRIVER+7*, CHKNODES+7, CHKNODES+9, CHKNODES+10, CHKNODES+12, CONTINUE+6, CONTINUE+9, CONTINUE+12, CONTINUE+15, CHKINEXP+4 , CHKINEXP+5, DRUGPROS+8, DRUGPROS+9, DEMOGRAF+20, DEMOGRAF+21, DEMOGRAF+22, DEMOGRAF+23, CHECKDOS+5, CHECKDOS+7, CHECKDOS+8 , SETDSEXP+15, SETDSEXP+16, DOSINEXP+3, DOSINEXP+4, OIEXP+3, OIEXP+4, OIEXP+8, OIEXP+18, CHECKGCN+30, DRUGPROF+7 , DRUGPROF+8, HDOSE+1, HDOSE+2 |
PSSHASH("DoseValue" | CHKNODES+11, DEMOGRAF+32*, SETDSEXP+14* |
PSSHASH("Exception" | SETDSEXP+13*, NEXTDOS+9, NEXTGCN+7, SETEXCP+1* |
PSSHASH("ReasonCode" | DRIVER+8*, SETDSEXP+9, CHECKGCN+24 |
PSSNOAGE | DEMOGRAF+26*, CHECKDOS+4~, CHECKDOS+23* |
REASON | DOSINEXP+1~, DOSINEXP+8*, DOSINEXP+9, OIEXP+1~, OIEXP+8*, OIEXP+10, CHECKGCN+6~, CHECKGCN+14*, CHECKGCN+27 |
ROUTE | CHECKDOS+4~, CHECKDOS+21*, CHECKDOS+46 |
TMPNODE | DOSINEXP+1~, DOSINEXP+4*, DOSINEXP+5, DOSINEXP+6, OIEXP+1~, OIEXP+4*, OIEXP+5, OIEXP+6 |
U | PSSDBCAR+3, CHECKDOS+18, CHECKDOS+19, CHECKDOS+20, CHECKDOS+21, SETDSEXP+10, SETDSEXP+11, DOSINEXP+6, DOSINEXP+9, OIEXP+6 , OIEXP+9, OIEXP+10, CHECKGCN+14, CHECKGCN+24, CHECKGCN+26 |
WEIGHT | DEMOGRAF+5~, DEMOGRAF+22*, DEMOGRAF+25 |