Hello
I've created an Observation profile in Forge, where I've sliced the note element (see attachment). This is to allow every slice to represent a different type of note with its own SNOMED-CT code. I'm a little unsure whether the discriminator is correct, however my actual challenge is implementing this in C# with Firely .NET SDK with FHIR version 4. I haven't been able to find any examples as to how I implement the slicing.
Normally I'd populate like this:
Observation obs = new Observation();
obs.Note = new List<Annotation>()
{
new Annotation()
{
Text = new Markdown("Note regarding patient's symptom")
}
};
However, this doesn't allow for slicing. Could anyone help me with a solution or linking to examples of slicing?
Thank you in advance,
Lisa