@medplum/fhirtypes 0.4.0 → 0.4.1
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/dist/Login.d.ts +5 -21
- package/dist/ProjectMembership.d.ts +10 -2
- package/dist/Resource.d.ts +2 -0
- package/dist/UserConfiguration.d.ts +148 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/Login.d.ts
CHANGED
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AccessPolicy } from './AccessPolicy';
|
|
7
6
|
import { ClientApplication } from './ClientApplication';
|
|
8
7
|
import { Meta } from './Meta';
|
|
9
|
-
import {
|
|
10
|
-
import { Practitioner } from './Practitioner';
|
|
11
|
-
import { Project } from './Project';
|
|
8
|
+
import { ProjectMembership } from './ProjectMembership';
|
|
12
9
|
import { Reference } from './Reference';
|
|
13
|
-
import { RelatedPerson } from './RelatedPerson';
|
|
14
10
|
import { User } from './User';
|
|
15
11
|
|
|
16
12
|
/**
|
|
@@ -57,13 +53,13 @@ export interface Login {
|
|
|
57
53
|
/**
|
|
58
54
|
* The user requesting the code.
|
|
59
55
|
*/
|
|
60
|
-
readonly user?: Reference<User>;
|
|
56
|
+
readonly user?: Reference<ClientApplication | User>;
|
|
61
57
|
|
|
62
58
|
/**
|
|
63
|
-
* Reference to the
|
|
64
|
-
* practitioner, etc).
|
|
59
|
+
* Reference to the project membership which includes FHIR identity
|
|
60
|
+
* (patient, practitioner, etc), access policy, and user configuration.
|
|
65
61
|
*/
|
|
66
|
-
readonly
|
|
62
|
+
readonly membership?: Reference<ProjectMembership>;
|
|
67
63
|
|
|
68
64
|
/**
|
|
69
65
|
* OAuth scope or scopes.
|
|
@@ -127,18 +123,6 @@ export interface Login {
|
|
|
127
123
|
*/
|
|
128
124
|
readonly revoked?: boolean;
|
|
129
125
|
|
|
130
|
-
/**
|
|
131
|
-
* Collection of compartments that the user has been granted access.
|
|
132
|
-
* This is a flattened collection of all ProjectMembership compartments
|
|
133
|
-
* at the time of login.
|
|
134
|
-
*/
|
|
135
|
-
readonly accessPolicy?: Reference<AccessPolicy>;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Reference to the default project for the duration of the login.
|
|
139
|
-
*/
|
|
140
|
-
readonly project?: Reference<Project>;
|
|
141
|
-
|
|
142
126
|
/**
|
|
143
127
|
* Whether this login has system administrator privileges.
|
|
144
128
|
*/
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { AccessPolicy } from './AccessPolicy';
|
|
7
|
+
import { ClientApplication } from './ClientApplication';
|
|
7
8
|
import { Meta } from './Meta';
|
|
8
9
|
import { Patient } from './Patient';
|
|
9
10
|
import { Practitioner } from './Practitioner';
|
|
@@ -11,6 +12,7 @@ import { Project } from './Project';
|
|
|
11
12
|
import { Reference } from './Reference';
|
|
12
13
|
import { RelatedPerson } from './RelatedPerson';
|
|
13
14
|
import { User } from './User';
|
|
15
|
+
import { UserConfiguration } from './UserConfiguration';
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* Medplum project membership. A project membership grants a user access
|
|
@@ -57,13 +59,13 @@ export interface ProjectMembership {
|
|
|
57
59
|
/**
|
|
58
60
|
* User that is granted access to the project.
|
|
59
61
|
*/
|
|
60
|
-
readonly user?: Reference<User>;
|
|
62
|
+
readonly user?: Reference<ClientApplication | User>;
|
|
61
63
|
|
|
62
64
|
/**
|
|
63
65
|
* Reference to the resource that represents the user profile within the
|
|
64
66
|
* project.
|
|
65
67
|
*/
|
|
66
|
-
readonly profile?: Reference<Patient | Practitioner | RelatedPerson>;
|
|
68
|
+
readonly profile?: Reference<ClientApplication | Patient | Practitioner | RelatedPerson>;
|
|
67
69
|
|
|
68
70
|
/**
|
|
69
71
|
* Optional account reference that can be used for sub-project
|
|
@@ -76,6 +78,12 @@ export interface ProjectMembership {
|
|
|
76
78
|
*/
|
|
77
79
|
readonly accessPolicy?: Reference<AccessPolicy>;
|
|
78
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The user configuration for the user within the project memebership
|
|
83
|
+
* such as menu links, saved searches, and features.
|
|
84
|
+
*/
|
|
85
|
+
readonly userConfiguration?: Reference<UserConfiguration>;
|
|
86
|
+
|
|
79
87
|
/**
|
|
80
88
|
* Whether this user is a project administrator.
|
|
81
89
|
*/
|
package/dist/Resource.d.ts
CHANGED
|
@@ -155,6 +155,7 @@ import { TerminologyCapabilities } from './TerminologyCapabilities';
|
|
|
155
155
|
import { TestReport } from './TestReport';
|
|
156
156
|
import { TestScript } from './TestScript';
|
|
157
157
|
import { User } from './User';
|
|
158
|
+
import { UserConfiguration } from './UserConfiguration';
|
|
158
159
|
import { ValueSet } from './ValueSet';
|
|
159
160
|
import { VerificationResult } from './VerificationResult';
|
|
160
161
|
import { VisionPrescription } from './VisionPrescription';
|
|
@@ -311,6 +312,7 @@ export type Resource = AccessPolicy
|
|
|
311
312
|
| TestReport
|
|
312
313
|
| TestScript
|
|
313
314
|
| User
|
|
315
|
+
| UserConfiguration
|
|
314
316
|
| ValueSet
|
|
315
317
|
| VerificationResult
|
|
316
318
|
| VisionPrescription;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by @medplum/generator
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { Meta } from './Meta';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* User specific configuration for the Medplum application.
|
|
10
|
+
*/
|
|
11
|
+
export interface UserConfiguration {
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* This is a UserConfiguration resource
|
|
15
|
+
*/
|
|
16
|
+
readonly resourceType: 'UserConfiguration';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The logical id of the resource, as used in the URL for the resource.
|
|
20
|
+
* Once assigned, this value never changes.
|
|
21
|
+
*/
|
|
22
|
+
readonly id?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The metadata about the resource. This is content that is maintained by
|
|
26
|
+
* the infrastructure. Changes to the content might not always be
|
|
27
|
+
* associated with version changes to the resource.
|
|
28
|
+
*/
|
|
29
|
+
readonly meta?: Meta;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A reference to a set of rules that were followed when the resource was
|
|
33
|
+
* constructed, and which must be understood when processing the content.
|
|
34
|
+
* Often, this is a reference to an implementation guide that defines the
|
|
35
|
+
* special rules along with other profiles etc.
|
|
36
|
+
*/
|
|
37
|
+
readonly implicitRules?: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The base language in which the resource is written.
|
|
41
|
+
*/
|
|
42
|
+
readonly language?: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Optional menu of shortcuts to URLs.
|
|
46
|
+
*/
|
|
47
|
+
readonly menu?: UserConfigurationMenu[];
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Shortcut links to URLs.
|
|
51
|
+
*/
|
|
52
|
+
readonly search?: UserConfigurationSearch[];
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* User options that control the display of the application.
|
|
56
|
+
*/
|
|
57
|
+
readonly option?: UserConfigurationOption[];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Optional menu of shortcuts to URLs.
|
|
62
|
+
*/
|
|
63
|
+
export interface UserConfigurationMenu {
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Title of the menu.
|
|
67
|
+
*/
|
|
68
|
+
readonly title?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Shortcut links to URLs.
|
|
72
|
+
*/
|
|
73
|
+
readonly link?: UserConfigurationMenuLink[];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Shortcut links to URLs.
|
|
78
|
+
*/
|
|
79
|
+
export interface UserConfigurationMenuLink {
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The human friendly name of the link.
|
|
83
|
+
*/
|
|
84
|
+
readonly name?: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The URL target of the link.
|
|
88
|
+
*/
|
|
89
|
+
readonly target?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* User options that control the display of the application.
|
|
94
|
+
*/
|
|
95
|
+
export interface UserConfigurationOption {
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The unique identifier of the option.
|
|
99
|
+
*/
|
|
100
|
+
readonly id?: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Value of option - must be one of a constrained set of the data types
|
|
104
|
+
* (see [Extensibility](extensibility.html) for a list).
|
|
105
|
+
*/
|
|
106
|
+
readonly valueBoolean?: boolean;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Value of option - must be one of a constrained set of the data types
|
|
110
|
+
* (see [Extensibility](extensibility.html) for a list).
|
|
111
|
+
*/
|
|
112
|
+
readonly valueCode?: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Value of option - must be one of a constrained set of the data types
|
|
116
|
+
* (see [Extensibility](extensibility.html) for a list).
|
|
117
|
+
*/
|
|
118
|
+
readonly valueDecimal?: number;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Value of option - must be one of a constrained set of the data types
|
|
122
|
+
* (see [Extensibility](extensibility.html) for a list).
|
|
123
|
+
*/
|
|
124
|
+
readonly valueInteger?: number;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Value of option - must be one of a constrained set of the data types
|
|
128
|
+
* (see [Extensibility](extensibility.html) for a list).
|
|
129
|
+
*/
|
|
130
|
+
readonly valueString?: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Shortcut links to URLs.
|
|
135
|
+
*/
|
|
136
|
+
export interface UserConfigurationSearch {
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The human friendly name of the link.
|
|
140
|
+
*/
|
|
141
|
+
readonly name?: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The rules that the server should use to determine which resources to
|
|
145
|
+
* return.
|
|
146
|
+
*/
|
|
147
|
+
readonly criteria?: string;
|
|
148
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -196,6 +196,7 @@ export * from './Timing';
|
|
|
196
196
|
export * from './TriggerDefinition';
|
|
197
197
|
export * from './UsageContext';
|
|
198
198
|
export * from './User';
|
|
199
|
+
export * from './UserConfiguration';
|
|
199
200
|
export * from './ValueSet';
|
|
200
201
|
export * from './VerificationResult';
|
|
201
202
|
export * from './VisionPrescription';
|