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: PSXUTL

Package: CMOP

Routine: PSXUTL


Information

PSXUTL ;BIR/BAB,WPB,HTW-Utility Subroutines ;14 Feb 2002 2:27 PM

Source Information

Source file <PSXUTL.m>

Entry Points

Name Comments DBIA/ICR reference
HEX ;converts decimal #<128 to a two byte hex #
FLUSH1
CHKA
CHKB
CHKD
CHKE
CHK
LOG ;create a log entry in the CMOP INTERFACE file
TSOUT ;convert current date time to HL7 timestamp
TSIN ;convert an HL7 timestamp to fileman format
STATUS ;display CMOP status for entry action on RX menu
EXIT
DRUGW ;
DRG ;
UNMARK ;Entry point to unmark drug for CMOP dispense
RALRT
SETVER
ALRT
GETS(FILE,IENS,DR,FORM,TARG,ERR) ;
IENS(IENS) ;Resolve IENS to numbers X,Y,Z to 89,34,345
TOP(TARGROOT) ; Move to the top the returned DIQ array
; Move array(file,iens,field)=value to array(field)=value
; also moves the ,field,"I") =value(internal) to (field)=value(internal)
PIECE(REC,DLM,XX) ; where XX = VAR_U_I ex: XX="PATNM^1"
; Set VAR = piece I of REC using delimiter DLM
SET(REC,DLM,ABCD) ; where XX = VAR_U_I ex: XX="PATNM^1"
; Set VAR into piece I of REC using delimiter DLM

Interaction Calls

Name Line Occurrences
Function Call: READ
  • Variable: *X2
  • Timeout: 0
  • Line Location: FLUSH1+2
Function Call: WRITE
  • Prompt: !!,?((IOM\2)-($L(PSXTXT)\2)-3),PSXTXT
  • Line Location: STATUS+5
Function Call: WRITE
  • Prompt: ?35,"NO SUCH WARNING LABEL"
  • Line Location: DRUGW+1
Info |  Source |  Entry Points |  Interaction Calls