-
Notifications
You must be signed in to change notification settings - Fork 1
Description
@swhume I ran define_generator.py on the latest define.json I created and had some issues listed below:
-
def:ValueListRef are not created under ItemDef elements. This is most likely due to a recent update on define.json model where VLMs are now represented in "slices".
-
isReferenceData in define.json is a boolean value and needs to be converted to "Yes" or "No" in define.xml.
-
Class and SubClass elements in define.xml have no corresponding elements in define.json model. Jeremy is not in favor of adding those either. Those will need to be either extracted from CDISC Library for existing domains and a new method will likely be needed for sponsor defined domains.
I started looking at gaps and what's missing and realized it is probably best to add "placeholders" directly in the json file being generated rather than creating a new file to address the gaps with OIDs to merge back the updated information. I did that for 3 items: KeySequence at ItemGroup level where I added the attributes with a list value that contains "<>". I did the same for length and origin for variables where this information is missing. Length is set to null and the the origin type and source are set to "<>". That being said, having type with a value "<>" triggered an error as it is not a valid value (item.Origin.append(DEFINE.Origin(**attr))). I simply commented out this line of code in my branch for now.
Should I try on my end to default some Length value from variable's name? For example, --FL variables always 1, --DTC 19, etc?