You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm working with python and I've been trying to figure out if there's a way to make print_fhir_to_json_string_for_analytics export nested extension fields to their own fields. (Currently just creates a list and adds just the extension URLs inside)
I thought that If I created a custom profile and defined my extensions there it would work but it still doesn't.
The text was updated successfully, but these errors were encountered:
Hi Alex - Your understanding is totally correct about the relationship between extensions in analytics and profiles, and I'm glad to hear that you were able to create a custom profile.
There is one final piece to the puzzle, and that is to take data in Unprofiled FHIR and convert it into your new profile prior to printing. Unfortunately, the profile conversion API only exists in C++ right now. Really sorry about that - it's high on our priority list to implement it in python but I'm not confident enough to give an estimate of when right now. Is doing this in C++ an option for you? if so, take a look at the ConvertToProfileR4 api, with an Example usage that converts to the UsCore profile.
Once you have the data in a profiled proto, you can print for analytics, and any profiled extensions will show up as you expect them to.
Oh ok, thank you @nickgeorge it's great to hear that it's on your plan to implement that. Unfortunately, I don't have the option to use c++ right now.
I've implemented my own custom function to transform FHIR objects to analytics before I found out about the custom profiles and how they work so I think I'm going to stick with that for now.
Thanks a lot for the quick response, looking forward for the implementation! 🙏🙏🙏
Hello, I'm working with python and I've been trying to figure out if there's a way to make
print_fhir_to_json_string_for_analytics
export nested extension fields to their own fields. (Currently just creates a list and adds just the extension URLs inside)I thought that If I created a custom profile and defined my extensions there it would work but it still doesn't.
The text was updated successfully, but these errors were encountered: