The $viewdefinition-run and $viewdefinition-export operations currently bind their _format parameter to the shared OutputFormatCodes ValueSet, which includes all codes from the CodeSystem (including fhir).
The fhir format returns a FHIR Parameters resource and is currently only defined for $sqlquery-run. The ViewDefinition operations return Binary or bulk export files, and the spec does not define fhir format behaviour for them.
PR #327 introduced a dedicated SQLQueryRunOutputFormatCodes ValueSet for $sqlquery-run. The same approach should be applied to the ViewDefinition operations:
- Create a
ViewDefinitionRunOutputFormatCodes ValueSet containing csv, ndjson, parquet, and json.
- Create a
ViewDefinitionExportOutputFormatCodes ValueSet containing csv, ndjson, parquet, and json.
- Update the
_format parameter bindings in both operations to reference their respective ValueSets.
If support for a FHIR output format is added to either ViewDefinition operation in the future, the respective ValueSet can be updated as an independent change.
This was deferred from #327 as it affects operations outside that PR's scope.
The
$viewdefinition-runand$viewdefinition-exportoperations currently bind their_formatparameter to the sharedOutputFormatCodesValueSet, which includes all codes from the CodeSystem (includingfhir).The
fhirformat returns a FHIR Parameters resource and is currently only defined for$sqlquery-run. The ViewDefinition operations return Binary or bulk export files, and the spec does not definefhirformat behaviour for them.PR #327 introduced a dedicated
SQLQueryRunOutputFormatCodesValueSet for$sqlquery-run. The same approach should be applied to the ViewDefinition operations:ViewDefinitionRunOutputFormatCodesValueSet containingcsv,ndjson,parquet, andjson.ViewDefinitionExportOutputFormatCodesValueSet containingcsv,ndjson,parquet, andjson._formatparameter bindings in both operations to reference their respective ValueSets.If support for a FHIR output format is added to either ViewDefinition operation in the future, the respective ValueSet can be updated as an independent change.
This was deferred from #327 as it affects operations outside that PR's scope.