@medplum/definitions 0.1.6 → 0.3.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.
@@ -0,0 +1,1182 @@
1
+ {
2
+ "resourceType" : "Bundle",
3
+ "id" : "resources",
4
+ "meta" : {
5
+ "lastUpdated" : "2019-11-01T09:29:23.356+11:00"
6
+ },
7
+ "type" : "collection",
8
+ "entry" : [{
9
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/Project",
10
+ "resource" : {
11
+ "resourceType" : "StructureDefinition",
12
+ "id" : "Project",
13
+ "name" : "Project",
14
+ "snapshot" : {
15
+ "element" : [
16
+ {
17
+ "id" : "Project.id",
18
+ "path" : "Project.id",
19
+ "short" : "Logical id of this artifact",
20
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
21
+ "min" : 0,
22
+ "max" : "1",
23
+ "type" : [{
24
+ "code" : "string"
25
+ }]
26
+ },
27
+ {
28
+ "id" : "Project.meta",
29
+ "path" : "Project.meta",
30
+ "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
31
+ "min" : 0,
32
+ "max" : "1",
33
+ "type" : [{
34
+ "code" : "Meta"
35
+ }]
36
+ },
37
+ {
38
+ "id" : "Project.implicitRules",
39
+ "path" : "Project.implicitRules",
40
+ "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
41
+ "min" : 0,
42
+ "max" : "1",
43
+ "type" : [{
44
+ "code" : "uri"
45
+ }]
46
+ },
47
+ {
48
+ "id" : "Project.language",
49
+ "path" : "Project.language",
50
+ "definition" : "The base language in which the resource is written.",
51
+ "min" : 0,
52
+ "max" : "1",
53
+ "type" : [{
54
+ "code" : "code"
55
+ }]
56
+ },
57
+ {
58
+ "id" : "Project.name",
59
+ "path" : "Project.name",
60
+ "definition" : "A name associated with the Project.",
61
+ "min" : 0,
62
+ "max" : "1",
63
+ "type" : [{
64
+ "code" : "string"
65
+ }]
66
+ },
67
+ {
68
+ "id" : "Project.description",
69
+ "path" : "Project.description",
70
+ "definition" : "A summary, characterization or explanation of the Project.",
71
+ "min" : 0,
72
+ "max" : "1",
73
+ "type" : [{
74
+ "code" : "string"
75
+ }]
76
+ },
77
+ {
78
+ "id" : "Project.owner",
79
+ "path" : "Project.owner",
80
+ "definition" : "The user who owns the project.",
81
+ "min" : 0,
82
+ "max" : "1",
83
+ "type" : [{
84
+ "code" : "Reference",
85
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/User"]
86
+ }]
87
+ }
88
+ ]
89
+ }
90
+ }
91
+ },
92
+ {
93
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/ClientApplication",
94
+ "resource" : {
95
+ "resourceType" : "StructureDefinition",
96
+ "id" : "ClientApplication",
97
+ "name" : "ClientApplication",
98
+ "snapshot" : {
99
+ "element" : [
100
+ {
101
+ "id" : "ClientApplication.id",
102
+ "path" : "ClientApplication.id",
103
+ "short" : "Logical id of this artifact",
104
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
105
+ "min" : 0,
106
+ "max" : "1",
107
+ "type" : [{
108
+ "code" : "string"
109
+ }]
110
+ },
111
+ {
112
+ "id" : "ClientApplication.meta",
113
+ "path" : "ClientApplication.meta",
114
+ "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
115
+ "min" : 0,
116
+ "max" : "1",
117
+ "type" : [{
118
+ "code" : "Meta"
119
+ }]
120
+ },
121
+ {
122
+ "id" : "ClientApplication.implicitRules",
123
+ "path" : "ClientApplication.implicitRules",
124
+ "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
125
+ "min" : 0,
126
+ "max" : "1",
127
+ "type" : [{
128
+ "code" : "uri"
129
+ }]
130
+ },
131
+ {
132
+ "id" : "ClientApplication.language",
133
+ "path" : "ClientApplication.language",
134
+ "definition" : "The base language in which the resource is written.",
135
+ "min" : 0,
136
+ "max" : "1",
137
+ "type" : [{
138
+ "code" : "code"
139
+ }]
140
+ },
141
+ {
142
+ "id" : "ClientApplication.name",
143
+ "path" : "ClientApplication.name",
144
+ "definition" : "A name associated with the ClientApplication.",
145
+ "min" : 0,
146
+ "max" : "1",
147
+ "type" : [{
148
+ "code" : "string"
149
+ }]
150
+ },
151
+ {
152
+ "id" : "ClientApplication.description",
153
+ "path" : "ClientApplication.description",
154
+ "definition" : "A summary, characterization or explanation of the ClientApplication.",
155
+ "min" : 0,
156
+ "max" : "1",
157
+ "type" : [{
158
+ "code" : "string"
159
+ }]
160
+ },
161
+ {
162
+ "id" : "ClientApplication.secret",
163
+ "path" : "ClientApplication.secret",
164
+ "definition" : "Client secret string used to verify the identity of a client.",
165
+ "min" : 0,
166
+ "max" : "1",
167
+ "type" : [{
168
+ "code" : "string"
169
+ }]
170
+ },
171
+ {
172
+ "id" : "ClientApplication.redirectUri",
173
+ "path" : "ClientApplication.redirectUri",
174
+ "definition" : "Redirect URI used when redirecting a client back to the client application.",
175
+ "min" : 0,
176
+ "max" : "1",
177
+ "type" : [{
178
+ "code" : "string"
179
+ }]
180
+ }
181
+ ]
182
+ }
183
+ }
184
+ },
185
+ {
186
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/User",
187
+ "resource" : {
188
+ "resourceType" : "StructureDefinition",
189
+ "id" : "User",
190
+ "name" : "User",
191
+ "description" : "OAuth user.",
192
+ "snapshot" : {
193
+ "element" : [
194
+ {
195
+ "id" : "User.id",
196
+ "path" : "User.id",
197
+ "short" : "Logical id of this artifact",
198
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
199
+ "min" : 0,
200
+ "max" : "1",
201
+ "type" : [{
202
+ "code" : "string"
203
+ }]
204
+ },
205
+ {
206
+ "id" : "User.meta",
207
+ "path" : "User.meta",
208
+ "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
209
+ "min" : 0,
210
+ "max" : "1",
211
+ "type" : [{
212
+ "code" : "Meta"
213
+ }]
214
+ },
215
+ {
216
+ "id" : "User.implicitRules",
217
+ "path" : "User.implicitRules",
218
+ "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
219
+ "min" : 0,
220
+ "max" : "1",
221
+ "type" : [{
222
+ "code" : "uri"
223
+ }]
224
+ },
225
+ {
226
+ "id" : "User.language",
227
+ "path" : "User.language",
228
+ "definition" : "The base language in which the resource is written.",
229
+ "min" : 0,
230
+ "max" : "1",
231
+ "type" : [{
232
+ "code" : "code"
233
+ }]
234
+ },
235
+ {
236
+ "id" : "User.email",
237
+ "path" : "User.email",
238
+ "definition" : "The email address that uniquely identifies the user. This email address must be globally unique within the server.",
239
+ "min" : 1,
240
+ "max" : "1",
241
+ "type" : [{
242
+ "code" : "string"
243
+ }]
244
+ },
245
+ {
246
+ "id" : "User.admin",
247
+ "path" : "User.admin",
248
+ "short" : "Whether this user is a system administrator.",
249
+ "definition" : "Whether this user is a system administrator.",
250
+ "min" : 0,
251
+ "max" : "1",
252
+ "type" : [{
253
+ "code" : "boolean"
254
+ }]
255
+ },
256
+ {
257
+ "id" : "User.passwordHash",
258
+ "path" : "User.passwordHash",
259
+ "definition" : "Encrypted hash of the user's password.",
260
+ "min" : 1,
261
+ "max" : "1",
262
+ "type" : [{
263
+ "code" : "string"
264
+ }]
265
+ }
266
+ ]
267
+ }
268
+ }
269
+ },
270
+ {
271
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/ProjectMembership",
272
+ "resource" : {
273
+ "resourceType" : "StructureDefinition",
274
+ "id" : "ProjectMembership",
275
+ "name" : "ProjectMembership",
276
+ "description" : "Medplum project membership. A project membership grants a user access to a project.",
277
+ "snapshot" : {
278
+ "element" : [
279
+ {
280
+ "id" : "ProjectMembership.id",
281
+ "path" : "ProjectMembership.id",
282
+ "short" : "Logical id of this artifact",
283
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
284
+ "min" : 0,
285
+ "max" : "1",
286
+ "type" : [{
287
+ "code" : "string"
288
+ }]
289
+ },
290
+ {
291
+ "id" : "ProjectMembership.meta",
292
+ "path" : "ProjectMembership.meta",
293
+ "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
294
+ "min" : 0,
295
+ "max" : "1",
296
+ "type" : [{
297
+ "code" : "Meta"
298
+ }]
299
+ },
300
+ {
301
+ "id" : "ProjectMembership.implicitRules",
302
+ "path" : "ProjectMembership.implicitRules",
303
+ "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
304
+ "min" : 0,
305
+ "max" : "1",
306
+ "type" : [{
307
+ "code" : "uri"
308
+ }]
309
+ },
310
+ {
311
+ "id" : "ProjectMembership.language",
312
+ "path" : "ProjectMembership.language",
313
+ "definition" : "The base language in which the resource is written.",
314
+ "min" : 0,
315
+ "max" : "1",
316
+ "type" : [{
317
+ "code" : "code"
318
+ }]
319
+ },
320
+ {
321
+ "id" : "ProjectMembership.project",
322
+ "path" : "ProjectMembership.project",
323
+ "definition" : "Project where the memberships are available.",
324
+ "min" : 1,
325
+ "max" : "1",
326
+ "type" : [{
327
+ "code" : "Reference",
328
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/Project"]
329
+ }]
330
+ },
331
+ {
332
+ "id" : "ProjectMembership.user",
333
+ "path" : "ProjectMembership.user",
334
+ "definition" : "User that is granted access to the project.",
335
+ "min" : 1,
336
+ "max" : "1",
337
+ "type" : [{
338
+ "code" : "Reference",
339
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/User"]
340
+ }]
341
+ },
342
+ {
343
+ "id" : "ProjectMembership.profile",
344
+ "path" : "ProjectMembership.profile",
345
+ "definition" : "Reference to the resource that represents the user profile within the project.",
346
+ "min" : 0,
347
+ "max" : "1",
348
+ "type" : [{
349
+ "code" : "Reference",
350
+ "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
351
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
352
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
353
+ }]
354
+ },
355
+ {
356
+ "id" : "ProjectMembership.account",
357
+ "path" : "ProjectMembership.account",
358
+ "definition" : "Optional account reference that can be used for sub-project compartments.",
359
+ "min" : 0,
360
+ "max" : "1",
361
+ "type" : [{
362
+ "code" : "Reference"
363
+ }]
364
+ },
365
+ {
366
+ "id" : "ProjectMembership.accessPolicy",
367
+ "path" : "ProjectMembership.accessPolicy",
368
+ "definition" : "The access policy for the user within the project memebership.",
369
+ "min" : 0,
370
+ "max" : "1",
371
+ "type" : [{
372
+ "code" : "Reference",
373
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/AccessPolicy"]
374
+ }]
375
+ },
376
+ {
377
+ "id" : "ProjectMembership.admin",
378
+ "path" : "ProjectMembership.admin",
379
+ "short" : "Whether this user is a project administrator.",
380
+ "definition" : "Whether this user is a project administrator.",
381
+ "min" : 0,
382
+ "max" : "1",
383
+ "type" : [{
384
+ "code" : "boolean"
385
+ }]
386
+ }
387
+ ]
388
+ }
389
+ }
390
+ },
391
+ {
392
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/Bot",
393
+ "resource" : {
394
+ "resourceType" : "StructureDefinition",
395
+ "id" : "Bot",
396
+ "name" : "Bot",
397
+ "description" : "Bot account for automated actions.",
398
+ "snapshot" : {
399
+ "element" : [
400
+ {
401
+ "id" : "Bot.id",
402
+ "path" : "Bot.id",
403
+ "short" : "Logical id of this artifact",
404
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
405
+ "min" : 0,
406
+ "max" : "1",
407
+ "type" : [{
408
+ "code" : "string"
409
+ }]
410
+ },
411
+ {
412
+ "id" : "Bot.meta",
413
+ "path" : "Bot.meta",
414
+ "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
415
+ "min" : 0,
416
+ "max" : "1",
417
+ "type" : [{
418
+ "code" : "Meta"
419
+ }]
420
+ },
421
+ {
422
+ "id" : "Bot.implicitRules",
423
+ "path" : "Bot.implicitRules",
424
+ "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
425
+ "min" : 0,
426
+ "max" : "1",
427
+ "type" : [{
428
+ "code" : "uri"
429
+ }]
430
+ },
431
+ {
432
+ "id" : "Bot.language",
433
+ "path" : "Bot.language",
434
+ "definition" : "The base language in which the resource is written.",
435
+ "min" : 0,
436
+ "max" : "1",
437
+ "type" : [{
438
+ "code" : "code"
439
+ }]
440
+ },
441
+ {
442
+ "id" : "Bot.name",
443
+ "path" : "Bot.name",
444
+ "definition" : "A name associated with the Bot.",
445
+ "min" : 0,
446
+ "max" : "1",
447
+ "type" : [{
448
+ "code" : "string"
449
+ }]
450
+ },
451
+ {
452
+ "id" : "Bot.description",
453
+ "path" : "Bot.description",
454
+ "definition" : "A summary, characterization or explanation of the Bot.",
455
+ "min" : 0,
456
+ "max" : "1",
457
+ "type" : [{
458
+ "code" : "string"
459
+ }]
460
+ },
461
+ {
462
+ "id" : "Bot.photo",
463
+ "path" : "Bot.photo",
464
+ "definition" : "Image of the bot.",
465
+ "min" : 0,
466
+ "max" : "1",
467
+ "type" : [{
468
+ "code" : "Attachment"
469
+ }]
470
+ },
471
+ {
472
+ "id" : "Bot.code",
473
+ "path" : "Bot.code",
474
+ "definition" : "Bot logic script.",
475
+ "min" : 0,
476
+ "max" : "1",
477
+ "type" : [{
478
+ "code" : "string"
479
+ }]
480
+ }
481
+ ]
482
+ }
483
+ }
484
+ },
485
+ {
486
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/Login",
487
+ "resource" : {
488
+ "resourceType" : "StructureDefinition",
489
+ "id" : "Login",
490
+ "name" : "Login",
491
+ "description" : "OAuth login.",
492
+ "snapshot" : {
493
+ "element" : [
494
+ {
495
+ "id" : "Login.id",
496
+ "path" : "Login.id",
497
+ "short" : "Logical id of this artifact",
498
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
499
+ "min" : 0,
500
+ "max" : "1",
501
+ "type" : [{
502
+ "code" : "string"
503
+ }]
504
+ },
505
+ {
506
+ "id" : "Login.meta",
507
+ "path" : "Login.meta",
508
+ "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
509
+ "min" : 0,
510
+ "max" : "1",
511
+ "type" : [{
512
+ "code" : "Meta"
513
+ }]
514
+ },
515
+ {
516
+ "id" : "Login.implicitRules",
517
+ "path" : "Login.implicitRules",
518
+ "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
519
+ "min" : 0,
520
+ "max" : "1",
521
+ "type" : [{
522
+ "code" : "uri"
523
+ }]
524
+ },
525
+ {
526
+ "id" : "Login.language",
527
+ "path" : "Login.language",
528
+ "definition" : "The base language in which the resource is written.",
529
+ "min" : 0,
530
+ "max" : "1",
531
+ "type" : [{
532
+ "code" : "code"
533
+ }]
534
+ },
535
+ {
536
+ "id" : "Login.client",
537
+ "path" : "Login.client",
538
+ "definition" : "The client requesting the code.",
539
+ "min" : 1,
540
+ "max" : "1",
541
+ "type" : [{
542
+ "code" : "Reference",
543
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/ClientApplication"]
544
+ }]
545
+ },
546
+ {
547
+ "id" : "Login.user",
548
+ "path" : "Login.user",
549
+ "definition" : "The user requesting the code.",
550
+ "min" : 1,
551
+ "max" : "1",
552
+ "type" : [{
553
+ "code" : "Reference",
554
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/User"]
555
+ }]
556
+ },
557
+ {
558
+ "id" : "Login.profile",
559
+ "path" : "Login.profile",
560
+ "definition" : "Reference to the user's FHIR identity for this login (patient, practitioner, etc).",
561
+ "min" : 1,
562
+ "max" : "1",
563
+ "type" : [{
564
+ "code" : "Reference",
565
+ "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
566
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
567
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
568
+ "https://medplum.com/fhir/StructureDefinition/ClientApplication"]
569
+ }]
570
+ },
571
+ {
572
+ "id" : "Login.scope",
573
+ "path" : "Login.scope",
574
+ "definition" : "OAuth scope or scopes.",
575
+ "min" : 1,
576
+ "max" : "1",
577
+ "type" : [{
578
+ "code" : "string"
579
+ }]
580
+ },
581
+ {
582
+ "id" : "Login.authTime",
583
+ "path" : "Login.authTime",
584
+ "definition" : "Time when the End-User authentication occurred.",
585
+ "min" : 1,
586
+ "max" : "1",
587
+ "type" : [{
588
+ "code" : "instant"
589
+ }]
590
+ },
591
+ {
592
+ "id" : "Login.cookie",
593
+ "path" : "Login.cookie",
594
+ "definition" : "The cookie value that can be used for session management.",
595
+ "min" : 0,
596
+ "max" : "1",
597
+ "type" : [{
598
+ "code" : "string"
599
+ }]
600
+ },
601
+ {
602
+ "id" : "Login.code",
603
+ "path" : "Login.code",
604
+ "definition" : "The authorization code generated by the authorization server. The authorization code MUST expire shortly after it is issued to mitigate the risk of leaks. A maximum authorization code lifetime of 10 minutes is RECOMMENDED. The client MUST NOT use the authorization code more than once. If an authorization code is used more than once, the authorization server MUST deny the request and SHOULD revoke (when possible) all tokens previously issued based on that authorization code. The authorization code is bound to the client identifier and redirection URI.",
605
+ "min" : 0,
606
+ "max" : "1",
607
+ "type" : [{
608
+ "code" : "string"
609
+ }]
610
+ },
611
+ {
612
+ "id" : "Login.codeChallenge",
613
+ "path" : "Login.codeChallenge",
614
+ "definition" : "PKCE code challenge presented in the authorization request.",
615
+ "min" : 0,
616
+ "max" : "1",
617
+ "type" : [{
618
+ "code" : "string"
619
+ }]
620
+ },
621
+ {
622
+ "id" : "Login.codeChallengeMethod",
623
+ "path" : "Login.codeChallengeMethod",
624
+ "definition" : "OPTIONAL, defaults to \"plain\" if not present in the request. Code verifier transformation method is \"S256\" or \"plain\".",
625
+ "min" : 0,
626
+ "max" : "1",
627
+ "type" : [{
628
+ "code" : "string"
629
+ }]
630
+ },
631
+ {
632
+ "id" : "Login.refreshSecret",
633
+ "path" : "Login.refreshSecret",
634
+ "definition" : "Optional secure random string that can be used in an OAuth refresh token.",
635
+ "min" : 0,
636
+ "max" : "1",
637
+ "type" : [{
638
+ "code" : "string"
639
+ }]
640
+ },
641
+ {
642
+ "id" : "Login.nonce",
643
+ "path" : "Login.nonce",
644
+ "definition" : "Optional cryptographically random string that your app adds to the initial request and the authorization server includes inside the ID Token, used to prevent token replay attacks.",
645
+ "min" : 0,
646
+ "max" : "1",
647
+ "type" : [{
648
+ "code" : "string"
649
+ }]
650
+ },
651
+ {
652
+ "id" : "Login.granted",
653
+ "path" : "Login.granted",
654
+ "definition" : "Whether a token has been granted for this login.",
655
+ "min" : 0,
656
+ "max" : "1",
657
+ "type" : [{
658
+ "code" : "boolean"
659
+ }]
660
+ },
661
+ {
662
+ "id" : "Login.revoked",
663
+ "path" : "Login.revoked",
664
+ "definition" : "Whether this login has been revoked or invalidated.",
665
+ "min" : 0,
666
+ "max" : "1",
667
+ "type" : [{
668
+ "code" : "boolean"
669
+ }]
670
+ },
671
+ {
672
+ "id" : "Login.accessPolicy",
673
+ "path" : "Login.accessPolicy",
674
+ "definition" : "Collection of compartments that the user has been granted access. This is a flattened collection of all ProjectMembership compartments at the time of login.",
675
+ "min" : 0,
676
+ "max" : "1",
677
+ "type" : [{
678
+ "code" : "Reference",
679
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/AccessPolicy"]
680
+ }]
681
+ },
682
+ {
683
+ "id" : "Login.project",
684
+ "path" : "Login.project",
685
+ "definition" : "Reference to the default project for the duration of the login.",
686
+ "min" : 0,
687
+ "max" : "1",
688
+ "type" : [{
689
+ "code" : "Reference",
690
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/Project"]
691
+ }]
692
+ },
693
+ {
694
+ "id" : "Login.admin",
695
+ "path" : "Login.admin",
696
+ "definition" : "Whether this login has system administrator privileges.",
697
+ "min" : 0,
698
+ "max" : "1",
699
+ "type" : [{
700
+ "code" : "boolean"
701
+ }]
702
+ }
703
+ ]
704
+ }
705
+ }
706
+ },
707
+ {
708
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/PasswordChangeRequest",
709
+ "resource" : {
710
+ "resourceType" : "StructureDefinition",
711
+ "id" : "PasswordChangeRequest",
712
+ "name" : "PasswordChangeRequest",
713
+ "description" : "Password change request for the 'forgot password' flow.",
714
+ "snapshot" : {
715
+ "element" : [
716
+ {
717
+ "id" : "PasswordChangeRequest.id",
718
+ "path" : "PasswordChangeRequest.id",
719
+ "short" : "Logical id of this artifact",
720
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
721
+ "min" : 0,
722
+ "max" : "1",
723
+ "type" : [{
724
+ "code" : "string"
725
+ }]
726
+ },
727
+ {
728
+ "id" : "PasswordChangeRequest.meta",
729
+ "path" : "PasswordChangeRequest.meta",
730
+ "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
731
+ "min" : 0,
732
+ "max" : "1",
733
+ "type" : [{
734
+ "code" : "Meta"
735
+ }]
736
+ },
737
+ {
738
+ "id" : "PasswordChangeRequest.implicitRules",
739
+ "path" : "PasswordChangeRequest.implicitRules",
740
+ "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
741
+ "min" : 0,
742
+ "max" : "1",
743
+ "type" : [{
744
+ "code" : "uri"
745
+ }]
746
+ },
747
+ {
748
+ "id" : "PasswordChangeRequest.language",
749
+ "path" : "PasswordChangeRequest.language",
750
+ "definition" : "The base language in which the resource is written.",
751
+ "min" : 0,
752
+ "max" : "1",
753
+ "type" : [{
754
+ "code" : "code"
755
+ }]
756
+ },
757
+ {
758
+ "id" : "PasswordChangeRequest.user",
759
+ "path" : "PasswordChangeRequest.user",
760
+ "definition" : "The user requesting the password change.",
761
+ "min" : 1,
762
+ "max" : "1",
763
+ "type" : [{
764
+ "code" : "Reference",
765
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/User"]
766
+ }]
767
+ },
768
+ {
769
+ "id" : "PasswordChangeRequest.secret",
770
+ "path" : "PasswordChangeRequest.secret",
771
+ "definition" : "Secret string used to verify the identity of the user.",
772
+ "min" : 1,
773
+ "max" : "1",
774
+ "type" : [{
775
+ "code" : "string"
776
+ }]
777
+ },
778
+ {
779
+ "id" : "PasswordChangeRequest.used",
780
+ "path" : "PasswordChangeRequest.used",
781
+ "definition" : "Whether this request has been used, and is therefore no longer valid.",
782
+ "min" : 0,
783
+ "max" : "1",
784
+ "type" : [{
785
+ "code" : "boolean"
786
+ }]
787
+ },
788
+ {
789
+ "id" : "PasswordChangeRequest.redirectUri",
790
+ "path" : "PasswordChangeRequest.redirectUri",
791
+ "definition" : "Redirect URI used when redirecting a client back to the client application.",
792
+ "min" : 0,
793
+ "max" : "1",
794
+ "type" : [{
795
+ "code" : "uri"
796
+ }]
797
+ }
798
+ ]
799
+ }
800
+ }
801
+ },
802
+ {
803
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/JsonWebKey",
804
+ "resource" : {
805
+ "resourceType" : "StructureDefinition",
806
+ "id" : "JsonWebKey",
807
+ "name" : "JsonWebKey",
808
+ "description" : "A JSON object that represents a cryptographic key. The members of the object represent properties of the key, including its value.",
809
+ "snapshot" : {
810
+ "element" : [
811
+ {
812
+ "id" : "JsonWebKey.id",
813
+ "path" : "JsonWebKey.id",
814
+ "short" : "Logical id of this artifact",
815
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
816
+ "min" : 0,
817
+ "max" : "1",
818
+ "type" : [{
819
+ "code" : "string"
820
+ }]
821
+ },
822
+ {
823
+ "id" : "JsonWebKey.meta",
824
+ "path" : "JsonWebKey.meta",
825
+ "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
826
+ "min" : 0,
827
+ "max" : "1",
828
+ "type" : [{
829
+ "code" : "Meta"
830
+ }]
831
+ },
832
+ {
833
+ "id" : "JsonWebKey.implicitRules",
834
+ "path" : "JsonWebKey.implicitRules",
835
+ "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
836
+ "min" : 0,
837
+ "max" : "1",
838
+ "type" : [{
839
+ "code" : "uri"
840
+ }]
841
+ },
842
+ {
843
+ "id" : "JsonWebKey.language",
844
+ "path" : "JsonWebKey.language",
845
+ "definition" : "The base language in which the resource is written.",
846
+ "min" : 0,
847
+ "max" : "1",
848
+ "type" : [{
849
+ "code" : "code"
850
+ }]
851
+ },
852
+ {
853
+ "id": "JsonWebKey.active",
854
+ "path": "JsonWebKey.active",
855
+ "definition": "Whether this key is in active use.",
856
+ "min": 0,
857
+ "max": "1",
858
+ "type": [
859
+ {
860
+ "code": "boolean"
861
+ }
862
+ ]
863
+ },
864
+ {
865
+ "id": "JsonWebKey.alg",
866
+ "path": "JsonWebKey.alg",
867
+ "definition": "The specific cryptographic algorithm used with the key.",
868
+ "min": 0,
869
+ "max": "1",
870
+ "type": [
871
+ {
872
+ "code": "string"
873
+ }
874
+ ]
875
+ },
876
+ {
877
+ "id": "JsonWebKey.kty",
878
+ "path": "JsonWebKey.kty",
879
+ "definition": "The family of cryptographic algorithms used with the key.",
880
+ "min": 0,
881
+ "max": "1",
882
+ "type": [
883
+ {
884
+ "code": "string"
885
+ }
886
+ ]
887
+ },
888
+ {
889
+ "id": "JsonWebKey.use",
890
+ "path": "JsonWebKey.use",
891
+ "definition": "How the key was meant to be used; sig represents the signature.",
892
+ "min": 0,
893
+ "max": "1",
894
+ "type": [
895
+ {
896
+ "code": "string"
897
+ }
898
+ ]
899
+ },
900
+ {
901
+ "id": "JsonWebKey.key_ops",
902
+ "path": "JsonWebKey.key_ops",
903
+ "definition": "The operation(s) for which the key is intended to be used.",
904
+ "min": 0,
905
+ "max": "*",
906
+ "type": [
907
+ {
908
+ "code": "string"
909
+ }
910
+ ]
911
+ },
912
+ {
913
+ "id": "JsonWebKey.x5c",
914
+ "path": "JsonWebKey.x5c",
915
+ "definition": "The x.509 certificate chain. The first entry in the array is the certificate to use for token verification; the other certificates can be used to verify this first certificate.",
916
+ "min": 0,
917
+ "max": "*",
918
+ "type": [
919
+ {
920
+ "code": "string"
921
+ }
922
+ ]
923
+ },
924
+ {
925
+ "id": "JsonWebKey.n",
926
+ "path": "JsonWebKey.n",
927
+ "definition": "The modulus for the RSA public key.",
928
+ "min": 0,
929
+ "max": "1",
930
+ "type": [
931
+ {
932
+ "code": "string"
933
+ }
934
+ ]
935
+ },
936
+ {
937
+ "id": "JsonWebKey.e",
938
+ "path": "JsonWebKey.e",
939
+ "definition": "The exponent for the RSA public key.",
940
+ "min": 0,
941
+ "max": "1",
942
+ "type": [
943
+ {
944
+ "code": "string"
945
+ }
946
+ ]
947
+ },
948
+ {
949
+ "id": "JsonWebKey.kid",
950
+ "path": "JsonWebKey.kid",
951
+ "definition": "The unique identifier for the key.",
952
+ "min": 0,
953
+ "max": "1",
954
+ "type": [
955
+ {
956
+ "code": "string"
957
+ }
958
+ ]
959
+ },
960
+ {
961
+ "id": "JsonWebKey.x5t",
962
+ "path": "JsonWebKey.x5t",
963
+ "definition": "The thumbprint of the x.509 cert (SHA-1 thumbprint).",
964
+ "min": 0,
965
+ "max": "1",
966
+ "type": [
967
+ {
968
+ "code": "string"
969
+ }
970
+ ]
971
+ },
972
+ {
973
+ "id": "JsonWebKey.d",
974
+ "path": "JsonWebKey.d",
975
+ "definition": "The exponent for the RSA private key.",
976
+ "min": 0,
977
+ "max": "1",
978
+ "type": [
979
+ {
980
+ "code": "string"
981
+ }
982
+ ]
983
+ },
984
+ {
985
+ "id": "JsonWebKey.p",
986
+ "path": "JsonWebKey.p",
987
+ "definition": "The first prime factor.",
988
+ "min": 0,
989
+ "max": "1",
990
+ "type": [
991
+ {
992
+ "code": "string"
993
+ }
994
+ ]
995
+ },
996
+ {
997
+ "id": "JsonWebKey.q",
998
+ "path": "JsonWebKey.q",
999
+ "definition": "The second prime factor.",
1000
+ "min": 0,
1001
+ "max": "1",
1002
+ "type": [
1003
+ {
1004
+ "code": "string"
1005
+ }
1006
+ ]
1007
+ },
1008
+ {
1009
+ "id": "JsonWebKey.dp",
1010
+ "path": "JsonWebKey.dp",
1011
+ "definition": "The first factor CRT exponent.",
1012
+ "min": 0,
1013
+ "max": "1",
1014
+ "type": [
1015
+ {
1016
+ "code": "string"
1017
+ }
1018
+ ]
1019
+ },
1020
+ {
1021
+ "id": "JsonWebKey.dq",
1022
+ "path": "JsonWebKey.dq",
1023
+ "definition": "The second factor CRT exponent.",
1024
+ "min": 0,
1025
+ "max": "1",
1026
+ "type": [
1027
+ {
1028
+ "code": "string"
1029
+ }
1030
+ ]
1031
+ },
1032
+ {
1033
+ "id": "JsonWebKey.qi",
1034
+ "path": "JsonWebKey.qi",
1035
+ "definition": "The first CRT coefficient.",
1036
+ "min": 0,
1037
+ "max": "1",
1038
+ "type": [
1039
+ {
1040
+ "code": "string"
1041
+ }
1042
+ ]
1043
+ }
1044
+ ]
1045
+ }
1046
+ }
1047
+ },
1048
+ {
1049
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/AccessPolicy",
1050
+ "resource" : {
1051
+ "resourceType" : "StructureDefinition",
1052
+ "id" : "AccessPolicy",
1053
+ "name" : "AccessPolicy",
1054
+ "description" : "Access Policy for user or user group that defines how entities can or cannot access resources.",
1055
+ "snapshot" : {
1056
+ "element" : [
1057
+ {
1058
+ "id" : "AccessPolicy.id",
1059
+ "path" : "AccessPolicy.id",
1060
+ "short" : "Logical id of this artifact",
1061
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
1062
+ "min" : 0,
1063
+ "max" : "1",
1064
+ "type" : [{
1065
+ "code" : "string"
1066
+ }]
1067
+ },
1068
+ {
1069
+ "id" : "AccessPolicy.meta",
1070
+ "path" : "AccessPolicy.meta",
1071
+ "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
1072
+ "min" : 0,
1073
+ "max" : "1",
1074
+ "type" : [{
1075
+ "code" : "Meta"
1076
+ }]
1077
+ },
1078
+ {
1079
+ "id" : "AccessPolicy.implicitRules",
1080
+ "path" : "AccessPolicy.implicitRules",
1081
+ "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
1082
+ "min" : 0,
1083
+ "max" : "1",
1084
+ "type" : [{
1085
+ "code" : "uri"
1086
+ }]
1087
+ },
1088
+ {
1089
+ "id" : "AccessPolicy.language",
1090
+ "path" : "AccessPolicy.language",
1091
+ "definition" : "The base language in which the resource is written.",
1092
+ "min" : 0,
1093
+ "max" : "1",
1094
+ "type" : [{
1095
+ "code" : "code"
1096
+ }]
1097
+ },
1098
+ {
1099
+ "id" : "AccessPolicy.name",
1100
+ "path" : "AccessPolicy.name",
1101
+ "definition" : "A name associated with the AccessPolicy.",
1102
+ "min" : 0,
1103
+ "max" : "1",
1104
+ "type" : [{
1105
+ "code" : "string"
1106
+ }]
1107
+ },
1108
+ {
1109
+ "id" : "AccessPolicy.compartment",
1110
+ "path" : "AccessPolicy.compartment",
1111
+ "definition" : "Optional compartment for newly created resources. If this field is set, any resources created by a user with this access policy will automatically be included in the specified compartment.",
1112
+ "min" : 0,
1113
+ "max" : "1",
1114
+ "type" : [{
1115
+ "code" : "Reference"
1116
+ }]
1117
+ },
1118
+ {
1119
+ "id" : "AccessPolicy.resource",
1120
+ "path" : "AccessPolicy.resource",
1121
+ "definition" : "Access details for a resource type.",
1122
+ "min" : 0,
1123
+ "max" : "*",
1124
+ "type" : [{
1125
+ "code" : "BackboneElement"
1126
+ }]
1127
+ },
1128
+ {
1129
+ "id" : "AccessPolicy.resource.resourceType",
1130
+ "path" : "AccessPolicy.resource.resourceType",
1131
+ "definition" : "The resource type.",
1132
+ "min" : 1,
1133
+ "max" : "1",
1134
+ "type" : [{
1135
+ "code" : "string"
1136
+ }]
1137
+ },
1138
+ {
1139
+ "id" : "AccessPolicy.resource.compartment",
1140
+ "path" : "AccessPolicy.resource.compartment",
1141
+ "definition" : "Optional compartment restriction for the resource type.",
1142
+ "min" : 0,
1143
+ "max" : "1",
1144
+ "type" : [{
1145
+ "code" : "Reference"
1146
+ }]
1147
+ },
1148
+ {
1149
+ "id" : "AccessPolicy.resource.readonly",
1150
+ "path" : "AccessPolicy.resource.readonly",
1151
+ "definition" : "Optional flag to indicate that the resource type is read-only.",
1152
+ "min" : 0,
1153
+ "max" : "1",
1154
+ "type" : [{
1155
+ "code" : "boolean"
1156
+ }]
1157
+ },
1158
+ {
1159
+ "id" : "AccessPolicy.resource.hiddenFields",
1160
+ "path" : "AccessPolicy.resource.hiddenFields",
1161
+ "definition" : "Optional list of hidden fields. Hidden fields are not readable or writeable.",
1162
+ "min" : 0,
1163
+ "max" : "*",
1164
+ "type" : [{
1165
+ "code" : "string"
1166
+ }]
1167
+ },
1168
+ {
1169
+ "id" : "AccessPolicy.resource.readonlyFields",
1170
+ "path" : "AccessPolicy.resource.readonlyFields",
1171
+ "definition" : "Optional list of read-only fields. Read-only fields are readable but not writeable.",
1172
+ "min" : 0,
1173
+ "max" : "*",
1174
+ "type" : [{
1175
+ "code" : "string"
1176
+ }]
1177
+ }
1178
+ ]
1179
+ }
1180
+ }
1181
+ }]
1182
+ }