Customized printable forms in openemr

mhm676 wrote on Sunday, December 20, 2015:

I want to print very large variety of forms with some constant information (hospital logo, patient name…) and some variable information (refferal type, vaccination drug…)
I have read about word processor forms and their transformation. I want your guide in what to exactely do to make these forms available for the staff of my hospital.

aethelwulffe wrote on Monday, December 21, 2015:

Sounds like a basic form that uses patient, provider and practice data relevant for that patient/date from the database to populate it.

  1. you would need your patient data in an openemr database.
  2. You need your hospital and facility data (and providers) also in it.
  3. You need to come up with the layout of your forms (a word processor version that has text fields: form elements, etc… in it vs. just blank lines where input goes and a description of what each form element should contain, as well as any business logic (decisions the code must make). From there, you can print the paper form. At that point, you are still stuck with a paper form and a painful way to retain and utilize the data after that point, but if that is the desired result: there you go.
    All the above is a very custom notion. It will take initiative on your part to determine what it is you want, and how exactly it functions. Mind you, it doesn’t sound like a very good use of an EMR, but blankish froms used as routing slips can certainly be printed. There are some forms and natually routing slips that can be printed right now.

fsgl wrote on Monday, December 21, 2015:

See this.

mhm676 wrote on Tuesday, December 29, 2015:

Thank you sir for the sophisticated answer. I do not want to print forms. My boss do. lol

mhm676 wrote on Wednesday, January 20, 2016:

Thank you very much for your sophisticated answer. The link did most of the job right. but I find difficulty.
I want to expand the {…fieldName…} to be more than the list that is suggested in the link.
I want to to pick various field from the forms I did in layout based forms to be fetched in the patient template.
I hope you got my question, and I hope your generousity will spare some of your time.

fsgl wrote on Wednesday, January 20, 2016:

Here is Rod’s answer.

If you want to expand the list of keywords (items within the curly brackets), it is necessary to change the codes.

fsgl wrote on Wednesday, January 20, 2016:

The above cited Wiki article has been edited with images for greater clarity.

mhm676 wrote on Friday, January 22, 2016:

I admire the work of the wiki. I did upload templates and I was successful at doing it. What I want is to read a guide on how to add fields with curly brackets in openemr. I am a begginning developer, and I want to have the experience of adding new fields.

Can you guide me please?

fsgl wrote on Friday, January 22, 2016:

I didn’t post a mini-guide because I was unable to figure it out by looking at interface/patient_file/download_template.php.

No formal training, have not taught myself PHP yet.

Look at the various files in the GitHub link. If you have the solution, I’ll add it to the Wiki article.