SDESGETMHCODE ;ALB/CGP - VISTA SCHEDULING CHECKING MENTAL HEALTH STOP CODE ;Jan 12,2023@09:53
Source file <SDESGETMHCODE.m>
Package | Total | Call Graph |
---|---|---|
Scheduling | 2 | BUILDJSON^SDESBUILDJSON ERRLOG^SDESJSON |
VA FileMan | 1 | $$GET1^DIQ |
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
|
RPC Name | Call Tags |
---|---|
SDEC RETURN MENTAL HEALTH JSON | STOPCODE |
FileNo | Call Tags |
---|---|
^DIC(40.7 - [#40.7] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DIC(40.7 - [#40.7] | VALIDATE+4 |
Name | Line Occurrences |
---|---|
BLDJSON | STOPCODE+8, STOPCODE+12 |
MENTALHEALTHCHK | STOPCODE+10 |
VALIDATE | STOPCODE+7 |
>> | 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 |