Pinned topicHow to exempt a single segment from output card?

Still awaiting WTX training, and I don't know what I'm doing, so... bear with me.

I have an existing map (developed by some contractor I no longer have access to). The output card has a segment within it I need to remove from the output. The input card does not contain this segment, so I suspect it's presence is causing it to be inserted. Note that I don't know enough to even understand how it is writing this particular segment to the output card. There are many, many, other segments present in the output card that it doesn't create within the output, but I'm hoping I can skip that particular lesson right now, if possible.

The segment is part of the HL7 spec, so I'm pretty sure removing the segment from the type tree is not the right way to go.

Re: How to exempt a single segment from output card?

‏2013-01-08T17:13:39Z

This is the accepted answer.
This is the accepted answer.

Find the segment in the output that contains one or more map rules. It may be in the execution map or the functional maps. You may have to open a number of FMaps to find where it is populated.
Starting with the lowest level FMap where the segment elements contain map rules, delete the map rules within the segment or the elements within the segment.
Collapse the segment tree if necessary and enter "=NONE" in the target segment as the map rule.

Re: How to exempt a single segment from output card?

Find the segment in the output that contains one or more map rules. It may be in the execution map or the functional maps. You may have to open a number of FMaps to find where it is populated.
Starting with the lowest level FMap where the segment elements contain map rules, delete the map rules within the segment or the elements within the segment.
Collapse the segment tree if necessary and enter "=NONE" in the target segment as the map rule.

You can see the PV1_LOOP_Netsmart on the right. That's the one I need to simply remove. It won't let me enter "=NONE" into the rule for that one. I suspect it is because of the rule at R01. If I remove that one and just drag over the MSH, PID, NTE and ORC, will it still do the R01 loop?

Re: How to exempt a single segment from output card?

You can see the PV1_LOOP_Netsmart on the right. That's the one I need to simply remove. It won't let me enter "=NONE" into the rule for that one. I suspect it is because of the rule at R01. If I remove that one and just drag over the MSH, PID, NTE and ORC, will it still do the R01 loop?

OK... I had to drive down into 2 functional maps, and I'm now at the hard-coded output (See pic... and this now explains how it is getting in there). Again, I can't seem to simply put in "=NONE" at the PV1_LOOP_Netsmart" level.

Should I remove all the lower-level rules for all the PV1 Segment elements?

Re: How to exempt a single segment from output card?

OK... I had to drive down into 2 functional maps, and I'm now at the hard-coded output (See pic... and this now explains how it is getting in there). Again, I can't seem to simply put in "=NONE" at the PV1_LOOP_Netsmart" level.

Should I remove all the lower-level rules for all the PV1 Segment elements?

You can select all the map rules in a segment by selecting the first map rule, depressing the shift key, and clicking on the last map rule in the segment. You can then delete all at once by right clicking and selecting Delete.