Replies: 2 comments 6 replies
-
It's an interesting question that pops up now and then (with codes, date times, decimals....). Whenever we have a design session for issues like this, we realize that the follow-up question is: if we allowed this data to pass validation and parsing, what should the value of the Quantity be? We're afraid that if we make this a setting, and, say, we set the data to You probably don't want to always allow incorrect data in datetimes or decimals, but maybe only in certain instances. What would you ideally like the SDK to do in this case? |
Beta Was this translation helpful? Give feedback.
-
I don't know if we should consider using something like this (and can't speak for the quality of this code either) |
Beta Was this translation helpful? Give feedback.
-
I don't think this is an actual bug, so I am mostly looking for guidance/ideas.
The following code fails:
with
System.FormatException: Invalid Json encountered. Details: Input string '6.5742407583884805e+84' is not a valid decimal.
which seems fair. However I am unsure what the best way to move forward is. The value comes from a source system and the resource is generated using custom Python code (using thefhir.resources
library). I am now trying to parse and process it further using a dotnet service and this library. In my particular case I am actually not interested in the value. Is it possible to skip some paths when deserializing?Beta Was this translation helpful? Give feedback.
All reactions