Bracketed Fields

Top  Previous  Next

Introduction

 

"Bracketed Fields" is the name of the technique used in ChartNet to merge patient demographic and other database fields into the header, body, footer, or page footer sections of a report is called Bracketed Fields.  Bracketed fields get replaced by the database field that they represent at print time.  There are two syntaxes used when specifying bracketed fields, "single" and "double".

 

Here are some examples of bracketed fields:

 

[r.acctno   ]- inserts the account number
[r.dict_date]- inserts the dictation date
[r.trans_date]- inserts the transcription date
[r.doctor]- inserts the dictating doctor's code
[r.doctor.d.docname  ]- inserts the dictating doctor's name
[u.120_ssn  ]- inserts the patient's social security number (user-defined field)
[x.age]- inserts the patient's age

 

 

Single Bracketed Fields

 

Single bracketed fields are used to retrieve a value from a single table.  For example "[R.DOCTOR] would be single bracketed field and would retrieve just the dictating provider's code.

 

Single bracketed fields have the syntax:

 

[{table code}.{field name}:{optional format code}]

 

 

Double Bracketed Fields

 

Double bracketed fields are used to get field's value from one table, then go to another table to get the value of another field.  For example, "[R.DOCTOR.D.DOCNAME  ] would be a double bracketed field and would retrieve the doctor's code from the Reports table, then go out and retrieve the doctor's name from the Provider's table.

 

Double bracketed fields have the syntax:

 

[{table code1}.{field name1}.{table code2}.{field name2}:{optional format code}]

 

 

Table Codes

 

Bracketed fields (both single and double) are made up of a "table code", followed by a period ("."), followed by a field name.  The following is a list of valid table codes:

 

R                Reports table

F                Forms table

A                Address table

M                MPI table

O                Orders table

S                Sites table

G                Generic dictionary table

U                User-defined field

E                Users table

X                Special field

 

 

Controlling the Length of the Bracketed Field

 

The bracketed field needs to be large enough to hold the maximum length of the field being inserted.  For example, if the account number is 10 digits, then the total length of the bracketed field must be at least 10 characters (brackets included).  If the merged field is actually less than the bracketed field width, then spaces will be appended to pad the field out to the width of the bracketed field.  If the merged field is longer than the bracketed field width, then the field will be truncated.

 

 

Terminating Characters

 

The following characters can be used to terminate bracketed fields:

 

"]"Right bracket.  Will cause blanks to be appended to the merged data in order to pad out the field to the width of the bracketed field.
For example, "[R.PTNAME           ]" will result in "SMITH, JOHN         ".  (i.e. Blanks not trimmed from the name).  Note that the total length of the bracketed field, including the brackets, is 20.  This means that the name that is merged in will have a length of 20.

 

")"Right parenthesis.  Will trim trailing blanks from the data field before it is merged in.
For example, "[R.PTNAME           )" will result in "SMITH, JOHN".  (i.e. blanks trimmed from name).  Use this terminating character when you have multiple bracketed fields on one line, right next to each other, and you do not want large blank spaces in between them.
 
"}"Right curly brace.  Will cause a line that contains the bracketed field to be physically removed from the report if the merged data field is blank and the bracketed field is the only text on the line.  If the merged data is not blank, then the right curly brace acts like the right bracket.

 

 

Formatting Codes

 

Bracketed fields can also contain formatting codes to take care of special formatting requirements.  For example, to print a patient name in "First Last" format with proper case, add a colon followed by "N2" to the end of the R.PTNAME field as shown below.

 

[r.ptname:n2           ]                - will format the patient name "SMITH, JOHN W." to "JOHN W. SMITH"

 

 

Report Table Fields

 
Abnormal FlagR.ABNORMAL
Account NumberR.ACCTNO    
Admitting Doctor CodeR.ADMDR
Admitting Doctor NameR.ADMDR.D.DOCNAME     
Attending Doctor CodeR.ATTDR
Attending Doctor NameR.ATTDR.D.DOCNAME     
Birth DateR.BIRTHDT
Consulting Doctor #1 CodeR.CONSULT1
Consulting Doctor #1 NameR.CONSULT1.D.DOCNAME 
Consulting Doctor #2 CodeR.CONSULT2
Consulting Doctor #2 NameR.CONSULT2.D.DOCNAME 
Consulting Doctor #3 CodeR.CONSULT3
Consulting Doctor #3 NameR.CONSULT3.D.DOCNAME 
Dictating Doctor CodeR.DOCTOR
Dictating Doctor NameR.DOCTOR.D.DOCNAME                    
Dictating Doctor InitialsR.DOCTOR.D.INITIALS
Dictating Doctor Author IDR.DOCTOR.D.AUTHORID
Dictating Doctor Extra 1R.DOCTOR.D.EXTRA1                     
Dictating Doctor Extra 2R.DOCTOR.D.EXTRA2                     
Dictating Doctor Extra 3R.DOCTOR.D.EXTRA3                     
Dictating Doctor Extra 4R.DOCTOR.D.EXTRA4                     
Dictating Doctor Extra 5R.DOCTOR.D.EXTRA5                     
Dictation DateR.DICT_DATE
Dictation TimeR.DICT_TIME
Discharge DateR.DISDT 
Electronically Signed DateR.SIGNDATE
Electronically Signed TimeR.SIGNTIME
Electronically Signed Doctor CodeR.SIGNDOC
Electronically Signed Doctor NameR.SIGNDOC.D.DOCNAME           
Electronically Signed StatusR.STATUS                           
Edit DateR.EDITDATE
Edit TimeR.EDITTIME
Exam CodeR.EXAMCODE
Exam DateR.EXAMDATE
Exam DescriptionR.EXAMDESC                    
Report IDR.REPORT_ID
LocationR.LOCATION
Medical Record NumberR.MRUN      
Order NumberR.ORDERNO   
Other Doctor #2 CodeR.DOCTOR1
Other Doctor #2 NameR.DOCTOR1.D.DOCNAME             
Other Doctor #3 CodeR.DOCTOR2
Other Doctor #3 NameR.DOCTOR2.D.DOCNAME             
Patient NameR.PTNAME                   
Patient ServiceR.PATSERV
Referring Doctor CodeR.REFDR
Referring Doctor NameR.REFDR.D.DOCNAME  
Report Type CodeR.REPT_TYPE
Report Type DescriptionF.DESC
Review DateR.REVIEWDATE
Reviewed By CodeR.REVIEWEDBY  
Service DateR.SERVDT
SexR.SEX
Site CodeR.SITE
Social Security NumberM.SSN     
Stat FlagR.STAT
Transcriptionist CodeR.SCRIBE
Transcription DateR.TRANS_DATE
Transcription TimeR.TRANS_TIME
User Field #1R.USER1      
User Field #2R.USER2      
User Field #3R.USER3      
Visit DateR.VISITDT
Voice Job NumberR.VOICEJOB

 

 

User Table Fields

 
Transcriptionist Employee NumberE.EMPNO   
Transcriptionist InitialsE.INITIALS

 

 

Special Fields

 

Patient AgeX.AGE
Page NumberX.PAGE
Total PagesX.TOTPAGES
Copy ToX.COPY                  
System DateX.DATE   
System TimeX.TIME   
Dictated ByX.DICTATED_BY                   
AttendingX.ATTENDING                 
DictatingX.DICTATING                 
Dictating2X.DICTATING2                       
Dictating LineX.DICTATING_LINE               
Signed ByX.SIGNEDBY     
UnsignedX.UNSIGNED     
ChartScript Trans DateX.TRANS1         

 

Letter/Envelope/CC NameX.NAMEADDR1                     
Letter/Envelope/CC Address Line 1X.NAMEADDR2                     
Letter/Envelope/CC Address Line 2X.NAMEADDR3                     
Letter/Envelope/CC Address Line 3X.NAMEADDR4                     
Letter/Envelope/CC Address Line 4X.NAMEADDR5                     
Letter/Envelope/CC Address Line 5X.NAMEADDR6                     

 

All CC Names (Separate lines)X.ALL_CC_NAMES
All CC Names (All on one line)X.ALL_CC_NAMES2
All CC Names and Addresses (Separate lines)X.ALL_CC_ADDRESSES
All CC Names and Addresses (One line per)X.ALL_CC_ADDRESSES2
All CC Names and Addresses (One line per)X.ALL_CC_ADDRESSES3

 

 

Special bracketed field for CC's

 

Bracketed FieldDescription
 
X.ALL_CC_NAMESPrints each cc: name on a separate line
 
Example:
       William P. Smith, M.D.        
       David S. Jones, M.D.
 
 
X.ALL_CC_NAMES2Prints all cc: names on one line, separated by a slash character
 
Example:
 
       William P. Smith, M.D. / David S. Jones, M.D.
 
 
X.ALL_CC_ADDRESSESPrints cc: names and their addresses on separate lines
 
Example:
       William P. Smith, M.D.
       1234 Main St.
       Hudson, Ohio 44236
       
       David S. Jones, M.D.
       78873 S. Broadway Blvd
       Twinsburg, Ohio 44234
 
 
X.ALL_CC_ADDRESSES2Prints each cc: name and address on one line
 
Example:
 
       William P. Smith, M.D. (1234 Main St., Hudson, Ohio 44236)
       David S. Jones, M.D. (78873 S. Broadway Blvd, Twinsburg, Ohio 44234)
 
 
X.ALL_CC_ADDRESSES3Prints each cc: name and address on one line.  If the cc: was sent via Fax or Email, then the text "(FAX)" or "(Email)" will appear next to the cc: name.  If the cc: is to be sent via printed copy, then the cc: address will be printed.
 
Example:
 
       William P. Smith, M.D. (FAX)
       David S. Jones, M.D. (78873 S. Broadway Blvd, Twinsburg, Ohio 44234)