Bahmni EMR Discharge Summary Print Issue

Tags: #<Tag:0x00007fcec98cff88> #<Tag:0x00007fcec98cf920>

Hello Team, I am facing an issue with Discharge Summary Print on dashboard in bahmni. I am trying to configure some prints under the Print button as a dropdown on the Patient Dashboard page. For that I have added configuration as “quickPrints”:true in the ‘config’ section of /clinical/app.json file and added printing capability to two tabs in /clinical/dashboard.json as:

"general":{  
    "translationKey":"DASHBOARD_TAB_GENERAL_KEY",
    "displayByDefault":true,
    "maxRecentlyViewedPatients":10,
    "printing": {
        "title": "Bahmni Hospital",
        "header": "General Patient Summary",
        "logo": "../images/jss_logo.png",
        "showNameAndImage": true
    },
    "sections":{  

"patientSummary":{  
    "translationKey":"DASHBOARD_TAB_PATIENT_SUMMARY_KEY",
    "maxRecentlyViewedPatients":10,
    "printing": {
        "title": "ABC Hospital",
        "header": "Summary Report",
        "logo": "../images/bahmniLogo.png",
        "showNameAndImage": false
    },
       "sections":{  

In the dropdown, Visit and Discharge Summary options are coming by default. Also when we click on Visit option it opens Visit print preview correctly but when we are clicking on Discharge Summary print option then also it opens Visit print preview instead of Discharge Summary print preview.

Also attaching the videoLink

And when we tried to remove Visit and Discharge Summary print options from that dropdown by removing printing functionality from /clinical/visit.json file for Visit and Discharge Summary then it removes the Visit and Discharge Summary options from dropdown but then we are unable to print the Visit and Discharge Summary from Visit Dashboard since it removes print option from Visit Dashboard also which already exist. Have a look into the attached screenshots.

Print option removed from Visit dashboard for Visit

Discharge Summary option on Visit Dashboard

Print option removed from Visit dashboard for Discharge Summary.

I want to show Discharge Summary Print preview correctly after clicking on it otherwise I want that option to remove from only Patient Dashboards print dropdown not from Visit Dashboard. But for that there is no any configuration available.

Please provide any suggestions for this.

A few questions:

  1. Does the print functionality for printing respective dashboards work fine when you set quickPrint to false?
  2. Maybe you can try adding the label parameter to see if with quickprint, the label is shown correctly: https://bahmni.atlassian.net/wiki/spaces/BAH/pages/37945569/dashboard.json
  3. Can you share your visit.json, dashboard.json and app.json files to validate if configuration is fine. Or attach a zip of the clinical folder. You can potentially upload them to pastebin.com and provide links.

@gsluthra

Here are my inputs to your questions:

  1. Yes, the print functionality for printing respective dashboards work fine when I set quickPrint to false.
  2. I have already tried it out by adding the label parameter to see if with quickprint, the label is shown correctly. Actually I am facing issue with print preview of Discharge Summary not with the label of that print.
  3. I am attaching my clinical.zip here

I was able to reproduce the issue you mentioned (on V0.92). If I enable quickPrint, then for second/third visit dashboards, the print action still shows the first visit dashboard in print-preview. It should show the print preview of the visit dashboard that has been selected.

Right now, your only option seems to be to not use quickPrint. I am not sure yet if this is fixed in V0.93 or if this is a newly discovered bug. Will wait to see if anyone else replies to this thread.

/cc @angshuonline @buvaneswariarun

I have created bug ticket for the Discharge Summary print issue.
Link for the Bug ticket: [BAH-1182] Bahmni EMR Discharge Summary Print Issue - Bahmni - JIRA

1 Like