Stream: python
Topic: FHIR resource converter
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.
Eric Haas (Jun 17 2021 at 21:54):
pandas + a fhir model like fhir.resources
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
Eric Haas (Jun 17 2021 at 22:41):
I would update it to use fhir.resources and pandas for the csv or excel import.
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:
Ilya Beda (Jun 18 2021 at 14:17):
Hi, @radon
You also may use this set of tutorials https://github.com/Aidbox/jupyter-course
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:
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...
Dwight Walker (Jul 09 2021 at 09:34):
neither of those links would load
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