FHIR Chat · EnableWhen issue · IG creation

Stream: IG creation

Topic: EnableWhen issue


view this post on Zulip Lloyd McKenzie (Dec 12 2021 at 22:56):

In the most recent version of SDC (depends on Grahame's uncommitted changes supporting implementing the example IG), there's an issue with the validator around enableWhen. QuestionnaireResponse-sdc-profile-example-loinc.xml complains "Item has answer, even though it is not enabled (item id = '74080-3/74078-7')". When I debug, it's failing on the 4th of the 4 enableWhen clauses. The logic isn't finding the 74080-3/74075-3 answer at all, even though it's clearly in the QuestionnaireResponse. (@Grahame Grieve)

view this post on Zulip Lloyd McKenzie (Dec 17 2021 at 16:34):

@Grahame Grieve, poke

view this post on Zulip Grahame Grieve (Dec 22 2021 at 01:22):

damn that's a hard questionnaire to work with.

view this post on Zulip Grahame Grieve (Dec 22 2021 at 01:22):

but I'm confused.

view this post on Zulip Grahame Grieve (Dec 22 2021 at 01:45):

item 74080-3/74078-7 is enabled when:

  • 74080-3/74072-0 != http://loinc.org#LA20315-0
  • 74080-3/74072-0 != http://loinc.org#LA4489-6
  • 74080-3/74076-1 != http://loinc.org#LA20337-4
  • 74080-3/74075-3 != http://loinc.org#LA20298-8
    and all must be true.

when I look in the questionnaire,

  • 74080-3/74072-0 = http://loinc.org#LA20275-6
  • 74080-3/74076-1 = http://loinc.org#LA20271-5
  • 74080-3/74075-3 = http://loinc.org#LA20278-0

view this post on Zulip Grahame Grieve (Dec 22 2021 at 01:45):

so it should be enabled.

view this post on Zulip Grahame Grieve (Dec 22 2021 at 01:50):

no. figured it out. But using opaque linkIds... that took twice as long as it should have


Last updated: Apr 12 2022 at 19:14 UTC