FHIR Chat · Adding an extension to a Canonical in python · implementers

Stream: implementers

Topic: Adding an extension to a Canonical in python


view this post on Zulip Kristine S. Beckmann (Jan 19 2022 at 09:32):

Hello all,
I'm specifically wanting to add an extension to the questionnaire element in the QuestionnaireResponse resource. It is not possible to simply call the extension as I can with a domain resource. That is, I would want to do something like :
questionnaire_response = QuestionnaireResponse()
questionnaire_response.questionnaire.extension = [
{
"url": "http://hl7.org/fhir/StructureDefinition/display",
"valueString": "KOLS skjema"
}
]

But this is not possible as questionnaire (a Canonical) does not accept extension.
I'm using the fhirclient library.

Does anyone have some tips, or can point me to a better place to get help?
Best,
Kristine

view this post on Zulip René Spronk (Jan 19 2022 at 09:51):

You may have a better chance of getting your question answered on the #python stream on this forum..


Last updated: Apr 12 2022 at 19:14 UTC