You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Questionnaire responses can have an answer of type integer, limited to 32 bits; or they can use valueDecimal for bigger numbers.
However, if the client doesn't put a decimal point, and instead sets valueDecimal to a number that won't fit into an int (e.g. 10000000000000000000), it gets parsed as a long, and the parser gives a validation error:
FHIRValidationError: {root}: group: question: answer: valueDecimal: Wrong type <type 'long'> for property "valueDecimal" on $lt;class 'fhirclient.models.questionnaireresponse.QuestionnaireResponseGroupQuestionAnswer'>, expecting <type 'float'>
Long values without decimal points should be accepted here (even if it means having to convert to a float).
The text was updated successfully, but these errors were encountered:
Questionnaire responses can have an answer of type integer, limited to 32 bits; or they can use valueDecimal for bigger numbers.
However, if the client doesn't put a decimal point, and instead sets valueDecimal to a number that won't fit into an int (e.g. 10000000000000000000), it gets parsed as a long, and the parser gives a validation error:
FHIRValidationError: {root}: group: question: answer: valueDecimal: Wrong type <type 'long'> for property "valueDecimal" on $lt;class 'fhirclient.models.questionnaireresponse.QuestionnaireResponseGroupQuestionAnswer'>, expecting <type 'float'>
Long values without decimal points should be accepted here (even if it means having to convert to a float).
The text was updated successfully, but these errors were encountered: