Question
· Apr 15

HL7 , renumber the OBX 4

I added extra OBX segments and I need to renumber OBX 4 so they are sequential.

Product version: IRIS 2022.1
$ZV: HealthShare Unified Care Record 2023.1.0 Build: 1006 Adhoc: 23407 [HealthShare Modules: Core:25.0] - IRIS for Windows (x86-64) 2022.1.2 (Build 574_0_23407U) Tue May 7 2024 13:17:41 EDT [Core:25.0]
Discussion (3)1
Log in or sign up to continue

Assuming you are iterating though the OBX's, you can simply add a variable where you increment it for each OBX you are processing.

Assuming your code is still similar to your code from your other account, you should have an incrementing variable of i. 

Try sticking in

Do pOutput.SetValueAt(i,"ORCgrp(1).OBRuniongrp.OBXgrp("_i_").OBX:4")