Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-42109

Inserting Parameterized Rule Sets - Examples - Add example of single escape character '\' usage

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Highest Highest
    • Shorthand (FHIR)
    • 3.0.0-ballot
    • FHIR Infrastructure
    • Language Reference
    • 3.6.11.2 Inserting Parameterized Rule Sets
    • Hide

      We will include an example of inserting a parameterized ruleset with a backslash-escaped argument. We will use the provided example or an example similar to it.

      Show
      We will include an example of inserting a parameterized ruleset with a backslash-escaped argument. We will use the provided example or an example similar to it.
    • Chris Moesel / Gino Canessa: 10-0-0
    • Clarification
    • Non-substantive

    Description

      The 3.6.11.2 Inserting Parameterized Rule Sets section, Examples sub-section does not contain an example that demonstrates the use of the backslash '\' escape character for escaping the literal ')' and ',' characters in a rule set parameter.

      A new example might looks something like this:

      RuleSet: Phone(value)
      * telecom[+].system = #phone
      * telecom[=].value = "{value}"
      Instance: AcmeOrganization
      InstanceOf: Organization
      Title: "Acme Organization"
      Description: "The Acme Organization"
      // some rules
      * insert Phone( (800\)555-1234 )
      // more rules

      When the rule set is expanded and soft indices are resolved, this is equivalent to:

      Instance: AcmeOrganization
      InstanceOf: Organization
      Title: "Acme Organization"
      Description: "The Acme Organization"
      // some rules
      * telecom[0].system = #phone
      * telecom[0].value = "(800)555-1234"
      // more rules

      Attachments

        Activity

          People

            cmoesel Chris Moesel
            richard.ettema Richard Ettema
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: