Hello again... I've realised something else, I got an exception while trying to access to the MFR_M01 ZL7 group:
(ZL7) group.get("ZL7") I got: ca.uhn.hl7v2.HL7Exception: ZL7 does not exist in the group ca.uhn.hl7v2.model.v231.group.MFR_M01_MFEZ what am I missing?? Thanks! Lucas Gonz wrote: > > Hello everyone, > > I am trying to create a response message for MFQ_M01 message, and I am > trying to use the segment ZL7 which is formed by a CE data type and a > Display short key NM, and I dont know how to form the segment. > > As a summary I just wanna get a ZL7 object formed with some data. > > This is my code: > > ZL7 zl7 = new Zl7(); > CE ce = new CE(); > zl7.setName("Name_Zl7"); > ce.getNameOfCodingSystem().setValue("ANYnameCodingSystem_ZL7"); > //And now I'd like to add the ce object to the zl7 one and I cant find the > way.. > //I'd like to do something like: > // zl7.setCE(ce); > > On MFE segment I've done something like this and it's working fine: > > CNE ce = new CNE(); > ce.getIdentifier().setValue(dato.getCodigo()); > ce.getText().setValue(dato.getDescripcion()); > ce.getNameOfCodingSystem().setValue(dato.getTexto()); > ce.getAlternateIdentifier().setValue(dato.getCodigoAlternativo()); > ce.getAlternateText().setValue(dato.getDescripcionAlternativa()); > ce.getNameOfAlternateCodingSystem().setValue(dato.getTextoAlternativo()); > ce.getCodingSystemVersionID().setValue(dato.getVersion()); > mfe.getPrimaryKeyValueMFE(repeticion).setData(ce); > > Any help will be apreciated! ;) > Thanks in advance! > > > > > > -- View this message in context: http://www.nabble.com/Zl7-segment-on-MFR_M01-tp18887392p18887475.html Sent from the hl7api-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel