@medplum/fhirtypes 2.0.31 → 2.0.32

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.
@@ -3,6 +3,7 @@
3
3
  * Do not edit manually.
4
4
  */
5
5
 
6
+ import { Expression } from './Expression';
6
7
  import { Meta } from './Meta';
7
8
  import { Reference } from './Reference';
8
9
 
@@ -131,25 +132,9 @@ export interface AccessPolicyResource {
131
132
  readonlyFields?: string[];
132
133
 
133
134
  /**
134
- * Invariants that must be satisfied for the resource to be written.
135
+ * Invariants that must be satisfied for the resource to be written. Can
136
+ * include %before and %after placeholders to refer to the resource
137
+ * before and after the updates are applied.
135
138
  */
136
- writeCriteria?: AccessPolicyResourceWriteCriteria;
137
- }
138
-
139
- /**
140
- * Invariants that must be satisfied for the resource to be written.
141
- */
142
- export interface AccessPolicyResourceWriteCriteria {
143
-
144
- /**
145
- * Invariant to check against the state of the resource before
146
- * modification.
147
- */
148
- pre?: string;
149
-
150
- /**
151
- * Invariant to check against the state of the resource with
152
- * modifications tentatively applied.
153
- */
154
- post?: string;
139
+ writeConstraint?: Expression[];
155
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/fhirtypes",
3
- "version": "2.0.31",
3
+ "version": "2.0.32",
4
4
  "description": "Medplum FHIR Type Definitions",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",