@medplum/fhirtypes 2.2.4 → 2.2.6

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.
@@ -146,6 +146,7 @@ import { SpecimenDefinition } from './SpecimenDefinition';
146
146
  import { StructureDefinition } from './StructureDefinition';
147
147
  import { StructureMap } from './StructureMap';
148
148
  import { Subscription } from './Subscription';
149
+ import { SubscriptionStatus } from './SubscriptionStatus';
149
150
  import { Substance } from './Substance';
150
151
  import { SubstanceNucleicAcid } from './SubstanceNucleicAcid';
151
152
  import { SubstancePolymer } from './SubstancePolymer';
@@ -308,6 +309,7 @@ export type Resource = AccessPolicy
308
309
  | StructureDefinition
309
310
  | StructureMap
310
311
  | Subscription
312
+ | SubscriptionStatus
311
313
  | Substance
312
314
  | SubstanceNucleicAcid
313
315
  | SubstancePolymer
@@ -0,0 +1,205 @@
1
+ /*
2
+ * Generated by @medplum/generator
3
+ * Do not edit manually.
4
+ */
5
+
6
+ import { CodeableConcept } from './CodeableConcept';
7
+ import { Extension } from './Extension';
8
+ import { Meta } from './Meta';
9
+ import { Narrative } from './Narrative';
10
+ import { Reference } from './Reference';
11
+ import { Resource } from './Resource';
12
+ import { Subscription } from './Subscription';
13
+
14
+ /**
15
+ * The SubscriptionStatus resource describes the state of a Subscription
16
+ * during notifications.
17
+ */
18
+ export interface SubscriptionStatus {
19
+
20
+ /**
21
+ * This is a SubscriptionStatus resource
22
+ */
23
+ readonly resourceType: 'SubscriptionStatus';
24
+
25
+ /**
26
+ * The logical id of the resource, as used in the URL for the resource.
27
+ * Once assigned, this value never changes.
28
+ */
29
+ id?: string;
30
+
31
+ /**
32
+ * The metadata about the resource. This is content that is maintained by
33
+ * the infrastructure. Changes to the content might not always be
34
+ * associated with version changes to the resource.
35
+ */
36
+ meta?: Meta;
37
+
38
+ /**
39
+ * A reference to a set of rules that were followed when the resource was
40
+ * constructed, and which must be understood when processing the content.
41
+ * Often, this is a reference to an implementation guide that defines the
42
+ * special rules along with other profiles etc.
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 and
53
+ * can be used to represent the content of the resource to a human. The
54
+ * narrative need not encode all the structured data, but is required to
55
+ * contain sufficient detail to make it "clinically safe" for a human to
56
+ * just read the narrative. Resource definitions may define what content
57
+ * should be represented in the narrative to ensure clinical safety.
58
+ */
59
+ text?: Narrative;
60
+
61
+ /**
62
+ * These resources do not have an independent existence apart from the
63
+ * resource that contains them - they cannot be identified independently,
64
+ * and nor can they have their own independent transaction scope.
65
+ */
66
+ contained?: Resource[];
67
+
68
+ /**
69
+ * May be used to represent additional information that is not part of
70
+ * the basic definition of the resource. To make the use of extensions
71
+ * safe and manageable, there is a strict set of governance applied to
72
+ * the definition and use of extensions. Though any implementer can
73
+ * define an extension, there is a set of requirements that SHALL be met
74
+ * as part of the definition of the extension.
75
+ */
76
+ extension?: Extension[];
77
+
78
+ /**
79
+ * May be used to represent additional information that is not part of
80
+ * the basic definition of the resource and that modifies the
81
+ * understanding of the element that contains it and/or the understanding
82
+ * of the containing element's descendants. Usually modifier elements
83
+ * provide negation or qualification. To make the use of extensions safe
84
+ * and manageable, there is a strict set of governance applied to the
85
+ * definition and use of extensions. Though any implementer is allowed to
86
+ * define an extension, there is a set of requirements that SHALL be met
87
+ * as part of the definition of the extension. Applications processing a
88
+ * resource are required to check for modifier extensions.
89
+ *
90
+ * Modifier extensions SHALL NOT change the meaning of any elements on
91
+ * Resource or DomainResource (including cannot change the meaning of
92
+ * modifierExtension itself).
93
+ */
94
+ modifierExtension?: Extension[];
95
+
96
+ /**
97
+ * The status of the subscription, which marks the server state for
98
+ * managing the subscription.
99
+ */
100
+ status?: 'requested' | 'active' | 'error' | 'off';
101
+
102
+ /**
103
+ * The type of event being conveyed with this notificaiton.
104
+ */
105
+ type?: string;
106
+
107
+ /**
108
+ * The total number of actual events which have been generated since the
109
+ * Subscription was created (inclusive of this notification) - regardless
110
+ * of how many have been successfully communicated. This number is NOT
111
+ * incremented for handshake and heartbeat notifications.
112
+ */
113
+ eventsSinceSubscriptionStart?: string;
114
+
115
+ /**
116
+ * Detailed information about events relevant to this subscription
117
+ * notification.
118
+ */
119
+ notificationEvent?: SubscriptionStatusNotificationEvent[];
120
+
121
+ /**
122
+ * The reference to the Subscription which generated this notification.
123
+ */
124
+ subscription?: Reference<Subscription>;
125
+
126
+ /**
127
+ * The reference to the SubscriptionTopic for the Subscription which
128
+ * generated this notification.
129
+ */
130
+ topic?: string;
131
+
132
+ /**
133
+ * A record of errors that occurred when the server processed a
134
+ * notification.
135
+ */
136
+ error?: CodeableConcept[];
137
+ }
138
+
139
+ /**
140
+ * Detailed information about events relevant to this subscription
141
+ * notification.
142
+ */
143
+ export interface SubscriptionStatusNotificationEvent {
144
+
145
+ /**
146
+ * Unique id for the element within a resource (for internal references).
147
+ * This may be any string value that does not contain spaces.
148
+ */
149
+ id?: string;
150
+
151
+ /**
152
+ * May be used to represent additional information that is not part of
153
+ * the basic definition of the element. To make the use of extensions
154
+ * safe and manageable, there is a strict set of governance applied to
155
+ * the definition and use of extensions. Though any implementer can
156
+ * define an extension, there is a set of requirements that SHALL be met
157
+ * as part of the definition of the extension.
158
+ */
159
+ extension?: Extension[];
160
+
161
+ /**
162
+ * May be used to represent additional information that is not part of
163
+ * the basic definition of the element and that modifies the
164
+ * understanding of the element in which it is contained and/or the
165
+ * understanding of the containing element's descendants. Usually
166
+ * modifier elements provide negation or qualification. To make the use
167
+ * of extensions safe and manageable, there is a strict set of governance
168
+ * applied to the definition and use of extensions. Though any
169
+ * implementer can define an extension, there is a set of requirements
170
+ * that SHALL be met as part of the definition of the extension.
171
+ * Applications processing a resource are required to check for modifier
172
+ * extensions.
173
+ *
174
+ * Modifier extensions SHALL NOT change the meaning of any elements on
175
+ * Resource or DomainResource (including cannot change the meaning of
176
+ * modifierExtension itself).
177
+ */
178
+ modifierExtension?: Extension[];
179
+
180
+ /**
181
+ * The sequential number of this event in this subscription context. Note
182
+ * that this value is a 64-bit integer value, encoded as a string.
183
+ */
184
+ eventNumber?: string;
185
+
186
+ /**
187
+ * The actual time this event occured on the server.
188
+ */
189
+ timestamp?: string;
190
+
191
+ /**
192
+ * The focus of this event. While this will usually be a reference to the
193
+ * focus resource of the event, it MAY contain a reference to a non-FHIR
194
+ * object.
195
+ */
196
+ focus?: Reference<Resource>;
197
+
198
+ /**
199
+ * Additional context information for this event. Generally, this will
200
+ * contain references to additional resources included with the event
201
+ * (e.g., the Patient relevant to an Encounter), however it MAY refer to
202
+ * non-FHIR objects.
203
+ */
204
+ additionalContext?: Reference<Resource>[];
205
+ }
package/dist/index.d.ts CHANGED
@@ -189,6 +189,7 @@ export * from './SpecimenDefinition';
189
189
  export * from './StructureDefinition';
190
190
  export * from './StructureMap';
191
191
  export * from './Subscription';
192
+ export * from './SubscriptionStatus';
192
193
  export * from './Substance';
193
194
  export * from './SubstanceAmount';
194
195
  export * from './SubstanceNucleicAcid';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/fhirtypes",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "Medplum FHIR Type Definitions",
5
5
  "keywords": [
6
6
  "medplum",