Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client response body conversion to JSON #137

Open
freiden opened this issue Feb 3, 2021 · 0 comments
Open

Client response body conversion to JSON #137

freiden opened this issue Feb 3, 2021 · 0 comments

Comments

@freiden
Copy link

freiden commented Feb 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant