|
1 | | -<?xml version="1.0" ?> |
2 | | -<ODM xmlns="http://www.cdisc.org/ns/odm/v1.3" xmlns:def="http://www.cdisc.org/ns/def/v2.1" xmlns:rwdl="http://www.cdisc.org/ns/rwd-lineage/v1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cdisc.org/ns/odm/v1.3 https://www.cdisc.org/standards/odm/v1.3.2/ODM1-3-2.xsd" FileType="Snapshot" FileOID="Define.Example2" CreationDateTime="2026-03-19T00:00:00" AsOfDateTime="2026-03-19T00:00:00" Originator="CDISC RWD Lineage Project" SourceSystem="Example" SourceSystemVersion="1.0" def:Context="Submission"> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<ODM xmlns="http://www.cdisc.org/ns/odm/v1.3" |
| 3 | + xmlns:def="http://www.cdisc.org/ns/def/v2.1" |
| 4 | + xmlns:rwdl="http://www.cdisc.org/ns/rwdl/v1.0" |
| 5 | + xmlns:xlink="http://www.w3.org/1999/xlink" |
| 6 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 7 | + xsi:schemaLocation="http://www.cdisc.org/ns/odm/v1.3 https://www.cdisc.org/standards/odm/v1.3.2/ODM1-3-2.xsd" |
| 8 | + FileType="Snapshot" |
| 9 | + FileOID="Define.Example2" |
| 10 | + CreationDateTime="2026-03-19T00:00:00" |
| 11 | + AsOfDateTime="2026-03-19T00:00:00" |
| 12 | + Originator="CDISC RWD Lineage Project" |
| 13 | + SourceSystem="Example" |
| 14 | + SourceSystemVersion="1.0" |
| 15 | + def:Context="Submission"> |
| 16 | + |
3 | 17 | <Study OID="Study.Example2"> |
4 | 18 | <GlobalVariables> |
5 | 19 | <StudyName>RWD Lineage Example 2</StudyName> |
6 | 20 | <StudyDescription>Example 2: AE and LB domains with EHR lab source lineage</StudyDescription> |
7 | 21 | <ProtocolName>RWDL-EX2</ProtocolName> |
8 | 22 | </GlobalVariables> |
9 | 23 | <MetaDataVersion OID="MDV.Example2" Name="Example 2 Define-XML" def:DefineVersion="2.1.0"> |
| 24 | + |
10 | 25 | <def:Standards> |
11 | 26 | <def:Standard OID="STD.1" Name="SDTM" Version="1.9" Type="Tabulation" Status="Final"/> |
12 | 27 | </def:Standards> |
13 | | - <rwdl:lineage> |
14 | | - <rwdl:ref leafID="LF.RWDLINEAGE">rwd-lineage.xml</rwdl:ref> |
15 | | - </rwdl:lineage> |
16 | | - <ItemGroupDef OID="IG.AE" Name="AE" Repeating="Yes" IsReferenceData="No" SASDatasetName="AE" def:Structure="One record per subject per adverse event" def:StandardOID="STD.1" def:ArchiveLocationID="LF.AE"> |
| 28 | + |
| 29 | + <!-- MethodDef elements describing transformations referenced by rwd-lineage.xml --> |
| 30 | + <MethodDef OID="MT.LABVALPARSING" Name="Lab result value and unit parsing" Type="Computation"> |
| 31 | + <Description> |
| 32 | + <TranslatedText xml:lang="en">Parse the source lab result string, which contains a combined numeric value and unit (e.g., "0.35 µkat/L"), to extract the numeric result into LBORRES and the unit string into LBORRESU as separate target variables.</TranslatedText> |
| 33 | + </Description> |
| 34 | + </MethodDef> |
| 35 | + |
| 36 | + <MethodDef OID="MT.ELEVATEDLIVERENZYME" Name="Elevated liver enzyme adverse event derivation" Type="Computation"> |
| 37 | + <Description> |
| 38 | + <TranslatedText xml:lang="en">Evaluate standardized liver enzyme results (ALT, AST, ALP) against their reference range upper limits. When any result exceeds the upper limit of normal (LBNRIND = HIGH), derive an adverse event record for elevated liver enzymes in the AE domain using the lab test name, standardized result, and collection date.</TranslatedText> |
| 39 | + </Description> |
| 40 | + </MethodDef> |
| 41 | + |
| 42 | + <MethodDef OID="MT.UNITCONV" Name="Lab result unit conversion to standard units" Type="Computation"> |
| 43 | + <Description> |
| 44 | + <TranslatedText xml:lang="en">Convert the original lab result value from source units (µkat/L) to the submission standard units (U/L) by applying the appropriate conversion factor (1 µkat/L = 60.0 U/L). The converted numeric value is placed in LBSTRES and the standard unit string in LBSTRESU.</TranslatedText> |
| 45 | + </Description> |
| 46 | + </MethodDef> |
| 47 | + |
| 48 | + <!-- RWD Lineage reference: def:leaf declares the file; rwdl:LineageRef points to it --> |
| 49 | + <def:leaf ID="LF.RWDLINEAGE" xlink:href="rwd-lineage.xml"> |
| 50 | + <def:title>RWD Lineage Traceability</def:title> |
| 51 | + </def:leaf> |
| 52 | + <rwdl:LineageRef leafID="LF.RWDLINEAGE"/> |
| 53 | + |
| 54 | + <ItemGroupDef OID="IG.AE" Name="AE" Repeating="Yes" IsReferenceData="No" SASDatasetName="AE" |
| 55 | + def:Structure="One record per subject per adverse event" |
| 56 | + def:StandardOID="STD.1" def:ArchiveLocationID="LF.AE"> |
17 | 57 | <Description> |
18 | 58 | <TranslatedText>Adverse Events</TranslatedText> |
19 | 59 | </Description> |
|
28 | 68 | <ItemRef ItemOID="IT.AE.AEREL" Mandatory="No"/> |
29 | 69 | <ItemRef ItemOID="IT.AE.AESTDTC" Mandatory="No"/> |
30 | 70 | </ItemGroupDef> |
31 | | - <ItemGroupDef OID="IG.LB" Name="LB" Repeating="Yes" IsReferenceData="No" SASDatasetName="LB" def:Structure="One record per subject per lab test per visit" def:StandardOID="STD.1" def:ArchiveLocationID="LF.LB"> |
| 71 | + |
| 72 | + <ItemGroupDef OID="IG.LB" Name="LB" Repeating="Yes" IsReferenceData="No" SASDatasetName="LB" |
| 73 | + def:Structure="One record per subject per lab test per visit" |
| 74 | + def:StandardOID="STD.1" def:ArchiveLocationID="LF.LB"> |
32 | 75 | <Description> |
33 | 76 | <TranslatedText>Laboratory Test Results</TranslatedText> |
34 | 77 | </Description> |
|
47 | 90 | <ItemRef ItemOID="IT.LB.LBSTNRHI" Mandatory="No"/> |
48 | 91 | <ItemRef ItemOID="IT.LB.LBNRIND" Mandatory="No"/> |
49 | 92 | </ItemGroupDef> |
| 93 | + |
50 | 94 | <ItemDef OID="IT.AE.STUDYID" Name="STUDYID" DataType="text" Length="8"> |
51 | | - <Description> |
52 | | - <TranslatedText>Study Identifier</TranslatedText> |
53 | | - </Description> |
| 95 | + <Description><TranslatedText>Study Identifier</TranslatedText></Description> |
54 | 96 | </ItemDef> |
55 | 97 | <ItemDef OID="IT.AE.DOMAIN" Name="DOMAIN" DataType="text" Length="2"> |
56 | | - <Description> |
57 | | - <TranslatedText>Domain Abbreviation</TranslatedText> |
58 | | - </Description> |
| 98 | + <Description><TranslatedText>Domain Abbreviation</TranslatedText></Description> |
59 | 99 | </ItemDef> |
60 | 100 | <ItemDef OID="IT.AE.USUBJID" Name="USUBJID" DataType="text" Length="50"> |
61 | | - <Description> |
62 | | - <TranslatedText>Unique Subject Identifier</TranslatedText> |
63 | | - </Description> |
| 101 | + <Description><TranslatedText>Unique Subject Identifier</TranslatedText></Description> |
64 | 102 | </ItemDef> |
65 | 103 | <ItemDef OID="IT.AE.AESEQ" Name="AESEQ" DataType="integer" Length="8"> |
66 | | - <Description> |
67 | | - <TranslatedText>Sequence Number</TranslatedText> |
68 | | - </Description> |
| 104 | + <Description><TranslatedText>Sequence Number</TranslatedText></Description> |
69 | 105 | </ItemDef> |
70 | 106 | <ItemDef OID="IT.AE.AETERM" Name="AETERM" DataType="text" Length="200"> |
71 | | - <Description> |
72 | | - <TranslatedText>Reported Term for AE</TranslatedText> |
73 | | - </Description> |
| 107 | + <Description><TranslatedText>Reported Term for AE</TranslatedText></Description> |
74 | 108 | </ItemDef> |
75 | 109 | <ItemDef OID="IT.AE.AEDECOD" Name="AEDECOD" DataType="text" Length="200"> |
76 | | - <Description> |
77 | | - <TranslatedText>Dictionary-Derived Term</TranslatedText> |
78 | | - </Description> |
| 110 | + <Description><TranslatedText>Dictionary-Derived Term</TranslatedText></Description> |
79 | 111 | </ItemDef> |
80 | 112 | <ItemDef OID="IT.AE.AELLTCD" Name="AELLTCD" DataType="integer" Length="8"> |
81 | | - <Description> |
82 | | - <TranslatedText>Lowest Level Term Code</TranslatedText> |
83 | | - </Description> |
| 113 | + <Description><TranslatedText>Lowest Level Term Code</TranslatedText></Description> |
84 | 114 | </ItemDef> |
85 | 115 | <ItemDef OID="IT.AE.AESER" Name="AESER" DataType="text" Length="1"> |
86 | | - <Description> |
87 | | - <TranslatedText>Serious Event</TranslatedText> |
88 | | - </Description> |
| 116 | + <Description><TranslatedText>Serious Event</TranslatedText></Description> |
89 | 117 | </ItemDef> |
90 | 118 | <ItemDef OID="IT.AE.AEREL" Name="AEREL" DataType="text" Length="16"> |
91 | | - <Description> |
92 | | - <TranslatedText>Causality</TranslatedText> |
93 | | - </Description> |
| 119 | + <Description><TranslatedText>Causality</TranslatedText></Description> |
94 | 120 | </ItemDef> |
95 | 121 | <ItemDef OID="IT.AE.AESTDTC" Name="AESTDTC" DataType="text" Length="20"> |
96 | | - <Description> |
97 | | - <TranslatedText>Start Date/Time</TranslatedText> |
98 | | - </Description> |
| 122 | + <Description><TranslatedText>Start Date/Time</TranslatedText></Description> |
99 | 123 | </ItemDef> |
100 | 124 | <ItemDef OID="IT.LB.STUDYID" Name="STUDYID" DataType="text" Length="8"> |
101 | | - <Description> |
102 | | - <TranslatedText>Study Identifier</TranslatedText> |
103 | | - </Description> |
| 125 | + <Description><TranslatedText>Study Identifier</TranslatedText></Description> |
104 | 126 | </ItemDef> |
105 | 127 | <ItemDef OID="IT.LB.DOMAIN" Name="DOMAIN" DataType="text" Length="2"> |
106 | | - <Description> |
107 | | - <TranslatedText>Domain Abbreviation</TranslatedText> |
108 | | - </Description> |
| 128 | + <Description><TranslatedText>Domain Abbreviation</TranslatedText></Description> |
109 | 129 | </ItemDef> |
110 | 130 | <ItemDef OID="IT.LB.USUBJID" Name="USUBJID" DataType="text" Length="50"> |
111 | | - <Description> |
112 | | - <TranslatedText>Unique Subject Identifier</TranslatedText> |
113 | | - </Description> |
| 131 | + <Description><TranslatedText>Unique Subject Identifier</TranslatedText></Description> |
114 | 132 | </ItemDef> |
115 | 133 | <ItemDef OID="IT.LB.LBSEQ" Name="LBSEQ" DataType="integer" Length="8"> |
116 | | - <Description> |
117 | | - <TranslatedText>Sequence Number</TranslatedText> |
118 | | - </Description> |
| 134 | + <Description><TranslatedText>Sequence Number</TranslatedText></Description> |
119 | 135 | </ItemDef> |
120 | 136 | <ItemDef OID="IT.LB.LBTESTCD" Name="LBTESTCD" DataType="text" Length="8"> |
121 | | - <Description> |
122 | | - <TranslatedText>Lab Test Short Name</TranslatedText> |
123 | | - </Description> |
| 137 | + <Description><TranslatedText>Lab Test Short Name</TranslatedText></Description> |
124 | 138 | </ItemDef> |
125 | 139 | <ItemDef OID="IT.LB.LBTEST" Name="LBTEST" DataType="text" Length="40"> |
126 | | - <Description> |
127 | | - <TranslatedText>Lab Test Name</TranslatedText> |
128 | | - </Description> |
| 140 | + <Description><TranslatedText>Lab Test Name</TranslatedText></Description> |
129 | 141 | </ItemDef> |
130 | 142 | <ItemDef OID="IT.LB.LBDTC" Name="LBDTC" DataType="text" Length="20"> |
131 | | - <Description> |
132 | | - <TranslatedText>Date/Time of Specimen Collection</TranslatedText> |
133 | | - </Description> |
| 143 | + <Description><TranslatedText>Date/Time of Specimen Collection</TranslatedText></Description> |
134 | 144 | </ItemDef> |
135 | 145 | <ItemDef OID="IT.LB.LBORRES" Name="LBORRES" DataType="text" Length="200"> |
136 | | - <Description> |
137 | | - <TranslatedText>Result or Finding in Original Units</TranslatedText> |
138 | | - </Description> |
| 146 | + <Description><TranslatedText>Result or Finding in Original Units</TranslatedText></Description> |
139 | 147 | </ItemDef> |
140 | 148 | <ItemDef OID="IT.LB.LBORRESU" Name="LBORRESU" DataType="text" Length="40"> |
141 | | - <Description> |
142 | | - <TranslatedText>Original Units</TranslatedText> |
143 | | - </Description> |
| 149 | + <Description><TranslatedText>Original Units</TranslatedText></Description> |
144 | 150 | </ItemDef> |
145 | 151 | <ItemDef OID="IT.LB.LBSTRES" Name="LBSTRES" DataType="float" Length="8"> |
146 | | - <Description> |
147 | | - <TranslatedText>Numeric Result/Finding in Standard Units</TranslatedText> |
148 | | - </Description> |
| 152 | + <Description><TranslatedText>Numeric Result/Finding in Standard Units</TranslatedText></Description> |
149 | 153 | </ItemDef> |
150 | 154 | <ItemDef OID="IT.LB.LBSTRESU" Name="LBSTRESU" DataType="text" Length="40"> |
151 | | - <Description> |
152 | | - <TranslatedText>Standard Units</TranslatedText> |
153 | | - </Description> |
| 155 | + <Description><TranslatedText>Standard Units</TranslatedText></Description> |
154 | 156 | </ItemDef> |
155 | 157 | <ItemDef OID="IT.LB.LBSTNRLO" Name="LBSTNRLO" DataType="float" Length="8"> |
156 | | - <Description> |
157 | | - <TranslatedText>Reference Range Lower Limit</TranslatedText> |
158 | | - </Description> |
| 158 | + <Description><TranslatedText>Reference Range Lower Limit</TranslatedText></Description> |
159 | 159 | </ItemDef> |
160 | 160 | <ItemDef OID="IT.LB.LBSTNRHI" Name="LBSTNRHI" DataType="float" Length="8"> |
161 | | - <Description> |
162 | | - <TranslatedText>Reference Range Upper Limit</TranslatedText> |
163 | | - </Description> |
| 161 | + <Description><TranslatedText>Reference Range Upper Limit</TranslatedText></Description> |
164 | 162 | </ItemDef> |
165 | 163 | <ItemDef OID="IT.LB.LBNRIND" Name="LBNRIND" DataType="text" Length="10"> |
166 | | - <Description> |
167 | | - <TranslatedText>Reference Range Indicator</TranslatedText> |
168 | | - </Description> |
| 164 | + <Description><TranslatedText>Reference Range Indicator</TranslatedText></Description> |
169 | 165 | </ItemDef> |
| 166 | + |
170 | 167 | <def:leaf ID="LF.AE" xlink:href="https://github.com/cdisc-org/DataExchange-RWD-Lineage/blob/main/examples/example2/data/sdtm/AE.csv"> |
171 | 168 | <def:title>AE.xpt</def:title> |
172 | 169 | </def:leaf> |
|
176 | 173 | <def:leaf ID="LF.LABRESULTS" xlink:href="https://github.com/cdisc-org/DataExchange-RWD-Lineage/blob/main/examples/example2/data/source/LabResults.csv"> |
177 | 174 | <def:title>LabResults.csv</def:title> |
178 | 175 | </def:leaf> |
179 | | - <def:leaf ID="LF.RWDLINEAGE" xlink:href="rwd-lineage.xml"> |
180 | | - <def:title>rwd-lineage.xml</def:title> |
181 | | - </def:leaf> |
| 176 | + |
182 | 177 | </MetaDataVersion> |
183 | 178 | </Study> |
184 | 179 | </ODM> |
0 commit comments