Skip to content

Support Returning Response Headers from FHIR Calls #181

@jtilles-xealth

Description

@jtilles-xealth

Expected Behavior

Caller able to access response headers returned by a FHIR Server (e.g. Location Header returned from a Create Call which received a 201 success response). Verified response headers are received from server when making call via Postman, but unable to access via FHIR-Kit-Client

Actual Behavior

Caller unable to access response headers using FHIR-Kit-Client library.

Steps to Reproduce the Problem

  1. Call FHIR Server with valid create call (i.e. Observation.Create)
  2. Verify 201 status code received
  3. Attempt to access response header for Location. Response headers are unexpectedly empty

Specifications

Source of issue appears to be in the following file from ~L172-177

const { status, headers } = response;

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