Skip to content

Client response body conversion to JSON #137

@freiden

Description

@freiden

Hello,
My issue is more a question than a bug. I want to extend some behaviors of this gem and I stumbled into the implementation of the conversion of the client response body to JSON and I would like to understand this part line 18:

klass = Module.const_get("FHIR::#{resource_type}")

Why not pass to the #from_json method the klass objects from the callers and eventually fallback on retrieving it from the resource_type?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions