|
private List<Expression> ToExpressions(Code element) |
|
{ |
|
return element != null ? ListOf(new StringValue(element.Value)) : null; |
|
} |
|
private List<Expression> ToExpressions<T>(Code<T> element) where T : struct, Enum |
|
{ |
|
if (element != null && element.Value.HasValue) |
|
{ |
|
var values = new List<IndexValue> |
|
{ |
|
new IndexValue("code", new StringValue(_fhirModel.GetLiteralForEnum((element.Value.Value as Enum)))) |
|
}; |
|
|
|
return ListOf(new CompositeValue(values)); |
|
} |
|
|
|
return null; |
|
} |
Why is the storage design different between
Code and
Code<T>?
spark/src/Spark.Engine/Search/ElementIndexer.cs
Lines 476 to 479 in d9889ad
spark/src/Spark.Engine/Search/ElementIndexer.cs
Lines 494 to 507 in d9889ad
Why is the storage design different between
CodeandCode<T>?