Skip to content

Commit

Permalink
removed unnecessary settings parameter and renamed some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsmits committed Jul 20, 2020
1 parent fe0d1b6 commit 71bbea2
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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<ValueSet.ParameterComponent>();
if(settings.IncludeDesignations)
if(Settings.IncludeDesignations)
{
vs.Expansion.Parameter.Add(new ValueSet.ParameterComponent
{
Expand Down Expand Up @@ -297,17 +297,17 @@ internal static ValueSet.ContainsComponent ToContainsComponent(this CodeSystem.C
private static List<ValueSet.DesignationComponent> ToValueSetDesignations(this List<CodeSystem.DesignationComponent> csDesignations)
{
var vsDesignations = new List<ValueSet.DesignationComponent>();
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
};
}

Expand Down

0 comments on commit 71bbea2

Please sign in to comment.