DTL Condition where field = """"
I have an EMR sending double quotes "" as the value. How do I write criteria to find this match in a DTL?
PV1|1|A|||||1111111111^Doctor^MR|||||||||||||||||||||||||||||||||||||20170331|""
source.{PV1:DischargeDateTime()}="""" didn't work
Hi Paul,
Quotes inside quotes need to be escaped, your condition is only looking for one double quote, you will need to try this...
source.{PV1:DischargeDateTime()}=""""""
On a side note, quotes sent in HL7 can be used to nullify a value, e.g. if a previous message had sent a discharge date and time by mistake then "" would be a request to delete that value (as apposed to an empty value).
Sean.
That did the trick! I thought I had tried that but I think the test interface added more " for some reason.
Thanks for the note on the nullify. These are A04s and A08s from ambulatory, so I wouldn't think PV1-45 would apply.