cdisc-org / ddf-core-poc

This repository will contain the results from the Proof of Concept project.
MIT License
0 stars 1 forks source link

Define rule DDF99976: The parameterMap attribute of SyntaxTemplateDictionary must be in the correct format. #149

Closed DianeWold closed 2 months ago

DianeWold commented 4 months ago

CHK0048: Referencing in syntax templates according to IG I.e., The "relationship" link from parameterMap attribute in SyntaxTemplateDictionary must be of the format <parameterName,ReferenceClassName(id=ReferenceClassId).ReferenceAttributeName | fixedValue> where

DianeWold commented 4 months ago

Should this check just look for format, i.e., ignore the actual text but look for the correct punctuation? E.g., check that you have sometext(id=someothertext).somethirdtext? One could also check that the particular class (the one with the id specified) and class attribute in "ReferenceClassName(id=ReferenceClassId).ReferenceAttributeName" exist in the StudyVersion, but I think that would be a separate check. A less stringent check would be that the class and class attribute are in the model, but I think that would also be a separate check.

DianeWold commented 4 months ago

There is an operator that checks a regular expression, but new capability would be needed to extract text from a regular expression and check the validity of the text. For this rule, it would

Note that there is an implied restriction on the attribute in the reference class that it can have at most one value. See https://jira.cdisc.org/browse/DDF-496

ASL-rmarshall commented 4 months ago

Removed redundant attributes from Citations and added Origin. No further issues. Review complete.