STARIONGROUP/COMET-SDK-Community-Edition

AssociatedParameter of NestedParameter is not correct

justineatrhea opened this issue · 0 comments

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of the COMET-SDK
  • I have searched open and closed issues to ensure it has not already been reported

Description

NestedParameter.AssociatedParameter does not contain the correct ParameterOverride from the ElementUsage when it exists, but contains the Parameter from the ElementDefinition.

However NestedParameter.ValueSet has the correct ValueSet from the ParameterOverride.

Steps to Reproduce

  • create a ParameterOverride for an ElementUsage
  • generate NestedParameter for the option containing this ElementUsage

p.AssociatedParameter.GetType() : always a Parameter
var element2 = (INamedThing)p.AssociatedParameter.Container;
element.Name : Name of the ElementDefinition
p.AssociatedParameter.ValueSets.FirstOrDefault()?.ActualValue : ActualValue of the Parameter

var element = (INamedThing)p.Container;
element.Name : Name of the ElementUsage
p.ActualValue : ActualValue of the ParameterOverride

System Configuration

  • COMET version:
    • CDP4Common: 8.1.0
    • CDP4JsonSerializer:
    • CDP4Dal: 8.1.0
    • CDP4JsonFileDal:
    • CDP4ServicesDal: 8.1.0
    • CDP4WspDal:
    • Other:
  • Environment (Operating system, version and so on):
  • .NET Framework version:
  • Additional information: