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

Consider supporting mixin rules

    XMLWordPrintableJSON

Details

    • Icon: Change Request Change Request
    • Resolution: Persuasive
    • Icon: Highest Highest
    • Shorthand (FHIR)
    • 0.12.0 [deprecated]
    • FHIR Infrastructure
    • Language Reference
    • 3.4.9 Defining Rule Sets
    • Hide

      This proposal would greatly increase the usefulness of rule sets by making it possible to insert a rule set anywhere in a list of rules. Specifically, the change would involve removing the "Mixins" keyword in favor of an approach that could apply a ruleset anywhere in a set of rules.  The proposed grammar will be "insert {ruleset}", as follows:

      * some rule
      * insert rule-set-1
      * some other rule

      It will be possible to use an `insert` rule within a rule set. The "mixin" keyword would be denigrated, hence this change is non-compatible with previous versions of FSH.

      We validated this on the FHIR Shorthand call on 6/11/2020 and everyone was in favor of the proposed change.

      Show
      This proposal would greatly increase the usefulness of rule sets by making it possible to insert a rule set anywhere in a list of rules. Specifically, the change would involve removing the "Mixins" keyword in favor of an approach that could apply a ruleset anywhere in a set of rules.  The proposed grammar will be "insert {ruleset}", as follows: * some rule * insert rule-set-1 * some other rule It will be possible to use an `insert` rule within a rule set. The "mixin" keyword would be denigrated, hence this change is non-compatible with previous versions of FSH. We validated this on the FHIR Shorthand call on 6/11/2020 and everyone was in favor of the proposed change.
    • Kramer/Rhodes: 14-0-0
    • Enhancement
    • Non-compatible

    Description

      Consider supporting a more flexible application of RuleSets. Instead of a top-level Mixins keyword, consider a rule that allows more precise placement of where the ruleset is expanded. For example:

      • mixin MyRuleSetAtTopLevel
      • extension contains Foo named foo
      • mixin MyRuleSetThatReferencesFoo

      Attachments

        Activity

          People

            Unassigned Unassigned
            cmoesel Chris Moesel
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: