FHIR Chat · General Syntax Notes · mapping-framework

Stream: mapping-framework

Topic: General Syntax Notes


view this post on Zulip Alexander Zautke (Oct 12 2019 at 12:45):

Looking at the “General Syntax Notes” section, there is the following sentence:

“To avoid parsing ambiguities however, they cannot start with a character, cannot be one of the keywords used in the language (see section Reserved Keywords below) [...]”

Was it meant to say “[...], they cannot start with a special character, [...]”?

view this post on Zulip Grahame Grieve (Oct 13 2019 at 03:16):

it's hard to figure out what 'cannot start with a character' leaves you...

view this post on Zulip Grahame Grieve (Oct 13 2019 at 03:16):

so yes

view this post on Zulip Alexander Zautke (Oct 13 2019 at 19:02):

Haha, true. Wouldn't it make sense to define it identical to a 'simple identifier' in FHIRPath? And if you would want more you can default to escaping it?

view this post on Zulip Alexander Zautke (Oct 13 2019 at 19:40):

By that we wouldn't need to explicitly exclude dashes and dots, and lift the 64 chars restriction. In the end the type of these targets in StructureMap will need change from id to string anyway to due a possible escaping, right? So we could harmonise both approaches and allow "_".

view this post on Zulip Grahame Grieve (Oct 14 2019 at 08:26):

I'm not sure. you want a simple identifier or not?

view this post on Zulip Alexander Zautke (Oct 14 2019 at 09:02):

In the end we need to allow complex / escaped identifiers here. The first issue here is that the FML syntax allows escaped / quoted identifiers, whereas StructureMap expects elements of type 'id' in these cases. If we resolve that issue by changing the type from id to string we could simplify the whole definition by saying that the default for these names are what would essentially be a simple identifier in FHIRPath instead of the current definition as ids. By that we would additionally allow "_" at the beginning, but dashes and dots wouldn't need to be excluded.

view this post on Zulip Grahame Grieve (Oct 14 2019 at 09:05):

alright, do you want to make a task for that?

view this post on Zulip Alexander Zautke (Dec 03 2019 at 20:17):

Sorry, almost forgot about it. See https://jira.hl7.org/browse/FHIR-25266


Last updated: Apr 12 2022 at 19:14 UTC