Published on InterSystems Developer Community (https://community.intersystems.com)

Inicio > Problemas con la iteración en múltiples segmentos NTE en la regla de enrutamiento

Pregunta
Joey McClammy · 29 jun, 2021

Problemas con la iteración en múltiples segmentos NTE en la regla de enrutamiento

Tenemos múltiples segmentos NTE en el mensaje ADT. Necesito iterar a través de todos los segmentos NTE buscando "NAVIRADTHPT" en el campo NTE-4. He intentado que funcione con el siguiente código.  

HL7.(NTE:4()) Contains "<NAVIRADTHPT>"

Así es como se ven los segmentos.

NTE|1||This patient is currently being seen for radiation therapy.|AHRADTHPT||20210223093342
NTE|2||This patient is currently being seen for radiation therapy.|NAVIRADTHPT||20210223113634

También lo he intentado de esta forma sin éxito.

HL7.(NTE():4) Contains "<NAVIRADTHPT>"

¡Agradecería mucho cualquier ayuda!

#InterSystems IRIS

URL de fuente:https://es.community.intersystems.com/post/problemas-con-la-iteraci%C3%B3n-en-m%C3%BAltiples-segmentos-nte-en-la-regla-de-enrutamiento