FHIR-Converter icon indicating copy to clipboard operation
FHIR-Converter copied to clipboard

format_as_date_time - conversion issue

Open aunabidi opened this issue 2 years ago • 3 comments

I am trying to convert HL7 messages to FHIR and run into a datetime conversion error. The datetime "20140630120030.1234-0500" errors out with the message below but it works fine when I remove the 4 in bold from the example above and use "20140630120030.123-0500"

Error: "Failed to convert the input data. Reason: The format of Date or DateTime is invalid: 20140630120030.1234-0500."

According to the definition of format_as_date_time it should accept the 4th digit in the second: YYYY[MM[DD[HH[MM[SS[.S[S[S[S]]]]]]]]][+/-ZZZZ] but it throws an error.

Any help would be appreciated. Thanks!

aunabidi avatar Jun 15 '22 18:06 aunabidi

Could you help to investigate this issue? @sowu880

yankunhuang-pku avatar Jun 22 '22 08:06 yankunhuang-pku

Hi @sowu880. Any luck with this issue?

Thanks!

aunabidi avatar Jun 29 '22 19:06 aunabidi

@sowu880 @yankunhuang-pku

I got the latest templates in my workspace and tried testing this issue locally with "20140630120030.1234-0500" but I am still seeing the DateTime error.

aunabidi avatar Jul 21 '22 13:07 aunabidi