@medplum/definitions 2.0.25 → 2.0.26

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.
@@ -17,9 +17,7 @@
17
17
  "code": "name",
18
18
  "base": ["Project"],
19
19
  "type": "string",
20
- "expression": "Project.name",
21
- "xpath": "f:Project/f:name",
22
- "xpathUsage": "normal"
20
+ "expression": "Project.name"
23
21
  }
24
22
  },
25
23
  {
@@ -37,8 +35,6 @@
37
35
  "base": ["Project"],
38
36
  "type": "reference",
39
37
  "expression": "Project.owner",
40
- "xpath": "f:Project/f:owner",
41
- "xpathUsage": "normal",
42
38
  "target": ["User"]
43
39
  }
44
40
  },
@@ -56,9 +52,7 @@
56
52
  "code": "google-client-id",
57
53
  "base": ["Project"],
58
54
  "type": "token",
59
- "expression": "Project.site.googleClientId",
60
- "xpath": "f:Project/f:site/f:googleClientId",
61
- "xpathUsage": "normal"
55
+ "expression": "Project.site.googleClientId"
62
56
  }
63
57
  },
64
58
  {
@@ -75,9 +69,7 @@
75
69
  "code": "recaptcha-site-key",
76
70
  "base": ["Project"],
77
71
  "type": "token",
78
- "expression": "Project.site.recaptchaSiteKey",
79
- "xpath": "f:Project/f:site/f:recaptchaSiteKey",
80
- "xpathUsage": "normal"
72
+ "expression": "Project.site.recaptchaSiteKey"
81
73
  }
82
74
  },
83
75
  {
@@ -95,8 +87,6 @@
95
87
  "base": ["ProjectMembership"],
96
88
  "type": "reference",
97
89
  "expression": "ProjectMembership.project",
98
- "xpath": "f:ProjectMembership/f:project",
99
- "xpathUsage": "normal",
100
90
  "target": ["Project"]
101
91
  }
102
92
  },
@@ -115,8 +105,6 @@
115
105
  "base": ["ProjectMembership"],
116
106
  "type": "reference",
117
107
  "expression": "ProjectMembership.user",
118
- "xpath": "f:ProjectMembership/f:user",
119
- "xpathUsage": "normal",
120
108
  "target": ["ClientApplication", "User"]
121
109
  }
122
110
  },
@@ -135,8 +123,6 @@
135
123
  "base": ["ProjectMembership"],
136
124
  "type": "reference",
137
125
  "expression": "ProjectMembership.profile",
138
- "xpath": "f:ProjectMembership/f:profile",
139
- "xpathUsage": "normal",
140
126
  "target": ["ClientApplication", "Patient", "Practitioner"]
141
127
  }
142
128
  },
@@ -154,9 +140,7 @@
154
140
  "code": "profile-type",
155
141
  "base": ["ProjectMembership"],
156
142
  "type": "token",
157
- "expression": "ProjectMembership.profile.resolve().resourceType",
158
- "xpath": "f:ProjectMembership/f:profile",
159
- "xpathUsage": "normal"
143
+ "expression": "ProjectMembership.profile.resolve().resourceType"
160
144
  }
161
145
  },
162
146
  {
@@ -173,9 +157,25 @@
173
157
  "code": "external-id",
174
158
  "base": ["ProjectMembership"],
175
159
  "type": "string",
176
- "expression": "ProjectMembership.externalId",
177
- "xpath": "f:ProjectMembership/f:externalId",
178
- "xpathUsage": "normal"
160
+ "expression": "ProjectMembership.externalId"
161
+ }
162
+ },
163
+ {
164
+ "fullUrl": "https://medplum.com/fhir/SearchParameter/ProjectMembership-access-policy",
165
+ "resource": {
166
+ "resourceType": "SearchParameter",
167
+ "id": "ProjectMembership-access-policy",
168
+ "url": "https://medplum.com/fhir/SearchParameter/ProjectMembership-access-policy",
169
+ "version": "4.0.1",
170
+ "name": "access-policy",
171
+ "status": "draft",
172
+ "publisher": "Medplum",
173
+ "description": "The access policy of the user",
174
+ "code": "access-policy",
175
+ "base": ["ProjectMembership"],
176
+ "type": "reference",
177
+ "expression": "ProjectMembership.accessPolicy | ProjectMembership.access.policy",
178
+ "target": ["AccessPolicy"]
179
179
  }
180
180
  },
181
181
  {
@@ -192,9 +192,7 @@
192
192
  "code": "name",
193
193
  "base": ["ClientApplication"],
194
194
  "type": "string",
195
- "expression": "ClientApplication.name",
196
- "xpath": "f:ClientApplication/f:name",
197
- "xpathUsage": "normal"
195
+ "expression": "ClientApplication.name"
198
196
  }
199
197
  },
200
198
  {
@@ -211,9 +209,7 @@
211
209
  "code": "active",
212
210
  "base": ["JsonWebKey"],
213
211
  "type": "token",
214
- "expression": "JsonWebKey.active",
215
- "xpath": "f:JsonWebKey/f:active",
216
- "xpathUsage": "normal"
212
+ "expression": "JsonWebKey.active"
217
213
  }
218
214
  },
219
215
  {
@@ -230,9 +226,7 @@
230
226
  "code": "email",
231
227
  "base": ["User"],
232
228
  "type": "string",
233
- "expression": "User.email",
234
- "xpath": "f:User/f:email",
235
- "xpathUsage": "normal"
229
+ "expression": "User.email"
236
230
  }
237
231
  },
238
232
  {
@@ -249,9 +243,7 @@
249
243
  "code": "external-id",
250
244
  "base": ["User"],
251
245
  "type": "string",
252
- "expression": "User.externalId",
253
- "xpath": "f:User/f:externalId",
254
- "xpathUsage": "normal"
246
+ "expression": "User.externalId"
255
247
  }
256
248
  },
257
249
  {
@@ -269,8 +261,6 @@
269
261
  "base": ["User"],
270
262
  "type": "reference",
271
263
  "expression": "User.project",
272
- "xpath": "f:User/f:project",
273
- "xpathUsage": "normal",
274
264
  "target": ["Project"]
275
265
  }
276
266
  },
@@ -289,8 +279,6 @@
289
279
  "base": ["Login"],
290
280
  "type": "reference",
291
281
  "expression": "Login.user",
292
- "xpath": "f:Login/f:user",
293
- "xpathUsage": "normal",
294
282
  "target": ["Bot", "ClientApplication", "User"]
295
283
  }
296
284
  },
@@ -308,9 +296,7 @@
308
296
  "code": "code",
309
297
  "base": ["Login"],
310
298
  "type": "token",
311
- "expression": "Login.code",
312
- "xpath": "f:Login/f:code",
313
- "xpathUsage": "normal"
299
+ "expression": "Login.code"
314
300
  }
315
301
  },
316
302
  {
@@ -327,9 +313,7 @@
327
313
  "code": "cookie",
328
314
  "base": ["Login"],
329
315
  "type": "token",
330
- "expression": "Login.cookie",
331
- "xpath": "f:Login/f:cookie",
332
- "xpathUsage": "normal"
316
+ "expression": "Login.cookie"
333
317
  }
334
318
  },
335
319
  {
@@ -346,9 +330,7 @@
346
330
  "code": "identifier",
347
331
  "base": ["Bot"],
348
332
  "type": "token",
349
- "expression": "Bot.identifier",
350
- "xpath": "f:Bot/f:identifier",
351
- "xpathUsage": "normal"
333
+ "expression": "Bot.identifier"
352
334
  }
353
335
  },
354
336
  {
@@ -365,9 +347,7 @@
365
347
  "code": "name",
366
348
  "base": ["Bot"],
367
349
  "type": "string",
368
- "expression": "Bot.name",
369
- "xpath": "f:Bot/f:name",
370
- "xpathUsage": "normal"
350
+ "expression": "Bot.name"
371
351
  }
372
352
  },
373
353
  {
@@ -384,9 +364,7 @@
384
364
  "code": "category",
385
365
  "base": ["Bot"],
386
366
  "type": "token",
387
- "expression": "Bot.category",
388
- "xpath": "f:Bot/f:category",
389
- "xpathUsage": "normal"
367
+ "expression": "Bot.category"
390
368
  }
391
369
  },
392
370
  {
@@ -403,9 +381,7 @@
403
381
  "code": "name",
404
382
  "base": ["UserConfiguration"],
405
383
  "type": "string",
406
- "expression": "UserConfiguration.name",
407
- "xpath": "f:UserConfiguration/f:name",
408
- "xpathUsage": "normal"
384
+ "expression": "UserConfiguration.name"
409
385
  }
410
386
  },
411
387
  {
@@ -422,9 +398,7 @@
422
398
  "code": "name",
423
399
  "base": ["AccessPolicy"],
424
400
  "type": "string",
425
- "expression": "AccessPolicy.name",
426
- "xpath": "f:AccessPolicy/f:name",
427
- "xpathUsage": "normal"
401
+ "expression": "AccessPolicy.name"
428
402
  }
429
403
  },
430
404
  {
@@ -441,9 +415,7 @@
441
415
  "code": "status",
442
416
  "base": ["BulkDataExport"],
443
417
  "type": "token",
444
- "expression": "BulkDataExport.status",
445
- "xpath": "f:BulkDataExport/f:status",
446
- "xpathUsage": "normal"
418
+ "expression": "BulkDataExport.status"
447
419
  }
448
420
  },
449
421
  {
@@ -460,9 +432,7 @@
460
432
  "code": "code",
461
433
  "base": ["ObservationDefinition"],
462
434
  "type": "token",
463
- "expression": "ObservationDefinition.code",
464
- "xpath": "f:ObservationDefinition/f:code",
465
- "xpathUsage": "normal"
435
+ "expression": "ObservationDefinition.code"
466
436
  }
467
437
  },
468
438
  {
@@ -480,8 +450,6 @@
480
450
  "base": ["ObservationDefinition"],
481
451
  "type": "reference",
482
452
  "expression": "ObservationDefinition.publisher",
483
- "xpath": "f:ObservationDefinition/f:publisher",
484
- "xpathUsage": "normal",
485
453
  "target": ["Practitioner", "PractitionerRole", "Organization"]
486
454
  }
487
455
  },
@@ -499,9 +467,7 @@
499
467
  "code": "domain",
500
468
  "base": ["DomainConfiguration"],
501
469
  "type": "token",
502
- "expression": "DomainConfiguration.domain",
503
- "xpath": "f:DomainConfiguration/f:domain",
504
- "xpathUsage": "normal"
470
+ "expression": "DomainConfiguration.domain"
505
471
  }
506
472
  },
507
473
  {
@@ -519,8 +485,6 @@
519
485
  "base": ["PasswordChangeRequest"],
520
486
  "type": "reference",
521
487
  "expression": "PasswordChangeRequest.user",
522
- "xpath": "f:PasswordChangeRequest/f:user",
523
- "xpathUsage": "normal",
524
488
  "target": ["User"]
525
489
  }
526
490
  },
@@ -539,8 +503,6 @@
539
503
  "base": ["Task"],
540
504
  "type": "date",
541
505
  "expression": "Task.restriction.period",
542
- "xpath": "f:Task/f:restriction/f:period",
543
- "xpathUsage": "normal",
544
506
  "comparator": ["eq", "ne", "gt", "ge", "lt", "le", "sa", "eb", "ap"]
545
507
  }
546
508
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/definitions",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
4
4
  "description": "Medplum Data Definitions",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",
@@ -10,6 +10,9 @@
10
10
  "url": "https://github.com/medplum/medplum.git",
11
11
  "directory": "packages/definitions"
12
12
  },
13
+ "engines": {
14
+ "node": ">=18.0.0"
15
+ },
13
16
  "scripts": {
14
17
  "clean": "rimraf dist/index.js dist/index.d.ts",
15
18
  "build": "npm run clean && tsc --project tsconfig.build.json",