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

Question - Any thoughts on using pydantic for models? #143

Open
virajkanwade opened this issue Oct 11, 2023 · 3 comments
Open

Question - Any thoughts on using pydantic for models? #143

virajkanwade opened this issue Oct 11, 2023 · 3 comments
Labels

Comments

@virajkanwade
Copy link

https://docs.pydantic.dev/latest/why/

@mikix mikix added the question label Jul 16, 2024
@mikix
Copy link
Contributor

mikix commented Jul 16, 2024

Can you expand on your thinking here? Are you thinking about performance, correctness, or something else?

Or put another way: what's the problem that you're experiencing now, that pydantic would help solve?

@virajkanwade
Copy link
Author

Hi @mikix I was thinking along the lines of performance.
Pydantic 2 core is written in rust. So the validations are very fast compared to something written purely in Python.

@weishuhn
Copy link

@mikix As someone who is new to FHIR, I would also like this. For me it is more about speed of development and confidence in the code I write. It's nice to have the type checker telling me where I've made a wrong assumption about the structure of a resource and I also use it to explore the different properties on a resource without having to bounce back and forth between the code and the FHIR website.

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

No branches or pull requests

3 participants