Stream: IG creation
Topic: error message that value is not in the ResourceType valueset
Diane (Mar 08 2022 at 20:50):
In our IG, Trifolia is giving an error about the launchContext extension. The error is:
Questionnaire.extension[0].extension[1].value.ofType(code) The value provided ('QuestionnaireResponse') is not in the value set 'ResourceType' (http://hl7.org/fhir/ValueSet/resource-types), and a code is required from this value set) (error message = Unknown Code http://hl7.org/fhir/resource-types# QuestionnaireResponse in http://hl7.org/fhir/resource-types)
The launchContext in our IG is:
{
"extension" : [ { "url" : "name", "valueCoding" : { "system" : "http://www.ourcodesystemhere.com", "code" : "parentFormData", "display" : "QR from the parent form" } }, { "url" : "type", "valueCode" : "QuestionnaireResponse" }, { "url" : "description", "valueString" : "description goes here" } ], "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext" }
How do we fix this? As far as I can tell, "QuestionnaireResponse" is a valid value in valueset http://hl7.org/fhir/ValueSet/resource-types
Lloyd McKenzie (Mar 08 2022 at 21:14):
That's pretty bizarre. Is there a Git repository I can test with?
Diane (Mar 08 2022 at 21:32):
We are building it for now only in Trifolia. You have access to everything in our Trifolia. I just checked the permissions. Our IG is at https://trifolia-fhir.lantanagroup.com/lantana_hapi_r4/hl7.fhir.us.sirb/implementation-guide
The error message is showing up in the IG for every one of our Questionnaires that uses the launchContext extension:
V2POPULATE-sirb-adverse-event-questionnaire
V2POPULATE-sirb-consent-questionnaire
V2POPULATE-sirb-continuing-review-questionnaire
V2POPULATE-sirb-determination-letter-questionnaire
V2POPULATE-sirb-nonmedicalevent-questionnaire
V2POPULATE-sirb-protocol-questionnaire
V2POPULATE-sirb-recruitment-materials-questionnaire
Lloyd McKenzie (Mar 09 2022 at 04:06):
You should be able to extract from Trifolia into Git. I can't debug from Trifolia.
Diane (Mar 09 2022 at 05:05):
Push the whole IG into Git?
Grahame Grieve (Mar 09 2022 at 05:10):
@Sean McIlvenna can advise but that's usually what happens. I thought there was documentation for this in trifolia?
Diane (Mar 11 2022 at 22:34):
This afternoon, we moved our Questionnaire json files into github. We didn't push our whole Trifolia build. We just exported the files and manually brought the Questionnaire json files into github. When the build ran on the github files, we didn't get the error message. So, I think the issue is in Trifolia and not with our files. Our specific problem is solved, but maybe someone should look at Trifolia to see why the launchContext extension is causing this error in case another IG wants to use the launchContext extension.
Elliot Silver (Mar 11 2022 at 22:38):
You might want to mention that on the #trifolia-on-fhir stream.
Diane (Mar 11 2022 at 22:42):
Thanks. Will do.
Last updated: Apr 12 2022 at 19:14 UTC