infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
turn a 12 character date to 8 character
System
Originally posted by teddy greschel
I am trying to change the admit date and discharge date in PV1 from yyyymmddhhmm to a yyyymmdd. i am very new to interfacing and any help will be appreciated.
Thanks
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Robert Milfajt
Easiest, if you are using an Xlate, is to modify your outbound HL7 variant so Admit and Discharge dates are 8 characters long.
Hope this helps,
System
Originally posted by teddy greschel
thanks that does help little but how would i have to create a new variant if i am using the same variant for other xlates?
jcobane1
If you don't want to affect the outbound variant because it is used for other interfaces/Xlates, then you would have to create a new variant. You could do some tcl in the Xlate to trim the value down:
set xlateOutVals [list [string range [lindex $xlateInVals 0] 0 7]]
This will grab the first 8-bytes of the input field and set xlateOutVals to just the first 8 characters. However, you will want to test this as the engine may automatically fill-in the hours/minutes based on the field defintion of the variant.
Hope this helps.
Jim Cobane
Henry Ford Health
System
Originally posted by teddy greschel
That work just as needed thanks
Keith McLeod
If you are using 6.1, then you can use the new string command
string source xlateStrSubstring 0 7 to destination
effectively doing what James had indicated...