FHIR Chat · help with fhirpath regex · IG creation

Stream: IG creation

Topic: help with fhirpath regex


view this post on Zulip Eric Haas (Mar 13 2019 at 20:55):

error on validation with fhirpath regex for MeasureReport.period invariant.

Problem processing expression start.matches(^([0-9]{4})(-)(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9])) and end.matches(^([0-9]{4})(-)(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12][0-9]))....
 Error in ?? at 1, 1: Found ^ expecting a token name

can anybody suggest the correct regex? all it does is limit to yyyy-mm-dd and works fine in xpath

  • I have not been able to successfully stand up a local fhirpath tool - Notepad++ used to work but not any more....

view this post on Zulip Lloyd McKenzie (Mar 13 2019 at 20:57):

Did you include your quotes?

view this post on Zulip Eric Haas (Mar 14 2019 at 00:22):

yes thanks all fixed :-)


Last updated: Apr 12 2022 at 19:14 UTC