@haste-health/client 0.15.3 → 0.126.3

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.
@@ -1,257 +0,0 @@
1
- import {
2
- Bundle,
3
- CapabilityStatement,
4
- OperationOutcome,
5
- Parameters,
6
- Resource,
7
- ResourceType,
8
- code,
9
- id,
10
- } from "@oxidized-health/fhir-types/r4b/types";
11
- import { R4B } from "@oxidized-health/fhir-types/versions";
12
- import type { ParsedParameter } from "../url.js";
13
- import {
14
- Request,
15
- RequestInteractionTypes,
16
- RequestLevel,
17
- ResponseInteractionTypes,
18
- } from "./utilities.js";
19
- export interface R4BInstanceInteraction extends Request<R4B, "instance"> {
20
- resource: ResourceType;
21
- id: id;
22
- }
23
- export interface R4BTypeInteraction extends Request<R4B, "type"> {
24
- resource: ResourceType;
25
- }
26
- export interface R4BSystemInteraction extends Request<R4B, "system"> {}
27
- export type R4BReadRequest = R4BInstanceInteraction & {
28
- type: RequestInteractionTypes["read"];
29
- };
30
- export type R4BVersionReadRequest = R4BInstanceInteraction & {
31
- type: RequestInteractionTypes["vread"];
32
- versionId: string;
33
- };
34
- export type R4BUpdateRequest = R4BInstanceInteraction & {
35
- type: RequestInteractionTypes["update"];
36
- body: Resource;
37
- };
38
- export type R4BPatchRequest = R4BInstanceInteraction & {
39
- type: RequestInteractionTypes["patch"];
40
- body: unknown;
41
- };
42
- export type R4BInstanceDeleteRequest = R4BInstanceInteraction & {
43
- type: RequestInteractionTypes["delete"];
44
- };
45
- export type R4BTypeDeleteRequest = R4BTypeInteraction & {
46
- parameters: ParsedParameter<string | number>[];
47
- type: RequestInteractionTypes["delete"];
48
- };
49
- export type R4BSystemDeleteRequest = R4BSystemInteraction & {
50
- parameters: ParsedParameter<string | number>[];
51
- type: RequestInteractionTypes["delete"];
52
- };
53
- export type R4BHistoryInstanceRequest = R4BInstanceInteraction & {
54
- type: RequestInteractionTypes["history"];
55
- parameters?: ParsedParameter<string | number>[];
56
- };
57
- export type R4BCreateRequest = R4BTypeInteraction & {
58
- type: RequestInteractionTypes["create"];
59
- body: Resource;
60
- };
61
- export type R4BConditinalUpdateRequest = R4BTypeInteraction & {
62
- type: RequestInteractionTypes["update"];
63
- parameters: ParsedParameter<string | number>[];
64
- body: Resource;
65
- };
66
- export type R4BTypeSearchRequest = R4BTypeInteraction & {
67
- parameters: ParsedParameter<string | number>[];
68
- type: RequestInteractionTypes["search"];
69
- };
70
- export type R4BTypeHistoryRequest = R4BTypeInteraction & {
71
- type: RequestInteractionTypes["history"];
72
- parameters?: ParsedParameter<string | number>[];
73
- };
74
- export type R4BCapabilitiesRequest = R4BSystemInteraction & {
75
- type: RequestInteractionTypes["capabilities"];
76
- };
77
- export type R4BBatchRequest = R4BSystemInteraction & {
78
- type: RequestInteractionTypes["batch"];
79
- body: Bundle;
80
- };
81
- export type R4BTransactionRequest = R4BSystemInteraction & {
82
- type: RequestInteractionTypes["transaction"];
83
- body: Bundle;
84
- };
85
- export type R4BSystemHistoryRequest = R4BSystemInteraction & {
86
- type: RequestInteractionTypes["history"];
87
- parameters?: ParsedParameter<string | number>[];
88
- };
89
- export type R4BSystemSearchRequest = R4BSystemInteraction & {
90
- parameters: ParsedParameter<string | number>[];
91
- type: RequestInteractionTypes["search"];
92
- };
93
- export type R4BInvokeInstanceRequest = R4BInstanceInteraction & {
94
- type: RequestInteractionTypes["invoke"];
95
- operation: code;
96
- body: Resource;
97
- };
98
- export type R4BInvokeTypeRequest = R4BTypeInteraction & {
99
- type: RequestInteractionTypes["invoke"];
100
- operation: code;
101
- body: Resource;
102
- };
103
- export type R4BInvokeSystemRequest = R4BSystemInteraction & {
104
- type: RequestInteractionTypes["invoke"];
105
- operation: code;
106
- body: Resource;
107
- };
108
- export type R4BFHIRRequest =
109
- | R4BInvokeInstanceRequest
110
- | R4BInvokeTypeRequest
111
- | R4BInvokeSystemRequest
112
- | R4BReadRequest
113
- | R4BVersionReadRequest
114
- | R4BUpdateRequest
115
- | R4BPatchRequest
116
- | R4BInstanceDeleteRequest
117
- | R4BHistoryInstanceRequest
118
- | R4BCreateRequest
119
- | R4BTypeSearchRequest
120
- | R4BTypeHistoryRequest
121
- | R4BTypeDeleteRequest
122
- | R4BCapabilitiesRequest
123
- | R4BBatchRequest
124
- | R4BTransactionRequest
125
- | R4BSystemHistoryRequest
126
- | R4BSystemSearchRequest
127
- | R4BSystemDeleteRequest
128
- | R4BConditinalUpdateRequest;
129
- export type R4BReadResponse = R4BInstanceInteraction & {
130
- type: ResponseInteractionTypes["read"];
131
- body: Resource;
132
- };
133
- export type R4BVersionReadResponse = R4BInstanceInteraction & {
134
- type: ResponseInteractionTypes["vread"];
135
- versionId: string;
136
- body: Resource;
137
- };
138
- export type R4BUpdateResponse = R4BInstanceInteraction & {
139
- type: ResponseInteractionTypes["update"];
140
- created?: boolean;
141
- body: Resource;
142
- };
143
- export type R4BPatchResponse = R4BInstanceInteraction & {
144
- type: ResponseInteractionTypes["patch"];
145
- body: Resource;
146
- };
147
- export type R4BInstanceDeleteResponse = R4BInstanceInteraction & {
148
- type: ResponseInteractionTypes["delete"];
149
- };
150
- export type R4BTypeDeleteResponse = R4BTypeInteraction & {
151
- parameters: ParsedParameter<string | number>[];
152
- type: ResponseInteractionTypes["delete"];
153
- deletions?: {
154
- id: id;
155
- type: ResourceType;
156
- }[];
157
- };
158
- export type R4BSystemDeleteResponse = R4BSystemInteraction & {
159
- parameters: ParsedParameter<string | number>[];
160
- type: ResponseInteractionTypes["delete"];
161
- deletions?: {
162
- id: id;
163
- type: ResourceType;
164
- }[];
165
- };
166
- export type R4BInstanceHistoryResponse = R4BInstanceInteraction & {
167
- type: ResponseInteractionTypes["history"];
168
- body: Bundle;
169
- };
170
- export type R4BCreateResponse = R4BTypeInteraction & {
171
- type: ResponseInteractionTypes["create"];
172
- body: Resource;
173
- };
174
- export type R4BTypeSearchResponse = R4BTypeInteraction & {
175
- parameters: ParsedParameter<string | number>[];
176
- type: ResponseInteractionTypes["search"];
177
- body: Bundle;
178
- };
179
- export type R4BTypeHistoryResponse = R4BTypeInteraction & {
180
- type: ResponseInteractionTypes["history"];
181
- body: Bundle;
182
- };
183
- export type R4BCapabilitiesResponse = R4BSystemInteraction & {
184
- type: ResponseInteractionTypes["capabilities"];
185
- body: CapabilityStatement;
186
- };
187
- export type R4BBatchResponse = R4BSystemInteraction & {
188
- type: ResponseInteractionTypes["batch"];
189
- body: Bundle;
190
- };
191
- export type R4BTransactionResponse = R4BSystemInteraction & {
192
- type: ResponseInteractionTypes["transaction"];
193
- body: Bundle;
194
- };
195
- export type R4BSystemHistoryResponse = R4BSystemInteraction & {
196
- type: ResponseInteractionTypes["history"];
197
- body: Bundle;
198
- };
199
- export type R4BSystemSearchResponse = R4BSystemInteraction & {
200
- parameters: ParsedParameter<string | number>[];
201
- type: ResponseInteractionTypes["search"];
202
- body: Bundle;
203
- };
204
- export type R4BInvokeInstanceResponse = R4BInstanceInteraction & {
205
- type: ResponseInteractionTypes["invoke"];
206
- operation: code;
207
- body: Parameters;
208
- };
209
- export type R4BInvokeTypeResponse = R4BTypeInteraction & {
210
- type: ResponseInteractionTypes["invoke"];
211
- operation: code;
212
- body: Parameters;
213
- };
214
- export type R4BInvokeSystemResponse = R4BSystemInteraction & {
215
- type: ResponseInteractionTypes["invoke"];
216
- operation: code;
217
- body: Parameters;
218
- };
219
- export type R4BInvokeResponse =
220
- | R4BInvokeInstanceResponse
221
- | R4BInvokeTypeResponse
222
- | R4BInvokeSystemResponse;
223
- export type R4BInvokeRequest =
224
- | R4BInvokeInstanceRequest
225
- | R4BInvokeTypeRequest
226
- | R4BInvokeSystemRequest;
227
- interface R4BErrorResponse<Level extends keyof RequestLevel>
228
- extends Request<R4B, Level> {
229
- type: ResponseInteractionTypes["error"];
230
- body: OperationOutcome;
231
- }
232
- export type R4BFHIRErrorResponse =
233
- | R4BErrorResponse<"system">
234
- | R4BErrorResponse<"type">
235
- | R4BErrorResponse<"instance">;
236
- export type R4BFHIRResponse =
237
- | R4BFHIRErrorResponse
238
- | R4BInvokeInstanceResponse
239
- | R4BInvokeTypeResponse
240
- | R4BInvokeSystemResponse
241
- | R4BReadResponse
242
- | R4BVersionReadResponse
243
- | R4BUpdateResponse
244
- | R4BPatchResponse
245
- | R4BInstanceDeleteResponse
246
- | R4BInstanceHistoryResponse
247
- | R4BCreateResponse
248
- | R4BTypeSearchResponse
249
- | R4BTypeHistoryResponse
250
- | R4BTypeDeleteResponse
251
- | R4BCapabilitiesResponse
252
- | R4BBatchResponse
253
- | R4BTransactionResponse
254
- | R4BSystemHistoryResponse
255
- | R4BSystemSearchResponse
256
- | R4BSystemDeleteResponse;
257
- export {};
package/lib/types/r4b.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=r4b.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"r4b.js","sourceRoot":"","sources":["../../src/types/r4b.ts"],"names":[],"mappings":""}