Closed krvital closed 1 month ago
There are no union types in C#.
One possible solution I am thinking about is using Element
type in property declaration
public class Patient : DomainResource, IResource
{
...
public Base.Element? Deceased { get; set; }
}
var patient = new Patient {
...
Deceased = new Base.Boolean(true)
}
done
Instead of using one of the fields like here
Use polymorphic field