FHIR Chat · FHIR resource converter · python

Stream: python

Topic: FHIR resource converter


view this post on Zulip radon (Jun 17 2021 at 20:09):

Is there a way with which I can convert my tabular data(dataset,dataframe,csv or text) into FHIR format using python?
where single row represents one patient record.

view this post on Zulip Eric Haas (Jun 17 2021 at 21:54):

pandas + a fhir model like fhir.resources

view this post on Zulip Eric Haas (Jun 17 2021 at 22:39):

here is an example....I did a while back: https://github.com/Healthedata1/smart_pythonclient_example/blob/master/smart_python_client.ipynb

view this post on Zulip Eric Haas (Jun 17 2021 at 22:41):

I would update it to use fhir.resources and pandas for the csv or excel import.

view this post on Zulip radon (Jun 18 2021 at 05:11):

Eric Haas said:

pandas + a fhir model like fhir.resources

Thanks @Eric Haas appreciate your help so much :smile:

view this post on Zulip Ilya Beda (Jun 18 2021 at 14:17):

Hi, @radon
You also may use this set of tutorials https://github.com/Aidbox/jupyter-course

view this post on Zulip radon (Jun 18 2021 at 14:21):

Ilya Beda said:

Hi, radon
You also may use this set of tutorials https://github.com/Aidbox/jupyter-course

Thanks for the help @Ilya Beda I'll try both and measure the performance respectively :smile:

view this post on Zulip Eric Haas (Jul 06 2021 at 16:02):

here is a more recent example where I use a pandas based csv reader + fhir.resources based code to create a bunch of observations for a project I am working on...

view this post on Zulip Dwight Walker (Jul 09 2021 at 09:34):

neither of those links would load

view this post on Zulip Eric Haas (Jul 12 2021 at 17:26):

@Dwight Walker yeah I don't know why sometimes it take the the github page a couple of times to load the Jupyter file. Usually hitting the reload button with load it eventually. If it is still a problem, I can create markdown file to view.


Last updated: Apr 12 2022 at 19:14 UTC