Hi Lucas, If you have created an HL7 message profile (using Messaging Workbench) you can use that output (hl7 conformance profile in xml) to generate HAPI Java classes ...
Please send me your hl7 message profile and I'll create the java classes for your Z-segment(s). Best Regards Nico At 8/08/2008, Lucas Gonz wrote: >Ok... it's not ZL7.. but Z but both object are almost equal so I still have >the problem about forming the object... > > >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-tp18887392p18887562.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 ------------------------------------------------------------------------- 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