Bahmni Print Patient Registration Slip

I’ve been using “Print Registration Card” functionality in bahmni with little bit of modification which works just fine.

Now I need to add a new printing function called “Print Registration Slip” which should print

  • Patient ID and Name (this is already printed out correctly)
  • the patient visit type : “Emergency” (comes from Bahmni visit type)
  • the patient type : “General” (comes from a concept name “Patient Type”)

Below is the portion of the HTML which failed to print

   <td>
                    <td class="registrationCard-details-name">
                        <span class="hindi-text">Visit Type</span>
                    </td>
                    <td class="registrationCard-details-seperator"> :  </td>
                    <td>{{obs.visitType}} </td>
                </tr>
                <td>
                    <td class="registrationCard-details-name">
                        <span class="hindi-text">Patient Type</span>
                    </td>
                    <td class="registrationCard-details-seperator"> :  </td>
                    <td>{{obs.patientType}} </td>
                </tr>

Currently its printed out like this

the obs.patientType and obs.visitType are definitely wrong. I just need to know how to access these properties from the HTML. Any information on this will be much appreciated.

Hi @abiieez,

The patient data available at this point is only the patient general information and observations without encounter info.

Hence as of now it not possible to get this information for print.