...
If you wish to check out the source code and/or contribute, the code can be found in github (http:/github.com/openmrs/openmrs-module-patientsummary)
Technical Notes
While the UI for the patient summary is in development, sample patient summaries can be developed as follows:
- Create a new PatientSummaryReportDefinition by going to: http://localhost:8080/openmrs/module/patientsummary/patientSummaryReportDefinitionEditor.form, entering a Name and clicking "Save"
- Go over to the reporting module UI, and from here:
- Click on "Data Definitions" and save a couple of Patient Data Definitions and/or Person Data Definitions (eg. gender, age, name, etc)
- Click on "Data Set Definitions". You will see a Row-per-patient data set definitions called "Patient Dataset for <Name you chose above>". Edit this one.
- Add one or more of the data definitions you created above to this
- Now you need to create your "template"
- Create a new text file called something like "template.txt" and in it, author the html for the way you want to display your patient summary
- Where you want patient data to be included, add this in by referring to the name you gave this when you added it to the schema above. For example, if you added columns "age" and "gender" to your report definition, you could have a very simple template with the text:
My age is $data.age and my gender is $data.gender
- Go to "Report Administration", click on the report that you created above, click "Add" under Output Designs:
- The "Name" should be however you want this summary to be presented to the end user
- The renderer should be a TextTemplateRenderer
- For resources, you should upload the text file you authored above
- For design properties, you will want to put: templatetype=Groovy
- Go to "Report Administration", click on the report that you created above, click "Add" under Output Designs:
- Now that this is in place, you should be able to go back to Administration and click on "Preview Patient Summary Templates":
- Choose a patient
- Choose your summary template
- Click Preview, and this should display the patient summary
- You can also make this summary available in a new tab on the patient dashboard by configuring a global property:
- Currently the global property is named "patientsummary.reportDesignUuids", which will likely be changed. You want to set this to the uuid of the report design you created above (probably need to get this out of the database in the reporting_report_design table for now. Will make this more user friendly later on...
- Once this is configured, go to the patient dashboard for a patient and the selected summary should appear in a new tab.