Skip to content

Regarding the storage of query parameter Code<T>. #551

@whyfate

Description

@whyfate

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>?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions