Skip to content

smart-classic/smart_sample_patients

Repository files navigation

SMART TEST DATA GENERATOR

This generator uses the data files in the 'data' directory to generate
SMArt RDF 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.  (The python code requires python 2.6 with argparse and
rdflib added via easy_install (on OSX 10.6); or just rdflib added on
Ubuntu 10.10.)

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 'generate.py' contains all 
the RDF formatting code. 

From the 'bin' directory, run:

   python generate.py --help

To get a general help message.

The RC4 test data files in the 'test-data' directory were generated by:

   python generate.py --write ../test-data 

And the 'summary.txt' file was added to 'test-data' by running:

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

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

   python generate.py --summary PID

Or to view the RDF for a given patient:

   python generate.py --rdf PID | less

About

Utilities to generate sample data as SMArt RDF

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages