cqframework/cqf-tooling

Enhance decision table logic production in decision table processor

brynrhodes opened this issue · 0 comments

To better align the decision table logic with the data dictionary labels, add processing to the decision table that identifies data elements referenced in the decision logic and creates "renames" so that the decision table logic doesn't have to reference included library names. For example, ANC DT01 currently produces:

define "Should Proceed with ANC contact":
  ContactData."Danger signs" in Cx."Danger Signs - No danger signs Choices"  

Should produce

define "Danger signs" :  ContactData."Danger signs" 
define "Danger Signs - No danger signs Choices": 
  Cx."Danger Signs - No danger signs Choices"

That way the logic can be expressed as (i.e. without library prefixes):

define "Should Proceed with ANC contact":
  "Danger signs" in "Danger Signs - No danger signs Choices"