Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5023

Obs value_text field doesn't accept more than 1000 characters even though its datatype text supports 65535

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Undetermined
    • Development:

      Description

      As part of the issue https://issues.openmrs.org/browse/TRUNK-4113, the ObsValidator allows only 1000 characters or less in Obs:value_text field. The code is here -> https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/validator/ObsValidator.java#L39. The datatype of value_text field is text and can take 65535 characters.

      In Bahmni, we use encounterService.saveEncounter(). Before OpenMRS upgrade to 2.0, this was never calling the ObsValidator. But now, our client implementations are seeing this problem. The forms in Bahmni are dynamically created by implementers and some of the form fields can take more than 1000 characters. This is a blocker issue.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                bharatak Bharat Akkinepalli
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: