Stream: mapping-framework
Topic: Insert current time with FHIR Mapping Language
Alexander Dimitrov (Mar 17 2021 at 17:37):
Hello everybody, I would like to know if it is possible to somehow insert the current date and time (from when the transformation is run) in an element with the FHIR Mapping Language. Thanks in advance!
Oliver Egger (Mar 17 2021 at 18:27):
in a FHIR Element? if you have a target as a bundle you can do the following:
qr -> bundle.timestamp = (now()) "assembling time";
Alexander Dimitrov (Mar 18 2021 at 14:43):
worked perfectly, thank you a lot @Oliver Egger !
Is there a place where such commands are documented? (I didnt find this information @ https://www.hl7.org/fhir/mapping-language.html)
Oliver Egger (Mar 18 2021 at 14:50):
FHIR Mapping Language can evaluate FHIRPath expressions what was used in this example and you find the documentation here: http://hl7.org/fhirpath/N1/
Alexander Dimitrov (Mar 18 2021 at 16:11):
very helpful, thanks again!
Last updated: Apr 12 2022 at 19:14 UTC