Question about second name in PID section of HL7 message

classic Classic list List threaded Threaded
5 messages Options
Joaquín Blaya Joaquín Blaya
Reply | Threaded
Open this post in threaded view
|

Question about second name in PID section of HL7 message

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
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


[hidden email] from OpenMRS Developers' mailing list
Burke Mamlin Burke Mamlin
Reply | Threaded
Open this post in threaded view
|

Re: Question about second name in PID section of HL7 message

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 <[hidden email]> 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
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list
surangaK surangaK
Reply | Threaded
Open this post in threaded view
|

Re: Question about second name in PID section of HL7 message


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 <[hidden email]> 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 <[hidden email]> 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
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list



--
Best Regards,

Suranga


[hidden email] from OpenMRS Developers' mailing list
Joaquín Blaya Joaquín Blaya
Reply | Threaded
Open this post in threaded view
|

Re: Question about second name in PID section of HL7 message

In reply to this post by Burke Mamlin
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
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


On Thu, May 10, 2012 at 12:46 AM, Burke Mamlin <[hidden email]> 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 <[hidden email]> 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
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list
surangaK surangaK
Reply | Threaded
Open this post in threaded view
|

Re: Question about second name in PID section of HL7 message


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.


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 <[hidden email]> 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
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


On Thu, May 10, 2012 at 12:46 AM, Burke Mamlin <[hidden email]> 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 <[hidden email]> 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
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list


[hidden email] from OpenMRS Developers' mailing list



--
Best Regards,

Suranga


[hidden email] from OpenMRS Developers' mailing list