Skip to content

Add support for multistring in invariant expressions#1607

Merged
cmoesel merged 1 commit intoFHIR:masterfrom
tibisabau:1576-add-support-multistring-invariant
Feb 14, 2026
Merged

Add support for multistring in invariant expressions#1607
cmoesel merged 1 commit intoFHIR:masterfrom
tibisabau:1576-add-support-multistring-invariant

Conversation

@tibisabau
Copy link
Contributor

Description:

Adds support for multiline strings (triple-quote delimiters """) in the Expression: property of Invariant: declarations, matching the existing functionality available for the Description: property.

Testing Instructions:

  1. Run npm run check to verify all tests pass
  2. Create an invariant with a multiline expression using """ delimiters
  3. Verify the invariant parses correctly and serializes back to FSH with multiline formatting preserved

Related Issue:

Closes #1576.

The code in this pull request was generated by GitHub Copilot with the Claude Sonnet 4.5 model.

Copy link
Member

@cmoesel cmoesel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Allowing authors to optionally use multiline strings for expressions will help make longer expressions more readable in the FSH source. Thanks.

@cmoesel cmoesel merged commit 6559753 into FHIR:master Feb 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Multiline Strings in Invariant Expression

2 participants