Stream: mapping-framework
Topic: How to initialize a dateTime value with actual datetime
Roeland Luykx (Nov 04 2021 at 14:28):
Hi all
how can i define in a map a rule to create an actual date value to set on a valueDateTime?
dateOp is not documented and not implemented.
is there something like today() or now()?
Oliver Egger (Nov 04 2021 at 16:28):
you can use a fhirpath expression and then you have now(), timeOfDay() and today() ... https://hl7.org/fhirpath/#current-date-and-time-functions
Roeland Luykx (Nov 05 2021 at 06:33):
@Oliver Egger is there an example? i need something like
"it -> observ.issued = create('dateTime') as dt, dt = today() "issued";"
Oliver Egger (Nov 05 2021 at 07:18):
@Roeland Luykx fhirpath expressions need to be wrapped in (), can you try the following:
it -> observ.issued = (today()) "issued";
Roeland Luykx (Nov 05 2021 at 07:38):
@Oliver Egger i see, i thought to complex... yes its working now... tnx
Last updated: Apr 12 2022 at 19:14 UTC