DGCOMPACT ;ALB/BPA,CMC - Routine for COMPACT Act processing the DG;12/18/2023@9:26am
Source file <DGCOMPACT.m>
Package | Total | Call Graph |
---|---|---|
PCE Patient Care Encounter | 2 | ($$ASC,$$GETBENTYP,$$GETIPDT,$$GETSTDT,ADMIT)^PXCOMPACT RETRACT^PXCOMPACTEOC |
VA FileMan | 2 | YN^DICN DT^DILF |
Kernel | 1 | $$FMTE^XLFDT |
Registration | 1 | $$SITE^VASITE |
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Package | Total | Caller Graph |
---|---|---|
Registration | 4 | DGPMV3 DGPMV36 DGPMX1 DGPTTS |
PCE Patient Care Encounter | 2 | PXCOMPACT PXCOMPACTEOC |
Name | Comments | DBIA/ICR reference |
---|---|---|
SETPTFFLG(DGENC,DGVAL) | ;
; API to set TRT FOR ACUTE SUICIDAL CRISIS flag in PTF 101 ; DGENC - Encounter ID (PTF IEN) ; DGVAL - Value to set into flag ; For YES: D SETPTFFLG^DGCOMPACT(DGENC,1) ; For NO: D SETPTFFLG^DGCOMPACT(DGENC,0) ; For NULL: D SETPTFFLG^DGCOMPACT(DGENC,"") ; Create a 70 level in the PTF file if it is not set |
|
SETPTFMVMT(DGENC,DGVAL,DGSEQ) | ;
; API to set TREATMENT FOR SUICIDAL CRISIS flag in PTF 501 ; DGENC - Encounter ID (PTF IEN) ; DGVAL - Value to set into flag ; DGSEQ - Movement sequence *not required ; For YES: D SETPTFMVMT^DGCOMPACT(DGENC,"Y",DGSEQ) ; For NO: D SETPTFMVMT^DGCOMPACT(DGENC,"N",DGSEQ) ; For NULL: D SETPTFMVMT^DGCOMPACT(DGENC,"",DGSEQ) ; When setting a sequence other than the first one, pass the sequence number |
|
EDITADMIT(PTF) | ;
|
|
QUERY | ;
|
|
ADMIT(DFN,PTF) | ;
|
|
GO | ||
DT | ;
|
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DGCOMP(33.3 - [#33.3] | QUERY+3, QUERY+5, QUERY+7, QUERY+8 |
^DGPT - [#45] | SETPTFFLG+8*, SETPTFFLG+9*, SETPTFMVMT+9*, SETPTFMVMT+11* |
^UTILITY($J | EDITADMIT+2, EDITADMIT+4!, DT+5* |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | GO~, GO+1*, GO+2, GO+3, GO+4*, DT+1, DT+4* |
ADMTYP | EDITADMIT+1~, EDITADMIT+2*, EDITADMIT+3, EDITADMIT+4! |
COUNT | QUERY+2~, QUERY+22*, QUERY+23 |
DA | GO~ |
DATA | QUERY+2~, QUERY+29*, QUERY+30 |
DEF | GO~ |
DFN | EDITADMIT+1~, EDITADMIT+2*, EDITADMIT+3, ADMIT~, GO+2, GO+5, GO+6, DT+5 |
DGENC | SETPTFFLG~, SETPTFFLG+8, SETPTFFLG+9, SETPTFMVMT~, SETPTFMVMT+9, SETPTFMVMT+11 |
DGSEQ | SETPTFMVMT~, SETPTFMVMT+9 |
DGSTDT | EDITADMIT+1~, EDITADMIT+2*, EDITADMIT+3, EDITADMIT+4! |
DGVAL | SETPTFFLG~, SETPTFFLG+9, SETPTFMVMT~, SETPTFMVMT+9, SETPTFMVMT+11 |
ICN | QUERY+2~, QUERY+4*, QUERY+5*, QUERY+7, QUERY+11, QUERY+12, QUERY+14, QUERY+24*, QUERY+25*, QUERY+26 , QUERY+28, QUERY+29 |
PTF | EDITADMIT~, EDITADMIT+3, ADMIT~, GO+2 |
PXNWSTDT | GO~, GO+6*, DT+4, DT+5 |
RECORD | QUERY+2~, QUERY+8*, QUERY+9, QUERY+10 |
REQ | QUERY+2~, QUERY+30*, QUERY+31 |
REQUEST | QUERY+2~, QUERY+9*, QUERY+12, QUERY+14 |
RESP | QUERY+2~, QUERY+30*, QUERY+32 |
RESPCODE | QUERY+2~, QUERY+9*, QUERY+12, QUERY+14, QUERY+30*, QUERY+32 |
RESPDATE | QUERY+2~, QUERY+9*, QUERY+12, QUERY+14 |
ROUTINE | QUERY+2~, QUERY+9*, QUERY+10*, QUERY+11, QUERY+12, QUERY+13, QUERY+14, QUERY+20*, QUERY+21*, QUERY+22 , QUERY+23, QUERY+25, QUERY+28, QUERY+29 |
ROUTINE( | QUERY+11, QUERY+12*, QUERY+13*, QUERY+14*, QUERY+21, QUERY+22, QUERY+25, QUERY+28, QUERY+29 |
RSEQ | QUERY+2~, QUERY+27*, QUERY+28*, QUERY+29 |
SEQ | QUERY+2~, QUERY+6*, QUERY+7*, QUERY+8 |
SITE | QUERY+2~, QUERY+18*, QUERY+19 |
STDT | GO~, DT+2*, DT+3*, DT+4 |