FHIR Chat · launchContext This element is not allowed · questionnaire

Stream: questionnaire

Topic: launchContext This element is not allowed


view this post on Zulip Diane (Feb 17 2022 at 11:26):

Getting a validation error with the launchContext extension.

Path: Questionnaire.extension[0].extension[0].value.ofType(Coding) Message: This element is not allowed by the profile http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext

I think this means that there is a problem with the valueCoding portion of the 1st extension (in the launchContext extension), which is the name extension. Per the IG at https://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaire-launchContext.html, it seems like valueCoding is supposed the correct datatype for this name extension (inside the launchContext extension).

How do I fix this problem?

    "extension" : [
        {
            "extension" : [
                {
                    "url" : "name",
                    "valueCoding" : {
                        "system" : "http://hl7.org/fhir/us/sirb/CodeSystem/temporarycodes",
                        "code" : "parent",
                        "display" : "The parent QR for prepopulation"
                    }
                },
                {
                    "url" : "type",
                    "valueCode" : " QuestionnaireResponse"
                },
                {
                    "url" : "description",
                    "valueString" : "The parent questionnaire response that is to be used to pre-populate the form"
                }
            ],
            "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"
        }

]

view this post on Zulip Lloyd McKenzie (Feb 17 2022 at 14:07):

Launch context is only allowed at the root of the Questionnaire

view this post on Zulip Paul Lynch (Feb 17 2022 at 15:35):

The path looks to me like it is at the root. Can you make a sample Questionnaire to show the problem?

view this post on Zulip Diane (Feb 17 2022 at 16:59):

Here is the sample Questionnaire:

{
    "resourceType" : "Questionnaire",
    "id" : "sampleQ",
    "extension" : [
        {
            "extension" : [
                {
                    "url" : "name",
                    "valueCoding" : {
                        "system" : "http://hl7.org/fhir/us/sirb/CodeSystem/temporarycodes",
                        "code" : "parent",
                        "display" : "The parent QR for prepopulation"
                    }
                },
                {
                    "url" : "type",
                    "valueCode" : "QuestionnaireResponse"
                },
                {
                    "url" : "description",
                    "valueString" : "The parent questionnaire response that is to be used to pre-populate the form"
                }
            ],
            "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"
        }
    ],
    "url" : "http://www.example.com",
    "name" : "AE_Questionnaire",
    "status" : "draft",
    "subjectType" : [ "ResearchStudy" ],
    "item" : [
        {
            "linkId" : "mae1",
            "text" : "Research Study",
            "type" : "group",
            "required" : false,
            "item" : [
                {
                    "linkId" : "Q1",
                    "text" : "Study Title",
                    "type" : "string",
                    "required" : false
                }
            ]
        }
    ]
}

view this post on Zulip Paul Lynch (Feb 17 2022 at 17:13):

Hmm. Be aware the LHC-Forms still expects "name" have "valueId", though I see at https://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaire-launchContext.html it has changed to valueCoding. I will try to get an update out to handle that change. However, that is not to your point. It looks to me like your sample Questionnaire should validate. @Lloyd McKenzie ?

view this post on Zulip Lloyd McKenzie (Feb 17 2022 at 19:54):

What release of SDC are you validating against Diane?

view this post on Zulip Diane (Feb 17 2022 at 21:38):

I am using Trifolia. In the Raw tab, there is an IG file that has this json:

 "packageId": "hl7.fhir.us.sirb",
  "dependsOn": [
    {
      "id": "sdc",
      "uri": "http://hl7.org/fhir/uv/sdc/ImplementationGuide/sdc",
      "packageId": "hl7.fhir.uv.sdc",
      "version": "2.7.0"
    }
  ],

I can't find anywhere in Trifolia where I input this dependency. Is 2.7.0 correct?

view this post on Zulip Paul Lynch (Feb 17 2022 at 21:41):

http://hl7.org/fhir/uv/sdc/history.html says 2.7.0 is from 2019.

view this post on Zulip Diane (Feb 17 2022 at 21:46):

When I look at the balloted version of our IG at http://hl7.org/fhir/us/sirb/2021Sep/qa.html, it is also using 2.7.0 for the dependency.

view this post on Zulip Paul Lynch (Feb 17 2022 at 21:53):

It looks like 2.7.0 was the latest actual "version" until yesterday, when 3.0.0-preview was created. I don't know what to advise regarding your balloted IG. @Lloyd McKenzie ?

view this post on Zulip Diane (Feb 17 2022 at 22:00):

Well, we are balloted but not published yet. And I am trying to work through the QA issues and add our questionnaires that have the new launchContext extension. I will wait to see what Lloyd says.

view this post on Zulip Lloyd McKenzie (Feb 17 2022 at 23:38):

3.0.0-preview is what you should point to if you're going to ballot in May

view this post on Zulip Lloyd McKenzie (Feb 17 2022 at 23:39):

When you publish, you'll point to "3.0.0" - which should be out in a couple of weeks

view this post on Zulip Paul Lynch (Feb 17 2022 at 23:44):

Paul Lynch said:

Be aware the LHC-Forms still expects "name" have "valueId", though I see at https://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaire-launchContext.html it has changed to valueCoding.

Fixed in LHC-Forms 30.0.0-beta.7.


Last updated: Apr 12 2022 at 19:14 UTC