Closed rathpanyowat closed 2 years ago
Hi @rathpanyowat. That's very interesting behavior -- but I don't think that SUSHI/FSH is doing it. I just tried this myself, and if you look at the file in fsh-generated
, you should see that it has "type": "choice"
. It's actually the IG Publisher that seems to be transforming it to something different (if you look at the definition in output
after running the IG Publisher).
Since this seems to be an issue w/ IG Publisher, you might consider filing a bug on https://github.com/HL7/fhir-ig-publisher and/or reporting it in the #IG creation stream on Zulip.
Ah.. I see. You're right. Mine is correct in the fsh-generated
folder as well. Thanks very much 🙏
When I tried to build the Questionnaire example with the type = #choice like this.
When I built it into fsh-generated, it became like this. The type was converted into "coding" and an extension was added.
I'm not sure if this intentional or not. But I saw the validator shows that this is an error and coding for Questionnaire type is unacceptable.