FHIR Chat · SDC constraints · questionnaire

Stream: questionnaire

Topic: SDC constraints


view this post on Zulip Elliot Silver (Dec 13 2020 at 01:23):

I have a questionnaire claiming compliance with http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire, and am getting the following error in my IG QA:

sdc-1: An item cannot have an answerExpression if answerOption or answerValueSet is already present. [extension('http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression').empty().not implies (answerOption.empty() and answerValueSet.empty())]

This occurs for two items 2 and 3, but I have several other #choice items that use answerValueSet, so I don't know what the issue is.

Items 2 and 3 are:

* item[2].linkId  = "report_country"
* item[2].text    = "Reporting country:"
* item[2].code    = $LNC#77983-5
* item[2].type    = #choice
* item[2].answerValueSet    = "#WhoCrValueSetQuestionnaireCountry"

// skip item[2].item[0]...

* item[3].linkId  = "report_test_reason"
* item[3].text    = "Why tested for COVID-19:"
* item[3].code    = $LNC#67098-4 "Reason for test or procedure"
* item[3].repeats = true
* item[3].type    = #choice
* item[3].answerValueSet = "#WhoCrValueSetQuestionnaireReasonForTesting"

view this post on Zulip Lloyd McKenzie (Dec 13 2020 at 03:50):

@Bryn Rhodes Do we need .not() instead of .not?

view this post on Zulip Bryn Rhodes (Dec 13 2020 at 04:16):

Yes, not is a function so needs the parens

view this post on Zulip Elliot Silver (Dec 13 2020 at 04:18):

While you’re at it, the “already” is odd phrasing. Does that imply that switching the order would change things? I suggest dropping the word.

view this post on Zulip Lloyd McKenzie (Dec 13 2020 at 05:07):

Can you submit a technical correction to deal with both @Elliot Silver ?

view this post on Zulip Elliot Silver (Dec 13 2020 at 05:08):

Will do.


Last updated: Apr 12 2022 at 19:14 UTC