Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

answerOption.valueString from a questionnaire is answered as a Coding #93

Open
vadi2 opened this issue Apr 29, 2022 · 2 comments
Open

Comments

@vadi2
Copy link

vadi2 commented Apr 29, 2022

I've got a question which uses valueStrings (just as an example - don't do this in production):

{
  "linkId": "HeightUnit-01",
  "type": "choice",
  "text": "Please indicate what units of measurement (centimeters or inches) that you recorded your height in.",
  "answerOption": [
    {
      "valueString": "cm"
    },
    {
      "valueString": "inches"
    }
  ],
  "required": true
},

But LHCForms answers it with a Coding:

{
  "linkId": "HeightUnit-01",
  "text": "Please indicate what units of measurement (centimeters or inches) that you recorded your height in.",
  "answer": [
    {
      "valueCoding": {
        "display": "inches"
      }
    }
  ]
},

This makes the IG publisher somewhat unhappy and it considers this to be an error: Option list has no option values of type coding

@plynchnlm
Copy link
Member

Thank you for reporting this and especially for pointing out how it is impacting you. I was looking a the some of the code for that last week and noticing again that it was not quite right, but since fixing it will affect many parts of the code, I was reluctant to attempt the fix just then. However, your report helps to make this a priority. It might take us a few weeks to get a fixed version out, though.

@vadi2
Copy link
Author

vadi2 commented May 2, 2022

Thanks for looking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants