Print Page as PDF
LIST MANAGER FORMATTING UTILITIES ICR (6935)

LIST MANAGER FORMATTING UTILITIES    ICR (6935)

Name Value
NUMBER 6935
IA # 6935
DATE CREATED 2018/06/22
CUSTODIAL PACKAGE CLINICAL REMINDERS
USAGE Private
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE PXRMTEXT
NAME LIST MANAGER FORMATTING UTILITIES
GENERAL DESCRIPTION
Patch PX*1*211 creates integrated management utilities
for Education Topics, Exams, and Health Factors. These are based on the model
of the management utility that was developed for Clinical Reminders
Taxonomies.  Because they follow the same model that was used for Taxonomies,
they need the same text formatting utilities. This ICR allows PCE to use those
utilities promoting code reuse.

STATUS Active
KEYWORDS
  • List Manager
  • Formatting Utilities
DURATION Till Otherwise Agreed
ID PXRMTEXT
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
COLFMT(FMTSTR,TEXTXTR,PC,.NL,.OUTPUT)
This entry point is a columnar text formatter.

VARIABLES TYPE VARIABLES DESCRIPTION
FMTSTR Input
Format string -  ^ separated string for each column
in the output. For example, 35R2 defines a right justified column 35
characters wide with 2 blank spaces following. Columns can be centered (C)
left justified (L) or right justified (R).

TEXTSTR Input
Text string to be formatted, the text for each column
is separated by "^".


PC Input
This is the character used to 'pad' the text so it
fills the width of the column. Typically, this is the space character.


NL Output
This is the number of lines of formatted text
returned in OUTPUT, passed by reference.


OUTPUT Output
Array containing the formatted text, passed by
reference.

FORMATS(LM,RM,TEXTLINE,.NOUT,.TEXTOUT)
This entry point takes a single line of text and
formats it.

VARIABLES TYPE VARIABLES DESCRIPTION
LM Input
This is the left margin.

RM Input
This is the right margin.

TEXTLINE Input
This is the line of text that is to be formatted.

NOUT Output
This is the number of lines of formatted text; passed
by reference.

TEXTOUT Output
This array contains the formatted text; passed by
reference.

$$LMFMTSTR(VALMDDF,JSTR)
The List Manager variable VALMDDF contains the list
template caption column formatting information. It contains the starting
column and the width in the form VALMDDF(COLUMN NAME)=COLUMN
NAME^COLUMN^WIDTH^CAPTION ^VIDEO^SCROLL LOCK. JSTR, which is optional, is the
justification for each column (L=left, C=center, R=right) the default is
center. Using this information, this routine builds and returns the format
string for the column formatter COLFMT^PXRMTEXT.


VARIABLES TYPE VARIABLES DESCRIPTION
VALMDDF Input
List Manager VALMDDF variable.

JSTR Input
Justification for each column: L=left, C=center,
R=right.

SUBSCRIBING PACKAGE PCE PATIENT CARE ENCOUNTER
DATE ACTIVATED 2018/06/26