Skip to content

plain/text responses are not support for OperationAsync #2924

Closed
@fonzmeister

Description

@fonzmeister

ℹ️ Do you want to ask something or start a discussion, then go here

ℹ️ Is your bug report about Firely Server Facade, please send an email to [email protected] or submit a bug report to Jira if you are a paying customer.

Describe the bug
The function ReadResourceFromMessage throws an exception whenever the response type is not a json/xml. However, for the $convert-data endpoint supported by fhir an plain/text is returned. Please refer to https://github.com/microsoft/fhir-server/blob/main/docs/ConvertDataOperation.md

Note the Content-Type is the response header is set to text/plain because the output format is determined by the mapping definition from your templates.

To Reproduce
Steps to reproduce the behavior:

  1. send a $convert-data request using FhirClient.OperationAsync
  2. See error: Image

Expected behavior
I would expect these return types to be supported since it is part of the fhir standard

Screenshots
If applicable, add screenshots to help explain your problem.

Version used:

  • FHIR Version: r4
  • Version: 5.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions