Accept legacy double-quoted map name in FML grammar#85
Conversation
Agent-Logs-Url: https://github.com/brianpos/fhirpath-lab/sessions/1045b4a0-9cc2-4933-9afa-507bfe3b4695 Co-authored-by: brianpos <1557083+brianpos@users.noreply.github.com>
Agent-Logs-Url: https://github.com/brianpos/fhirpath-lab/sessions/1045b4a0-9cc2-4933-9afa-507bfe3b4695 Co-authored-by: brianpos <1557083+brianpos@users.noreply.github.com>
…version-canonical-processing
uses declarations|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-plant-0209dde10-85.centralus.3.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-06b155100-85.eastasia.4.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-plant-0209dde10-85.centralus.3.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-06b155100-85.eastasia.4.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-plant-0209dde10-85.centralus.3.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://thankful-water-06b155100-85.eastasia.4.azurestaticapps.net |
Legacy FML maps that quote the map name (e.g.
map "…/syntax" = "Syntax") failed to parse for the diagram display, since the published FHIR grammar only allows a bare/delimitedidentifierthere. The HAPI engine tolerates the quoted form, so the lab parser should too.Changes
fml-parser/FmlMapping.g4):mapDeclarationnow acceptsDOUBLE_QUOTED_STRINGas an alternative toidentifier, with an inline comment flagging it as the legacy, HAPI-tolerant format. Confined tomapDeclaration—identifieris untouched.FmlMappingParser.ts,FmlMapping.interp).helpers/fml_visitor.ts):visitMapDeclarationreads the name from either node and strips the surrounding quotes via the existingremoveQuoteshelper.test/fml-cross-version.test.ts): regression case asserting the quoted name resolves toSyntax.