We're updating the issue view to help you get more done. 

Free-text phenotype categories are not saved/created

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

Environment

None

Status

Assignee

Andrew Misyura

Reporter

Andrew Misyura

Labels

External issue ID

None

External issue ID

None

Epic Link

Components

Fix versions

Priority

Medium