Code Monkey home page Code Monkey logo

fhirutils's Introduction

fhirutils

A package that provides functionality for FHIR (Fast Healthcare Interoperability Resources)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Caution: This project is still under development and not yet deployed for a live system. Usage in a real life situation is not recommended!

Prerequisites

Following prerequisites have to be met:

  • Python version 3 or newer
  • Pandas version 1.05 or newer
pip install pandas

Installing

Navigate to your preferred destination folder and clone the repository:

git clone https://github.com/JuBrandes/fhirutils/

Features

The features will constantly grow during development. New features will be described here. For using the features you can either import the project into your namespace or you can use the py-files directly. The latter method is described below.

Download a patient's record to a FHIR bundle

The Loader class in fhirutils/loader.py provides a functionality of downloading a patient's record if the encounter id is known. Open fhirutils/loader.py and scroll to the file's end. Here you can set the required parameters. Most parameters are predefined for a test run. Manually to be set is the save path where the downloaded bundle is to be saved. Maybe you have to add a profile in config.json to meet the resources' references between each other, but at first you can give it a try with the predefined "KDS" profile.

Get an item from a FHIR resource by a json pathway

The Utils class in fhirutils/utils.py provides a method get() that accesses one or more values in a FHIR resource by giving the path that identifies the value of interest. A path example for a FHIR bundle:

entry.X.resource.id

X means: This element is a list, browse every entry in this list. If you are interested in only one entry you can type e.g. for the first entry:

entry.0.resource.id

The depth of the given path is variable. For example you can get every resource from a bundle with this path:

entry.X.resource

As above: open fhirutils/utils.py and scroll to the file's end. All parameters are set for a test run.

fhirutils's People

Contributors

culpinnis avatar jubrandes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.