[HL7 message processing] OBX segment is smaller than it should be when we use GetValueAt()
Hello,
We would need your help:
We are processing a HL7 message.
Its OBX segment has 4318 characters
1) We get the OBX with the following line of code:
set textoCompleto = request.GetValueAt("5:3.2")
When we output its length with:
$$$LOGINFO("textoCompleto: "_textoCompleto)
It shows:
$LENGTH(textoCompleto): 3497
- So as we see it is being shortened
2) We get the OBX with the following line of code:
set textoCompleto = $PIECE(request.OutputToString(), "OBX", 2)
When we output its length with:
$$$LOGINFO("textoCompleto: "_textoCompleto)
It shows:
$LENGTH(textoCompleto): 4318
It displays the correct length
Why does this line of code
set textoCompleto = request.GetValueAt("5:3.2")
cut the string below the correct size?
We have read:
https://cedocs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cl...
https://cedocs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cl...