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 |  All
Print Page as PDF
Routine: PSIVCHK

Package: Inpatient Medications

Routine: PSIVCHK


Information

PSIVCHK ;BIR/PR,MLM-CHECK ORDER FOR INTEGRITY ;12 DEC 97 / 10:16 AM

Source Information

Source file <PSIVCHK.m>

Call Graph

Call Graph Total: 10

Package Total Call Graph
Inpatient Medications 8 ENOS^PSGS0  ^PSIVCHK1  GSTRING^PSIVORE1  GTFLDS^PSIVORFE  ^PSIVORLB  ^PSIVORV2  $$CODES1^PSIVUTL  $$SCHREQ^PSJLIVFD  
VA Fileman 2 YN^DICN  CHK^DIE  

Caller Graph

Caller Graph Total: 5

Package Total Caller Graph
Inpatient Medications 5 PSIVOPT  PSIVOPT2  PSIVORC1  PSIVORE  PSJCOMR  

Entry Points

Name Comments DBIA/ICR reference
CKO
AH ;
INF
M
NULSET ;Delete admin/schedule fields for hyperals and/or admixtures

External References

Name Field # of Occurrence
YN^DICN AH+2, CKO+1
CHK^DIE PSIVCHK+9
ENOS^PSGS0 M+6
^PSIVCHK1 AH+6
GSTRING^PSIVORE1 CKO+2
GTFLDS^PSIVORFE CKO+2
^PSIVORLB CKO
^PSIVORV2 CKO+2
$$CODES1^PSIVUTL INF+3, INF+4
$$SCHREQ^PSJLIVFD M+4

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !
  • Line Location: PSIVCHK+7
Function Call: WRITE
  • Prompt: !,"*** You have not specified a med route! ",!
  • Line Location: PSIVCHK+8
Function Call: WRITE
  • Prompt: !,"*** Your administration time(s) are in an invalid format !"
  • Line Location: PSIVCHK+9
Function Call: WRITE
  • Prompt: !,"*** Time interval between doses is less than zero !"
  • Line Location: M+0
Function Call: WRITE
  • Prompt: !,"*** ",$S(XX=2:"Start",1:"Stop")," date is in an invalid format or must contain time !"
  • Line Location: M+2
Function Call: WRITE
  • Prompt: !,"*** Start date/time CANNOT be greater than the stop date/time"
  • Line Location: M+3
Function Call: WRITE
  • Prompt: !,"*** You have no infusion rate defined !"
  • Line Location: INF+0
Function Call: WRITE
  • Prompt: !,"*** Your infusion rate is in an invalid format !"
  • Line Location: INF+1
Function Call: WRITE
  • Prompt: !,"*** WARNING -- You have not specified an infusion rate. "
  • Line Location: INF+2
Function Call: WRITE
  • Prompt: !,"*** Type of order is invalid !"
  • Line Location: INF+3
Function Call: WRITE
  • Prompt: !,"*** Status of order is invalid !"
  • Line Location: INF+4
Function Call: WRITE
  • Prompt: !,$C(7),"Order type is an admixture, hyperal, or continuous syringe, and you have",!,"a schedule and/or administration times defined!"
  • Line Location: AH+1
Function Call: WRITE
  • Prompt: !,"Ok to delete these fields"
  • Line Location: AH+2
Function Call: WRITE
  • Prompt: !,"*** You have not entered a physician!"
  • Line Location: AH+3
Function Call: WRITE
  • Prompt: !,"*** Physician entered does not exist or is not authorized to write",!,"medication orders"
  • Line Location: AH+4
Function Call: WRITE
  • Prompt: !,"*** Physician entered is no longer active."
  • Line Location: AH+5
Function Call: WRITE
  • Prompt: !!?2,"Enter 'YES' to delete the schedule and/or administration times fields from",!,"this order. Enter 'NO' (or '^') to leave the fields intact.",!
  • Line Location: NULSET+1
Function Call: WRITE
  • Prompt: !!,"Since there is a warning with this order.",!,"do you wish to re-edit this order"
  • Line Location: CKO+1
Function Call: WRITE
  • Prompt: !!,"Answer 'YES' to re-edit this order."
  • Line Location: CKO+1
Routine Call
  • DIE
  • Line Location:
    • PSIVCHK+9

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^PS(51.1 - [#51.1] CHK^DIE

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^PS(51.1 - [#51.1] M+1
^VA(200 - [#200] AH+4, AH+5

Label References

Name Line Occurrences
CKO CKO+2
NULSET AH+2
PSIVCHK CKO

Naked Globals

Name Field # of Occurrence
^("PS" AH+5

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
% AH+2*, AH+3!, NULSET+1, NULSET+2, CKO+1*, CKO+2
DA CKO+2!
DIE CKO+2!
DR CKO+2!
DT AH+5
>> ERR PSIVCHK+7*, PSIVCHK+8*, PSIVCHK+9*, M*, M+2*, M+3*, M+5*, M+7*, INF*, INF+1*
, INF+2*, INF+3*, INF+4*, AH+3*, AH+4*, AH+5*, CKO, CKO+1, CKO+2
>> J CKO+1*
>> P M+4
>> P( M+2
>> P("MR" PSIVCHK+8
>> P("TYP" PSIVCHK+7*, INF, INF+1, INF+2, INF+3, AH+1
>> P(11 PSIVCHK+9, AH+1, NULSET+2*
>> P(15 M
>> P(17 INF+4
>> P(2 M+3
>> P(23 PSIVCHK+7
>> P(3 M+3
>> P(4 PSIVCHK+7
>> P(5 PSIVCHK+7
>> P(6 AH+3, AH+4, AH+5
>> P(8 INF, INF+1, INF+2
>> P(9 M+1, M+5, AH+1, NULSET+2*
>> P16 CKO*
PSGOES M+6~*
PSGS0XT M+6~
PSGS0Y M+6~
>> PSIVCT CKO*
PSIVEXAM CKO*!
>> PSIVNOL CKO*
>> PSIVOK CKO+2*
>> PSJTIM PSIVCHK+9
PSJXSTMP M+5~*, M+6
>> Q AH+2*
U AH+5
X PSIVCHK+9*, M+1~*, M+4, M+6~*
XX M+2~*
Y M+6~
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 |  All