This is currently under development
This project provides Python scripts to place orders with Invitae for eMERGE participants. This project is configured to primarily use information from a local REDCap instance, but also pulls some information from R4. Patient demographics are pulled from local REDCap. Baseline patient health history is pulled from local REDCap to answer AOE (Ask at Order Entry) questions regarding primary indication and patient symptoms. The MeTree JSON file is pulled from R4 to fill in family history of disease. A custom instrument in local REDCap is used to indicate when a participant is ready for order submission.
- Install python requirements:
pip install -r requirements.txt
- Enter REDCap and Redox configuration settings in
redox-api.config
- Enter the following static information into
redox/json_templates/new_order_template.json
:Meta.Destinations
(different destinations for dev/staging/prod environments in Redox)Meta.FacilityCode
Patient.Demographics.PhoneNumber
- use your site contact informationPatient.Demographics.Address
- use your site contact informationOrder.Provider
- Make other site-specific configuration changes, including, but not limited to:
- Create an ordering instrument in your local REDCap. For reference, a REDCap instrument file is included in
misc/redcap-instrument-redox-invitae.zip
. - In
redcap_invitae.py
, updateFIELD_RECORD_ID
to the name of the REDCap record ID field for your project
- Create an ordering instrument in your local REDCap. For reference, a REDCap instrument file is included in
- There are a few safety checkpoints in place during development to reduce the chance of sensitive data being transmitted:
- When
redox-api.config
hasDEVELOPMENT = True
, inbatch_order.py
:- Names of the REDCap projects will be printed, and the user will be prompted to continue
- Names of participants collected for order submission will be printed, and the user will be prompted to continue
- In
invitae.py
,SEND_REDOX
is set toFalse
by default and will prevent actual order submission. Order info will be printed to logs for verification. The code will behave as though orders were successfully submitted. SetSEND_REDOX
toTrue
to enable sending orders.
- When
python batch_order.py