Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls
Print Page as PDF
Routine: PSDNTFPC

Package: Controlled Substances

Routine: PSDNTFPC


Information

PSDNTFPC ;BIR/JPW-Transfer Green Sheet - From this NAOU ; 8/16/07 2:20pm

Source Information

Source file <PSDNTFPC.m>

Entry Points

Name Comments DBIA/ICR reference
ASKN ;ask transfer from naou
GS ;select green sheet #
ASKT ;ask transfer to naou
QTY ;
OK ;already signed out to patient
COM ;complete at order level in 58.8
PRINT ;print 2321
END

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: $C(7),!!,?9,"** Please contact your Coordinator for access to",!,?12,"transfer narcotic orders.",!!,"PSJ RNURSE, PSD NURSE, or PSJ RPHARM security key required.",!
  • Line Location: PSDNTFPC+5
Function Call: WRITE
  • Prompt: !!,"Transfer a Green Sheet from this NAOU"
  • Line Location: PSDNTFPC+6
Function Call: WRITE
  • Prompt: !!,"THIS OPTION WILL TRANSFER A QUANTITY OF ZERO"
  • Line Location: PSDNTFPC+7
Function Call: WRITE
  • Prompt: !
  • Line Location: ASKN+1
Function Call: WRITE
  • Prompt: !
  • Line Location: GS+1
Function Call: WRITE
  • Prompt: !!,"Green Sheet not signed out to Patient.",!,"Use option 'Transfer Green Sheet and Drug to another NAOU'.",!
  • Line Location: GS+13
Function Call: WRITE
  • Prompt: !!,"The Green Sheet # ",PSDPN," does not reside on ",AOUN,".",!,"Please select another Green Sheet.",!
  • Line Location: GS+14
Function Call: WRITE
  • Prompt: $C(7),!!,"There's no data on ",NAOUN," for Green Sheet # ",PSDPN,".",!,"Contact your Pharmacy Coordinator for assistance.",!
  • Line Location: GS+15
Function Call: WRITE
  • Prompt: !!,"This Green Sheet has a status of "_$S(STATN]"":STATN,1:"UNKNOWN")_".",!,"Please contact your Pharmacy Coordinator for assistance.",!
  • Line Location: GS+16
Function Call: WRITE
  • Prompt: !
  • Line Location: ASKT+1
Function Call: WRITE
  • Prompt: !!,"You may not transfer a Green Sheet to your NAOU!",!,"Please select another NAOU.",!!
  • Line Location: ASKT+4
Function Call: WRITE
  • Prompt: !,"Quantity to Transfer (",NBKU,"/0)",!
  • Line Location: ASKT+5
Function Call: WRITE
  • Prompt: !
  • Line Location: OK+2
Function Call: WRITE
  • Prompt: !!,"Accessing ",PSDRN," information...",!!
  • Line Location: COM+1
Function Call: WRITE
  • Prompt: !!,"Updating your records now..."
  • Line Location: COM+3
Function Call: WRITE
  • Prompt: $C(7),!!,"** THIS GREEN SHEET HAS NOT BEEN TRANSFERRED **",!!,"The status remains "_STATN,!
  • Line Location: COM+6
Function Call: WRITE
  • Prompt: ?2,!,"*** The status of your Green Sheet #"_PSDPN_" is now",!,$S($P($G(^PSD(58.82,STAT,0)),"^")]"":$P(^(0),"^"),1:"UNKNOWN")_" ***",!
  • Line Location: COM+14
Function Call: READ
  • Variable: NUM
  • Timeout: DTIME
  • Line Location: PRINT+1
Function Call: WRITE
  • Prompt: !!,"No copies printed!!",!!
  • Line Location: PRINT+1
Function Call: WRITE
  • Prompt: !!,"Enter a whole number between 1 and 9",!
  • Line Location: PRINT+2
Info |  Source |  Entry Points |  Interaction Calls