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

Parser warning during search #98

Open
rdingwell opened this issue Jul 12, 2018 · 1 comment
Open

Parser warning during search #98

rdingwell opened this issue Jul 12, 2018 · 1 comment

Comments

@rdingwell
Copy link
Contributor

When performing a search I see a warning along these lines:
WARN -- : Expected FHIR::Observation but got FHIR::Bundle

Tracing this back to the search method in the Sections module it looks like the client tries assert that the response is of the type being searched against. This doesn't seem to make sense as a search response is going to be a bundle, thus the warning message. Is there a reason for this or should it be refactored?

def search(klass, options = {}, format = @default_format)

@jawalonoski
Copy link
Member

This could probably be fixed by passing versioned_resource_class('Bundle') into the parse_reply method instead of the klass parameter.

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

2 participants