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 |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items  | All
Print Page as PDF
Routine: PSNHIT

Package: National Drug File

Routine: PSNHIT


Information

PSNHIT ;BIR/CCH&WRT-After match is made package size and type selected ; 02/08/00 8:41

Source Information

Source file <PSNHIT.m>

Call Graph

Call Graph

Call Graph Total: 9

Package Total Call Graph
National Drug File 6 $$VAP^PSNAPIS  (PUNT,TRY3)^PSNCOMP  (HIT1,NDC3,RES1)^PSNHELP  SET^PSNHIT  (PKSIZE,PKTYPE)^PSNOUT  ^PSNSTCK  
VA FileMan 2 $$GET1^DIQ  ^DIR  
Kernel 1 T1^%ZOSV  

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

Package Total Caller Graph
National Drug File 5 PSNCOMP  PSNDRUG  PSNHIT  PSNNDC  PSNPPSNW  

Entry Points

Name Comments DBIA/ICR reference
HIT
FORM
WRTIT
VAPN
RESP
SET
PRA ; PRINT DOSE FORM AND CLASS AFTER VA PRODUCT NAME IF A DUPLICATE
; S PSNDFM=$P(^PSNDF(PSNDA,2,$P(^PSNDF(PSNDA,5,KK,0),"^",2),0),"^",1),PSND=$P(^PS(50.606,PSNDFM,0),"^",1)
; S PSNVCL=$P(^PSNDF(PSNDA,2,$P(^PSNDF(PSNDA,5,KK,0),"^",2),0),"^",3),PSNVC=$P(^PS(50.605,PSNVCL,0),"^",1) W " ",PSND," ",PSNVC S PSNF=0 Q
; W " ",PSND," ",PSNVC S PSNF=0 Q
OOPS
STAR
SETARY1
ARRAY
KILL
STAR0
ASKIT
ASKIT1
EXTD
PKI

External References

Name Field # of Occurrence
T1^%ZOSV VAPN
$$GET1^DIQ WRTIT+2
^DIR ASKIT+1, ASKIT1+1
$$VAP^PSNAPIS FORM
PUNT^PSNCOMP RESPRESP+2
TRY3^PSNCOMP VAPN+4
HIT1^PSNHELP WRTIT+5
NDC3^PSNHELP VAPN+2
RES1^PSNHELP RESP+5
SET^PSNHIT ASKIT+3, ASKIT1+3
PKSIZE^PSNOUT ASKITASKIT1
PKTYPE^PSNOUT ASKITASKIT1
^PSNSTCK RESP+8

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !!,"Match made with ",PSNLOC
  • Line Location: HIT+0
Function Call: WRITE
  • Prompt: ?62,"N/F"
  • Condition for execution: $P(^PSDRUG(PSNB,0),"^",9)=1
  • Line Location: HIT+0
Function Call: WRITE
  • Prompt: !," Now select VA Product Name ",!
  • Line Location: HIT+0
Function Call: READ
  • Variable: ANS
  • Timeout: DTIME
  • Line Location: WRTIT+0
Function Call: READ
  • Formatting: !!
  • Prompt: "Enter your choice: "
  • Variable: ANS
  • Timeout: DTIME
  • Line Location: VAPN+0
Function Call: WRITE
  • Prompt: !,?24,"DISPENSE UNITS/ORDER UNITS: ",$S('$D(PSNODE):"",1:$P(PSNODE,"^",5)),!,?37,"DISPENSE UNIT: ",$S('$D(PSNODE):"",1:$P(PSNODE,"^",8)),!,?5
  • Line Location: VAPN+3
Function Call: WRITE
  • Prompt: !!,"Invalid answer",!
  • Line Location: VAPN+5
Function Call: READ
  • Timeout: DTIME
  • Line Location: RESP+0
Function Call: WRITE
  • Prompt: !," Invalid Response "
  • Line Location: RESP+6
Function Call: WRITE
  • Prompt: !,"Inactive VA Product entry has been selected!!",!!
  • Line Location: RESP+7
Function Call: WRITE
  • Prompt: " ",PSND," ",PSNVC
  • Line Location: PRA+2
Function Call: WRITE
  • Prompt: " ",PSND," ",PSNVC
  • Line Location: PRA+3
Function Call: WRITE
  • Prompt: !!,"No match found"
  • Line Location: OOPS+0
Function Call: WRITE
  • Prompt: !!,"Local drug ",$P(^PSDRUG(PSNB,0),"^"),!,"matches ",?11,PSNFORM,!,"PACKAGE SIZE: ",PSNSZE,!,"PACKAGE TYPE: ",PSNTPE
  • Line Location: ASKIT+0
Function Call: WRITE
  • Prompt: !?10,"Is this a match ?"
  • Line Location: ASKIT+1
Function Call: WRITE
  • Prompt: !!,"Local drug ",$P(^PSDRUG(PSNB,0),"^"),!,"matches ",?11,PSNFORM,!,"PACKAGE SIZE: ",PSNSZE,!,"PACKAGE TYPE: ",PSNTPE
  • Line Location: ASKIT1+0
Function Call: WRITE
  • Prompt: !?10,"Is this a match ?"
  • Line Location: ASKIT1+1
Routine Call
  • DIR
  • Line Location:
    • ASKIT+1
    • ASKIT1+1

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^PSNDF(50.68 - [#50.68] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DIC(51.5 - [#51.5] VAPN+2
^PSDRUG - [#50] HITASKITASKIT1PKI+3, PKI+4
^PSNDF(50.68 - [#50.68] RESP+8, SETARY1PKI+1
^PSNTRAN - [#50.612] SETSET+1*, OOPS*
^PSNTRAN(0 SET*
^TMP($J FORMWRTIT+1, WRTIT+2, WRTIT+3, VAPN+5, VAPN+6, STAR!, SETARY1, ARRAY*, KILL+1!
, STAR0!*, EXTD

Label References

Name Line Occurrences
ARRAY SETARY1
EXTD WRTIT
FORM WRTIT+4, WRTIT+5, WRTIT+7, VAPN+3, VAPN+5, RESP+3, RESP+7
PKI SET+1
RESP RESP+1, RESP+5, RESP+6
SETARY1 STAR
STAR FORM
STAR0 FORM
VAPN VAPN+1

Naked Globals

Name Field # of Occurrence
^(7 PKI+1

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ANS FORM!, WRTIT*, WRTIT+4, WRTIT+5!, WRTIT+6!, WRTIT+7, VAPN*, VAPN+1!, VAPN+2, VAPN+3!
VAPN+4, VAPN+5!, VAPN+6, RESP*!, RESP+1, RESP+2!, RESP+3!, RESP+4, RESP+5!, RESP+6
RESP+9!, KILL!
ASC PSNHIT+6*, WRTITKILL+1!
BB WRTIT*, WRTIT+1, WRTIT+2, WRTIT+3, KILL+1!, EXTD
>> CID SETARY1*, ARRAY
>> CMID WRTIT+1, EXTD*
CS PKI~, PKI+1*, PKI+2*, PKI+3, PKI+4, PKI+6
DA FORM!*
DIC KILL!
DIR ASKIT+1!, ASKIT1+1!
DIR("B" ASKIT+1*, ASKIT1+1*
DIR(0 ASKIT+1*, ASKIT1+1*
>> DIRUT ASKIT+1, ASKIT1+1
DOS KILL!
DTIME WRTITVAPNRESP
>> DUNCE ASKIT1*, ASKIT1+2*
DUZ SET+1, OOPS
END KILL+1!
IEN KILL+1!, STAR0*
IFN KILL!
II KILL!
IOF SET+1
JJ KILL!
>> KK VAPN+6*, RESP+7, SETARY1*, ARRAY
LIST FORM!, KILL+1!
LIST( RESP+7, ARRAYSTAR0
MJL KILL!
NBR KILL!
NDP KILL!
>> NOMSYN ASKIT1+2*
PS KILL!
>> PSNB HITSETSET+1, OOPSASKITASKIT1PKI+3, PKI+4
PSNCLASS RESP+8*, SET+1, KILL!
PSNDA FORMRESP+8, KILL!
PSNDDA KILL!
PSNFL HIT+1*, WRTIT*, WRTIT+6, VAPN*, RESP+4*, RESP+8, SET+1*, KILL!
PSNFNM VAPN+6*, RESP+8, SET+1, KILL!, PKI+1
PSNFORM RESP!, RESP+2!, RESP+3!, KILL!, ASKITASKIT1
PSNLOC HITKILL+1!
>> PSNM STAR*, SETARY1ARRAY
PSNNAM VAPN+2, KILL!
PSNNAME KILL!
PSNNDC KILL!
PSNNDF RESP+8*, SET+1, KILL!
PSNODE VAPN+2, VAPN+3, KILL+1!
PSNOU VAPN+2, KILL+1!
PSNRAN STAR*, ARRAY*, KILL+1!
PSNSIZE SET+1, KILL!
PSNSP KILL!
PSNSTDA KILL!
PSNSZ KILL!
PSNSZE KILL!, ASKITASKIT1
PSNTPE KILL+1!, ASKITASKIT1
PSNTRFL KILL!
PSNTYP KILL!
PSNTYPE SET+1, KILL!
PSNUNDA KILL!
PSNV KILL+1!
PSNVAR RESP+8*, KILL!
PSNWR FORM*, KILL+1!
PSNX KILL+1!
PSNZ KILL+1!
PT KILL!
>> STOP FORM*, WRTIT
STR KILL!
UNT KILL!
VADC KILL+1!
VV KILL!
VV1 KILL!
WRT STAR*, KILL+1!
X FORM*, RESP+2, KILL!, PKI+7*
>> XRT0 VAPN
>> XRTN VAPN*
Y KILL!
Y(0 ASKIT+2, ASKIT+3, ASKIT1+2, ASKIT1+3

Marked Items

Name Field # of Occurrence
$T( VAPN
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items  | All