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

Request responses should parse internal dicts into Resource instances #79

Open
samamorgan opened this issue Sep 6, 2023 · 0 comments
Open

Comments

@samamorgan
Copy link
Collaborator

samamorgan commented Sep 6, 2023

The JSON structure of many responses include additional objects that this library isn't fully parsing, creating a slightly awkward situation where we're using both dot notation and dict key lookups.

# Pseudo-code
encounter = Patient().Encounter().get()

status = encounter.jsonBody["status"]
status = encounter.jsonBody.status  # AttributeError

The response parser should also attempt to resolve nested dict and list into Collection and Resource

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