Non-DICOM import modules

Patient height and weight csv import module

This module enables a csv file to be parsed and the height and weight information extracted and added to existing studies in the OpenREM database. An example may be a csv extract from a RIS or EPR system.

There needs to be a common unique identifier for the exam - currently this is limited to accession number or study instance UID.

openrem.remapp.extractors.ptsizecsv2db.csv2db()

Import patient height and weight data from csv RIS exports. Called from openrem_ptsizecsv.py script

Parameters:

args – sys.argv from the command line call

Example:

openrem_ptsizecsv.py -s MyRISExport.csv StudyInstanceUID height weight
openrem.remapp.extractors.ptsizecsv2db.websizeimport(csv_pk=None)

Task to import patient size data from the OpenREM web interface.

Parameters:

csv_pk – Database index key for the import record, containing the path to the import csv file and the field header details.