Skip to content

Instantly share code, notes, and snippets.

@johngrimes
Created May 25, 2022 01:46
Show Gist options
  • Save johngrimes/f685484e01f422ffd20e42aa938c32db to your computer and use it in GitHub Desktop.
Save johngrimes/f685484e01f422ffd20e42aa938c32db to your computer and use it in GitHub Desktop.
Convert a FHIR ValueSet to CSV using JQ
jq -r ".expansion.contains[] | { system: .system, code: .code, display: .display } | map(values) | @csv" ~/Desktop/source.ValueSet.json >~/Desktop/target.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment