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 |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: SDESGETMHCODE

Package: Scheduling

Routine: SDESGETMHCODE


Information

SDESGETMHCODE ;ALB/CGP - VISTA SCHEDULING CHECKING MENTAL HEALTH STOP CODE ;Jan 12,2023@09:53

Source Information

Source file <SDESGETMHCODE.m>

Call Graph

Call Graph

Call Graph Total: 3

Package Total Call Graph
Scheduling 2 BUILDJSON^SDESBUILDJSON  ERRLOG^SDESJSON  
VA FileMan 1 $$GET1^DIQ  

Entry Points

Name Comments DBIA/ICR reference
STOPCODE(MHCDJSON,SPIEN) ;check if IEN is a Mental Health Stop Code from CLINIC STOP file #40.7
; INPUT:
; SPIEN - Clinic Stop Code
VALIDATE(RETURN,SPIEN,AMISCODE,ERRFLG) ;
MENTALHEALTHCHK(RETURN,AMISCODE) ;
BLDJSON(MHCDJSON,RETURN) ; Build JSON format

External References

Name Field # of Occurrence
$$GET1^DIQ VALIDATE+6, VALIDATE+9
BUILDJSON^SDESBUILDJSON BLDJSON+1
ERRLOG^SDESJSON VALIDATE+3, VALIDATE+4, VALIDATE+7, VALIDATE+10

Used in RPC

RPC Name Call Tags
SDEC RETURN MENTAL HEALTH JSON STOPCODE

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DIC(40.7 - [#40.7] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DIC(40.7 - [#40.7] VALIDATE+4

Label References

Name Line Occurrences
BLDJSON STOPCODE+8, STOPCODE+12
MENTALHEALTHCHK STOPCODE+10
VALIDATE STOPCODE+7

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
AMISCODE STOPCODE+4~, STOPCODE+5*, STOPCODE+7, STOPCODE+10, VALIDATE~, VALIDATE+9*, VALIDATE+10, MENTALHEALTHCHK~, MENTALHEALTHCHK+1, MENTALHEALTHCHK+2
, MENTALHEALTHCHK+3
DT VALIDATE+7
ERRFLG STOPCODE+4~, STOPCODE+5*, STOPCODE+7, STOPCODE+8, VALIDATE~, VALIDATE+3*, VALIDATE+4*, VALIDATE+7*, VALIDATE+10*
INACTIVE VALIDATE+1~, VALIDATE+2*, VALIDATE+6*, VALIDATE+7
MHCDJSON STOPCODE~, STOPCODE+8, STOPCODE+12, BLDJSON~, BLDJSON+1
RETURN STOPCODE+4~, STOPCODE+5*, STOPCODE+7, STOPCODE+8, STOPCODE+10, STOPCODE+12, VALIDATE~, VALIDATE+3, VALIDATE+4, VALIDATE+7
, VALIDATE+10, MENTALHEALTHCHK~, BLDJSON~, BLDJSON+1
RETURN("Flag" STOPCODE+8*, MENTALHEALTHCHK+1*, MENTALHEALTHCHK+2*, MENTALHEALTHCHK+3*
SPIEN STOPCODE~, STOPCODE+7, VALIDATE~, VALIDATE+3, VALIDATE+4, VALIDATE+6, VALIDATE+9
Info |  Source |  Call Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All