Stream: questionnaire
Topic: Date formatting in choiceColumn
Vadim Laletin (Nov 11 2021 at 11:50):
Hello!
I'm using answerExpression with choiceColumn extensions in my questionnaire.
According to http://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaire-choiceColumn.html, choiceColumn has 'path' attribute that shall be FHIRPath expression.
The extension answerExpression
contains x-fhir-query
expression for fetching, for example, Conditions.
And I need to display available options as Condition.name + ' ' + Condition.recordedDate
using choiceColumn extension. But Condition.recordedDate
is instant type - '2021-10-10T10:00:00Z' which isn't human-readable. FHIRPath does not provide any date time formatting utils, only arithmetic.
Any suggestions on how it can be converted into a local timezone and formatted as, for example, 10 October 2021, 14:00?
Brian Postlethwaite (Nov 11 2021 at 21:44):
That would be up to the renderer to do. As you note, it could have different representations on different devices.
Last updated: Apr 12 2022 at 19:14 UTC