How to parse the Multiple OBR Segment in HL7 using HAPI TERSER

霸气de小男生 提交于 2019-12-05 16:23:48

OBX is nested inside an OBSERVATION group (which in return is nested in other groups). Actually, not the OBX segment is repeatable but the OBSERVATION group is. So your terser expression would be something like terser.get("/.OBSERVATION(i)/OBX-3-1");, where in your case i runs from 0 to 3.

cheers christian

I think you should use terser.get(/OBX(repetition)-3-1). For instance, terser.get(/OBX(2)-3-1) should be equal to 0102150. Remember that the repetition starts at 0, so OBX(2) refers to OBX|3|NM|0102150^HEMOGLOBIN^...

You can find some hapi terser example about repetitions here:

I have written a couple of post about this issue. You can find them:

http://ignaciosuay.com/how-to-use-hapi-terser-with-hl7/

http://ignaciosuay.com/how-to-set-repetitions-in-hl7-messages-using-hapi-terser/

Cheers Ignacio

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!