Skip to content

NIH-NCPI/ncpi-fhir-shiny-browser

Repository files navigation

ncpi-fhir-shiny-browser

Overview

This repository includes some example R Shiny applications and supporting functions that allow browsing and parsing FHIR objects.

app-multi-panel.R

This application has a workflow with multiple tabs to connect to a server (currently supporting the NCPI Development Server), browse Research Studies and Participants, view DRS information associated with that participant, and view clinical data about a participant to query the Monarch disease API.

Monarch API examples

These are simple Shiny applications that extract phenotypic features from a FHIR server and request potential disease matches from the Monarch API. There are several versions demonstrating a couple of authentication types.

app-cookie

This workflow can be used with the 2020 Kids First development server. It requires a cookie from an out of band login.

app-googleauthr

This workflow uses Google's OAuth2.0 implementation and the googleAuthR pacakge to generate credentials and interact with a GCP FHIR store. One will need to create an OAuth 2.0 Client ID here: https://console.developers.google.com/apis/credentials of type "Web application". I had success with JavaScript origins and redirect URIs of:

I'm not sure that both are necessary. After creating it, hit the download button on the credentials page for the new web app, and then move it to the Shiny app directory as "web_secret.json". On startup, it will run you through the a Google OAuth flow. In theory, it will retry failures and attempt to refresh the bearer token, but it may fail nonetheless.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages