https://github.com/jmandel/fhir-view-to-array
https://github.com/jmandel/fhir-view-to-array
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jmandel/fhir-view-to-array
- Owner: jmandel
- Created: 2023-04-26T21:28:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-10T05:08:36.000Z (over 1 year ago)
- Last Synced: 2025-03-20T00:52:56.393Z (3 months ago)
- Language: HTML
- Homepage: https://joshuamandel.com/fhir-view-to-array/
- Size: 968 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fhir-view-to-array
Web demo at https://joshuamandel.com/fhir-view-to-array/
Or run CLI with Deno...
### Generate a CSV file
```sh
cat pt.ndjson | \
deno run --allow-read generate-table.ts \
--config patient-identifiers.json \
--stdin \
> contacts.csv
```Or pass a series of `--infile filename.ndjson` arguments to read from the filesystem.
### Generate a sqlite table
Add or replace a table in `analysis.db` (creating the file if necessary)
```sh
deno run --allow-read --allow-write generate-table.ts \
--config patient-identifiers.json \
--infile pt.ndjson \
--sqlite analysis.db
```Use `--append` flag to append to an existing table.