Skip to content
jacobrousseau edited this page Sep 12, 2012 · 3 revisions

ODM Templates can be generated based on a study, using the TraITOCWS odm.sh command-line utility. The utility create a template that has the value attribute in each ItemData element set to "<VALUE>" and that contains annotations as to what the data type and the response type of those items are. Any ItemData element that has "<VALUE>" will be filtered out prior to sending the message to OpenClinica web services. Additionally, any SubjectData element having "<SUBJECT ID>" in the SubjectKey attribute is filtered out. A generated template may look like this. Mirth Connect allows for the mapping of arbitrary data elements to any of the fields in the ODM template XML.

TraITOCWS includes a utility to generate study-specific ODM templates. It can be run as follows:

./odm.sh --extract -b http://localhost:8081/OpenClinica-ws -u arjan -p 12345678 -s "Mirth at X"  

The syntax of the "extract" command is as follows.

usage: extract  
 -b,--base-url <URL>        OpenClinica base URL (i.e.  
                            https://www.example.org/OpenClinica-ws/)  
 -h,--help                  this help screen  
 -m,--meta                  get plain metadata (do not translate to  
                            template)  
 -p,--password <password>   OpenClinica password  

 -s,--study <study>         OpenClinica study name (or site unique
                            identifier)
 -u,--user <username>       OpenClinica username
 -v,--verbose               be (very) verbose

More information on odm.sh is available here.