Uploaded image for project: 'PhenoTips'
  1. PhenoTips
  2. PT-2530

Free-text phenotype categories are not saved/created

    Details

      Description

      To reproduce:

      • Enter a custom term in any phenotype category on the patient page.
      • Save.

      Result:

      • Once the patient is loaded the free text appears in the "other" category
      • Behind the scenes a category object (of type PhenotypeCategoryClass) is not created

      Expected result:

      • Free-text terms appear under the same category after re-loading the patient
      • Behind the scenes a PhenotypeCategoryClass is created which should enable this

      ------

      Technical details:

      The code to create the categories is in

      https://github.com/phenotips/phenotips/blob/a6e23ddfd9dc553de01b345f582fe8381c38a40b/components/patient-data/impl/src/main/java/org/phenotips/data/internal/NonStandardFeatureCategoryUpdater.java

      That code expects the save HTTP request to have a

      PhenoTips.PatientClass_0_phenotype_CUSTOMTERM_category

      parameter.

      However the actual request has one or more parameters named
      PhenoTips.PatientClass_0_phenotype_suggestedCUSTOMTERM_category
      PhenoTips.PatientClass_0_phenotype_suggestedCUSTOMTERM_category

        Attachments

          Activity

            People

            • Assignee:
              asm Andriy Misyura
              Reporter:
              asm Andriy Misyura
              Reviewers:
              Marta Girdea
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: