I wasn’t aware that you could indicate multiple subfields like this: 0(0).MSH(0).#4(0).[0,1]. So I tried this for myself with a simple message where MSH-4/0 and MSH-4/1 on the inbound message are filled and a PATHCOPY is used to copy the complete MSH to the outbound messages. Then I used this command:
COPY @null -> 0(0).MSH(0).#4(0).[0,1]
This will only remove the first subfield of MSH-4, not the second.
So I thought this would never work, but if you do this:
COPY @null -> 0(0).MSH(0).#4(0).[0,1]
@null
then both subfields will be cleared.
So this syntax can work, but you need to make sure that the number of inbound @nulls is equal to the outbound number of subfields. Or write out all outbound fields individually: one line per subfield:
COPY @null -> 0(0).MSH(0).#4(0).[0]
@null 0(0).MSH(0).#4(0).[1]
As I’m not used to this notation and it would be easy to make a mistake (you see 3 values going in and only one going out; what is going on?) I wouldn’t recommend it.
PS Is this an undocumented feature? I have never seen/heard of this before.
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands