Hi, You might take a look at the source code of the sockethl7listener module, where they've already done this. Its been a great help to me !
Best regards, Suranga On Thu, May 10, 2012 at 10:16 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 > -- 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]