@medplum/definitions 0.3.0 → 0.5.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.
package/README.md CHANGED
@@ -8,4 +8,4 @@ This package contains raw data definitions for a number of healthcare standards.
8
8
 
9
9
  ## License
10
10
 
11
- Apache 2.0. Copyright © Medplum 2021
11
+ Apache 2.0. Copyright © Medplum 2022
@@ -159,7 +159,8 @@
159
159
  "PasswordChangeRequest": "#/definitions/PasswordChangeRequest",
160
160
  "JsonWebKey": "#/definitions/JsonWebKey",
161
161
  "Bot": "#/definitions/Bot",
162
- "AccessPolicy": "#/definitions/AccessPolicy"
162
+ "AccessPolicy": "#/definitions/AccessPolicy",
163
+ "UserConfiguration": "#/definitions/UserConfiguration"
163
164
  }
164
165
  },
165
166
  "oneOf": [
@@ -627,6 +628,9 @@
627
628
  },
628
629
  {
629
630
  "$ref": "#/definitions/AccessPolicy"
631
+ },
632
+ {
633
+ "$ref": "#/definitions/UserConfiguration"
630
634
  }
631
635
  ],
632
636
  "definitions": {
@@ -1096,6 +1100,9 @@
1096
1100
  },
1097
1101
  {
1098
1102
  "$ref": "#/definitions/AccessPolicy"
1103
+ },
1104
+ {
1105
+ "$ref": "#/definitions/UserConfiguration"
1099
1106
  }
1100
1107
  ]
1101
1108
  },
@@ -61036,6 +61043,17 @@
61036
61043
  "owner": {
61037
61044
  "description": "Indicates the user with responsibility for managing the Project.",
61038
61045
  "$ref": "#/definitions/Reference"
61046
+ },
61047
+ "features": {
61048
+ "description": "A list of optional features that are enabled for the project.",
61049
+ "items": {
61050
+ "$ref": "#/definitions/code"
61051
+ },
61052
+ "type": "array"
61053
+ },
61054
+ "defaultPatientAccessPolicy": {
61055
+ "description": "The default access policy for patients using open registration.",
61056
+ "$ref": "#/definitions/Reference"
61039
61057
  }
61040
61058
  },
61041
61059
  "required": [
@@ -61082,6 +61100,10 @@
61082
61100
  "description": "User that is granted access to the project.",
61083
61101
  "$ref": "#/definitions/Reference"
61084
61102
  },
61103
+ "userConfiguration": {
61104
+ "description": "The user configuration for the user within the project memebership such as menu links, saved searches, and features.",
61105
+ "$ref": "#/definitions/Reference"
61106
+ },
61085
61107
  "admin": {
61086
61108
  "description": "Whether this user is a project administrator.",
61087
61109
  "$ref": "#/definitions/boolean"
@@ -61143,8 +61165,7 @@
61143
61165
  },
61144
61166
  "required": [
61145
61167
  "resourceType",
61146
- "secret",
61147
- "redirectUri"
61168
+ "secret"
61148
61169
  ]
61149
61170
  },
61150
61171
  "User": {
@@ -61235,14 +61256,18 @@
61235
61256
  "description": "The user requesting the code.",
61236
61257
  "$ref": "#/definitions/Reference"
61237
61258
  },
61238
- "profile": {
61239
- "description": "Reference to the user's FHIR identity for this login (patient, practitioner, etc).",
61259
+ "membership": {
61260
+ "description": "Reference to the project membership which includes FHIR identity (patient, practitioner, etc), access policy, and user configuration.",
61240
61261
  "$ref": "#/definitions/Reference"
61241
61262
  },
61242
61263
  "scope": {
61243
61264
  "description": "OAuth scope or scopes.",
61244
61265
  "$ref": "#/definitions/string"
61245
61266
  },
61267
+ "authMethod": {
61268
+ "description": "The authentication method used to obtain the code (password or google).",
61269
+ "$ref": "#/definitions/string"
61270
+ },
61246
61271
  "authTime": {
61247
61272
  "description": "Time when the End-User authentication occurred.",
61248
61273
  "$ref": "#/definitions/instant"
@@ -61286,17 +61311,17 @@
61286
61311
  },
61287
61312
  "type": "array"
61288
61313
  },
61289
- "project": {
61290
- "description": "Reference to the default project for the duration of the login.",
61291
- "$ref": "#/definitions/Reference"
61292
- },
61293
- "accessPolicy": {
61294
- "description": "Collection of compartments that the user has been granted access. This is a flattened collection of all ProjectMembership compartments at the time of login.",
61295
- "$ref": "#/definitions/Reference"
61296
- },
61297
61314
  "admin": {
61298
61315
  "description": "Whether this login has system administrator privileges.",
61299
61316
  "$ref": "#/definitions/boolean"
61317
+ },
61318
+ "remoteAddress": {
61319
+ "description": "The Internet Protocol (IP) address of the client or last proxy that sent the request.",
61320
+ "$ref": "#/definitions/string"
61321
+ },
61322
+ "userAgent": {
61323
+ "description": "The User-Agent request header as sent by the client.",
61324
+ "$ref": "#/definitions/string"
61300
61325
  }
61301
61326
  }
61302
61327
  },
@@ -61579,6 +61604,140 @@
61579
61604
  "type": "array"
61580
61605
  }
61581
61606
  }
61607
+ },
61608
+ "UserConfiguration": {
61609
+ "description": "User specific configuration for the Medplum application.",
61610
+ "properties": {
61611
+ "resourceType": {
61612
+ "description": "This is a UserConfiguration resource",
61613
+ "const": "UserConfiguration"
61614
+ },
61615
+ "id": {
61616
+ "description": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
61617
+ "$ref": "#/definitions/id"
61618
+ },
61619
+ "meta": {
61620
+ "description": "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.",
61621
+ "$ref": "#/definitions/Meta"
61622
+ },
61623
+ "implicitRules": {
61624
+ "description": "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.",
61625
+ "$ref": "#/definitions/uri"
61626
+ },
61627
+ "_implicitRules": {
61628
+ "description": "Extensions for implicitRules",
61629
+ "$ref": "#/definitions/Element"
61630
+ },
61631
+ "language": {
61632
+ "description": "The base language in which the resource is written.",
61633
+ "$ref": "#/definitions/code"
61634
+ },
61635
+ "_language": {
61636
+ "description": "Extensions for language",
61637
+ "$ref": "#/definitions/Element"
61638
+ },
61639
+ "name": {
61640
+ "description": "A name associated with the UserConfiguration.",
61641
+ "$ref": "#/definitions/string"
61642
+ },
61643
+ "menu": {
61644
+ "description": "Optional menu of shortcuts to URLs for quick access.",
61645
+ "items": {
61646
+ "$ref": "#/definitions/UserConfiguration_Menu"
61647
+ },
61648
+ "type": "array"
61649
+ },
61650
+ "search": {
61651
+ "description": "Optional collection of search filters for quick access to preconfigured searches.",
61652
+ "items": {
61653
+ "$ref": "#/definitions/UserConfiguration_Search"
61654
+ },
61655
+ "type": "array"
61656
+ },
61657
+ "option": {
61658
+ "description": "User options that control the display of the application.",
61659
+ "items": {
61660
+ "$ref": "#/definitions/UserConfiguration_Option"
61661
+ },
61662
+ "type": "array"
61663
+ }
61664
+ }
61665
+ },
61666
+ "UserConfiguration_Menu": {
61667
+ "description": "Optional menu of shortcuts to URLs.",
61668
+ "properties": {
61669
+ "title": {
61670
+ "description": "The resource type.",
61671
+ "$ref": "#/definitions/string"
61672
+ },
61673
+ "link": {
61674
+ "description": "Shortcut links to URLs.",
61675
+ "items": {
61676
+ "$ref": "#/definitions/UserConfiguration_Menu_Link"
61677
+ },
61678
+ "type": "array"
61679
+ }
61680
+ }
61681
+ },
61682
+ "UserConfiguration_Menu_Link": {
61683
+ "description": "Shortcut links to URLs.",
61684
+ "properties": {
61685
+ "name": {
61686
+ "description": "The human friendly name of the link.",
61687
+ "$ref": "#/definitions/string"
61688
+ },
61689
+ "target": {
61690
+ "description": "The URL target of the link.",
61691
+ "$ref": "#/definitions/string"
61692
+ }
61693
+ }
61694
+ },
61695
+ "UserConfiguration_Search": {
61696
+ "description": "Optional collection of search filters for quick access to preconfigured searches.",
61697
+ "properties": {
61698
+ "name": {
61699
+ "description": "The human friendly name of the link.",
61700
+ "$ref": "#/definitions/string"
61701
+ },
61702
+ "criteria": {
61703
+ "description": "The rules that the server should use to determine which resources to return.",
61704
+ "$ref": "#/definitions/string"
61705
+ }
61706
+ }
61707
+ },
61708
+ "UserConfiguration_Option": {
61709
+ "description": "User options that control the display of the application.",
61710
+ "properties": {
61711
+ "id": {
61712
+ "description": "The unique identifier of the option.",
61713
+ "$ref": "#/definitions/id"
61714
+ },
61715
+ "valueBoolean": {
61716
+ "description": "Value of option - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
61717
+ "pattern": "^true|false$",
61718
+ "type": "boolean"
61719
+ },
61720
+ "valueCode": {
61721
+ "description": "Value of option - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
61722
+ "pattern": "^[^\\s]+(\\s[^\\s]+)*$",
61723
+ "type": "string"
61724
+ },
61725
+ "valueDecimal": {
61726
+ "description": "Value of option - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
61727
+ "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?([eE][+-]?[0-9]+)?$",
61728
+ "type": "number"
61729
+ },
61730
+ "valueInteger": {
61731
+ "description": "Value of option - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
61732
+ "pattern": "^-?([0]|([1-9][0-9]*))$",
61733
+ "type": "number"
61734
+ },
61735
+ "valueString": {
61736
+ "description": "Value of option - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
61737
+ "pattern": "^[ \\r\\n\\t\\S]+$",
61738
+ "type": "string"
61739
+ }
61740
+ }
61582
61741
  }
61583
61742
  }
61584
61743
  }
@@ -84,6 +84,27 @@
84
84
  "code" : "Reference",
85
85
  "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/User"]
86
86
  }]
87
+ },
88
+ {
89
+ "id" : "Project.features",
90
+ "path" : "Project.features",
91
+ "definition" : "A list of optional features that are enabled for the project.",
92
+ "min" : 0,
93
+ "max" : "*",
94
+ "type" : [{
95
+ "code" : "code"
96
+ }]
97
+ },
98
+ {
99
+ "id" : "Project.defaultPatientAccessPolicy",
100
+ "path" : "Project.defaultPatientAccessPolicy",
101
+ "definition" : "The default access policy for patients using open registration.",
102
+ "min" : 0,
103
+ "max" : "1",
104
+ "type" : [{
105
+ "code" : "Reference",
106
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/AccessPolicy"]
107
+ }]
87
108
  }
88
109
  ]
89
110
  }
@@ -336,7 +357,8 @@
336
357
  "max" : "1",
337
358
  "type" : [{
338
359
  "code" : "Reference",
339
- "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/User"]
360
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/ClientApplication",
361
+ "https://medplum.com/fhir/StructureDefinition/User"]
340
362
  }]
341
363
  },
342
364
  {
@@ -347,30 +369,32 @@
347
369
  "max" : "1",
348
370
  "type" : [{
349
371
  "code" : "Reference",
350
- "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
351
- "http://hl7.org/fhir/StructureDefinition/Practitioner",
352
- "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
372
+ "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ClientApplication",
373
+ "http://hl7.org/fhir/StructureDefinition/Patient",
374
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
375
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
353
376
  }]
354
377
  },
355
378
  {
356
- "id" : "ProjectMembership.account",
357
- "path" : "ProjectMembership.account",
358
- "definition" : "Optional account reference that can be used for sub-project compartments.",
379
+ "id" : "ProjectMembership.accessPolicy",
380
+ "path" : "ProjectMembership.accessPolicy",
381
+ "definition" : "The access policy for the user within the project memebership.",
359
382
  "min" : 0,
360
383
  "max" : "1",
361
384
  "type" : [{
362
- "code" : "Reference"
385
+ "code" : "Reference",
386
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/AccessPolicy"]
363
387
  }]
364
388
  },
365
389
  {
366
- "id" : "ProjectMembership.accessPolicy",
367
- "path" : "ProjectMembership.accessPolicy",
368
- "definition" : "The access policy for the user within the project memebership.",
390
+ "id" : "ProjectMembership.userConfiguration",
391
+ "path" : "ProjectMembership.userConfiguration",
392
+ "definition" : "The user configuration for the user within the project memebership such as menu links, saved searches, and features.",
369
393
  "min" : 0,
370
394
  "max" : "1",
371
395
  "type" : [{
372
396
  "code" : "Reference",
373
- "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/AccessPolicy"]
397
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/UserConfiguration"]
374
398
  }]
375
399
  },
376
400
  {
@@ -551,21 +575,19 @@
551
575
  "max" : "1",
552
576
  "type" : [{
553
577
  "code" : "Reference",
554
- "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/User"]
578
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/ClientApplication",
579
+ "https://medplum.com/fhir/StructureDefinition/User"]
555
580
  }]
556
581
  },
557
582
  {
558
- "id" : "Login.profile",
559
- "path" : "Login.profile",
560
- "definition" : "Reference to the user's FHIR identity for this login (patient, practitioner, etc).",
583
+ "id" : "Login.membership",
584
+ "path" : "Login.membership",
585
+ "definition" : "Reference to the project membership which includes FHIR identity (patient, practitioner, etc), access policy, and user configuration.",
561
586
  "min" : 1,
562
587
  "max" : "1",
563
588
  "type" : [{
564
589
  "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"]
590
+ "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/ProjectMembership"]
569
591
  }]
570
592
  },
571
593
  {
@@ -578,6 +600,16 @@
578
600
  "code" : "string"
579
601
  }]
580
602
  },
603
+ {
604
+ "id" : "Login.authMethod",
605
+ "path" : "Login.authMethod",
606
+ "definition" : "The authentication method used to obtain the code (password or google).",
607
+ "min" : 1,
608
+ "max" : "1",
609
+ "type" : [{
610
+ "code" : "string"
611
+ }]
612
+ },
581
613
  {
582
614
  "id" : "Login.authTime",
583
615
  "path" : "Login.authTime",
@@ -669,35 +701,33 @@
669
701
  }]
670
702
  },
671
703
  {
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.",
704
+ "id" : "Login.admin",
705
+ "path" : "Login.admin",
706
+ "definition" : "Whether this login has system administrator privileges.",
675
707
  "min" : 0,
676
708
  "max" : "1",
677
709
  "type" : [{
678
- "code" : "Reference",
679
- "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/AccessPolicy"]
710
+ "code" : "boolean"
680
711
  }]
681
712
  },
682
713
  {
683
- "id" : "Login.project",
684
- "path" : "Login.project",
685
- "definition" : "Reference to the default project for the duration of the login.",
714
+ "id" : "Login.remoteAddress",
715
+ "path" : "Login.remoteAddress",
716
+ "definition" : "The Internet Protocol (IP) address of the client or last proxy that sent the request.",
686
717
  "min" : 0,
687
718
  "max" : "1",
688
719
  "type" : [{
689
- "code" : "Reference",
690
- "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/Project"]
720
+ "code" : "string"
691
721
  }]
692
722
  },
693
723
  {
694
- "id" : "Login.admin",
695
- "path" : "Login.admin",
696
- "definition" : "Whether this login has system administrator privileges.",
724
+ "id" : "Login.userAgent",
725
+ "path" : "Login.userAgent",
726
+ "definition" : "The User-Agent request header as sent by the client.",
697
727
  "min" : 0,
698
728
  "max" : "1",
699
729
  "type" : [{
700
- "code" : "boolean"
730
+ "code" : "string"
701
731
  }]
702
732
  }
703
733
  ]
@@ -1178,5 +1208,194 @@
1178
1208
  ]
1179
1209
  }
1180
1210
  }
1211
+ },
1212
+ {
1213
+ "fullUrl" : "https://medplum.com/fhir/StructureDefinition/UserConfiguration",
1214
+ "resource" : {
1215
+ "resourceType" : "StructureDefinition",
1216
+ "id" : "UserConfiguration",
1217
+ "name" : "UserConfiguration",
1218
+ "description" : "User specific configuration for the Medplum application.",
1219
+ "snapshot" : {
1220
+ "element" : [
1221
+ {
1222
+ "id" : "UserConfiguration.id",
1223
+ "path" : "UserConfiguration.id",
1224
+ "short" : "Logical id of this artifact",
1225
+ "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
1226
+ "min" : 0,
1227
+ "max" : "1",
1228
+ "type" : [{
1229
+ "code" : "string"
1230
+ }]
1231
+ },
1232
+ {
1233
+ "id" : "UserConfiguration.meta",
1234
+ "path" : "UserConfiguration.meta",
1235
+ "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.",
1236
+ "min" : 0,
1237
+ "max" : "1",
1238
+ "type" : [{
1239
+ "code" : "Meta"
1240
+ }]
1241
+ },
1242
+ {
1243
+ "id" : "UserConfiguration.implicitRules",
1244
+ "path" : "UserConfiguration.implicitRules",
1245
+ "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.",
1246
+ "min" : 0,
1247
+ "max" : "1",
1248
+ "type" : [{
1249
+ "code" : "uri"
1250
+ }]
1251
+ },
1252
+ {
1253
+ "id" : "UserConfiguration.language",
1254
+ "path" : "UserConfiguration.language",
1255
+ "definition" : "The base language in which the resource is written.",
1256
+ "min" : 0,
1257
+ "max" : "1",
1258
+ "type" : [{
1259
+ "code" : "code"
1260
+ }]
1261
+ },
1262
+ {
1263
+ "id" : "UserConfiguration.name",
1264
+ "path" : "UserConfiguration.name",
1265
+ "definition" : "A name associated with the UserConfiguration.",
1266
+ "min" : 0,
1267
+ "max" : "1",
1268
+ "type" : [{
1269
+ "code" : "string"
1270
+ }]
1271
+ },
1272
+ {
1273
+ "id" : "UserConfiguration.menu",
1274
+ "path" : "UserConfiguration.menu",
1275
+ "definition" : "Optional menu of shortcuts to URLs.",
1276
+ "min" : 0,
1277
+ "max" : "*",
1278
+ "type" : [{
1279
+ "code" : "BackboneElement"
1280
+ }]
1281
+ },
1282
+ {
1283
+ "id" : "UserConfiguration.menu.title",
1284
+ "path" : "UserConfiguration.menu.title",
1285
+ "definition" : "Title of the menu.",
1286
+ "min" : 1,
1287
+ "max" : "1",
1288
+ "type" : [{
1289
+ "code" : "string"
1290
+ }]
1291
+ },
1292
+ {
1293
+ "id" : "UserConfiguration.menu.link",
1294
+ "path" : "UserConfiguration.menu.link",
1295
+ "definition" : "Shortcut links to URLs.",
1296
+ "min" : 0,
1297
+ "max" : "*",
1298
+ "type" : [{
1299
+ "code" : "BackboneElement"
1300
+ }]
1301
+ },
1302
+ {
1303
+ "id" : "UserConfiguration.menu.link.name",
1304
+ "path" : "UserConfiguration.menu.link.name",
1305
+ "definition" : "The human friendly name of the link.",
1306
+ "min" : 1,
1307
+ "max" : "1",
1308
+ "type" : [{
1309
+ "code" : "string"
1310
+ }]
1311
+ },
1312
+ {
1313
+ "id" : "UserConfiguration.menu.link.target",
1314
+ "path" : "UserConfiguration.menu.link.target",
1315
+ "definition" : "The URL target of the link.",
1316
+ "min" : 1,
1317
+ "max" : "1",
1318
+ "type" : [{
1319
+ "code" : "url"
1320
+ }]
1321
+ },
1322
+ {
1323
+ "id" : "UserConfiguration.search",
1324
+ "path" : "UserConfiguration.search",
1325
+ "definition" : "Shortcut links to URLs.",
1326
+ "min" : 0,
1327
+ "max" : "*",
1328
+ "type" : [{
1329
+ "code" : "BackboneElement"
1330
+ }]
1331
+ },
1332
+ {
1333
+ "id" : "UserConfiguration.search.name",
1334
+ "path" : "UserConfiguration.search.name",
1335
+ "definition" : "The human friendly name of the link.",
1336
+ "min" : 1,
1337
+ "max" : "1",
1338
+ "type" : [{
1339
+ "code" : "string"
1340
+ }]
1341
+ },
1342
+ {
1343
+ "id" : "UserConfiguration.search.criteria",
1344
+ "path" : "UserConfiguration.search.criteria",
1345
+ "definition" : "The rules that the server should use to determine which resources to return.",
1346
+ "comment" : "The rules are search criteria (without the [base] part). Like Bundle.entry.request.url, it has no leading \"/\".",
1347
+ "min" : 1,
1348
+ "max" : "1",
1349
+ "type" : [{
1350
+ "code" : "string"
1351
+ }]
1352
+ },
1353
+ {
1354
+ "id" : "UserConfiguration.option",
1355
+ "path" : "UserConfiguration.option",
1356
+ "definition" : "User options that control the display of the application.",
1357
+ "min" : 0,
1358
+ "max" : "*",
1359
+ "type" : [{
1360
+ "code" : "BackboneElement"
1361
+ }]
1362
+ },
1363
+ {
1364
+ "id" : "UserConfiguration.option.id",
1365
+ "path" : "UserConfiguration.option.id",
1366
+ "definition" : "The unique identifier of the option.",
1367
+ "min" : 1,
1368
+ "max" : "1",
1369
+ "type" : [{
1370
+ "code" : "code"
1371
+ }]
1372
+ },
1373
+ {
1374
+ "id" : "UserConfiguration.option.value[x]",
1375
+ "path" : "UserConfiguration.option.value[x]",
1376
+ "short" : "Value of option",
1377
+ "definition" : "Value of option - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
1378
+ "min" : 1,
1379
+ "max" : "1",
1380
+ "type" : [
1381
+ {
1382
+ "code" : "boolean"
1383
+ },
1384
+ {
1385
+ "code" : "code"
1386
+ },
1387
+ {
1388
+ "code" : "decimal"
1389
+ },
1390
+ {
1391
+ "code" : "integer"
1392
+ },
1393
+ {
1394
+ "code" : "string"
1395
+ }]
1396
+ }
1397
+ ]
1398
+ }
1399
+ }
1181
1400
  }]
1182
1401
  }
@@ -60423,6 +60423,43 @@
60423
60423
  "ap"]
60424
60424
  }
60425
60425
  },
60426
+ {
60427
+ "fullUrl" : "http://hl7.org/fhir/SearchParameter/ServiceRequest-order-detail",
60428
+ "resource" : {
60429
+ "resourceType" : "SearchParameter",
60430
+ "id" : "ServiceRequest-order-detail",
60431
+ "extension" : [{
60432
+ "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
60433
+ "valueCode" : "trial-use"
60434
+ }],
60435
+ "url" : "http://hl7.org/fhir/SearchParameter/ServiceRequest-order-detail",
60436
+ "version" : "4.0.1",
60437
+ "name" : "order-details",
60438
+ "status" : "draft",
60439
+ "experimental" : false,
60440
+ "date" : "2019-11-01T09:29:23+11:00",
60441
+ "publisher" : "Health Level Seven International (Orders and Observations)",
60442
+ "contact" : [{
60443
+ "telecom" : [{
60444
+ "system" : "url",
60445
+ "value" : "http://hl7.org/fhir"
60446
+ }]
60447
+ },
60448
+ {
60449
+ "telecom" : [{
60450
+ "system" : "url",
60451
+ "value" : "http://www.hl7.org/Special/committees/orders/index.cfm"
60452
+ }]
60453
+ }],
60454
+ "description" : "Order detail",
60455
+ "code" : "order-detail",
60456
+ "base" : ["ServiceRequest"],
60457
+ "type" : "token",
60458
+ "expression" : "ServiceRequest.orderDetail.text",
60459
+ "xpath" : "f:ServiceRequest/f:orderDetail/f:text",
60460
+ "xpathUsage" : "normal"
60461
+ }
60462
+ },
60426
60463
  {
60427
60464
  "fullUrl" : "http://hl7.org/fhir/SearchParameter/ServiceRequest-performer",
60428
60465
  "resource" : {
@@ -65473,7 +65510,7 @@
65473
65510
  "expression" : "ProjectMembership.user",
65474
65511
  "xpath" : "f:ProjectMembership/f:user",
65475
65512
  "xpathUsage" : "normal",
65476
- "target" : ["User"]
65513
+ "target" : ["ClientApplication", "User"]
65477
65514
  }
65478
65515
  },
65479
65516
  {
@@ -65578,5 +65615,22 @@
65578
65615
  "xpath" : "f:Bot/f:name",
65579
65616
  "xpathUsage" : "normal"
65580
65617
  }
65618
+ },
65619
+ {
65620
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/UserConfiguration-name",
65621
+ "resource" : {
65622
+ "resourceType" : "SearchParameter",
65623
+ "id" : "UserConfiguration-name",
65624
+ "url" : "https://medplum.com/fhir/SearchParameter/UserConfiguration-name",
65625
+ "version" : "4.0.1",
65626
+ "name" : "name",
65627
+ "publisher" : "Medplum",
65628
+ "code" : "name",
65629
+ "base" : ["UserConfiguration"],
65630
+ "type" : "string",
65631
+ "expression" : "UserConfiguration.name",
65632
+ "xpath" : "f:UserConfiguration/f:name",
65633
+ "xpathUsage" : "normal"
65634
+ }
65581
65635
  }]
65582
65636
  }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * List of property types.
3
+ * http://www.hl7.org/fhir/valueset-defined-types.html
4
+ * The list here includes additions found from StructureDefinition resources.
5
+ */
6
+ export declare enum PropertyType {
7
+ Address = "Address",
8
+ Age = "Age",
9
+ Annotation = "Annotation",
10
+ Attachment = "Attachment",
11
+ BackboneElement = "BackboneElement",
12
+ CodeableConcept = "CodeableConcept",
13
+ Coding = "Coding",
14
+ ContactDetail = "ContactDetail",
15
+ ContactPoint = "ContactPoint",
16
+ Contributor = "Contributor",
17
+ Count = "Count",
18
+ DataRequirement = "DataRequirement",
19
+ Distance = "Distance",
20
+ Dosage = "Dosage",
21
+ Duration = "Duration",
22
+ Expression = "Expression",
23
+ Extension = "Extension",
24
+ HumanName = "HumanName",
25
+ Identifier = "Identifier",
26
+ MarketingStatus = "MarketingStatus",
27
+ Meta = "Meta",
28
+ Money = "Money",
29
+ Narrative = "Narrative",
30
+ ParameterDefinition = "ParameterDefinition",
31
+ Period = "Period",
32
+ Population = "Population",
33
+ ProdCharacteristic = "ProdCharacteristic",
34
+ ProductShelfLife = "ProductShelfLife",
35
+ Quantity = "Quantity",
36
+ Range = "Range",
37
+ Ratio = "Ratio",
38
+ Reference = "Reference",
39
+ RelatedArtifact = "RelatedArtifact",
40
+ Resource = "Resource",
41
+ SampledData = "SampledData",
42
+ Signature = "Signature",
43
+ SubstanceAmount = "SubstanceAmount",
44
+ SystemString = "http://hl7.org/fhirpath/System.String",
45
+ Timing = "Timing",
46
+ TriggerDefinition = "TriggerDefinition",
47
+ UsageContext = "UsageContext",
48
+ base64Binary = "base64Binary",
49
+ boolean = "boolean",
50
+ canonical = "canonical",
51
+ code = "code",
52
+ date = "date",
53
+ dateTime = "dateTime",
54
+ decimal = "decimal",
55
+ id = "id",
56
+ instant = "instant",
57
+ integer = "integer",
58
+ markdown = "markdown",
59
+ oid = "oid",
60
+ positiveInt = "positiveInt",
61
+ string = "string",
62
+ time = "time",
63
+ unsignedInt = "unsignedInt",
64
+ uri = "uri",
65
+ url = "url",
66
+ uuid = "uuid"
67
+ }
68
+ /**
69
+ * A TypedValue includes a value and a type.
70
+ */
71
+ export interface TypedValue<T> {
72
+ value: T;
73
+ propertyType: PropertyType;
74
+ }
package/dist/types.js ADDED
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PropertyType = void 0;
4
+ /**
5
+ * List of property types.
6
+ * http://www.hl7.org/fhir/valueset-defined-types.html
7
+ * The list here includes additions found from StructureDefinition resources.
8
+ */
9
+ var PropertyType;
10
+ (function (PropertyType) {
11
+ PropertyType["Address"] = "Address";
12
+ PropertyType["Age"] = "Age";
13
+ PropertyType["Annotation"] = "Annotation";
14
+ PropertyType["Attachment"] = "Attachment";
15
+ PropertyType["BackboneElement"] = "BackboneElement";
16
+ PropertyType["CodeableConcept"] = "CodeableConcept";
17
+ PropertyType["Coding"] = "Coding";
18
+ PropertyType["ContactDetail"] = "ContactDetail";
19
+ PropertyType["ContactPoint"] = "ContactPoint";
20
+ PropertyType["Contributor"] = "Contributor";
21
+ PropertyType["Count"] = "Count";
22
+ PropertyType["DataRequirement"] = "DataRequirement";
23
+ PropertyType["Distance"] = "Distance";
24
+ PropertyType["Dosage"] = "Dosage";
25
+ PropertyType["Duration"] = "Duration";
26
+ PropertyType["Expression"] = "Expression";
27
+ PropertyType["Extension"] = "Extension";
28
+ PropertyType["HumanName"] = "HumanName";
29
+ PropertyType["Identifier"] = "Identifier";
30
+ PropertyType["MarketingStatus"] = "MarketingStatus";
31
+ PropertyType["Meta"] = "Meta";
32
+ PropertyType["Money"] = "Money";
33
+ PropertyType["Narrative"] = "Narrative";
34
+ PropertyType["ParameterDefinition"] = "ParameterDefinition";
35
+ PropertyType["Period"] = "Period";
36
+ PropertyType["Population"] = "Population";
37
+ PropertyType["ProdCharacteristic"] = "ProdCharacteristic";
38
+ PropertyType["ProductShelfLife"] = "ProductShelfLife";
39
+ PropertyType["Quantity"] = "Quantity";
40
+ PropertyType["Range"] = "Range";
41
+ PropertyType["Ratio"] = "Ratio";
42
+ PropertyType["Reference"] = "Reference";
43
+ PropertyType["RelatedArtifact"] = "RelatedArtifact";
44
+ PropertyType["Resource"] = "Resource";
45
+ PropertyType["SampledData"] = "SampledData";
46
+ PropertyType["Signature"] = "Signature";
47
+ PropertyType["SubstanceAmount"] = "SubstanceAmount";
48
+ PropertyType["SystemString"] = "http://hl7.org/fhirpath/System.String";
49
+ PropertyType["Timing"] = "Timing";
50
+ PropertyType["TriggerDefinition"] = "TriggerDefinition";
51
+ PropertyType["UsageContext"] = "UsageContext";
52
+ PropertyType["base64Binary"] = "base64Binary";
53
+ PropertyType["boolean"] = "boolean";
54
+ PropertyType["canonical"] = "canonical";
55
+ PropertyType["code"] = "code";
56
+ PropertyType["date"] = "date";
57
+ PropertyType["dateTime"] = "dateTime";
58
+ PropertyType["decimal"] = "decimal";
59
+ PropertyType["id"] = "id";
60
+ PropertyType["instant"] = "instant";
61
+ PropertyType["integer"] = "integer";
62
+ PropertyType["markdown"] = "markdown";
63
+ PropertyType["oid"] = "oid";
64
+ PropertyType["positiveInt"] = "positiveInt";
65
+ PropertyType["string"] = "string";
66
+ PropertyType["time"] = "time";
67
+ PropertyType["unsignedInt"] = "unsignedInt";
68
+ PropertyType["uri"] = "uri";
69
+ PropertyType["url"] = "url";
70
+ PropertyType["uuid"] = "uuid";
71
+ })(PropertyType = exports.PropertyType || (exports.PropertyType = {}));
72
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,YA6DX;AA7DD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;IACX,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;IACzB,mDAAmC,CAAA;IACnC,mDAAmC,CAAA;IACnC,iCAAiB,CAAA;IACjB,+CAA+B,CAAA;IAC/B,6CAA6B,CAAA;IAC7B,2CAA2B,CAAA;IAC3B,+BAAe,CAAA;IACf,mDAAmC,CAAA;IACnC,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;IACzB,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;IACvB,yCAAyB,CAAA;IACzB,mDAAmC,CAAA;IACnC,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,2DAA2C,CAAA;IAC3C,iCAAiB,CAAA;IACjB,yCAAyB,CAAA;IACzB,yDAAyC,CAAA;IACzC,qDAAqC,CAAA;IACrC,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,mDAAmC,CAAA;IACnC,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,uCAAuB,CAAA;IACvB,mDAAmC,CAAA;IACnC,sEAAsD,CAAA;IACtD,iCAAiB,CAAA;IACjB,uDAAuC,CAAA;IACvC,6CAA6B,CAAA;IAC7B,6CAA6B,CAAA;IAC7B,mCAAmB,CAAA;IACnB,uCAAuB,CAAA;IACvB,6BAAa,CAAA;IACb,6BAAa,CAAA;IACb,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,yBAAS,CAAA;IACT,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;IACX,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,2CAA2B,CAAA;IAC3B,2BAAW,CAAA;IACX,2BAAW,CAAA;IACX,6BAAa,CAAA;AACf,CAAC,EA7DW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QA6DvB","sourcesContent":["/**\n * List of property types.\n * http://www.hl7.org/fhir/valueset-defined-types.html\n * The list here includes additions found from StructureDefinition resources.\n */\nexport enum PropertyType {\n Address = 'Address',\n Age = 'Age',\n Annotation = 'Annotation',\n Attachment = 'Attachment',\n BackboneElement = 'BackboneElement',\n CodeableConcept = 'CodeableConcept',\n Coding = 'Coding',\n ContactDetail = 'ContactDetail',\n ContactPoint = 'ContactPoint',\n Contributor = 'Contributor',\n Count = 'Count',\n DataRequirement = 'DataRequirement',\n Distance = 'Distance',\n Dosage = 'Dosage',\n Duration = 'Duration',\n Expression = 'Expression',\n Extension = 'Extension',\n HumanName = 'HumanName',\n Identifier = 'Identifier',\n MarketingStatus = 'MarketingStatus',\n Meta = 'Meta',\n Money = 'Money',\n Narrative = 'Narrative',\n ParameterDefinition = 'ParameterDefinition',\n Period = 'Period',\n Population = 'Population',\n ProdCharacteristic = 'ProdCharacteristic',\n ProductShelfLife = 'ProductShelfLife',\n Quantity = 'Quantity',\n Range = 'Range',\n Ratio = 'Ratio',\n Reference = 'Reference',\n RelatedArtifact = 'RelatedArtifact',\n Resource = 'Resource',\n SampledData = 'SampledData',\n Signature = 'Signature',\n SubstanceAmount = 'SubstanceAmount',\n SystemString = 'http://hl7.org/fhirpath/System.String',\n Timing = 'Timing',\n TriggerDefinition = 'TriggerDefinition',\n UsageContext = 'UsageContext',\n base64Binary = 'base64Binary',\n boolean = 'boolean',\n canonical = 'canonical',\n code = 'code',\n date = 'date',\n dateTime = 'dateTime',\n decimal = 'decimal',\n id = 'id',\n instant = 'instant',\n integer = 'integer',\n markdown = 'markdown',\n oid = 'oid',\n positiveInt = 'positiveInt',\n string = 'string',\n time = 'time',\n unsignedInt = 'unsignedInt',\n uri = 'uri',\n url = 'url',\n uuid = 'uuid',\n}\n\n/**\n * A TypedValue includes a value and a type.\n */\nexport interface TypedValue<T> {\n value: T;\n propertyType: PropertyType;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/definitions",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Medplum Data Definitions",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",