RAUTL5 ;HISC/CAH,FPT,GJC-Utility Routine ;3/12/98 13:27
Source file <RAUTL5.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
CH | ; Populate the 'CLINICAL HISTORY' field (#400); file 75.1 (^RAO(75.1))
; Called from 'CREATE1^RAORD1'. |
|
CH1 | ;ask/re-ask 'CLINICAL HISTORY'
|
|
WPLEN | ;Is clin hist too long to go into a local array for OE/RR HL7 msg?
|
|
XIT | ;kill variable(s), exit CH subroutine
|
|
VALWP(RAROOT) | ; Validate word processing field.
; Pass back '1' if data is valid, '0' if not valid. ; at least 2 alphanumeric char's required |
|
RDQ(D0) | ; Used by input transform on ^DD(74.31,2
; Checks for unprinted reports associated with REPORT ; DISTRIBUTION QUEUE of internal entry number of D0. |
|
ATND(RADFN,DATE) | ;Returns the external form of the ATTENDING PHYSICIAN
|
|
PRIM(RADFN,DATE) | ;Returns the external form of the PRIMARY PHYSICIAN
|
|
EOS() | ; 'End Of Screen' prompt for terminals only, check user response.
|
|
XTERNAL(Y,C) | ; Change internal format to external format
; 'Y' is the internal form of the data ; 'C' defines the data type of the variable 'Y' |
|
PROCMSG(RAPRI) | ; Print the appropriate procedure messages. Called from
; DESDT^RAUTL12. This code works under the assumption that the ; user has entered through OE/RR. |
|
MIDNGHT(X) | ; Check if the date passed in is midnight. If it is, add one
; minute to the date/time. Fixes infinite loop problem in FM when ; midnight. ; Input: X-Current system date/time (derived from $$NOW^XLFDT) |
|
STYREA(RAOUT,RAREAST) | ;ask for the 'Reason for Study' P75 (required)
|
|
DIWP(DIWL,DIWR,X) | ; work ^DIWP & ^DIWW FM call "WRITE" mode P75
|
|
PURGECH | ;Delete the invalid 'CLINICAL HISTORY'; inform the user
|
Name | Field # of Occurrence |
---|---|
YN^DICN | RDQ+13 |
Y^DIQ | XTERNAL+3 |
^DIR | CH1+3, CH1+16, WPLEN+11, EOS+4, STYREA+3 |
EN^DIWE | CH1+6 |
^DIWP | PROCMSG+23, DIWP+5 |
^DIWW | PROCMSG+26, DIWP+5 |
READ^ORUTL | PROCMSG+12, PROCMSG+22, PROCMSG+25 |
$$OUTPTPR^SDUTL3 | PRIM+11 |
IN5^VADPT | ATND+4, PRIM+4 |
$$FMADD^XLFDT | MIDNGHT+5 |
$$UP^XLFSTR | PROCMSG+17 |
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 |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Routine Call |
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^%ZOSF("TEST" | PRIM+10 |
^RA(79 - [#79] | CH1+3 |
^RABTCH(74.4 - [#74.4] | RDQ+5, RDQ+6 |
^RADPT - [#70] | CH1+1 |
^RAMIS(71 - [#71] | PROCMSG+5, PROCMSG+9, PROCMSG+10, PROCMSG+17, PROCMSG+18, PROCMSG+21, PROCMSG+23 |
^RAMIS(71.4 - [#71.4] | PROCMSG+11, PROCMSG+13 |
^TMP($J | CH+6!, CH1+1*, CH1+7, WPLEN+2, PURGECH+2! |
^UTILITY($J | PROCMSG+20!, DIWP+5!, DIWP+6! |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
% | RDQ+3~, RDQ+11, RDQ+13*, RDQ+14, RDQ+16, DIWP+4~ |
%Y | RDQ+3~ |
C | XTERNAL~ |
CHAR | VALWP+4~, VALWP+11*, VALWP+12 |
CNT | VALWP+4~, VALWP+7*, VALWP+11*, VALWP+12* |
D0 | RDQ~, RDQ+5 |
DA | STYREA+3~ |
DATE | ATND~, ATND+3, ATND+4, PRIM~, PRIM+3, PRIM+4 |
>> DFN | ATND+3*, PRIM+3* |
DIC | CH1+5*, CH1+6!, CH1+8!* |
DIR | CH1+3!, CH1+12!, CH1+20!, WPLEN+5!, WPLEN+15!, EOS+4!, STYREA+3~ |
DIR("?" | CH1+14*, CH1+15*, CH1+16*, WPLEN+8*, WPLEN+9*, WPLEN+10*, WPLEN+11* |
DIR("A" | CH1+13*, WPLEN+7* |
DIR("B" | CH1+12*, WPLEN+6* |
DIR(0 | CH1+3*, CH1+12*, WPLEN+6*, EOS+4*, STYREA+3* |
DIROUT | CH1+12!, CH1+20!, WPLEN+5!, WPLEN+15!, EOS+4!, STYREA+3~ |
DIRUT | CH1+4, CH1+12!, CH1+18, CH1+20!, WPLEN+5!, WPLEN+13, WPLEN+15!, EOS+4!, STYREA+3~, STYREA+4 |
DIW | PROCMSG+19~, DIWP+4~ |
DIWESUB | CH1+5*, CH1+6! |
DIWF | PROCMSG+19~, PROCMSG+20*, DIWP+4~, DIWP+5* |
DIWL | PROCMSG+19~, PROCMSG+20*, DIWP~ |
DIWR | PROCMSG+19~, PROCMSG+20*, DIWP~ |
DIWT | DIWP+4~ |
DN | DIWP+4~ |
DPT | ATND+2~, PRIM+2~ |
DTOUT | CH1+12!, CH1+20!, WPLEN+5!, WPLEN+15!, EOS+4!, STYREA+3~ |
DUOUT | CH1+12!, CH1+20!, WPLEN+5!, WPLEN+15!, EOS+4!, STYREA+3~ |
DWPK | CH1+5*, CH1+6!, CH1+8* |
FOUND | RDQ+3~, RDQ+4*, RDQ+5, RDQ+6*, RDQ+8 |
I | PROCMSG+6~*, PROCMSG+9*, PROCMSG+10, DIWP+4~ |
IOF | PROCMSG+12, PROCMSG+22, PROCMSG+25 |
IOSL | PROCMSG+12, PROCMSG+22, PROCMSG+25 |
IOST | EOS+1 |
RA744 | RDQ+3~, RDQ+4*, RDQ+5*, RDQ+6 |
RACNT | WPLEN+1~*, WPLEN+2*, WPLEN+3 |
RADFN | CH1+1, ATND~, ATND+3, PRIM~, PRIM+3, PRIM+11 |
>> RADIV | CH1+3 |
>> RAI | CH1+1* |
RAOUT | CH+5, STYREA~, STYREA+4* |
RAPRI | PROCMSG~, PROCMSG+5, PROCMSG+9, PROCMSG+10, PROCMSG+17, PROCMSG+18, PROCMSG+21, PROCMSG+23 |
RAREAST | CH+5, STYREA~, STYREA+4* |
RAROOT | VALWP~, VALWP+3, VALWP+6, VALWP+8 |
>> RASTOP | PROCMSG+4, PROCMSG+5* |
>> RAVLECNI | CH1+1 |
>> RAVLEDTI | CH1+1 |
>> RAVSTFLG | CH1+1 |
RAWPFLG | CH1+9*, CH1+10, XIT+1! |
RAX | WPLEN+1~*, WPLEN+2*, PROCMSG+6~, PROCMSG+10*, PROCMSG+11, PROCMSG+13, PROCMSG+19~, PROCMSG+20*, PROCMSG+21*, PROCMSG+23 |
RAY | EOS+2~, EOS+5*, EOS+6 |
RAYN | CH1+5~, CH1+9*, CH1+10, CH1+17*, CH1+18*, CH1+22, WPLEN+3*, WPLEN+12*, WPLEN+13* |
VA200 | ATND+2~, ATND+3*, PRIM+2~, PRIM+3* |
VAIP | ATND+2~, PRIM+2~ |
VAIP("D" | ATND+3*, PRIM+3* |
VAIP(18 | ATND+5 |
VAIP(7 | PRIM+5, PRIM+11*, PRIM+13 |
WL | VALWP+4~, VALWP+7*, VALWP+9*, VALWP+10 |
WPFLG | VALWP+4~, VALWP+5*, VALWP+6, VALWP+10, VALWP+12*, VALWP+15 |
X | CH1+12~, WPLEN+5~, VALWP+4~, VALWP+5*, VALWP+6*, VALWP+8, RDQ+16!, ATND+2~, ATND+5*, ATND+6 , PRIM+2~, PRIM+10~*, PRIM+13*, PRIM+14, EOS+2~, PROCMSG+6~, PROCMSG+13*, PROCMSG+19~, PROCMSG+23*, MIDNGHT~ , MIDNGHT+4*, MIDNGHT+5*, MIDNGHT+6, STYREA+3~, DIWP~ |
X1 | EOS+2~ |
X2 | EOS+2~ |
X3 | EOS+2~ |
Y | CH1+12~, CH1+17, WPLEN+5~, WPLEN+12, VALWP+4~, VALWP+8*, VALWP+9, VALWP+11, EOS+2~, EOS+5 , XTERNAL~, XTERNAL+3, XTERNAL+4, STYREA+3~, STYREA+4 |
Y0 | EOS+2~ |
Y1 | EOS+2~ |
Y2 | EOS+2~ |
Y3 | EOS+2~ |
Y4 | EOS+2~ |
Y5 | EOS+2~ |
Z | VALWP+4~, VALWP+10*, VALWP+11, DIWP+4~ |