OpenVPMS integration with Petunia iPad app

Greetings,

I am the developer behind a small software development shop near Boulder, Colorado, USA. We recently launched Petunia, an iPad app for pet owners for recording and sharing pet health information. Petunia's website is http://www.GetPetunia.com

To make it easier on pet owners, after making a vet visit, I want to have a way to easily import data from a vet visit from a vet's system into Petunia. I had an initial teleconference with Tony DeKeizer and Tim Anderson about this today. The tentative idea is that I'll work on some development in OpenVPMS to allow it to export this data to Petunia, via email. Veterinary staff would need to do some specific operation in OpenVPMS (e.g., run a report) to send the vet visit info to a client which could then be imported into Petunia If this integration was to be well received, in the longer term we might consider some more automatic way to export vet visit info to clients.

For vets, this should mean that more people would stay on top of their pet health info. And it should mean that more pet owners would have their pet health info with them when the visit a new vet.

I'm brand new to OpenVPMS so any any input or help would be appreciated. Anyone give an estimate of learning curve in getting into OpenVPMS? My general programming skills are excellent (I'm a former university professor, I taught computer science) and I've done some Java but nothing recent.

How do I contact other developers on this system?

Thanks!

Chris.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: OpenVPMS integration with Petunia iPad app

Welcome Chris.

The easiest way to get data out of OpenVPMS is to:

1. write a JasperReport that uses an SQL query to extract the data

2. load this report as a document templates in Administation - Templates

3. run the report via Reporting - Reports and export the results as a CSV

For some background to reporting in OpenVPMS see Introduction - Reporting.

You can find sample SQL reports in the release distribution in the reports directory. All SQL reports have a report.jrxml suffix, e.g. patient list report.jrxml

An SQL query for patient visit data might look something like:

select visit.act_id, visit.activity_start_time, visit.status, item.act_id, item.arch_short_name, item_detail.name, item_detail.value
from acts visit
join participations patient on patient.arch_short_name = "participation.patient" and visit.act_id = patient.act_id and visit.arch_short_name = "act.patientClinicalEvent"
join act_relationships item_relationship on item_relationship.source_id = visit.act_id
join acts item on item_relationship.target_id = item.act_id
join act_details item_detail on item_detail.act_id = item.act_id
order by visit.activity_start_time desc

To limit that to a single patient, you can supply the patient identifier as a report parameter e.g.

select visit.act_id, visit.activity_start_time, visit.status, item.act_id, item.arch_short_name, item_detail.name, item_detail.value
from acts visit
join participations patient on patient.arch_short_name = "participation.patient" and visit.act_id = patient.act_id and visit.arch_short_name = "act.patientClinicalEvent"
join act_relationships item_relationship on item_relationship.source_id = visit.act_id
join acts item on item_relationship.target_id = item.act_id
join act_details item_detail on item_detail.act_id = item.act_id
where patient.entity_id = $P{patientId}
order by visit.activity_start_time desc

The patientId parameter can be prompted for when you run the report.

In the as-yet-unreleased 1.8 version, there is a predefined field you can use instead:

$F{OpenVPMS.patient.id}

This will constrain the query to the current selected patient in OpenVPMS. See Application Fields for more details.

Re: OpenVPMS integration with Petunia iPad app

Thanks Tim A! This is good detail. I'll be installing OpenVPMS and running some tests when I get time in the next couple of weeks. My main task at the moment is getting Petunia version 1.1 out the door. 

Re: OpenVPMS integration with Petunia iPad app

Chris - you perhaps should give some consideration to how this is to work from an information point of view. From the vet's point of view the record of the visit is the medical record of the visit. I suspect that many vets will have reservations about revealing the complete medical record to the owner. [Note that I am not a vet - but I do do IT support for my son's practice in Hong Kong.]

I suspect for your idea to work smoothly there needs to be some mechanism for the vet to provide a 'cleared for release to the owner' text.

As Tim A indicates, the level of documention for OpenVPMS is quite reasonable. For an overview have a look at both http://www.openvpms.org/documentation/csh/1.7/introduction and http://www.openvpms.org/documentation/csh/1.7/concepts .

I would ask that if you find anything unclear or needing expansion, please let me know so that I can fix the problem(s).

The other thing that you might want to have a look at is the macro facility - see http://www.openvpms.org/documentation/csh/1.7/concepts/macros. This allows the vet to generate text to include in an email in a structured format.

 

Regards, Tim G

Re: OpenVPMS integration with Petunia iPad app

Thanks Tim G! Do you mean a cleared for release to components of the data? E.g., the vet might only want to release parts of the data to the client? I've read a little recently about USA regulations for release of data. In most states in the USA, there needs to be some official request by the vet client to release information. But, I think this is in the other direction from what you are talking about.

I've started asking vets I meet some questions about data. I'll add this to my list of questions. I'd be interested to know your son's response to this issue.

By the way, when I press "Save" on these forms, it takes me to a blank screen. I'm using the most recent version of Safari. Is this expected behavior? (This was why two of my posts showed up originally).

Re: OpenVPMS integration with Petunia iPad app

a) blank screen - we know about the problem and are investigating. Your post is saved, but you do get a bank screen.

b) have son look at this discussion - will do.

Regards, Tim G

Re: OpenVPMS integration with Petunia iPad app

Blank screen issue should be resolved.  Atleast for now...

Re: OpenVPMS integration with Petunia iPad app

Thanks!

Re: OpenVPMS integration with Petunia iPad app

Chris - apologies for the delay (xmas holidays + travelling) - below is the comment from my daughter-in-law (who manages the practice in Hong Kong):

"Completely agree with you - we can't have medical records going directly to clients, we'd need to have a 'cleared' version.  99% of medical records have abbreviations and assumptions that the general public simply wouldn't understand."

Chris - what you might want to consider (as a alternative to integration with VPMS software) is a facility to easily copy data from emails and sms's into the Petunia pet's record.  Hence as the vet practice sends out information to the patient's owner, the owner can easily accomodate this into their Petunia record.  You might also consider creating an email address on your Petunia server so that the vet can push stuff directly into the patient's Petunia record - ie the vet sends an email to the owner, cc'ed to Fluffy1234[at]petunia[dot]com, and your server pushes the email subject, date and text into Fluffy's record. 

Regards and Happy New Year, Tim G

Syndicate content