https://github.com/cdcgov/fhirsheets
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.9%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: CDCgov
- License: mit
- Language: Python
- Default Branch: main
- Size: 803 KB
Statistics
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
FHIRSheets
FhirSheetsiIs a command-line tool that reads an Excel file in FHIR cohort format and generates FHIR bundle JSON files from it. Each row in the template Excel file is used to create an individual JSON file, outputting them to a specified folder.
Table of Contents
Features
- Reads an Excel file following the FHIR cohort import template.
- Converts each row in the Excel file to a FHIR bundle JSON file.
- Exports generated JSON files to a specified output folder.
Requirements
- Python 3.x
- Required Python packages (see
requirements.txt)
Installation
- Clone this repository: ```bash git clone https://github.com/CDCgov/synthetic-data.git cd fhir-python-cohort-generation
- Install the required packages: ```bash pip install -r requirements.txt ## Usage
Fill Out the Template:
- Open the template file
src/resources/Fhir_Cohort_Import_Template.xlsx. - Fill out each row with the relevant data.
- Open the template file
Run the Tool:
- Use the
python -m src.cli.fhirsheetsmodule script with the required arguments:--input-file: The path to the input Excel file.--output-folder: The path to the output folder where the JSON files will be saved.
- Use the
```bash python fhirsheets.py --input src/resources/FhirCohortImport_Template.xlsx --output /path/to/output/folder 3. The tool will generate one FHIR bundle JSON file for each row defined in the template.
Example
bash
python fhirsheets.py --input src/resources/Fhir_Cohort_Import_Template.xlsx --output ./output_bundles
In this example, each row in the `Fhir_Cohort_Import_Template.xlsx` file will be processed, and a corresponding JSON file will be generated in the `output_bundles` folder.
License
This project is licensed under the MIT License. See the LICENSE file for more information.
Owner
- Name: Centers for Disease Control and Prevention
- Login: CDCgov
- Kind: organization
- Email: data@cdc.gov
- Location: Atlanta, GA
- Website: http://open.cdc.gov/
- Twitter: CDCgov
- Repositories: 114
- Profile: https://github.com/CDCgov
CDC's collaborative software projects to protect America from health, safety, and security threats, both foreign and in the U.S.
GitHub Events
Total
- Push event: 4
- Fork event: 3
Last Year
- Push event: 4
- Fork event: 3