Raouf,
The last two SPM segments are out of place. On the Message Content Viewer hover over the segment names and it will briefly give you the object name of the actual segment being populated. For example the first ORC is ORCgrp(1).ORC. The SPM segment is ORCgrp(1).OBRgrp.SPMgrp(1).SPM. The second ORC segment is ORCgrp(1).OBRgrp.PIDgrpgrp(1).ORCgrp(1).ORC, a group which does not define a SPM segment.
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
If you don’t try and parse the message it really doesn’t matter if the message structure is invalid, but if you need to use DTL or rules it normally does.
Up to the point where you get the second NTE segment, the structure could be interpreted in two ways. It could be ORCgrp(1).OBRgrp.PIDgrpgrp(1).ORCgrp(1).NTE(1) with the ORC segment nested within the outer ORCgrp.
Or it could be interpreted as a repetition of the outer ORCgrp.
It seems that Ensemble has taken the wrong interpretation and when it finds the SPL segment it says it is an error. If Ensemble had made the other choice everything would be fine. More sophisticated look-ahead parsing would be required to distinguish the two cases.
If you will never have a nested ORC segment, I think that creating a custom schema that avoids the ambiguity by removing the ORCgrp I have circled in red in the screen shot should work.
However, your original problem statement that segments after SPM aren’t sent isn’t explained. The message shouldn’t be truncated just because the structure is invalid. Can you clarify what you were doing and what exactly you saw when only half of the message was sent from the BS to the BO?
Dave

To post to this group, send email to Ensemble-i...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healthcare+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-i...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healthcare+unsub...@googlegroups.com.