Hi Jeff,

Am copying the developers list since this is a developer related question.

If all you want is just test sending HL7 messages into OpenMRS, then you may
not need to create a script for that. Simply install the Rest Web Services
Module<https://modules.openmrs.org/modules/view.jsp?module=webservices.rest>
This will add a Test link on the OpenMRS admin screen.
Clicking this link will take you to a page where you can test the various
web service resources including HL7 submissions.

Since you are already having demo data, the exact same HL7 message i sent
will work for you because it references a patient and weight concept which
are already part of the demo data.

Just remember to schedule and start the HL7 processor task using the
instructions i sent in the earlier reply.

After waiting for the HL7 processor task to finish (depending on how often
you scheduled it to run) processing the HL7 message, one of the ways you can
see your data is by selecting "Manage Observations" from the admin page,
then select the patient by click the select button and typing the name of
the patient (e.g. John) which displays a list for you to select from, you
could also (though optional) select the concept by typing the name of the
concept (e.g. Weight) which should display a list for you to select from,
then finally click the Search button to display your data.


Going beyond just testing, will require answering questions like:

- Are you having another system which will be sending the HL7 messages into
OpenMRS?
- If yes, what communication technology does it use? REST, ???
- Have you looked at tools like Mirth
Connect<http://www.mirthcorp.com/community/mirth-connect>?
- etc etc


On Sat, Aug 6, 2011 at 12:41 AM, Price, Jeff M. <[email protected]> wrote:

> Thanks to those who have helped me with this issue so far.****
>
> ** **
>
> I am trying to do what was suggested but having some trouble, probably
> because I have never done any html before.****
>
> ** **
>
> Below is my lame attempt at a script to use the WebServices REST API.  ***
> *
>
> I know it is not correct and am hoping it is close and someone can let me
> know how to make it correct.****
>
> ** **
>
> ** **
>
> If an when I am fortunate enough to get it to work, what page/tab in
> openMRS will my data appear (The weight in this case) ? ****
>
> How will it know which patient record to insert it into, do I use the same
> value for PID in the HL7 message as I entered for Patient Id in openMRS ?*
> ***
>
> ** **
>
> --------------****
>
> ** **
>
> ** **
>
> <html>****
>
> <body>****
>
> <h1>This is my HL7 WebServices Test  Page</h1>****
>
> <form name ="input" action="http://localhost:8080/openmrs/ws/rest/v1/hl7";
> method="post">****
>
> <body>****
>
> source=”BP Monitor”  username=”Admin”  password=”122222”  message=****
>
>
> ”MSH|^~\&|FORMENTRY|AMRS.ELD|HL7LISTENER|AMRS.ELD|20110805104142||ORU^R01|REl7wt78q9Pzlqe9ecJB|P|2.5|1||||||||3^AMRS.ELD.FORMID
> ****
>
> PID|||3^^^^||Patient^John^D||****
>
> PV1||O|1||||1|||||||||||||||||||||||||||||||||||||20110805|||||||V****
>
> ORC|RE||||||||20110805104141|1^Super User****
>
> OBR|1|||1238^MEDICAL RECORD OBSERVATIONS^99DCT****
>
> OBX|1|NM|5089^WEIGHT (KG)^99DCT||67.2|||||||||20110805”****
>
> </body>****
>
> <input type="submit" value="Submit" />****
>
> </form>****
>
> </html>****
>
> ** **
>
> ** **
>
> ** **
>
> Thank you !****
>
> ** **
>
> *Jeff Price l (858) 412-8639*
>
> West Wireless Health Institute <http://www.westwirelesshealth.org/>  ****
>
> ** **
>
> ****
>



-- 
If we keep uppermost in our minds the unkind and unjust acts of others, we
shall find it impossible to love them as Christ has loved us; but if our
thoughts dwell upon the wondrous love and pity of Christ for us, the same
spirit will flow out to others.

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to