NIH-NCPI / ncpi-fhir-ig

🔥 NCPI FHIR Implementation Guide
https://nih-ncpi.github.io/ncpi-fhir-ig/
Creative Commons Zero v1.0 Universal
5 stars 2 forks source link

Dbgap ResearchStudy_Content extensions (experimental) #36

Closed bwalsh closed 2 years ago

bwalsh commented 3 years ago

This experimental/draft PR:

Discussion points, Next steps

Import existing FHIR Resources into FSH

This process is useful for importing FHIR resources that are not published i.e. not in simplifier.net

To retrieve and install the Extensions, in this case dbGAP.

# From the root directory:
# Make a work directory, retrieve source extensions
mkdir -p dbgap/input
wget https://dbgap-api.ncbi.nlm.nih.gov/fhir/x1/StructureDefinition?type=Extension -O dbgap/input/dbgap-extentions.search-bundle

# Parse the search bundle into separate resource files
python3 fhir/ncpi-fhir-ig/dbgap/bundle_writer.py 

# Run goFSH to reverse engineer the extensions
rm -rf dbgap/gofsh
fsh gofsh /src/dbgap --out /src/dbgap/gofsh

Manual steps:

Results

image

image

RobertJCarroll commented 3 years ago

Thanks for showing these! It looks like you have filtered to some of the content count ones- how hard is it to retrieve all of the extensions?

bwalsh commented 3 years ago

@RobertJCarroll Yes, I focused on the aggregations. It should not be hard to incorporate others of interest.

RobertJCarroll commented 2 years ago

Closing this PR to come up with a strategy in #55 .