@medplum/definitions 2.0.3 → 2.0.5

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.
@@ -61303,6 +61303,14 @@
61303
61303
  "launchUri": {
61304
61304
  "description": "Optional launch URI for SMART EHR launch sequence.",
61305
61305
  "$ref": "#/definitions/string"
61306
+ },
61307
+ "pkceOptional": {
61308
+ "description": "Flag to make PKCE optional for this client application. PKCE is required by default for compliance with Smart App Launch. It can be disabled for compatibility with legacy client applications.",
61309
+ "$ref": "#/definitions/boolean"
61310
+ },
61311
+ "identityProvider": {
61312
+ "description": "Optional external Identity Provider (IdP) for the client application.",
61313
+ "$ref": "#/definitions/IdentityProvider"
61306
61314
  }
61307
61315
  },
61308
61316
  "required": [
@@ -61911,6 +61919,35 @@
61911
61919
  "type": "string"
61912
61920
  }
61913
61921
  }
61922
+ },
61923
+ "IdentityProvider": {
61924
+ "description": "External Identity Provider (IdP) configuration details.",
61925
+ "properties": {
61926
+ "authorizeUrl": {
61927
+ "description": "Remote URL for the external Identity Provider authorize endpoint.",
61928
+ "$ref": "#/definitions/string"
61929
+ },
61930
+ "tokenUrl": {
61931
+ "description": "Remote URL for the external Identity Provider token endpoint.",
61932
+ "$ref": "#/definitions/string"
61933
+ },
61934
+ "userInfoUrl": {
61935
+ "description": "Remote URL for the external Identity Provider userinfo endpoint.",
61936
+ "$ref": "#/definitions/string"
61937
+ },
61938
+ "clientId": {
61939
+ "description": "External Identity Provider client ID.",
61940
+ "$ref": "#/definitions/string"
61941
+ },
61942
+ "clientSecret": {
61943
+ "description": "External Identity Provider client secret.",
61944
+ "$ref": "#/definitions/string"
61945
+ },
61946
+ "useSubject": {
61947
+ "description": "Optional flag to use the subject field instead of the email field.",
61948
+ "$ref": "#/definitions/boolean"
61949
+ }
61950
+ }
61914
61951
  }
61915
61952
  }
61916
61953
  }
@@ -281,6 +281,46 @@
281
281
  "type" : [{
282
282
  "code" : "string"
283
283
  }]
284
+ },
285
+ {
286
+ "id" : "Project.ipAccessRule",
287
+ "path" : "Project.ipAccessRule",
288
+ "definition" : "Use IP Access Rules to allowlist, block, and challenge traffic based on the visitor IP address.",
289
+ "min" : 0,
290
+ "max" : "*",
291
+ "type" : [{
292
+ "code" : "BackboneElement"
293
+ }]
294
+ },
295
+ {
296
+ "id" : "Project.ipAccessRule.name",
297
+ "path" : "Project.ipAccessRule.name",
298
+ "definition" : "Friendly name that will make it easy for you to identify the IP Access Rule in the future.",
299
+ "min" : 0,
300
+ "max" : "1",
301
+ "type" : [{
302
+ "code" : "string"
303
+ }]
304
+ },
305
+ {
306
+ "id" : "Project.ipAccessRule.value",
307
+ "path" : "Project.ipAccessRule.value",
308
+ "definition" : "An IP Access rule will apply a certain action to incoming traffic based on the visitor IP address or IP range.",
309
+ "min" : 1,
310
+ "max" : "1",
311
+ "type" : [{
312
+ "code" : "string"
313
+ }]
314
+ },
315
+ {
316
+ "id" : "Project.ipAccessRule.action",
317
+ "path" : "Project.ipAccessRule.action",
318
+ "definition" : "Access rule can perform one of the following actions: \"allow\" | \"block\".",
319
+ "min" : 1,
320
+ "max" : "1",
321
+ "type" : [{
322
+ "code" : "string"
323
+ }]
284
324
  }
285
325
  ]
286
326
  }
@@ -557,11 +597,21 @@
557
597
  "code" : "string"
558
598
  }]
559
599
  },
600
+ {
601
+ "id" : "User.externalId",
602
+ "path" : "User.externalId",
603
+ "definition" : "A String that is an identifier for the resource as defined by the provisioning client. The \"externalId\" may simplify identification of a resource between the provisioning client and the service provider by allowing the client to use a filter to locate the resource with an identifier from the provisioning domain, obviating the need to store a local mapping between the provisioning domain's identifier of the resource and the identifier used by the service provider. Each resource MAY include a non-empty \"externalId\" value. The value of the \"externalId\" attribute is always issued by the provisioning client and MUST NOT be specified by the service provider. The service provider MUST always interpret the externalId as scoped to the provisioning domain.",
604
+ "min" : 0,
605
+ "max" : "1",
606
+ "type" : [{
607
+ "code" : "string"
608
+ }]
609
+ },
560
610
  {
561
611
  "id" : "User.email",
562
612
  "path" : "User.email",
563
613
  "definition" : "The email address that uniquely identifies the user.",
564
- "min" : 1,
614
+ "min" : 0,
565
615
  "max" : "1",
566
616
  "type" : [{
567
617
  "code" : "string"
@@ -728,6 +778,17 @@
728
778
  "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/Project"]
729
779
  }]
730
780
  },
781
+ {
782
+ "id" : "ProjectMembership.invitedBy",
783
+ "path" : "ProjectMembership.invitedBy",
784
+ "definition" : "The project administrator who invited the user to the project.",
785
+ "min" : 0,
786
+ "max" : "1",
787
+ "type" : [{
788
+ "code" : "Reference",
789
+ "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/User"]
790
+ }]
791
+ },
731
792
  {
732
793
  "id" : "ProjectMembership.user",
733
794
  "path" : "ProjectMembership.user",
@@ -48205,7 +48205,7 @@
48205
48205
  "max" : "1"
48206
48206
  },
48207
48207
  "type" : [{
48208
- "code" : "Resource"
48208
+ "code" : "OperationOutcome"
48209
48209
  }],
48210
48210
  "isModifier" : false,
48211
48211
  "isSummary" : true
@@ -65673,6 +65673,25 @@
65673
65673
  "xpathUsage" : "normal"
65674
65674
  }
65675
65675
  },
65676
+ {
65677
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/User-external-id",
65678
+ "resource" : {
65679
+ "resourceType" : "SearchParameter",
65680
+ "id" : "User-external-id",
65681
+ "url" : "https://medplum.com/fhir/SearchParameter/User-external-id",
65682
+ "version" : "4.0.1",
65683
+ "name" : "external-id",
65684
+ "status" : "draft",
65685
+ "publisher" : "Medplum",
65686
+ "description" : "The externalID of the user",
65687
+ "code" : "external-id",
65688
+ "base" : ["User"],
65689
+ "type" : "string",
65690
+ "expression" : "User.externalId",
65691
+ "xpath" : "f:User/f:externalId",
65692
+ "xpathUsage" : "normal"
65693
+ }
65694
+ },
65676
65695
  {
65677
65696
  "fullUrl" : "https://medplum.com/fhir/SearchParameter/User-project",
65678
65697
  "resource" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/definitions",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Medplum Data Definitions",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "scripts": {
14
14
  "clean": "rimraf dist/index.js dist/index.d.ts",
15
- "build": "npm run clean && tsc",
15
+ "build": "npm run clean && tsc --project tsconfig.build.json",
16
16
  "test": "jest"
17
17
  },
18
18
  "main": "dist/index.js",
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "dist",
5
+ "noEmit": false
6
+ },
7
+ "exclude": ["**/*.test.ts"]
8
+ }
package/dist/types.d.ts DELETED
@@ -1,74 +0,0 @@
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 DELETED
@@ -1,72 +0,0 @@
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
package/dist/types.js.map DELETED
@@ -1 +0,0 @@
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"]}