* The OBX segment is in a repeating group called OBSERVATION. You can
* use a named accessor which takes an index to access a specific
* repetition. You can ask for an index which is equal to the
* current number of repetitions,and a new repetition will be created.
*/
ORU_R01_OBSERVATION observation = orderObservation.getOBSERVATION(0);
// Populate the first OBX
OBX obx = observation.getOBX();
obx.getSetIDOBX().setValue("1");
obx.getObservationIdentifier().getIdentifier().setValue("88304");
obx.getObservationSubID().setValue("1");
// The first OBX has a value type of CE. So first, we populate OBX-2 with "CE"...