Tiro-health / FHIRkit

Toolkit for efficient and pythonic FHIR resource manipulation
MIT License
9 stars 0 forks source link

Pydantic v2 migration #3

Open wjn0 opened 1 month ago

wjn0 commented 1 month ago

Hi, I saw your blog post on migrating to Pydantic v2. I need this for my use case. I'm wondering if you've released the changes you mentioned in your blog post anywhere? Cheers!

axelv commented 1 month ago

Hi,

Good to hear there is some interest in Pydantic v2 FHRI models! Currently I have no time to implement this here. At the moment we are working on a v2 migration in our commercial product. Next step is to bring all the learnings to the fhir-py-types project and then store the generated models in this repository. This will mean a complete rewrite of this project. But I believe generating models instead of manually crafting them is the only sustainable way to do this.

I expect to have more results by the end of June. Any input or help is always welcome.

Cheers

wjn0 commented 1 month ago

Understood, thanks! For now, I think my use case is well-supported by the raw JSON schema alone, but Pydantic v2 support would be interesting as well. Will look forward to following this. Cheers and thanks for your work on this! Please feel free to close this if it's not helpful to leave the issue open.