Tahir,
We have found that you probably don’t want to change every field in an HL7 message to Mixed case, just those in the Name/address/notes type fields. If you have a department code “ECC” and it turns into “Ecc” it may not be received well by the receiving system.
I run an Xlate shop so in my xlates I put a .xltp script on any field that I want to convert to mixed (code is included below).
It adds a little work up front, but I find it is much easier to include or exclude the script as you find fields that you want to change to mixed and those that you don’t want modified.
FILE: tomixedcast_xltp.tcl
proc tomixedcase {} {
upvar xlateId xlateId
xlateInList xlateInList
xlateInTypes xlateInTypes
xlateInVals xlateInVals
xlateOutList xlateOutList
xlateOutTypes xlateOutTypes
xlateOutVals xlateOutVals
set inp [lindex $xlateInVals 0]
if { $inp > ” ” } {
foreach el $inp {
set el [string totitle $el]
lappend outList $el
}
set xlateOutVals
]
} else {
set xlateOutVals
Craig Weldy
Senior Interface Analyst
Beacon Health System
South Bend, In, 46615