Trouble parsing Observation.Effective & Observation.Value [PLEASE DELETE] #1720
Closed
chrisparkeronline
started this conversation in
General
Replies: 1 comment
-
Sorry for this question. I figured it out. I serialized the value from an API to the client using Json.NET. Changing to serializing using FhirJsonSerializer created a proper string that is converted on the client side by using FhirJsonParser.Parse. So please delete this question as it is no longer valid! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Please excuse me if this was previously discussed somewhere here that I have not seen yet. Using Json.NET, when I deserialize the json string I get the following error "Could not create an instance of type Hl7.Fhir.Model.DataType. Type is an interface or abstract class and cannot be instantiated. Path 'effective.value', line 98, position 12.".
Should I parse the json and find the effective or value properties to deserialize them separately using JObject.Parse or FhirJsonNode.Parse?
Some help from someone that has accomplished this before, is much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions