odmlib.dataset_1_0_1 module
- class odmlib.dataset_1_0_1.model.ItemData(**kwargs)[source]
Bases:
ODMElementA single data value for one item (variable) in a Dataset-XML document.
Each ItemData element holds the actual collected or derived value for one variable in a row of tabular clinical data.
- Parameters:
kwargs (Any)
- ItemOID
OID reference to the corresponding ItemDef in the associated ODM metadata.
- Type:
str, required
- Value
The actual data value for this item. May be omitted when the item has no value for this row.
- Type:
- ItemOID
Descriptor for OID reference attributes.
References the OID of a definition element. Used on reference elements (e.g.,
ItemRef.ItemOIDreferencesItemDef.OID).
- Value
Descriptor for string-valued ODM attributes.
- namespace = 'odm'
- class odmlib.dataset_1_0_1.model.ItemGroupData(**kwargs)[source]
Bases:
ODMElementOne row (record) of data within a Dataset-XML dataset.
Corresponds to a single observation row in a tabular dataset. Contains one ItemData child for every variable in that row that has a value. The
data:ItemGroupDataSeqattribute provides the row number for ordering records within the dataset.- Parameters:
kwargs (Any)
- ItemGroupOID
OID reference to the ItemGroupDef that describes the dataset structure.
- Type:
str, required
- ItemGroupDataSeq
Sequential row number for ordering records; stored in the
data:namespace.- Type:
int, required
- ItemGroupOID
Descriptor for OID reference attributes.
References the OID of a definition element. Used on reference elements (e.g.,
ItemRef.ItemOIDreferencesItemDef.OID).
- ItemGroupDataSeq
Descriptor for positive integer attributes (value > 0).
Combines integer type validation with positive value constraint. Used for Length, ItemGroupDataSeq, and similar attributes.
- ItemData
Descriptor for a list of child ODM elements.
Validates that all items assigned to the list are instances of the expected element class. Stored as a plain list in the instance.
- namespace = 'odm'
- class odmlib.dataset_1_0_1.model.ClinicalData(**kwargs)[source]
Bases:
ODMElementA container for subject-level (clinical) tabular data in a Dataset-XML file.
ClinicalData groups all ItemGroupData rows that belong to the same study and metadata version. It is used for SDTM/ADaM datasets containing actual subject observations.
- Parameters:
kwargs (Any)
- MetaDataVersionOID
OID reference to the MetaDataVersion that describes the dataset structure.
- Type:
str, required
- StudyOID
Descriptor for OID reference attributes.
References the OID of a definition element. Used on reference elements (e.g.,
ItemRef.ItemOIDreferencesItemDef.OID).
- MetaDataVersionOID
Descriptor for OID reference attributes.
References the OID of a definition element. Used on reference elements (e.g.,
ItemRef.ItemOIDreferencesItemDef.OID).
- ItemGroupData
Descriptor for a list of child ODM elements.
Validates that all items assigned to the list are instances of the expected element class. Stored as a plain list in the instance.
- namespace = 'odm'
- class odmlib.dataset_1_0_1.model.ReferenceData(**kwargs)[source]
Bases:
ODMElementA container for reference (non-subject) tabular data in a Dataset-XML file.
ReferenceData is used for datasets that contain study-level reference information rather than per-subject observations, such as trial design or arm/epoch lookup tables.
- Parameters:
kwargs (Any)
- MetaDataVersionOID
OID reference to the MetaDataVersion that describes the dataset structure.
- Type:
str, required
- StudyOID
Descriptor for OID reference attributes.
References the OID of a definition element. Used on reference elements (e.g.,
ItemRef.ItemOIDreferencesItemDef.OID).
- MetaDataVersionOID
Descriptor for OID reference attributes.
References the OID of a definition element. Used on reference elements (e.g.,
ItemRef.ItemOIDreferencesItemDef.OID).
- ItemGroupData
Descriptor for a list of child ODM elements.
Validates that all items assigned to the list are instances of the expected element class. Stored as a plain list in the instance.
- namespace = 'odm'
- class odmlib.dataset_1_0_1.model.ODM(**kwargs)[source]
Bases:
ODMElementThe root element of a Dataset-XML 1.0.1 document.
A Dataset-XML file carries tabular clinical or reference data for submission. It references ODM metadata via StudyOID and MetaDataVersionOID and uses namespace
http://www.cdisc.org/ns/Dataset-XML/v1.0(prefixdata:) for Dataset-XML-specific attributes such asItemGroupDataSeq.- Parameters:
kwargs (Any)
- DatasetXMLVersion
Version of the Dataset-XML standard; one of “1.0.0” or “1.0.1”.
- Type:
str, required
- ClinicalData
A single ClinicalData section.
- Description
Descriptor for string-valued ODM attributes.
- FileType
String descriptor that validates against a dynamically-loaded set of permitted values.
Combines string type validation with value set membership checking. Used for attributes like FileType, Repeating, Mandatory, DataType, etc.
- FileOID
Descriptor for OID (Object Identifier) attributes.
OIDs uniquely identify definition elements within a MetaDataVersion. Used on the
OIDattribute of *Def elements (e.g.,ItemDef.OID).
- CreationDateTime
Descriptor for ISO 8601 datetime strings.
Validates format:
YYYY-MM-DDTHH:MM:SS[.sss][Z|±HH:MM]Used for
CreationDateTime,AsOfDateTime, and similar attributes.
- PriorFileOID
Descriptor for OID reference attributes.
References the OID of a definition element. Used on reference elements (e.g.,
ItemRef.ItemOIDreferencesItemDef.OID).
- AsOfDateTime
Descriptor for ISO 8601 datetime strings.
Validates format:
YYYY-MM-DDTHH:MM:SS[.sss][Z|±HH:MM]Used for
CreationDateTime,AsOfDateTime, and similar attributes.
- ODMVersion
String descriptor that validates against a dynamically-loaded set of permitted values.
Combines string type validation with value set membership checking. Used for attributes like FileType, Repeating, Mandatory, DataType, etc.
- DatasetXMLVersion
Descriptor that validates against an explicit list of permitted values.
Unlike ValidValues, the allowed values are provided at class definition time in the
valid_valueslist argument.
- Originator
Descriptor for string-valued ODM attributes.
- SourceSystem
Descriptor for string-valued ODM attributes.
- SourceSystemVersion
Descriptor for string-valued ODM attributes.
- schemaLocation
Descriptor for string-valued ODM attributes.
- ReferenceData
Descriptor for a list of child ODM elements.
Validates that all items assigned to the list are instances of the expected element class. Stored as a plain list in the instance.
- ClinicalData
Descriptor for a single child ODM element.
Stores a reference to the element class and validates type on assignment. When accessed on an unset optional attribute, instantiates the element class with no arguments.
- namespace = 'odm'