imi-ms / MoPat

Mobile Patient Survey (MoPat) is a Java based web application to create, distribute, complete and export medical questionnaires.
Apache License 2.0
8 stars 1 forks source link

Exporting ODM if codedValueType is null causes exception #40

Closed ywarnecke closed 4 months ago

ywarnecke commented 4 months ago

Exporting a questionnaire with a codedValueType = null (DROP_DOWN & BODY_PART) as ODM is not working. This is likely a regression, because the default case for the switch does not work, when the codedValueType is null.

Instead it should first be checked, whether the codedValueType is null.

ywarnecke commented 4 months ago

If codedValueType is null, STRING is returned if it is a question of type BODY_PART and INTEGER, if it is a DROP_DOWN question.