Hi Joaquin, I'll try to go over your questions (raised here and on the later threads)
1. No, the HL7 Socket listener module is not required at all. I pointed you to this because they have already implemented the HL7 message generation, so it would be easier for you to follow it along. The cllass you should look at is : https://tubah.openmrs.org/browse/~br=trunk/Modules/sockethl7listener/trunk/src/org/openmrs/module/sockethl7listener/HL7MessageConstructor.java?r=18288 2. Regarding the best way to assign the mothers name, yes, you can just set the mothers name as a String variable. You may even have it as a different person (but thats a waste of resources / storage of unnessesary data) isnt it ? In my case, I've not really storing the mothers name at all. Im just using the nk1 segment to record the "next of kin" for the patient. I've given each patient attributes named "Next of Kin" and "telephone number" and am using those. For phone numbers in the PID segment, you can do something like, .PID.GetPhoneNumberBusiness(0).getAreaCityCode().setValue (); PID.GetPhoneNumberBusiness(0).getPhoneNumber().setValue(); PID.GetPhoneNumberHome(0).getAreaCityCode().setValue(); PID.GetPhoneNumberHome(0).getPhoneNumber().setValue(); Yes, creating an attribute seems the best way to go... Also note that (as Darius mentioned in his reply) these attributes will not get checked by the ORU_ROI handler in OpenMRS. I'm not sure if your aim is to generate HL7 messages to send outside of the system, or if you want to send the message for processing into the ORU_ROI handler itself. If you wanted to do option number 2, then i'm afraid that setting these attributes would be meaningless. if you really wanted to send all these attributes into the OpenMRS system, you may have to improve on the ORU_ROI handler :-) Hope that this helps ! Thanks and best regards, Suranga On Fri, May 11, 2012 at 4:52 AM, Joaquín Blaya < joaquin_bl...@hms.harvard.edu> wrote: > Thanks Burke and Suranga, I'm sorry, but I'm not adept enough to figure > out the code yet. > > Is the HL7 Socket listener required to use HL7? I can't seem to find any > documentation on it apart from the module download page. > > As far as the maiden name, can you just enter the Mother's maiden name and > have that go to the family_name2 for the patient, or do you have to enter > the mother as a person as well? > > Thanks > > Joaquín > ___________________________________________________________________ > Gerente de Desarrollo, eHealth Systems <http://www.ehs.cl/> > Research Fellow, Escuela de Medicina de Harvard <http://hms.harvard.edu/> > Moderador, GHDOnline.org <http://www.ghdonline.org/> > > > On Thu, May 10, 2012 at 12:46 AM, Burke Mamlin <bmam...@regenstrief.org>wrote: > >> PID-5 is the patient's name. >> PID-6 is the mother's maiden name. >> >> -Burke >> >> On Thu, May 10, 2012 at 12:07 AM, Joaquín Blaya < >> joaquin_bl...@hms.harvard.edu> wrote: >> >>> I'm trying to construct an incoming HL7 message and in looking at the >>> OpenMRS HL7 page https://wiki.openmrs.org/display/docs/HL7 >>> >>> in the PID section, there are two names >>> PID|||1MT^0^M10||Patient^Jonny^Dee^DR|Patient^Momma^Thee^MS|20040101000000|M||B|555 >>> Johnson Road^Apt. 555^Indianapolis^IN^46202^USA|||||||||||Indianapolis, >>> IN|||||||||||||||||TRIBE CODE >>> >>> - Patient^Jonny^Dee^^DR| >>> Family Name (Patient) >>> ^ Given Name (Jonny) >>> ^ Second / Middle Name (Dee) >>> ^ Suffix () >>> ^ Prefix (DR) >>> >>> >>> - Patient^Momma^Thee^^MS| >>> Mother's Maiden Family Name (Patient) >>> ^ Given Name (Momma) >>> ^ Second / Middle Name (Thee) >>> ^ Suffix () >>> ^ Prefix (MS) >>> >>> >>> The first one has the family name and the second one the Mother's Maiden >>> name. >>> >>> Why are there two names if this is only one patient? >>> >>> Thanks, >>> >>> Joaquín >>> ___________________________________________________________________ >>> Gerente de Desarrollo, eHealth Systems <http://www.ehs.cl/> >>> Research Fellow, Escuela de Medicina de Harvard<http://hms.harvard.edu/> >>> Moderador, GHDOnline.org <http://www.ghdonline.org/> >>> >>> ------------------------------ >>> Click here to >>> unsubscribe<lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l>from >>> OpenMRS Developers' mailing list >> >> >> ------------------------------ >> Click here to >> unsubscribe<lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l>from >> OpenMRS Developers' mailing list > > > ------------------------------ > Click here to > unsubscribe<lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > -- Best Regards, Suranga _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to lists...@listserv.iupui.edu with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:lists...@listserv.iupui.edu?body=SIGNOFF%20openmrs-devel-l]