Skip to content

Commit

Permalink
Update EntityDefinition.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
bradanton committed Oct 9, 2024
1 parent e96ba21 commit 30975e6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using org.ohdsi.cdm.framework.common.Builder;
using Force.DeepCloner;
using org.ohdsi.cdm.framework.common.Builder;
using org.ohdsi.cdm.framework.common.Extensions;
using org.ohdsi.cdm.framework.common.Lookups;
using org.ohdsi.cdm.framework.common.Omop;
Expand Down Expand Up @@ -165,8 +166,9 @@ public virtual IEnumerable<IEntity> GetConcepts(Concept concept, IDataRecord rea
{
foreach (var valueAsConceptId in lookupValue.ValueAsConceptIds)
{
entity.ValueAsConceptId = valueAsConceptId;
yield return entity;
var ent = entity.DeepClone();
ent.ValueAsConceptId = valueAsConceptId;
yield return ent;
}
}
}
Expand Down

0 comments on commit 30975e6

Please sign in to comment.