@medplum/definitions 2.0.31 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -61916,9 +61916,12 @@
|
|
|
61916
61916
|
},
|
|
61917
61917
|
"type": "array"
|
|
61918
61918
|
},
|
|
61919
|
-
"
|
|
61920
|
-
"description": "Invariants that must be satisfied for the resource to be written.",
|
|
61921
|
-
"
|
|
61919
|
+
"writeConstraint": {
|
|
61920
|
+
"description": "Invariants that must be satisfied for the resource to be written. Can include %before and %after placeholders to refer to the resource before and after the updates are applied.",
|
|
61921
|
+
"items": {
|
|
61922
|
+
"$ref": "#/definitions/Expression"
|
|
61923
|
+
},
|
|
61924
|
+
"type": "array"
|
|
61922
61925
|
}
|
|
61923
61926
|
},
|
|
61924
61927
|
"additionalProperties": false,
|
|
@@ -2643,49 +2643,27 @@
|
|
|
2643
2643
|
}
|
|
2644
2644
|
},
|
|
2645
2645
|
{
|
|
2646
|
-
"id" : "AccessPolicy.resource.
|
|
2647
|
-
"path" : "AccessPolicy.resource.
|
|
2648
|
-
"definition" : "Invariants that must be satisfied for the resource to be written.",
|
|
2646
|
+
"id" : "AccessPolicy.resource.writeConstraint",
|
|
2647
|
+
"path" : "AccessPolicy.resource.writeConstraint",
|
|
2648
|
+
"definition" : "Invariants that must be satisfied for the resource to be written. Can include %before and %after placeholders to refer to the resource before and after the updates are applied.",
|
|
2649
2649
|
"min" : 0,
|
|
2650
|
-
"max" : "
|
|
2651
|
-
"type" : [{
|
|
2652
|
-
"code" : "BackboneElement"
|
|
2653
|
-
}],
|
|
2654
|
-
"base" : {
|
|
2655
|
-
"path" : "AccessPolicy.resource.writeCriteria",
|
|
2656
|
-
"min" : 0,
|
|
2657
|
-
"max" : "1"
|
|
2658
|
-
}
|
|
2659
|
-
},
|
|
2660
|
-
{
|
|
2661
|
-
"id" : "AccessPolicy.resource.writeCriteria.pre",
|
|
2662
|
-
"path" : "AccessPolicy.resource.writeCriteria.pre",
|
|
2663
|
-
"definition" : "Invariant to check against the state of the resource before modification.",
|
|
2664
|
-
"min" : 0,
|
|
2665
|
-
"max" : "1",
|
|
2666
|
-
"type" : [{
|
|
2667
|
-
"code" : "string"
|
|
2668
|
-
}],
|
|
2669
|
-
"base" : {
|
|
2670
|
-
"path" : "AccessPolicy.resource.writeCriteria.pre",
|
|
2671
|
-
"min" : 0,
|
|
2672
|
-
"max" : "1"
|
|
2673
|
-
}
|
|
2674
|
-
},
|
|
2675
|
-
{
|
|
2676
|
-
"id" : "AccessPolicy.resource.writeCriteria.post",
|
|
2677
|
-
"path" : "AccessPolicy.resource.writeCriteria.post",
|
|
2678
|
-
"definition" : "Invariant to check against the state of the resource with modifications tentatively applied.",
|
|
2679
|
-
"min" : 0,
|
|
2680
|
-
"max" : "1",
|
|
2650
|
+
"max" : "*",
|
|
2681
2651
|
"type" : [{
|
|
2682
|
-
"code" : "
|
|
2652
|
+
"code" : "Expression"
|
|
2683
2653
|
}],
|
|
2684
2654
|
"base" : {
|
|
2685
|
-
"path" : "AccessPolicy.resource.
|
|
2655
|
+
"path" : "AccessPolicy.resource.writeConstraint",
|
|
2686
2656
|
"min" : 0,
|
|
2687
|
-
"max" : "
|
|
2688
|
-
}
|
|
2657
|
+
"max" : "*"
|
|
2658
|
+
},
|
|
2659
|
+
"constraint": [
|
|
2660
|
+
{
|
|
2661
|
+
"key": "axp-1",
|
|
2662
|
+
"severity": "error",
|
|
2663
|
+
"human": "Write constraint expressions must be literal text/fhirpath strings",
|
|
2664
|
+
"expression": "expression.exists() and language = 'text/fhirpath'"
|
|
2665
|
+
}
|
|
2666
|
+
]
|
|
2689
2667
|
},
|
|
2690
2668
|
{
|
|
2691
2669
|
"id" : "AccessPolicy.ipAccessRule",
|