@medplum/fhirtypes 5.1.22 → 5.1.24
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 +24 -0
- package/dist/Meta.d.ts +5 -0
- package/dist/Project.d.ts +23 -1
- package/dist/ProjectMembership.d.ts +2 -2
- package/dist/Resource.d.ts +2 -0
- package/dist/SmartHealthLink.d.ts +159 -0
- package/dist/User.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/Login.d.ts
CHANGED
|
@@ -196,6 +196,12 @@ export interface Login {
|
|
|
196
196
|
*/
|
|
197
197
|
mfaVerified?: boolean;
|
|
198
198
|
|
|
199
|
+
/**
|
|
200
|
+
* Single-use 6-digit code for email-based MFA. Set when a code is issued
|
|
201
|
+
* for this login and cleared on verification.
|
|
202
|
+
*/
|
|
203
|
+
emailMfa?: LoginEmailMfa;
|
|
204
|
+
|
|
199
205
|
/**
|
|
200
206
|
* The time at which a token will expire for this login.
|
|
201
207
|
*/
|
|
@@ -242,3 +248,21 @@ export interface Login {
|
|
|
242
248
|
*/
|
|
243
249
|
pictureUrl?: string;
|
|
244
250
|
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Single-use 6-digit code for email-based MFA. Set when a code is issued
|
|
254
|
+
* for this login and cleared on verification.
|
|
255
|
+
*/
|
|
256
|
+
export interface LoginEmailMfa {
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Hashed single-use 6-digit code that was emailed to the user.
|
|
260
|
+
*/
|
|
261
|
+
codeHash: string;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* The time at which the emailed code expires and can no longer be used
|
|
265
|
+
* to verify the login.
|
|
266
|
+
*/
|
|
267
|
+
expiresAt: string;
|
|
268
|
+
}
|
package/dist/Meta.d.ts
CHANGED
package/dist/Project.d.ts
CHANGED
|
@@ -143,7 +143,8 @@ export interface Project {
|
|
|
143
143
|
'validate-terminology' | 'range-search' | 'log-streaming')[];
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* The default access policy
|
|
146
|
+
* @deprecated Use defaultAccessPolicies instead. The default access policy
|
|
147
|
+
* for patients using open registration.
|
|
147
148
|
*/
|
|
148
149
|
defaultPatientAccessPolicy?: Reference<AccessPolicy>;
|
|
149
150
|
|
|
@@ -191,6 +192,27 @@ export interface Project {
|
|
|
191
192
|
* The resource types exported by the project when linked
|
|
192
193
|
*/
|
|
193
194
|
exportedResourceType?: ResourceType[];
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Default access policies to apply to project members by role when no explicit policy is provided.
|
|
198
|
+
*/
|
|
199
|
+
defaultAccessPolicies?: ProjectDefaultAccessPolicy[];
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Default access policy to apply to project members of a given role.
|
|
204
|
+
*/
|
|
205
|
+
export interface ProjectDefaultAccessPolicy {
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The member role this policy applies to.
|
|
209
|
+
*/
|
|
210
|
+
profileType: 'Patient' | 'Practitioner' | 'RelatedPerson' | 'Admin';
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The access policy to apply to members of this role.
|
|
214
|
+
*/
|
|
215
|
+
accessPolicy: Reference<AccessPolicy>;
|
|
194
216
|
}
|
|
195
217
|
|
|
196
218
|
/**
|
|
@@ -173,8 +173,8 @@ export interface ProjectMembership {
|
|
|
173
173
|
access?: ProjectMembershipAccess[];
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* The user configuration for the user within the project membership
|
|
177
|
-
*
|
|
176
|
+
* The user configuration for the user within the project membership such
|
|
177
|
+
* as menu links, saved searches, and features.
|
|
178
178
|
*/
|
|
179
179
|
userConfiguration?: Reference<UserConfiguration>;
|
|
180
180
|
|
package/dist/Resource.d.ts
CHANGED
|
@@ -145,6 +145,7 @@ import type { SearchParameter } from './SearchParameter.d.ts';
|
|
|
145
145
|
import type { ServiceRequest } from './ServiceRequest.d.ts';
|
|
146
146
|
import type { Slot } from './Slot.d.ts';
|
|
147
147
|
import type { SmartAppLaunch } from './SmartAppLaunch.d.ts';
|
|
148
|
+
import type { SmartHealthLink } from './SmartHealthLink.d.ts';
|
|
148
149
|
import type { Specimen } from './Specimen.d.ts';
|
|
149
150
|
import type { SpecimenDefinition } from './SpecimenDefinition.d.ts';
|
|
150
151
|
import type { StructureDefinition } from './StructureDefinition.d.ts';
|
|
@@ -311,6 +312,7 @@ export type Resource = AccessPolicy
|
|
|
311
312
|
| ServiceRequest
|
|
312
313
|
| Slot
|
|
313
314
|
| SmartAppLaunch
|
|
315
|
+
| SmartHealthLink
|
|
314
316
|
| Specimen
|
|
315
317
|
| SpecimenDefinition
|
|
316
318
|
| StructureDefinition
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
/*
|
|
4
|
+
* This is a generated file
|
|
5
|
+
* Do not edit manually.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type { Attachment } from './Attachment.d.ts';
|
|
9
|
+
import type { Extension } from './Extension.d.ts';
|
|
10
|
+
import type { Group } from './Group.d.ts';
|
|
11
|
+
import type { Meta } from './Meta.d.ts';
|
|
12
|
+
import type { Narrative } from './Narrative.d.ts';
|
|
13
|
+
import type { Patient } from './Patient.d.ts';
|
|
14
|
+
import type { Reference } from './Reference.d.ts';
|
|
15
|
+
import type { Resource } from './Resource.d.ts';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A SMART Health Link generated by Medplum.
|
|
19
|
+
*/
|
|
20
|
+
export interface SmartHealthLink {
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* This is a SmartHealthLink resource
|
|
24
|
+
*/
|
|
25
|
+
readonly resourceType: 'SmartHealthLink';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The logical id of the resource, as used in the URL for the resource.
|
|
29
|
+
* Once assigned, this value never changes.
|
|
30
|
+
*/
|
|
31
|
+
id?: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The metadata about the resource. This is content that is maintained by
|
|
35
|
+
* the infrastructure. Changes to the content might not always be
|
|
36
|
+
* associated with version changes to the resource.
|
|
37
|
+
*/
|
|
38
|
+
meta?: Meta;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A reference to a set of rules that were followed when the resource was
|
|
42
|
+
* constructed, and which must be understood when processing the content.
|
|
43
|
+
* Often, this is a reference to an implementation guide that defines the
|
|
44
|
+
* special rules along with other profiles etc.
|
|
45
|
+
*/
|
|
46
|
+
implicitRules?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The base language in which the resource is written.
|
|
50
|
+
*/
|
|
51
|
+
language?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* A human-readable narrative that contains a summary of the resource and
|
|
55
|
+
* can be used to represent the content of the resource to a human. The
|
|
56
|
+
* narrative need not encode all the structured data, but is required to
|
|
57
|
+
* contain sufficient detail to make it "clinically safe" for a human to
|
|
58
|
+
* just read the narrative. Resource definitions may define what content
|
|
59
|
+
* should be represented in the narrative to ensure clinical safety.
|
|
60
|
+
*/
|
|
61
|
+
text?: Narrative;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* These resources do not have an independent existence apart from the
|
|
65
|
+
* resource that contains them - they cannot be identified independently,
|
|
66
|
+
* and nor can they have their own independent transaction scope.
|
|
67
|
+
*/
|
|
68
|
+
contained?: Resource[];
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* May be used to represent additional information that is not part of
|
|
72
|
+
* the basic definition of the resource. To make the use of extensions
|
|
73
|
+
* safe and manageable, there is a strict set of governance applied to
|
|
74
|
+
* the definition and use of extensions. Though any implementer can
|
|
75
|
+
* define an extension, there is a set of requirements that SHALL be met
|
|
76
|
+
* as part of the definition and use of extensions.
|
|
77
|
+
*/
|
|
78
|
+
extension?: Extension[];
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* May be used to represent additional information that is not part of
|
|
82
|
+
* the basic definition of the resource and that modifies the
|
|
83
|
+
* understanding of the element that contains it and/or the understanding
|
|
84
|
+
* of the containing element's descendants. Usually modifier elements
|
|
85
|
+
* provide negation or qualification. To make the use of extensions safe
|
|
86
|
+
* and manageable, there is a strict set of governance applied to the
|
|
87
|
+
* definition and use of extensions. Though any implementer is allowed to
|
|
88
|
+
* define an extension, there is a set of requirements that SHALL be met
|
|
89
|
+
* as part of the definition of the extension. Applications processing a
|
|
90
|
+
* resource are required to check for modifier extensions.
|
|
91
|
+
*
|
|
92
|
+
* Modifier extensions SHALL NOT change the meaning of any elements on
|
|
93
|
+
* Resource or DomainResource (including cannot change the meaning of
|
|
94
|
+
* modifierExtension itself).
|
|
95
|
+
*/
|
|
96
|
+
modifierExtension?: Extension[];
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The status of the SMART Health Link.
|
|
100
|
+
*/
|
|
101
|
+
status: 'active' | 'revoked';
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The SMART Health Link delivery mode.
|
|
105
|
+
*/
|
|
106
|
+
mode: 'manifest' | 'direct';
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The subject whose records are shared by the SMART Health Link.
|
|
110
|
+
*/
|
|
111
|
+
subject: Reference<Patient | Group>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The public SMART Health Link manifest or payload URL.
|
|
115
|
+
*/
|
|
116
|
+
url: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Optional human-readable label for the SMART Health Link.
|
|
120
|
+
*/
|
|
121
|
+
label?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Optional SMART Health Link flags.
|
|
125
|
+
*/
|
|
126
|
+
flag?: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Optional time when the SMART Health Link expires.
|
|
130
|
+
*/
|
|
131
|
+
expiresAt?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Optional hash of the SMART Health Link passcode.
|
|
135
|
+
*/
|
|
136
|
+
passcodeHash?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Encrypted file available from the SMART Health Link.
|
|
140
|
+
*/
|
|
141
|
+
file: SmartHealthLinkFile[];
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Encrypted file available from the SMART Health Link.
|
|
146
|
+
*/
|
|
147
|
+
export interface SmartHealthLinkFile {
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The MIME type of the plaintext file content.
|
|
151
|
+
*/
|
|
152
|
+
contentType: string;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Attachment containing or referencing the encrypted SMART Health Link
|
|
156
|
+
* file.
|
|
157
|
+
*/
|
|
158
|
+
attachment: Attachment;
|
|
159
|
+
}
|
package/dist/User.d.ts
CHANGED
|
@@ -153,6 +153,13 @@ export interface User {
|
|
|
153
153
|
*/
|
|
154
154
|
mfaEnrolled?: boolean;
|
|
155
155
|
|
|
156
|
+
/**
|
|
157
|
+
* The MFA methods the user has enrolled in. 'totp' uses an authenticator
|
|
158
|
+
* application; 'email' sends a magic link to the user's email address on
|
|
159
|
+
* login.
|
|
160
|
+
*/
|
|
161
|
+
mfaMethod?: ('totp' | 'email')[];
|
|
162
|
+
|
|
156
163
|
/**
|
|
157
164
|
* Optional project if the user only exists for the project. This is used
|
|
158
165
|
* for the project-specific user database.
|
package/dist/index.d.ts
CHANGED
|
@@ -188,6 +188,7 @@ export type * from './Signature.d.ts';
|
|
|
188
188
|
export type * from './SimpleQuantity.d.ts';
|
|
189
189
|
export type * from './Slot.d.ts';
|
|
190
190
|
export type * from './SmartAppLaunch.d.ts';
|
|
191
|
+
export type * from './SmartHealthLink.d.ts';
|
|
191
192
|
export type * from './Specimen.d.ts';
|
|
192
193
|
export type * from './SpecimenDefinition.d.ts';
|
|
193
194
|
export type * from './StructureDefinition.d.ts';
|