Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sample HTML Form for Register
Code Block

<htmlform>
   <table>
      <excludeIf velocityTest="$patient.id">
           <tr>
                 <td>Name :</td>
                 <td>
                       <patient field="name"/>
                 </td>
           </tr>
           <tr>
                 <td>Gender : </td>
                 <td>
                       <patient field="gender"/>
                 </td>
           </tr>
           <tr>
                 <td>Age :</td>
                 <td>
                       <patient field="age"/>
                 </td>
           </tr>
           <tr>
                 <td> Identifier :</td>
                 <td>
                       <patient field="identifier" identifierTypeId="2" />
                 </td>
           </tr>
           <tr>
                 <td> Identifier Location :</td>
                 <td>
                       <patient field="identifierLocation"/>
                 </td>
           </tr>
      </excludeIf>
      <includeIf velocityTest="$patient.id">
           <tr>
                 <td>Name:</td>
                 <td>
                       <lookup expression="patient.personName"/>
                 </td>
           </tr>
           <tr>
                 <td>Identifier:</td>
                 <td>
                       <lookup expression="patient.patientIdentifier.identifier"/>
                 </td>
           </tr>
       <tr>
             <td>Identifier Type:</td>
             <td>
                   <lookup expression="patient.patientIdentifier.identifierType"/>
             </td>
       </tr>
       <tr>
             <td>Identifier Location:</td>
             <td>
                   <lookup expression="patient.patientIdentifier.location"/>
             </td>
       </tr>
       <tr>
             <td>Gender:</td>
             <td>
                   <lookup expression="patient.gender"/>
             </td>
       </tr>
       <tr>
             <td>Birthdate:</td>
             <td>
                   <lookup complexExpression="#if( \$patient.birthdateEstimated ) ~#end"/>
                   <lookup expression="patient.birthdate"/>
                   (Age: <lookup expression="patient.age"/>)
              </td>
       </tr>
         </includeIf>
         <tr>
               <td>Encounter Location :</td>
               <td>
                     <encounterLocation/>
               </td>
         </tr>
         <tr>
               <td>Encounter Provider :</td>
               <td>
                     <encounterProvider role="Provider"/>
               </td>
         </tr>
         <tr>
               <td>Encounter Date : </td>
               <td>
                     <encounterDate showTime="true" default="now"/>
               </td>
         </tr>
         <tr>
               <obsgroup groupingConceptId="1234">
                     <td>LEFT LOWER EXTREMITY Group :</td>
                     <td>
                           <obs conceptId="5089" labelText="Weight"/>
                           <obs conceptId="5090" labelText="Height"/>
                     </td>
               </obsgroup>
         </tr>
         <tr>
               <td>Red blood cell count</td>
               <td>
                     <obs conceptId="679" labelText="RBS"/>
               </td>
         </tr>
   </table>
   <submit/>
</htmlform>
            

...

  • View Registers  -- allows you to see the Registers Gutter tab at the top of the page.
  • Manage Registers -- wrapped around the API methods for retrieving/editing Register objects; Also required to see the Admin/Manage Registers link and to open all Register Management forms in the Admin section
  • View Register Entries -- wrapped around all the RegisterService methods for retrieving Encounters to display in a register;
  • Manage Register Entries -- wrapped around API call to delete an Encounter, Required to activate 'add/edit/delete' functionality in rendering of register
  • View Register Module Patient Dashboard Tabs -- needed to have tab render on patient dashboard for form specified in global property registersettings (formerly Global Properties from 1.8 downwards) register.showDashboardTabForHtmlForm

...

Starting in release version 1.2:  To have a register appear on the OpenMRS patient dashboard in its own tab containing the register entries for that patient, you just have to specify the formId or uuid of the register form (see Administration/Manage Forms to get the formID) in the global property registersettings (formerly Global Properties from 1.8 downwards) register.showDashboardTabForHtmlForm.  And, your users need to have the View Register Module Patient Dashboard Tabs privilege.

...