There is any reason why quantity data type transform 1.10 decimal into 1.1
Quantity ResValue = new Quantity(); ResValue.Value = DecValue; ResValue.System = Result.DataSource.Trim(); ResValue.Unit = Result.Unit.Trim(); myObser.Value = ResValue;
on the above snippet the DecValue is 1.10 and to be honest also within myObser.Value however on the displayed JSON the value is 1.1
what context is this? the DotNet FHIR reference implementation ?
Yes, however I think I found the problem; basically is JSON.NET that by default cut off 0 from doubles but there are workaround
So this is an example of the issue documented here: http://hl7.org/fhir/json.html#primitive ?
yes but for those who use JSON.NET this can be a workaround; again is not a FHIR problem but a JSON deserializer problem
`JsonSerializer serializer = new JsonSerializer
NullValueHandling = NullValueHandling.Ignore,
MissingMemberHandling = MissingMemberHandling.Ignore,
Formatting = Formatting.None,
DateFormatHandling = DateFormatHandling.IsoDateFormat,
FloatParseHandling = FloatParseHandling.Decimal,