Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls
Print Page as PDF
Routine: TIUDTBPN

Package: Text Integration Utility

Routine: TIUDTBPN


Information

TIUDTBPN ;AITC/CR/SGM - BOOKMARK TIU NOTE AFTER DOWNTIME ;8/20/18 3:59pm

Source Information

Source file <TIUDTBPN.m>

Entry Points

Name Comments DBIA/ICR reference
START ;
EN ;
ENOUT
CREATE() ;
; Create the text of the downtime note
; Use text stored in 8925.1 BOILERPLATE TEXT field
; If no text there, move canned text into that field
; TEXT(1,i,0) contains the header, uneditable portion
; TEXT(2,i,0) contains the body, editable portion
; Text(3,i,0) contains the entire text of the note
; TEXT(4,i,0) contains the body, canned text
CRE1 ; get header, uneditable
CRE12() ;
CRE2 ; get body, editable
CRE3() ;
CRE31 ;
CRE4 ;
; display if administrative closure
CRE5() ; ask for user's electronic signature
CRE9 ;
; rebuild TEXT(2) and TEXT(3)
; GLN=$NA(^TIU(8925.1,TIUDA,"DFLT"))
TOTADD(P)
GETINP ;
GETINPD ;
INPCOM(DFN,DATE) ;
GETOUT ;
CK2(DFN) ;
; return -1 or dfn^name
CK42(VAL) ;
; return -1 file_42_ien ^ 42_name ^ division_ien ^ hosp_loc_ien
; find1 call assures one and only one entry matching name
CK44(IEN) ;
; return -1 or file_44_ien ^ 44_name ^ division
DIC(CH)
DIR(CH)
DIVISION()
DSP(PNM,LNM,STATX,END) ; screen display
; update screen 20 lines at a time
DSPFMT(PNM,LNM,STATX) ; format display line
ESIGCK() ;
FIND1(FILE,IEN,FLG,VAL,IDX,SCR) ;
GET1(FILE,IEN,FLD,FLG) ;
MAIL() ;
NEWNOTE(LOC) ;
; Create New TIU Note
; loc = file 44 ien / expects DFN to be defined
; FINDPAT should have set up @GLT@() for all LOCs
; Extrinsic return value: -1 ; -1^-1 ; TIUDA ; TIUDA^-1
; Any place where STAT is referenced it will be this value
QUEUE ;
STATUS(TIUDA) ;
; TIUDA can be ien, -1, ien^-1, -1^-1
; Return: -1/0/1/2 ; note_ien or -1 ; format text
TEXT(TAG,WR,LF,CLR,PAD,CHR,TIUR) ; Generic Text Handler
; TAG - line label containing the text
; all groups of text should end with ' ;;---'
; WR - Boolean, write or do not write
; LF - 0:no extra line feeds; 1:leading line feed; 2:trailing feed
; CLR - Boolean, clear screen first
; PAD - number of spaces begin each line with
; If PAD="" then default to 3. If PAD=0 then no padding
; CHR - for center justify, character to pad line, default is space
TIUTX(STATX,DFN,PNM,LNM) ; text for mail message
; statx = -1/0/1/2 ; note_ien or -1 ; format text

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: $C(7),!!,"Can't have the same start and end date/time."
  • Line Location: START+10
Function Call: WRITE
  • Prompt: @IOF
  • Line Location: CREATE+13
Function Call: WRITE
  • Prompt: !,"Administrative Closure: "_$$FMTE^XLFDT(DT,"2D")
  • Line Location: CRE4+4
Function Call: WRITE
  • Prompt: !,?20,"By: "_$$GET1(200,DUZ,20.2)
  • Line Location: CRE4+5
Function Call: WRITE
  • Prompt: !,?24,$$GET1(200,DUZ,20.3)
  • Line Location: CRE4+6
Function Call: WRITE
  • Prompt: !,?35,"/es/ "_$P(X,U)
  • Line Location: CRE4+11
Function Call: WRITE
  • Prompt: !,?40,$P(X,U,3)
  • Line Location: CRE4+12
Function Call: WRITE
  • Prompt: !!
  • Line Location: CRE4+14
Function Call: WRITE
  • Prompt: !!!,"SDAMA301 return value: "_X,!!!
  • Line Location: GETOUT+13
Function Call: WRITE
  • Prompt: !!,"No patients found who had downtime note created.",!
  • Line Location: MAIL+29
Function Call: WRITE
  • Prompt: !
  • Line Location: MAIL+35
Info |  Source |  Entry Points |  Interaction Calls