Skip to content

Bind ViewDefinition operations to their own output format ValueSets #331

Description

@johngrimes

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions