@medplum/fhirtypes 5.1.36 → 5.1.38

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/Cron.d.ts ADDED
@@ -0,0 +1,197 @@
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 { Bot } from './Bot.d.ts';
9
+ import type { Extension } from './Extension.d.ts';
10
+ import type { Identifier } from './Identifier.d.ts';
11
+ import type { Meta } from './Meta.d.ts';
12
+ import type { Narrative } from './Narrative.d.ts';
13
+ import type { ProjectMembership } from './ProjectMembership.d.ts';
14
+ import type { Reference } from './Reference.d.ts';
15
+ import type { Resource } from './Resource.d.ts';
16
+
17
+ /**
18
+ * A scheduled job that executes a Bot on a recurring schedule.
19
+ */
20
+ export interface Cron {
21
+
22
+ /**
23
+ * This is a Cron resource
24
+ */
25
+ readonly resourceType: 'Cron';
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 of the extension.
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
+ * An identifier for this cron job.
100
+ */
101
+ identifier?: Identifier[];
102
+
103
+ /**
104
+ * Whether the scheduled job runs. Setting this to false unregisters the
105
+ * job while leaving the schedule itself intact, so the job can be turned
106
+ * back on without redefining it.
107
+ */
108
+ active: boolean;
109
+
110
+ /**
111
+ * The project membership whose identity and access policy the scheduled
112
+ * job assumes when it runs.
113
+ */
114
+ onBehalfOf: Reference<ProjectMembership>;
115
+
116
+ /**
117
+ * Input passed to the target each time the scheduled job runs, with the
118
+ * same structure as Parameters.parameter. The target is always invoked
119
+ * with the whole Cron resource, so these parameters arrive alongside the
120
+ * schedule that produced them.
121
+ */
122
+ parameter?: CronParameter[];
123
+
124
+ /**
125
+ * A schedule for the job to be executed, as a cron expression. An
126
+ * expression that is not a valid five-field cron expression is rejected
127
+ * on write.
128
+ */
129
+ cronString: string;
130
+
131
+ /**
132
+ * The point in time after which the job no longer runs. A job whose end
133
+ * time has already passed is never scheduled, and a running one is
134
+ * removed once the time passes. When absent, the job runs until it is
135
+ * disabled or deleted.
136
+ */
137
+ endTime?: string;
138
+
139
+ /**
140
+ * The target invoked each time the scheduled job runs.
141
+ */
142
+ targetReference: Reference<Bot>;
143
+ }
144
+
145
+ /**
146
+ * Input passed to the target each time the scheduled job runs, with the
147
+ * same structure as Parameters.parameter. The target is always invoked
148
+ * with the whole Cron resource, so these parameters arrive alongside the
149
+ * schedule that produced them.
150
+ */
151
+ export interface CronParameter {
152
+
153
+ /**
154
+ * The name of the parameter (reference to the operation definition).
155
+ */
156
+ name: string;
157
+
158
+ /**
159
+ * If the parameter is a data type.
160
+ */
161
+ valueBoolean?: boolean;
162
+
163
+ /**
164
+ * If the parameter is a data type.
165
+ */
166
+ valueDateTime?: string;
167
+
168
+ /**
169
+ * If the parameter is a data type.
170
+ */
171
+ valueDecimal?: number;
172
+
173
+ /**
174
+ * If the parameter is a data type.
175
+ */
176
+ valueInteger?: number;
177
+
178
+ /**
179
+ * If the parameter is a data type.
180
+ */
181
+ valueString?: string;
182
+
183
+ /**
184
+ * If the parameter is a data type.
185
+ */
186
+ valueReference?: Reference;
187
+
188
+ /**
189
+ * If the parameter is a whole resource.
190
+ */
191
+ resource?: Resource;
192
+ }
193
+
194
+ /**
195
+ * If the parameter is a data type.
196
+ */
197
+ export type CronParameterValue = boolean | number | Reference | string;
@@ -0,0 +1,119 @@
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 { CodeableConcept } from './CodeableConcept.d.ts';
9
+ import type { Extension } from './Extension.d.ts';
10
+ import type { Identifier } from './Identifier.d.ts';
11
+ import type { Meta } from './Meta.d.ts';
12
+ import type { Narrative } from './Narrative.d.ts';
13
+ import type { Organization } from './Organization.d.ts';
14
+ import type { Project } from './Project.d.ts';
15
+ import type { Reference } from './Reference.d.ts';
16
+ import type { Resource } from './Resource.d.ts';
17
+
18
+ /**
19
+ * A group of Medplum projects managed as a single enterprise.
20
+ */
21
+ export interface Enterprise {
22
+
23
+ /**
24
+ * This is a Enterprise resource
25
+ */
26
+ readonly resourceType: 'Enterprise';
27
+
28
+ /**
29
+ * The logical id of the resource, as used in the URL for the resource.
30
+ * Once assigned, this value never changes.
31
+ */
32
+ id?: string;
33
+
34
+ /**
35
+ * The metadata about the resource. This is content that is maintained by
36
+ * the infrastructure.
37
+ */
38
+ meta?: Meta;
39
+
40
+ /**
41
+ * A reference to a set of rules that were followed when the resource was
42
+ * constructed.
43
+ */
44
+ implicitRules?: string;
45
+
46
+ /**
47
+ * The base language in which the resource is written.
48
+ */
49
+ language?: string;
50
+
51
+ /**
52
+ * A human-readable narrative that contains a summary of the resource.
53
+ */
54
+ text?: Narrative;
55
+
56
+ /**
57
+ * Resources that do not have an independent existence apart from the
58
+ * resource that contains them.
59
+ */
60
+ contained?: Resource[];
61
+
62
+ /**
63
+ * Additional content defined by implementations.
64
+ */
65
+ extension?: Extension[];
66
+
67
+ /**
68
+ * Extensions that cannot be ignored.
69
+ */
70
+ modifierExtension?: Extension[];
71
+
72
+ /**
73
+ * Identifiers for the enterprise.
74
+ */
75
+ identifier?: Identifier[];
76
+
77
+ /**
78
+ * The name of the enterprise.
79
+ */
80
+ name: string;
81
+
82
+ /**
83
+ * Whether the enterprise is active or inactive.
84
+ */
85
+ status: 'active' | 'inactive';
86
+
87
+ /**
88
+ * The organization represented by the enterprise.
89
+ */
90
+ organization?: Reference<Organization>;
91
+
92
+ /**
93
+ * Codes used to classify the enterprise.
94
+ */
95
+ code?: CodeableConcept[];
96
+
97
+ /**
98
+ * Projects belonging to the enterprise and their deployment
99
+ * environments.
100
+ */
101
+ project?: EnterpriseProject[];
102
+ }
103
+
104
+ /**
105
+ * Projects belonging to the enterprise and their deployment
106
+ * environments.
107
+ */
108
+ export interface EnterpriseProject {
109
+
110
+ /**
111
+ * A project belonging to the enterprise.
112
+ */
113
+ project: Reference<Project>;
114
+
115
+ /**
116
+ * Whether the project is a production or non-production environment.
117
+ */
118
+ code: 'production' | 'non-production';
119
+ }
@@ -44,6 +44,7 @@ import type { Contract } from './Contract.d.ts';
44
44
  import type { Coverage } from './Coverage.d.ts';
45
45
  import type { CoverageEligibilityRequest } from './CoverageEligibilityRequest.d.ts';
46
46
  import type { CoverageEligibilityResponse } from './CoverageEligibilityResponse.d.ts';
47
+ import type { Cron } from './Cron.d.ts';
47
48
  import type { DetectedIssue } from './DetectedIssue.d.ts';
48
49
  import type { Device } from './Device.d.ts';
49
50
  import type { DeviceDefinition } from './DeviceDefinition.d.ts';
@@ -62,6 +63,7 @@ import type { Encounter } from './Encounter.d.ts';
62
63
  import type { Endpoint } from './Endpoint.d.ts';
63
64
  import type { EnrollmentRequest } from './EnrollmentRequest.d.ts';
64
65
  import type { EnrollmentResponse } from './EnrollmentResponse.d.ts';
66
+ import type { Enterprise } from './Enterprise.d.ts';
65
67
  import type { EpisodeOfCare } from './EpisodeOfCare.d.ts';
66
68
  import type { EventDefinition } from './EventDefinition.d.ts';
67
69
  import type { Evidence } from './Evidence.d.ts';
@@ -214,6 +216,7 @@ export type Resource = AccessPolicy
214
216
  | Coverage
215
217
  | CoverageEligibilityRequest
216
218
  | CoverageEligibilityResponse
219
+ | Cron
217
220
  | DetectedIssue
218
221
  | Device
219
222
  | DeviceDefinition
@@ -232,6 +235,7 @@ export type Resource = AccessPolicy
232
235
  | Endpoint
233
236
  | EnrollmentRequest
234
237
  | EnrollmentResponse
238
+ | Enterprise
235
239
  | EpisodeOfCare
236
240
  | EventDefinition
237
241
  | Evidence
@@ -114,6 +114,12 @@ export interface UserSecurityRequest {
114
114
  */
115
115
  used?: boolean;
116
116
 
117
+ /**
118
+ * The time at which this request expires, and is therefore no longer
119
+ * valid.
120
+ */
121
+ expiresAt?: string;
122
+
117
123
  /**
118
124
  * Redirect URI used when redirecting a client back to the client
119
125
  * application.
package/dist/index.d.ts CHANGED
@@ -55,6 +55,7 @@ export type * from './Count.d.ts';
55
55
  export type * from './Coverage.d.ts';
56
56
  export type * from './CoverageEligibilityRequest.d.ts';
57
57
  export type * from './CoverageEligibilityResponse.d.ts';
58
+ export type * from './Cron.d.ts';
58
59
  export type * from './DataRequirement.d.ts';
59
60
  export type * from './DetectedIssue.d.ts';
60
61
  export type * from './Device.d.ts';
@@ -79,6 +80,7 @@ export type * from './Encounter.d.ts';
79
80
  export type * from './Endpoint.d.ts';
80
81
  export type * from './EnrollmentRequest.d.ts';
81
82
  export type * from './EnrollmentResponse.d.ts';
83
+ export type * from './Enterprise.d.ts';
82
84
  export type * from './EpisodeOfCare.d.ts';
83
85
  export type * from './EventDefinition.d.ts';
84
86
  export type * from './Evidence.d.ts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/fhirtypes",
3
- "version": "5.1.36",
3
+ "version": "5.1.38",
4
4
  "description": "Medplum FHIR Type Definitions",
5
5
  "keywords": [
6
6
  "medplum",