Skip to main content

Dataset-XML to BFF

Mapping status

This table documents the experimental Dataset-XML v1.0 with Define-XML v2.x profile introduced for v0.34. The parser and mappings are regression-tested; independent study and generator coverage remains limited.

Dataset-XML is first resolved against Define-XML, then passed to the same SDTM semantic mapper used by Dataset-JSON. It creates one BFF individuals record per DM.USUBJID and can synthesize datasets and cohorts.

Transport Resolution​

Dataset-XML / Define-XML sourceNormalized contentBehavior
ClinicalData or ReferenceData StudyOID and MetaDataVersionOIDstudy metadata selectorMust resolve to exactly one Define-XML metadata version
ItemGroupData.ItemGroupOIDSDTM domainMust resolve to one Define-XML ItemGroupDef; one group is accepted per file
ordered ItemGroupDef.ItemRefdomain columnsSupplies column identity and order
referenced ItemDef.NameSDTM variable nameUsed as the normalized row key
referenced ItemDef.DataTypescalar typeInteger, decimal, float, double, and boolean values are coerced; other supported values remain strings
ItemDef.CodeListRef and decoded textsource terminology metadataSupplies the source display for controlled values
Alias Context="nci:ExtCodeID"NCIT identifierResolved by exact identifier lookup to obtain the canonical NCIT display
ItemGroupDataSeqsource row numberMust be present and unique within the file
ItemData.ItemOID and Valuerow valueUnknown or duplicate item identifiers fail; omitted ItemData means missing

Shared SDTM Semantics​

The field-level BFF mapping is shared with Dataset-JSON:

SDTM domainMain BFF target
DMid, sex, ethnicity, geographic origin, birth date, and vital status
MHdiseases
AEphenotypic features
LB, VSmeasures
CM, EXtreatments
PRinterventions or procedures
TSsynthesized dataset and cohort metadata

See Dataset-JSON to BFF for the detailed SDTM variable table. The difference is the transport and provenance boundary, not the semantic mapping.

Terminology And Provenance​

Mapped rows are retained under info.datasetXml.domains. Transport metadata includes datasetXMLVersion, defineXMLVersion, studyOID, metaDataVersionOID, and the Define reference when supplied. Unmapped subject domains are named in info.datasetXml.unmappedDomains.

Supported NCI identifiers from Define-XML take precedence over mapping-file queries and are always looked up exactly. An optional Mapping V2 file with source.profile: sdtm can supply direct terms or reviewed label queries for other term-bearing fields. When neither source metadata nor the mapping resolves a term, source-derived CDISC: identifiers preserve SDTM field/value identity without claiming an ontology crosswalk.

Use --term-audit to distinguish Define-XML identifiers, direct mapping terms, database matches, and source fallbacks. Use --no-source-info to omit the raw rows. See Terminology Search for the complete resolution contract.

Paired baseline and terminology references show that these outcomes are separate, tested code paths.

See the Dataset-XML guide for commands, required files, and memory behavior.