ODM v2.0 can be serialized as either XML or JSON.
An XML file conforms to the ODM v2.0 standard only if it satisfies all the criteria detailed in this standard. These criteria include both syntactic constraints and semantic ones.
The syntactic constraints for ODM v2.0 XML files are:
The XML schema for Version 2.0 of the ODM can be found at https://github.com/cdisc-org/DataExchange-ODM. The final version of this specification will be posted at https://www.cdisc.org/standards/data-exchange/odm.
<?xml version="1.0" encoding="UTF-8"?> <ODM xmlns="http://www.cdisc.org/ns/odm/v2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ODMVersion="2.0" FileOID="000-00-0000" FileType="Transactional" Description="Sample ItemData Extension" AsOfDateTime="2022-06-04T07:57:00" CreationDateTime="2022-06-06T10:30:00"> |
The semantic constraints are expressed throughout the rest of this document.
The ODM Version 2.0 XML Schema file can be used with a validating XML parser to test that an ODM file is syntactically valid. To ensure semantic correctness, the use of an ODM-specific validation application is recommended.
The syntactic constraints for ODM v2.0 JSON files are:
{ "ODM": { "ODMVersion": "2.0", "FileOID": "000-00-0000", "FileType": "Transactional", "Description": "Sample ItemData Extension", "AsOfDateTime": "2022-06-04T07:57:00", "CreationDateTime": "2022-06-06T10:30:00", "Study": { "OID": "xxx", "StudyName": "NIH Chronic Low Back Pain example", "MetaDataVersion": { "OID": "yyy", ... } } } } |