LHNCBC / formbuilder-lhcforms

Build LHC-Forms and FHIR Questionnaires
Other
28 stars 22 forks source link

`answerValueSet` with a canonical URL doesn't work #34

Open vadi2 opened 2 years ago

vadi2 commented 2 years ago

If I specify "answerValueSet": "<canonical URL>", and upload the valueset and questionnaire to the same FHIR server, the SDC Questionnaire App will render it fine (good) but neither the form builder nor beta version load the valueset (bad).

I'm aware there's an extension to explicitly specify the terminology server explicitly, but I just want to have a self-contained bundle of my questionnaire+terminology resources, no external dependency on a terminology server needed.

Sample bundle - Bundle-DebugBundleSACQPatientComorbidity.json.zip

plynchnlm commented 1 year ago

Sorry for the very delayed reply to this. It is been on our list to look at for a while, and we are just now getting to it. If you want a self-contained bundle, I think it is better to put the ValueSet under Questionnaire.contained. Otherwise, the Questionnaire will need to access a FHIR/terminology server to get the ValueSet. In the SDC Questionnaire App, it guesses that it should look for the ValueSet on the same server from which the Questionnaire was loaded. I suppose the form builder could make the same guess, if the Questionnaire was loaded from a FHIR server, which I think it usually is not, because I expect most users would load a Questionnaire from a file, or be starting from scratch.