Stream: implementers
Topic: FHIR Spec as CSV
Eric Pan (Jul 26 2020 at 18:34):
Hey all -- I wrote a simple web-scraper to get the FHIR spec into a single csv for a school project and wanted to see if it'd help anyone else out. It only includes Resources and isn't as comprehensive as the webpages, though I think it's useful for a quick overview and quick filtering
Here's the Github repo with csv files: https://github.com/ericpan64/fhir-spec-as-csv
Here's a Google Drive Spreadsheet with some extra formatting: https://docs.google.com/spreadsheets/d/1UvllrIFaPJLsM5I9lvm03DQiSxLQOxO3Ma2Jg_KT7eI/edit?usp=sharing
Please open an issue in Github / leave a GDrive comment if there are issues and I can work on the fix. Thanks!
Lloyd McKenzie (Jul 26 2020 at 20:38):
Rather than scraping the web pages (which are subject to revision as we come up with 'nicer' ways to expose the resources), you might be better off driving from the StructureDefinitions, which are now normative and therefore much less subject to change...
Eric Pan (Jul 26 2020 at 23:10):
Ah interesting, is StructureDefinition the base structure for all resources, or is it understood as its own resource?
Lloyd McKenzie (Jul 27 2020 at 00:55):
StructureDefinition is a resource. There are StructureDefinition instances for all resources (and all data types). Look at http://hl7.org/fhir/profiles-resources.json or http://hl7.org/fhir/profiles-resources.xml
Eric Haas (Jul 27 2020 at 16:05):
also all the resources already have spreadsheet view which is retrievable at the bottom of each resource tree view:
Eric Pan (Jul 28 2020 at 22:56):
Eric Haas said:
also all the resources already have spreadsheet view which is retrievable at the bottom of each resource tree view:
Thanks! Just to close the loop and make sure I'm not going crazy, where exactly is this link in the html? E.g. for https://www.hl7.org/fhir/patient.html I couldn't find the "spreadsheet version" link
Lloyd McKenzie (Jul 29 2020 at 02:56):
Eric was pointing to a link that exists for profiles in implementation guide. It's not currently part of our publication for the core spec. (Though if you submit a change request, it's something we might be able to do for R5.)
Eric Haas (Jul 29 2020 at 05:05):
actually that is in the current build for FHIR. is not there if for R4.
Eric Haas (Jul 29 2020 at 05:06):
http://build.fhir.org/patient.html
Lloyd McKenzie (Jul 29 2020 at 14:17):
Don't understand why my eyes didn't see it when I looked yesterday :( I stand corrected
Eric Pan (Jul 30 2020 at 17:29):
Thanks guys that makes sense! Appreciate the help
Last updated: Apr 12 2022 at 19:14 UTC