-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace selectionBehavior by actionCombinationMethod extension
- Loading branch information
Showing
8 changed files
with
122 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Author: Gregor Lichtner @glichtner | ||
CodeSystem: ActionCombinationMethod | ||
Id: cs-action-combination-method | ||
Title: "Action Combination Method" | ||
Description: "Code system for the combination of actions in a PlanDefinition." | ||
* insert metadata(2024-02-16, #draft, 0.1.0) | ||
* insert cpg-computable-codesystem | ||
* #all "All" "All actions must be performed." | ||
* #any "Any" "Any action must be performed." | ||
* #at-least "At Least" "At least the specified number of actions must be performed." | ||
* #exactly "Exactly" "Exactly the specified number of actions must be performed." | ||
* #at-most "At Most" "At most the specified number of actions must be performed." | ||
* #one-or-more "One or More" "One or more actions must be performed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Author: Gregor Lichtner @glichtner | ||
Extension: ActionCombinationMethod | ||
Id: ext-action-combination-method | ||
Title: "Action Combination Method" | ||
Description: "Extension used on PlanDefinition.action to specify a method for combining the actions." | ||
* insert metadata(2022-07-06, #draft, 0.1.0) | ||
* . ^short = "combinationMethod" | ||
* . ^definition = "Extension used on PlanDefinition.action to specify a method for combining the actions." | ||
* ^context.type = #resource | ||
* ^context.expression = "PlanDefinition" | ||
* extension contains method 1..1 and threshold 0..1 | ||
* extension[method] ^short = "Expresses the method for combining the actions" | ||
* extension[method].value[x] only CodeableConcept | ||
* extension[method].valueCodeableConcept from vs-action-combination-method (required) | ||
* extension[threshold] ^short = "Expresses the threshold for the method for combining the actions" | ||
* extension[threshold].value[x] only positiveInt | ||
* value[x] 0..0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ValueSet: ActionCombinationMethod | ||
Id: vs-action-combination-method | ||
Title: "Action Combination Method" | ||
Description: "Value set for the method used to combine actions in a PlanDefinition." | ||
* insert metadata(2024-02-16, #draft, 0.1.1) | ||
* insert cpg-computable-valueset | ||
* include codes from system cs-action-combination-method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
RuleSet: rs-action-combination-method | ||
* extension contains ActionCombinationMethod named combinationMethod 1..1 MS | ||
* action | ||
* extension contains ActionCombinationMethod named combinationMethod 0..1 MS | ||
* obeys nested-action-requires-combination-method | ||
|
||
RuleSet: rs-combination-exactly(threshold) | ||
* extension[combinationMethod].extension[method].valueCodeableConcept = cs-action-combination-method#exactly | ||
* extension[combinationMethod].extension[threshold].valuePositiveInt = {threshold} | ||
|
||
RuleSet: rs-combination-at-least(threshold) | ||
* extension[combinationMethod].extension[method].valueCodeableConcept = cs-action-combination-method#at-least | ||
* extension[combinationMethod].extension[threshold].valuePositiveInt = {threshold} | ||
|
||
RuleSet: rs-combination-at-most(threshold) | ||
* extension[combinationMethod].extension[method].valueCodeableConcept = cs-action-combination-method#at-most | ||
* extension[combinationMethod].extension[threshold].valuePositiveInt = {threshold} | ||
|
||
RuleSet: rs-combination-one-or-more | ||
* extension[combinationMethod].extension[method].valueCodeableConcept = cs-action-combination-method#one-or-more | ||
|
||
RuleSet: rs-combination-all | ||
* extension[combinationMethod].extension[method].valueCodeableConcept = cs-action-combination-method#all | ||
|
||
RuleSet: rs-combination-any | ||
* extension[combinationMethod].extension[method].valueCodeableConcept = cs-action-combination-method#any |