Git Product home page Git Product logo

sample-patients's Introduction

SMART on FHIR Test Data Generator

This generator uses the data files in the data directory to generate FHIR test data. The files in the data directory are tab-delimited tables that can be edited and extended with new data as needed.

All the Python scripts are in the bin directory, and should be run from that directory. This repository contains git submodules to handle 3-rd party sample data, make sure you checkout using the --recursive option.

The main script for general use is generate.py, the other files in bin are basically modules supporting generate.py. The file testdata.py contains most of the constant declarations and utility functions that drive the system configuration. The file fhir.py contains all the FHIR formatting code.

From the 'bin' directory, run:

python generate.py --help

To get a general help message.

To generate the test data files in the 'generated-data' directory:

python generate.py --write-fhir ../generated-data 

And a summary.txt file can be added to generated-data by running:

python generate.py --summary > ../generated-data/summary.txt

A good way to look at a single patient, with patient ID, PID, is:

python generate.py --summary PID

sample-patients's People

Contributors

arjunsanyal avatar francisantony avatar jmandel avatar p2 avatar steve1medix avatar thisisdhaas 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.