Commit for Layout Based Transactions

sunsetsystems wrote on Wednesday, October 28, 2015:

OK here it is:

https://github.com/sunsetsystems/openemr/commits/lbt

Transactions are somewhat like encounter forms, except they are linked only to the patient and not to any visit. Currently there are 5 types of transactions in OpenEMR:

Referral
Patient Request
Physician Request
Legal
Billing

Referrals currently are layout-based, but the others are very simple and with a fixed layout. This commit converts them all to layout-based and allows for modifying them or adding new transaction types without programming.

A new list “Layout-Based Transaction Forms” is created, analogous to the current “Layout-Based Visit Forms”, so you can maintain the types of forms.

Testing, comments and review appreciated. I’m also interested to know who is using transactions at all, or thinks they are or are not important. I guess that’s about whether patient-related things (that you care about) happen outside of the context of a visit.

Rod
http://www.sunsetsystems.com

arnabnaha wrote on Wednesday, October 28, 2015:

Thank you so much Rod. I am going to test it right now.

arnabnaha wrote on Wednesday, October 28, 2015:

Hi Rod,
I created a simple test form using the LBT. Now where do I find the form to fillup or use? Cant see it anyrwhere

sunsetsystems wrote on Wednesday, October 28, 2015:

Should be Patient summary page -> Transactions -> Add and then select your transaction type.

Rod
http://www.sunsetsystems.com/

arnabnaha wrote on Wednesday, October 28, 2015:

Thanks Rod, got it it works really well. It would be very nice if we can print the filled out forms if necessary like the referral forms.

sunsetsystems wrote on Wednesday, October 28, 2015:

Referral printing was a special effort, but it would be possible to do it for transactions in a general way.

Rod
http://www.sunsetsystems.com/

arnabnaha wrote on Wednesday, October 28, 2015:

General printing from - Patient Summary ->Reports is only showing the form names not the data within the forms. At least a printfunction like the LBF forms from the Report section will work pretty fine

arnabnaha wrote on Wednesday, October 28, 2015:

Hi Rod,
The conditional statement doesnt seem to work in the LBT. Can you please check

Thanks,
Arnab

sunsetsystems wrote on Wednesday, October 28, 2015:

OK will look at that in a day or two.

Rod
http://www.sunsetsystems.com/

tmccormi wrote on Wednesday, October 28, 2015:

This will be great, we used transactions a lot for the Peace Corps to track various things, like the volunteer(patient) moving from Post to Post

tmccormi wrote on Wednesday, October 28, 2015:

One note on this is that I am frequently asked to change the output of the Printed Referral and it does not reflect the changes in the Layout. Mostly they turn off the Counter Referral, but it’s still prints.

Also mostly they don’t want two copies of the referral as currently prints …

Just FYI when thinking about printing options.

sunsetsystems wrote on Wednesday, October 28, 2015:

I think you’ll need to modify sites/default/referral_template.html to get what you want. See also interface/patient_file/transaction/print_referral.php. Shouldn’t be too hard.

Rod
http://www.sunsetsystems.com/

tmccormi wrote on Wednesday, October 28, 2015:

Thanks, I know what to do, done it dozens of times. Just wanted the need to be (possibly) addressed if someone takes on a generic LBF print option for transactions.

sunsetsystems wrote on Friday, October 30, 2015:

I have added a commit (in the above-linked branch) to fix the support for conditions in layout based transactions.

Rod
http://www.sunsetsystems.com/

chadhini wrote on Friday, October 30, 2015:

Can I see a working demo of this one anywhere?

arnabnaha wrote on Friday, October 30, 2015:

Thanks Rod,
I have introduced the changes for the conditional fix and it works awesome. Please atleast make a print function done for the forms from the patient summary->reports sections like the general encounter based layout forms.

Thanks
Arnab

arnabnaha wrote on Friday, October 30, 2015:

Hello Chandani,

For the demo, you can visit this - http://nahahealthclinic.no-ip.org/openlbt

The login credentials are on the login screen

I have made a small Admission data form for testing purpose and it has a conditional item too. You can test it freely and create a new form as well here.

Thanks
Arnab

bradymiller wrote on Friday, October 30, 2015:

Also placed a development demo here based on Rod’s github branch:
http://www.open-emr.org/wiki/index.php/Development_Demo#192.168.1.131

bradymiller wrote on Friday, October 30, 2015:

Hi Rod,

Would be very nice to get this feature in. Couple things I noted on testing the above development demo.

  1. For the non-referral stuff, there is nothing there on new install(and no Details textarea as was in the prior installations).

  2. For the upgrade stuff, are you handling the prior transaction data for all the forms?

  3. There is an MU toggle in Referrals called “Sent Medical Records?”. Just want to make sure that logic is still working (and only shows up in Referrals).

thanks,
-brady
OpenEMR

teryhill wrote on Friday, October 30, 2015:

Could use some more comments in the code.

Terry