Slicing with Firely .NET SDK

99 views
Skip to first unread message

Lisa Andersen

unread,
Apr 13, 2021, 7:19:54 AM4/13/21
to FHIR DOTNET
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
ForgeObservationSlice.PNG

Lisa Andersen

unread,
Apr 23, 2021, 12:56:47 AM4/23/21
to FHIR DOTNET
For anyone interested, I asked on the dotnet stream on Zulip, where an answer was given.
Reply all
Reply to author
Forward
0 new messages