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 |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: PSIVCHK

Package: Inpatient Medications

Routine: PSIVCHK


Information

PSIVCHK ;BIR/PR,MLM-CHECK ORDER FOR INTEGRITY ; 2/4/20 8:47am

Source Information

Source file <PSIVCHK.m>

Call Graph

Call Graph

Call Graph Total: 13

Package Total Call Graph
Inpatient Medications 11 $$ENDTC1^PSGMI  ($$ODD,$$PRNOK,ENCHK,ENOS)^PSGS0  ^PSIVCHK1  $$IVDEA^PSIVEDT  ($$ONCALL,$$ONETIME)^PSIVEDT1  GSTRING^PSIVORE1  GTFLDS^PSIVORFE  ^PSIVORLB  
^PSIVORV2  $$CODES1^PSIVUTL  $$SCHREQ^PSJLIVFD  
Barcode Medication Administration 1 $$EN^PSBAPIPM  
VA FileMan 1 YN^DICN  

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
Inpatient Medications 5 PSIVOPT  PSIVOPT2  PSIVORC1  PSIVORE  PSJCOMR  

Entry Points

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

External References

Name Field # of Occurrence
YN^DICN AH+2, CKO+1
$$EN^PSBAPIPM M+10
$$ENDTC1^PSGMI M+12
$$ODD^PSGS0 PSIVCHK+12, PSIVCHK+21
$$PRNOK^PSGS0 PSIVCHK+13, PSIVCHK+21, PSIVCHK+22
ENCHK^PSGS0 PSIVCHK+11
ENOS^PSGS0 M+6
^PSIVCHK1 AH+12
$$IVDEA^PSIVEDT AH+11
$$ONCALL^PSIVEDT1 PSIVCHK+22
$$ONETIME^PSIVEDT1 PSIVCHK+22
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: !,"*** Administration times not permitted for Odd Schedules ***"
  • Line Location: PSIVCHK+12
Function Call: WRITE
  • Prompt: !,"*** Administration times not permitted for PRN Schedules ***"
  • Line Location: PSIVCHK+13
Function Call: WRITE
  • Prompt: !,"*** Your administration time(s) are in an invalid format, ",!,"*** or there are more times than indicated by the schedule !"
  • Line Location: PSIVCHK+14
Function Call: WRITE
  • Prompt: !,"*** There are no administration times defined for this order!"
  • Line Location: PSIVCHK+22
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: !,"*** Start date/time must be set AFTER last BCMA admin time ("_$$ENDTC1^PSGMI(PSJLDD)_")",!,"of this medication ***"
  • Line Location: M+12
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: !,TXT
  • 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

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^PS(51.1 - [#51.1] PSIVCHK+18, PSIVCHK+19, M+1
^VA(200 - [#200] AH+6, AH+9
^XUSEC("ORELSE" AH+8
^XUSEC("PROVIDER" AH+8

Label References

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

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!
>> DFN M+9, M+10
DIE CKO+2!
DR CKO+2!
>> DRG AH+11
DT AH+7, AH+10
>> ERR PSIVCHK+7*, PSIVCHK+8*, PSIVCHK+12*, PSIVCHK+13*, PSIVCHK+14*, PSIVCHK+18, PSIVCHK+22*, M*, M+2*, M+3*
M+5*, M+7*, M+12*, INF*, INF+1*, INF+2*, INF+3*, INF+4*, AH+3*, AH+5
AH+6*, AH+7*, AH+8*, AH+9*, AH+10*, AH+11*, CKOCKO+1, CKO+2
>> J CKO+1*
>> ON M+9, M+10
>> P M+4, AH+11
>> P( M+2
>> P("MR" PSIVCHK+8
>> P("TYP" PSIVCHK+7*, INFINF+1, INF+2, INF+3, AH+1
>> P(11 PSIVCHK+9, PSIVCHK+12*, PSIVCHK+13*, PSIVCHK+21*, PSIVCHK+22, AH+1, NULSET+2*
>> P(15 PSIVCHK+9, PSIVCHK+12, PSIVCHK+21, PSIVCHK+22, M
>> P(17 INF+4
>> P(2 M+3, M+12
>> P(23 PSIVCHK+7
>> P(3 M+3
>> P(4 PSIVCHK+7
>> P(5 PSIVCHK+7
>> P(6 AH+3, AH+5
>> P(8 INFINF+1, INF+2
>> P(9 PSIVCHK+10, PSIVCHK+13, PSIVCHK+18, PSIVCHK+19, PSIVCHK+21, PSIVCHK+22, M+1, M+5, AH+1, NULSET+2*
>> P16 CKO*
PDA AH+5~*, AH+6, AH+8, AH+9, AH+11
PND AH+5~, AH+6*, AH+7
PPS AH+9~*, AH+10
PSGOES M+6~*
PSGS0XT M+6~
PSGS0Y M+6~
PSGSCH PSIVCHK+10~*
>> PSIVCHG M+9
>> PSIVCT CKO*
PSIVEXAM CKO*!
>> PSIVNOL CKO*
>> PSIVOK CKO+2*
PSJLDD M+1~, M+10*, M+12
PSJXSTMP M+5~*, M+6
>> Q AH+2*
TXT AH+5~*, AH+6*, AH+7*, AH+8*, AH+9*, AH+10*, AH+11*
U AH+7, AH+10
X PSIVCHK+9*, PSIVCHK+14, M+1~*, M+4, M+6~*
X(2 PSIVCHK+9*, PSIVCHK+11!
XAR PSIVCHK+19~
XAR( PSIVCHK+19*, PSIVCHK+20
XC PSIVCHK+19~*, PSIVCHK+20*, PSIVCHK+22
XIEN PSIVCHK+19~*
XTYP PSIVCHK+19~*, PSIVCHK+20*
XX M+2~*
Y M+6~
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  Global Variables Directly Accessed |  Label References |  Local Variables  | All