HTML Form Entry Module
  1. HTML Form Entry Module
  2. HTML-92

Handle checkbox style (multiple select) in single obs element

    Details

    • Complexity:
      Medium

      Description

      It will save time and allow for more flexibility if we could represent:

      <obs conceptId="1069" answerConceptId="664" answerLabel="No Complaints" style="checkbox" />
      <obs conceptId="1069" answerConceptId="832" answerLabel="Weight Loss" style="checkbox" />
      <obs conceptId="1069" answerConceptId="6029" answerLabel="Night Sweats" style="checkbox" />
      <obs conceptId="1069" answerConceptId="5949" answerLabel="Fatigue" style="checkbox" />
      <obs conceptId="1069" answerConceptId="5945" answerLabel="Fevers" style="checkbox" />
      <obs conceptId="1069" answerConceptId="871" answerLabel="Chills" style="checkbox" />
      

      with:

      <obs conceptId="1069" answerConceptIds="664,832,6029,5949,5945,871" answerLabels="No Complaints,Weight Loss,Night Sweats,Fatigue,Fevers,Chills" style="checkbox" />
      

      Also, it should allow form designers to specify allow only one answer (i.e. radio button)or up to n answers (i.e. tick multiple answers). This will help with data quality tremendously.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            Mark Goodrich added a comment -

            @Ada--Great... I will try to do it sooner rather than later since it isn't hard to do and we don't have any specific release schedule planned...

            Show
            Mark Goodrich added a comment - @Ada--Great... I will try to do it sooner rather than later since it isn't hard to do and we don't have any specific release schedule planned...
            Hide
            Ada Yeung added a comment -

            @Mark, sounds good. Thanks again!

            Show
            Ada Yeung added a comment - @Mark, sounds good. Thanks again!
            Hide
            Mark Goodrich added a comment -

            @Ada--I just did the 2.0.2 release and put it up in the module repo...

            Show
            Mark Goodrich added a comment - @Ada--I just did the 2.0.2 release and put it up in the module repo...
            Hide
            Ada Yeung added a comment -

            Awesome! Thanks, Mark! I will play around with the new release.

            Show
            Ada Yeung added a comment - Awesome! Thanks, Mark! I will play around with the new release.
            Hide
            Ada Yeung added a comment -

            Adding more info about the example code, please reference to <repeat with=""> at

            https://wiki.openmrs.org/display/docs/HTML+Form+Entry+Module+HTML+Reference#HTMLFormEntryModuleHTMLReference-%3Crepeatwith%3D%22%22%3E

            example code:
            <repeat with="['664','No Complaints'],['832','Weight Loss'],['777','Nausea']">
            <obs conceptId="1069" answerConceptId="

            {0}

            " answerLabel="

            {1}

            " style="checkbox" /><br/>
            </repeat>

            Show
            Ada Yeung added a comment - Adding more info about the example code, please reference to <repeat with=""> at https://wiki.openmrs.org/display/docs/HTML+Form+Entry+Module+HTML+Reference#HTMLFormEntryModuleHTMLReference-%3Crepeatwith%3D%22%22%3E example code: <repeat with=" ['664','No Complaints'] , ['832','Weight Loss'] , ['777','Nausea'] "> <obs conceptId="1069" answerConceptId=" {0} " answerLabel=" {1} " style="checkbox" /><br/> </repeat>

              People

              • Assignee:
                Ishara Premadasa
                Reporter:
                Jeremy Keiper
              • Votes:
                4 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development