diff --git a/src/Hl7.Fhir.Specification/Specification/Terminology/ValueSetExpander.cs b/src/Hl7.Fhir.Specification/Specification/Terminology/ValueSetExpander.cs index 9c91450d41..a4b7f8e083 100644 --- a/src/Hl7.Fhir.Specification/Specification/Terminology/ValueSetExpander.cs +++ b/src/Hl7.Fhir.Specification/Specification/Terminology/ValueSetExpander.cs @@ -37,7 +37,7 @@ public void Expand(ValueSet source) // Note we are expanding the valueset in-place, so it's up to the caller to decide whether // to clone the valueset, depending on store and performance requirements. source.Expansion = ValueSet.ExpansionComponent.Create(); - setExpansionParameters(source, Settings); + setExpansionParameters(source); try { @@ -52,10 +52,10 @@ public void Expand(ValueSet source) } - private void setExpansionParameters(ValueSet vs, ValueSetExpanderSettings settings) + private void setExpansionParameters(ValueSet vs) { vs.Expansion.Parameter = new List(); - if(settings.IncludeDesignations) + if(Settings.IncludeDesignations) { vs.Expansion.Parameter.Add(new ValueSet.ParameterComponent { @@ -297,17 +297,17 @@ internal static ValueSet.ContainsComponent ToContainsComponent(this CodeSystem.C private static List ToValueSetDesignations(this List csDesignations) { var vsDesignations = new List(); - csDesignations.ForEach(d => vsDesignations.Add(d.ToVsDesignation())); + csDesignations.ForEach(d => vsDesignations.Add(d.ToValueSetDesignation())); return vsDesignations; } - private static ValueSet.DesignationComponent ToVsDesignation(this CodeSystem.DesignationComponent dsDesignation) + private static ValueSet.DesignationComponent ToValueSetDesignation(this CodeSystem.DesignationComponent csDesignation) { return new ValueSet.DesignationComponent { - Language = dsDesignation.Language, - Use = dsDesignation.Use, - Value = dsDesignation.Value + Language = csDesignation.Language, + Use = csDesignation.Use, + Value = csDesignation.Value }; }