You can use different datatype for the same external dictionary. The OD0080 check compares a datatype of variables with a datatype of referenced dictionary records. They should be the same. E.g.,
As I mentioned in my original message, I am doing as you recommended but this causes the same dictionary name to be presented twice in the “External Dictionary” section. Once with the datatype=text and the other with datatype=integer. codelist oid being aellt and aelltcd per your example.
I was able to fix the error based on your recommendation; sorry if my previous message caused any confusion.
The point i was trying to make is that with this solution, 2 external codelist oids are created which show up as 2 separate items in the “External Dictionaries” section under “Controlled Terms” section in the navigation pane on the left side and also in the display pane on the right side.
ISO-8601 is NOT a controlled terminology, it is controlled format!
So when you have an ItemDef with DataType “date”, “time” or “datetime”, you should NOT add a reference to an (external) codelist.
So, in your example, you must REMOVE the
Thanks for the answer! I greatly appreciate it! I am very knew to this topic in general, that’s why I am firing so many questions. So ISO 8601 is not a CT, however, ISO 3166 is a CT, correct? So I could add reference to the latter one.
I also get two external codelists if I do the example from you.But I would like to reference AELLT and AELLTCD to the same external codelist, so how do I get ONE codelist for several ItemDef OID’s?
Your solution omits the error message but at the Controlled Terminology (External Dictionaries) there are several MeDDRA outputs related to each different Reference Name. There are several of them (e.g. AELLT and AELLTCD). This means that you will not only have one external dictionary definition. Should each variable be shown at External Dictionaries?
Or should the error message OD0080 be omitted from the OpenCDISC validator?
I am referencing MedDRA as the external codelist for all coded variables in the AE domain. The dataype for Code Variables (eg. AELLTCD) is ‘integer’ where as for the term variables (eg. AELLT) the datatype is ‘text’ per Amendment 1 to SDTM IG 3.1.2. When referencing the same codelist for both datatype i get the error OD0080.
OD0080
ItemDef/CodeList ‘DataType’ mismatch
The ItemDef DataType should match the DataType of the referenced CodeList.
Consistency
Error
A work around to avoid this error results in 2 entries referencing the same dictionary name in the define.xml file, one named AEDICT_N for datatype=‘integer’ where the other named AEDICT_C for datatype=‘text’.