Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1945

Visit summary should display integer values when no decimals allowed

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

       

      On the visit summary there are values that are not integer even when the concepts are declared as numeric and "allow_decimal" if false for that concept:

      If the concept is numeric and has the allow_decimals to false, it should be an integer

      2. Steps to reproduce

      1) Create a new numeric concept without allowDecimals enabled

       

      2) Add a new HFE form definition

      Create a new HFE form :

      Form code, on this example we use concept 165174 that we just created.

      <htmlform>                <!-- Autogenerated example form  (template from 01-Nov-2010 -->                <macros>                               paperFormId = (Fill this in)                               headerColor =#009d8e                               fontOnHeaderColor = white                </macros>                 <style>                               .section {                                               border: 1px solid $headerColor;                                               padding: 2px;                                               text-align: left;                                               margin-bottom: 1em;                               }                               .sectionHeader {                                               background-color: $headerColor;                                               color: $fontOnHeaderColor;                                               display: block;                                               padding: 2px;                                               font-weight: bold;                               }                               table.baseline-aligned td {                                               vertical-align: baseline;                               }                </style>                 <span style="float:right">Paper Form ID: $paperFormId</span>                <h2>Integet Test Form (v1)</h2>                 <section headerLabel="1. Encounter Details">                               <table class="baseline-aligned">                                               <tr>                                                               <td>Date:</td>                                                               <td><encounterDate default="today"/></td>                                               </tr>                                               <tr>                                                               <td>Location:</td>                                                               <td><encounterLocation/></td>                                               </tr>                                               <tr>                                                               <td>Provider:</td>                                                               <td><encounterProvider/></td>                                               </tr>                               </table>                 </section>                          <div class="row">                          <h2 class="ml-3">Integer Test</h2>                        <div class="col-lg-4 requiredField">                            <obs conceptId="165174" style="text"/>                        </div>                    </div>                 <submit/> </htmlform>
      

       

      2) Add the form to the 'Visit Actions' menu:

      3) Generate data to trigger the bug

      Add an integer value.

       
      4) View the bug

      Click on "Show Details" and notice that the value has a ".0" associated.

       

        Gliffy Diagrams

          Attachments

          1. image-2021-07-06-13-58-58-964.png
            image-2021-07-06-13-58-58-964.png
            44 kB
          2. image-2021-07-27-11-56-37-213.png
            image-2021-07-27-11-56-37-213.png
            61 kB
          3. image-2021-07-27-11-57-24-843.png
            image-2021-07-27-11-57-24-843.png
            19 kB
          4. image-2021-07-27-11-59-29-024.png
            image-2021-07-27-11-59-29-024.png
            36 kB
          5. image-2021-07-27-12-01-53-677.png
            image-2021-07-27-12-01-53-677.png
            23 kB
          6. image-2021-07-27-12-02-34-126.png
            image-2021-07-27-12-02-34-126.png
            21 kB

            Activity

              People

              Assignee:
              jfigueiredo Joel Figueiredo
              Reporter:
              jfigueiredo Joel Figueiredo
              Designated Committer:
              Daniel Kayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: