@medplum/definitions 5.1.29 → 5.1.30

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.
@@ -62097,7 +62097,7 @@
62097
62097
  "$ref": "#/definitions/string"
62098
62098
  },
62099
62099
  "email": {
62100
- "description": "The email address that uniquely identifies the user.",
62100
+ "description": "The email address that uniquely identifies the user. Must be all lowercase.",
62101
62101
  "$ref": "#/definitions/string"
62102
62102
  },
62103
62103
  "emailVerified": {
@@ -1406,12 +1406,18 @@
1406
1406
  {
1407
1407
  "id" : "User.email",
1408
1408
  "path" : "User.email",
1409
- "definition" : "The email address that uniquely identifies the user.",
1409
+ "definition" : "The email address that uniquely identifies the user. Must be all lowercase.",
1410
1410
  "min" : 0,
1411
1411
  "max" : "1",
1412
1412
  "type" : [{
1413
1413
  "code" : "string"
1414
1414
  }],
1415
+ "constraint" : [{
1416
+ "key" : "user-1",
1417
+ "severity" : "error",
1418
+ "human" : "Email must be all lowercase",
1419
+ "expression" : "$this = $this.lower()"
1420
+ }],
1415
1421
  "base": {
1416
1422
  "path" : "User.email",
1417
1423
  "min" : 0,
@@ -9187,6 +9193,289 @@
9187
9193
  ]
9188
9194
  }
9189
9195
  },
9196
+ {
9197
+ "fullUrl": "https://medplum.com/fhir/OperationDefinition/ConceptMap-translate",
9198
+ "resource": {
9199
+ "resourceType": "OperationDefinition",
9200
+ "url": "http://hl7.org/fhir/OperationDefinition/ConceptMap-translate",
9201
+ "version": "4.0.1 / 5.0.0",
9202
+ "name": "Translate",
9203
+ "title": "Concept Translation",
9204
+ "status": "draft",
9205
+ "kind": "operation",
9206
+ "experimental": false,
9207
+ "description": "Translate a code from one value set to another, based on the specified ConceptMap resource. If no ConceptMap resource is specified, then other additional knowledge available to the server may be used. \\r\\n\\r\\n One (and only one) of the in parameters (sourceCode, sourceCoding, sourceCodeableConcept, targetCode, targetCoding, or targetCodeableConcept) SHALL be provided, to identify the code that is to be translated. \\r\\n\\r\\n The operation returns a set of parameters including a 'result' for whether there is an acceptable match, and a list of possible matches. Note that the list of matches may include notes of codes for which mapping is specifically excluded (i.e. 'not-related-to'), so implementers have to check the target.relationship for each match. If a source* parameter is provided, the $translate operation will return all matches whereby the provided source concept is the source of a mapping relationship (in a specified ConceptMap or otherwise known to the server). If a target* parameter is provided, the $translate operation will return all matches whereby the provided target concept is the target of a mapping relationship (in a specified ConceptMap or otherwise known to the server). Note: The source value set is an optional parameter because in some cases, the client cannot know what the source value set is. However, without a source value set, the server may be unable to safely identify an applicable concept map, and would return an error. For this reason, a source value set SHOULD always be provided. Note that servers may be able to identify an appropriate concept map without a source value set if there is a full mapping for the entire code system in the concept map, or by manual intervention.",
9208
+ "code": "translate",
9209
+ "resource": [ "ConceptMap" ],
9210
+ "system": false,
9211
+ "type": true,
9212
+ "instance": true,
9213
+ "parameter": [
9214
+ {
9215
+ "name": "url",
9216
+ "use": "in",
9217
+ "min": 0,
9218
+ "max": "1",
9219
+ "documentation": "A canonical URL for a concept map. The server must know the concept map (e.g. it is defined explicitly in the server's concept maps, or it is defined implicitly by some code system known to the server.",
9220
+ "type": "uri"
9221
+ },
9222
+ {
9223
+ "name": "source",
9224
+ "use": "in",
9225
+ "min": 0,
9226
+ "max": "1",
9227
+ "documentation": "Identifies the value set used when the concept (system/code pair) was chosen. May be a logical id, or an absolute or relative location. The source value set is an optional parameter because in some cases, the client cannot know what the source value set is. However, without a source value set, the server may be unable to safely identify an applicable concept map, and would return an error. For this reason, a source value set SHOULD always be provided. Note that servers may be able to identify an appropriate concept map without a source value set if there is a full mapping for the entire code system in the concept map, or by manual intervention",
9228
+ "type": "uri"
9229
+ },
9230
+ {
9231
+ "name": "conceptMap",
9232
+ "use": "in",
9233
+ "min": 0,
9234
+ "max": "1",
9235
+ "documentation": "The concept map is provided directly as part of the request. Servers may choose not to accept concept maps in this fashion.",
9236
+ "type": "ConceptMap"
9237
+ },
9238
+ {
9239
+ "name": "code",
9240
+ "use": "in",
9241
+ "min": 0,
9242
+ "max": "1",
9243
+ "documentation": "The code that is to be translated. If a code is provided, a system must be provided",
9244
+ "type": "code"
9245
+ },
9246
+ {
9247
+ "name": "system",
9248
+ "use": "in",
9249
+ "min": 0,
9250
+ "max": "1",
9251
+ "documentation": "The system for the code that is to be translated",
9252
+ "type": "uri"
9253
+ },
9254
+ {
9255
+ "name": "coding",
9256
+ "use": "in",
9257
+ "min": 0,
9258
+ "max": "1",
9259
+ "documentation": "A coding to translate",
9260
+ "type": "Coding"
9261
+ },
9262
+ {
9263
+ "name": "codeableConcept",
9264
+ "use": "in",
9265
+ "min": 0,
9266
+ "max": "1",
9267
+ "documentation": "A full codeableConcept to validate. The server can translate any of the coding values (e.g. existing translations) as it chooses",
9268
+ "type": "CodeableConcept"
9269
+ },
9270
+ {
9271
+ "name": "targetsystem",
9272
+ "use": "in",
9273
+ "min": 0,
9274
+ "max": "1",
9275
+ "documentation": "Identifies a target code system in which a mapping is sought. This parameter is an alternative to the targetScope parameter - only one is required. Searching for any translation to a target code system irrespective of the context (e.g. target valueset) may lead to unsafe results, and it is at the discretion of the server to decide when to support this operation",
9276
+ "type": "uri"
9277
+ },
9278
+ {
9279
+ "name": "result",
9280
+ "use": "out",
9281
+ "min": 1,
9282
+ "max": "1",
9283
+ "documentation": "True if the concept could be translated successfully. The value can only be true if at least one returned match has a relationship other than 'not-related-to'.",
9284
+ "type": "boolean"
9285
+ },
9286
+ {
9287
+ "name": "message",
9288
+ "use": "out",
9289
+ "min": 0,
9290
+ "max": "1",
9291
+ "documentation": "Error details, for display to a human. If this is provided when result = true, the message carries hints and warnings (e.g. a note that the matches could be improved by providing additional detail)",
9292
+ "type": "string"
9293
+ },
9294
+ {
9295
+ "name": "match",
9296
+ "use": "out",
9297
+ "min": 0,
9298
+ "max": "*",
9299
+ "documentation": "A concept in the target value set with a relationship. Note that there may be multiple matches of equal or differing relationships, and the matches may include the 'not-related-to' relationship value which means that there is no translation",
9300
+ "part": [
9301
+ {
9302
+ "name": "equivalence",
9303
+ "use": "out",
9304
+ "min": 0,
9305
+ "max": "1",
9306
+ "documentation": "A code indicating the equivalence of the translation, using values from [ConceptMapEquivalence](valueset-concept-map-equivalence.html)",
9307
+ "type": "code"
9308
+ },
9309
+ {
9310
+ "name": "concept",
9311
+ "use": "out",
9312
+ "min": 0,
9313
+ "max": "1",
9314
+ "documentation": "The translation outcome. Note that this would never have userSelected = true, since the process of translations implies that the user is not selecting the code (and only the client could know differently)",
9315
+ "type": "Coding"
9316
+ },
9317
+ {
9318
+ "name": "property",
9319
+ "use": "out",
9320
+ "min": 0,
9321
+ "max": "*",
9322
+ "documentation": "A property of this mapping (may be used to supply for example, mapping priority, provenance, presentation hints, flag as experimental, and additional documentation)",
9323
+ "part": [
9324
+ {
9325
+ "name": "uri",
9326
+ "use": "out",
9327
+ "min": 1,
9328
+ "max": "1",
9329
+ "documentation": "The uri that identifies the property",
9330
+ "type": "uri"
9331
+ },
9332
+ {
9333
+ "extension": [
9334
+ {
9335
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9336
+ "valueUri": "Coding"
9337
+ },
9338
+ {
9339
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9340
+ "valueUri": "string"
9341
+ },
9342
+ {
9343
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9344
+ "valueUri": "integer"
9345
+ },
9346
+ {
9347
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9348
+ "valueUri": "boolean"
9349
+ },
9350
+ {
9351
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9352
+ "valueUri": "dateTime"
9353
+ },
9354
+ {
9355
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9356
+ "valueUri": "decimal"
9357
+ },
9358
+ {
9359
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9360
+ "valueUri": "code"
9361
+ }
9362
+ ],
9363
+ "name": "value",
9364
+ "use": "out",
9365
+ "min": 1,
9366
+ "max": "1",
9367
+ "documentation": "The value of the property",
9368
+ "type": "Element"
9369
+ }
9370
+ ]
9371
+ },
9372
+ {
9373
+ "name": "product",
9374
+ "use": "out",
9375
+ "min": 0,
9376
+ "max": "*",
9377
+ "documentation": "A data value to go in an attribute that is the product of this mapping",
9378
+ "part": [
9379
+ {
9380
+ "name": "attribute",
9381
+ "use": "out",
9382
+ "min": 1,
9383
+ "max": "1",
9384
+ "documentation": "The attribute for this product",
9385
+ "type": "uri"
9386
+ },
9387
+ {
9388
+ "extension": [
9389
+ {
9390
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9391
+ "valueUri": "code"
9392
+ },
9393
+ {
9394
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9395
+ "valueUri": "Coding"
9396
+ },
9397
+ {
9398
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9399
+ "valueUri": "string"
9400
+ },
9401
+ {
9402
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9403
+ "valueUri": "boolean"
9404
+ },
9405
+ {
9406
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9407
+ "valueUri": "Quantity"
9408
+ }
9409
+ ],
9410
+ "name": "value",
9411
+ "use": "out",
9412
+ "min": 1,
9413
+ "max": "1",
9414
+ "documentation": "The value for this product",
9415
+ "type": "Element"
9416
+ }
9417
+ ]
9418
+ },
9419
+ {
9420
+ "name": "dependsOn",
9421
+ "use": "out",
9422
+ "min": 0,
9423
+ "max": "*",
9424
+ "documentation": "An data value in an additional attribute that this mapping depends on",
9425
+ "part": [
9426
+ {
9427
+ "name": "attribute",
9428
+ "use": "out",
9429
+ "min": 1,
9430
+ "max": "1",
9431
+ "documentation": "The attribute for this product",
9432
+ "type": "uri"
9433
+ },
9434
+ {
9435
+ "extension": [
9436
+ {
9437
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9438
+ "valueUri": "code"
9439
+ },
9440
+ {
9441
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9442
+ "valueUri": "Coding"
9443
+ },
9444
+ {
9445
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9446
+ "valueUri": "string"
9447
+ },
9448
+ {
9449
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9450
+ "valueUri": "boolean"
9451
+ },
9452
+ {
9453
+ "url": "http://hl7.org/fhir/StructureDefinition/operationdefinition-allowed-type",
9454
+ "valueUri": "Quantity"
9455
+ }
9456
+ ],
9457
+ "name": "value",
9458
+ "use": "out",
9459
+ "min": 1,
9460
+ "max": "1",
9461
+ "documentation": "The value for this product",
9462
+ "type": "Element"
9463
+ }
9464
+ ]
9465
+ },
9466
+ {
9467
+ "name": "originMap",
9468
+ "use": "out",
9469
+ "min": 0,
9470
+ "max": "1",
9471
+ "documentation": "The canonical reference to the concept map from which this mapping comes from",
9472
+ "type": "uri"
9473
+ }
9474
+ ]
9475
+ }
9476
+ ]
9477
+ }
9478
+ },
9190
9479
  {
9191
9480
  "fullUrl" : "https://medplum.com/fhir/StructureDefinition/DicomStudy",
9192
9481
  "resource" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/definitions",
3
- "version": "5.1.29",
3
+ "version": "5.1.30",
4
4
  "description": "Medplum Data Definitions",
5
5
  "keywords": [
6
6
  "medplum",
@@ -60,6 +60,6 @@
60
60
  "node": "^22.18.0 || >=24.2.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@medplum/fhirtypes": "5.1.29"
63
+ "@medplum/fhirtypes": "5.1.30"
64
64
  }
65
65
  }