@digitalmedika/satusehat 0.1.0
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/LICENSE +21 -0
- package/README.md +135 -0
- package/dist/builders/cbc-panel-builder.d.ts +18 -0
- package/dist/builders/laboratory-panel-builder.d.ts +72 -0
- package/dist/builders/organization-builder.d.ts +23 -0
- package/dist/builders/service-request-specimen-observation-builder.d.ts +62 -0
- package/dist/client/auth.d.ts +11 -0
- package/dist/client/create-client.d.ts +5 -0
- package/dist/client/token-store.d.ts +7 -0
- package/dist/client/transport.d.ts +28 -0
- package/dist/core/errors.d.ts +25 -0
- package/dist/core/types.d.ts +293 -0
- package/dist/endpoints/condition.d.ts +945 -0
- package/dist/endpoints/diagnostic-report.d.ts +560 -0
- package/dist/endpoints/encounter.d.ts +1150 -0
- package/dist/endpoints/location.d.ts +500 -0
- package/dist/endpoints/medication-request.d.ts +1585 -0
- package/dist/endpoints/medication.d.ts +395 -0
- package/dist/endpoints/observation.d.ts +1415 -0
- package/dist/endpoints/organization.d.ts +454 -0
- package/dist/endpoints/patient.d.ts +72 -0
- package/dist/endpoints/practitioner-role.d.ts +425 -0
- package/dist/endpoints/practitioner.d.ts +210 -0
- package/dist/endpoints/procedure.d.ts +990 -0
- package/dist/endpoints/service-request.d.ts +1040 -0
- package/dist/endpoints/specimen.d.ts +1005 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +21 -0
- package/dist/schemas/common.d.ts +328 -0
- package/dist/schemas/condition.d.ts +5314 -0
- package/dist/schemas/diagnostic-report.d.ts +2631 -0
- package/dist/schemas/encounter.d.ts +7087 -0
- package/dist/schemas/location.d.ts +2432 -0
- package/dist/schemas/medication-request.d.ts +12183 -0
- package/dist/schemas/medication.d.ts +2111 -0
- package/dist/schemas/observation.d.ts +9253 -0
- package/dist/schemas/organization.d.ts +3357 -0
- package/dist/schemas/patient.d.ts +418 -0
- package/dist/schemas/practitioner-role.d.ts +1930 -0
- package/dist/schemas/practitioner.d.ts +1626 -0
- package/dist/schemas/procedure.d.ts +5283 -0
- package/dist/schemas/service-request.d.ts +5268 -0
- package/dist/schemas/specimen.d.ts +6520 -0
- package/package.json +61 -0
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { type Transport } from "../client/transport";
|
|
2
|
+
import type { MedicationCreateInput, MedicationPatchInput } from "../schemas/medication";
|
|
3
|
+
export declare function createMedicationClient(transport: Transport): {
|
|
4
|
+
create(input: MedicationCreateInput, signal?: AbortSignal): Promise<{
|
|
5
|
+
extension: {
|
|
6
|
+
url: "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationType";
|
|
7
|
+
valueCodeableConcept: {
|
|
8
|
+
coding: {
|
|
9
|
+
code: string;
|
|
10
|
+
system: string;
|
|
11
|
+
display?: string | undefined;
|
|
12
|
+
}[];
|
|
13
|
+
text?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
resourceType: "Medication";
|
|
17
|
+
id: string;
|
|
18
|
+
code?: {
|
|
19
|
+
coding: {
|
|
20
|
+
code: string;
|
|
21
|
+
system: string;
|
|
22
|
+
display?: string | undefined;
|
|
23
|
+
}[];
|
|
24
|
+
text?: string | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
status?: "active" | "entered-in-error" | "inactive" | undefined;
|
|
27
|
+
identifier?: {
|
|
28
|
+
value: string;
|
|
29
|
+
system: string;
|
|
30
|
+
use?: string | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
meta?: {
|
|
33
|
+
lastUpdated?: string | undefined;
|
|
34
|
+
profile?: string[] | undefined;
|
|
35
|
+
versionId?: string | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
manufacturer?: {
|
|
38
|
+
reference: string;
|
|
39
|
+
type?: string | undefined;
|
|
40
|
+
display?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
form?: {
|
|
43
|
+
coding: {
|
|
44
|
+
code: string;
|
|
45
|
+
system: string;
|
|
46
|
+
display?: string | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
text?: string | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
amount?: {
|
|
51
|
+
numerator?: {
|
|
52
|
+
value: string | number;
|
|
53
|
+
code?: string | undefined;
|
|
54
|
+
system?: string | undefined;
|
|
55
|
+
unit?: string | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
denominator?: {
|
|
58
|
+
value: string | number;
|
|
59
|
+
code?: string | undefined;
|
|
60
|
+
system?: string | undefined;
|
|
61
|
+
unit?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
ingredient?: {
|
|
65
|
+
itemCodeableConcept?: {
|
|
66
|
+
coding: {
|
|
67
|
+
code: string;
|
|
68
|
+
system: string;
|
|
69
|
+
display?: string | undefined;
|
|
70
|
+
}[];
|
|
71
|
+
text?: string | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
itemReference?: {
|
|
74
|
+
reference: string;
|
|
75
|
+
type?: string | undefined;
|
|
76
|
+
display?: string | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
isActive?: boolean | undefined;
|
|
79
|
+
strength?: {
|
|
80
|
+
numerator?: {
|
|
81
|
+
value: string | number;
|
|
82
|
+
code?: string | undefined;
|
|
83
|
+
system?: string | undefined;
|
|
84
|
+
unit?: string | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
denominator?: {
|
|
87
|
+
value: string | number;
|
|
88
|
+
code?: string | undefined;
|
|
89
|
+
system?: string | undefined;
|
|
90
|
+
unit?: string | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
batch?: {
|
|
95
|
+
lotNumber?: string | undefined;
|
|
96
|
+
expirationDate?: string | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
getById(input: {
|
|
100
|
+
id: string;
|
|
101
|
+
signal?: AbortSignal;
|
|
102
|
+
}): Promise<{
|
|
103
|
+
extension: {
|
|
104
|
+
url: "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationType";
|
|
105
|
+
valueCodeableConcept: {
|
|
106
|
+
coding: {
|
|
107
|
+
code: string;
|
|
108
|
+
system: string;
|
|
109
|
+
display?: string | undefined;
|
|
110
|
+
}[];
|
|
111
|
+
text?: string | undefined;
|
|
112
|
+
};
|
|
113
|
+
}[];
|
|
114
|
+
resourceType: "Medication";
|
|
115
|
+
id: string;
|
|
116
|
+
code?: {
|
|
117
|
+
coding: {
|
|
118
|
+
code: string;
|
|
119
|
+
system: string;
|
|
120
|
+
display?: string | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
text?: string | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
status?: "active" | "entered-in-error" | "inactive" | undefined;
|
|
125
|
+
identifier?: {
|
|
126
|
+
value: string;
|
|
127
|
+
system: string;
|
|
128
|
+
use?: string | undefined;
|
|
129
|
+
}[] | undefined;
|
|
130
|
+
meta?: {
|
|
131
|
+
lastUpdated?: string | undefined;
|
|
132
|
+
profile?: string[] | undefined;
|
|
133
|
+
versionId?: string | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
manufacturer?: {
|
|
136
|
+
reference: string;
|
|
137
|
+
type?: string | undefined;
|
|
138
|
+
display?: string | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
form?: {
|
|
141
|
+
coding: {
|
|
142
|
+
code: string;
|
|
143
|
+
system: string;
|
|
144
|
+
display?: string | undefined;
|
|
145
|
+
}[];
|
|
146
|
+
text?: string | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
amount?: {
|
|
149
|
+
numerator?: {
|
|
150
|
+
value: string | number;
|
|
151
|
+
code?: string | undefined;
|
|
152
|
+
system?: string | undefined;
|
|
153
|
+
unit?: string | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
denominator?: {
|
|
156
|
+
value: string | number;
|
|
157
|
+
code?: string | undefined;
|
|
158
|
+
system?: string | undefined;
|
|
159
|
+
unit?: string | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
ingredient?: {
|
|
163
|
+
itemCodeableConcept?: {
|
|
164
|
+
coding: {
|
|
165
|
+
code: string;
|
|
166
|
+
system: string;
|
|
167
|
+
display?: string | undefined;
|
|
168
|
+
}[];
|
|
169
|
+
text?: string | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
itemReference?: {
|
|
172
|
+
reference: string;
|
|
173
|
+
type?: string | undefined;
|
|
174
|
+
display?: string | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
isActive?: boolean | undefined;
|
|
177
|
+
strength?: {
|
|
178
|
+
numerator?: {
|
|
179
|
+
value: string | number;
|
|
180
|
+
code?: string | undefined;
|
|
181
|
+
system?: string | undefined;
|
|
182
|
+
unit?: string | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
denominator?: {
|
|
185
|
+
value: string | number;
|
|
186
|
+
code?: string | undefined;
|
|
187
|
+
system?: string | undefined;
|
|
188
|
+
unit?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
}[] | undefined;
|
|
192
|
+
batch?: {
|
|
193
|
+
lotNumber?: string | undefined;
|
|
194
|
+
expirationDate?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
}>;
|
|
197
|
+
patch(input: {
|
|
198
|
+
id: string;
|
|
199
|
+
body: MedicationPatchInput;
|
|
200
|
+
signal?: AbortSignal;
|
|
201
|
+
}): Promise<{
|
|
202
|
+
extension: {
|
|
203
|
+
url: "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationType";
|
|
204
|
+
valueCodeableConcept: {
|
|
205
|
+
coding: {
|
|
206
|
+
code: string;
|
|
207
|
+
system: string;
|
|
208
|
+
display?: string | undefined;
|
|
209
|
+
}[];
|
|
210
|
+
text?: string | undefined;
|
|
211
|
+
};
|
|
212
|
+
}[];
|
|
213
|
+
resourceType: "Medication";
|
|
214
|
+
id: string;
|
|
215
|
+
code?: {
|
|
216
|
+
coding: {
|
|
217
|
+
code: string;
|
|
218
|
+
system: string;
|
|
219
|
+
display?: string | undefined;
|
|
220
|
+
}[];
|
|
221
|
+
text?: string | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
status?: "active" | "entered-in-error" | "inactive" | undefined;
|
|
224
|
+
identifier?: {
|
|
225
|
+
value: string;
|
|
226
|
+
system: string;
|
|
227
|
+
use?: string | undefined;
|
|
228
|
+
}[] | undefined;
|
|
229
|
+
meta?: {
|
|
230
|
+
lastUpdated?: string | undefined;
|
|
231
|
+
profile?: string[] | undefined;
|
|
232
|
+
versionId?: string | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
manufacturer?: {
|
|
235
|
+
reference: string;
|
|
236
|
+
type?: string | undefined;
|
|
237
|
+
display?: string | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
form?: {
|
|
240
|
+
coding: {
|
|
241
|
+
code: string;
|
|
242
|
+
system: string;
|
|
243
|
+
display?: string | undefined;
|
|
244
|
+
}[];
|
|
245
|
+
text?: string | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
amount?: {
|
|
248
|
+
numerator?: {
|
|
249
|
+
value: string | number;
|
|
250
|
+
code?: string | undefined;
|
|
251
|
+
system?: string | undefined;
|
|
252
|
+
unit?: string | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
denominator?: {
|
|
255
|
+
value: string | number;
|
|
256
|
+
code?: string | undefined;
|
|
257
|
+
system?: string | undefined;
|
|
258
|
+
unit?: string | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
ingredient?: {
|
|
262
|
+
itemCodeableConcept?: {
|
|
263
|
+
coding: {
|
|
264
|
+
code: string;
|
|
265
|
+
system: string;
|
|
266
|
+
display?: string | undefined;
|
|
267
|
+
}[];
|
|
268
|
+
text?: string | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
itemReference?: {
|
|
271
|
+
reference: string;
|
|
272
|
+
type?: string | undefined;
|
|
273
|
+
display?: string | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
isActive?: boolean | undefined;
|
|
276
|
+
strength?: {
|
|
277
|
+
numerator?: {
|
|
278
|
+
value: string | number;
|
|
279
|
+
code?: string | undefined;
|
|
280
|
+
system?: string | undefined;
|
|
281
|
+
unit?: string | undefined;
|
|
282
|
+
} | undefined;
|
|
283
|
+
denominator?: {
|
|
284
|
+
value: string | number;
|
|
285
|
+
code?: string | undefined;
|
|
286
|
+
system?: string | undefined;
|
|
287
|
+
unit?: string | undefined;
|
|
288
|
+
} | undefined;
|
|
289
|
+
} | undefined;
|
|
290
|
+
}[] | undefined;
|
|
291
|
+
batch?: {
|
|
292
|
+
lotNumber?: string | undefined;
|
|
293
|
+
expirationDate?: string | undefined;
|
|
294
|
+
} | undefined;
|
|
295
|
+
}>;
|
|
296
|
+
update(input: {
|
|
297
|
+
id: string;
|
|
298
|
+
body: MedicationCreateInput;
|
|
299
|
+
signal?: AbortSignal;
|
|
300
|
+
}): Promise<{
|
|
301
|
+
extension: {
|
|
302
|
+
url: "https://fhir.kemkes.go.id/r4/StructureDefinition/MedicationType";
|
|
303
|
+
valueCodeableConcept: {
|
|
304
|
+
coding: {
|
|
305
|
+
code: string;
|
|
306
|
+
system: string;
|
|
307
|
+
display?: string | undefined;
|
|
308
|
+
}[];
|
|
309
|
+
text?: string | undefined;
|
|
310
|
+
};
|
|
311
|
+
}[];
|
|
312
|
+
resourceType: "Medication";
|
|
313
|
+
id: string;
|
|
314
|
+
code?: {
|
|
315
|
+
coding: {
|
|
316
|
+
code: string;
|
|
317
|
+
system: string;
|
|
318
|
+
display?: string | undefined;
|
|
319
|
+
}[];
|
|
320
|
+
text?: string | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
status?: "active" | "entered-in-error" | "inactive" | undefined;
|
|
323
|
+
identifier?: {
|
|
324
|
+
value: string;
|
|
325
|
+
system: string;
|
|
326
|
+
use?: string | undefined;
|
|
327
|
+
}[] | undefined;
|
|
328
|
+
meta?: {
|
|
329
|
+
lastUpdated?: string | undefined;
|
|
330
|
+
profile?: string[] | undefined;
|
|
331
|
+
versionId?: string | undefined;
|
|
332
|
+
} | undefined;
|
|
333
|
+
manufacturer?: {
|
|
334
|
+
reference: string;
|
|
335
|
+
type?: string | undefined;
|
|
336
|
+
display?: string | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
form?: {
|
|
339
|
+
coding: {
|
|
340
|
+
code: string;
|
|
341
|
+
system: string;
|
|
342
|
+
display?: string | undefined;
|
|
343
|
+
}[];
|
|
344
|
+
text?: string | undefined;
|
|
345
|
+
} | undefined;
|
|
346
|
+
amount?: {
|
|
347
|
+
numerator?: {
|
|
348
|
+
value: string | number;
|
|
349
|
+
code?: string | undefined;
|
|
350
|
+
system?: string | undefined;
|
|
351
|
+
unit?: string | undefined;
|
|
352
|
+
} | undefined;
|
|
353
|
+
denominator?: {
|
|
354
|
+
value: string | number;
|
|
355
|
+
code?: string | undefined;
|
|
356
|
+
system?: string | undefined;
|
|
357
|
+
unit?: string | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
} | undefined;
|
|
360
|
+
ingredient?: {
|
|
361
|
+
itemCodeableConcept?: {
|
|
362
|
+
coding: {
|
|
363
|
+
code: string;
|
|
364
|
+
system: string;
|
|
365
|
+
display?: string | undefined;
|
|
366
|
+
}[];
|
|
367
|
+
text?: string | undefined;
|
|
368
|
+
} | undefined;
|
|
369
|
+
itemReference?: {
|
|
370
|
+
reference: string;
|
|
371
|
+
type?: string | undefined;
|
|
372
|
+
display?: string | undefined;
|
|
373
|
+
} | undefined;
|
|
374
|
+
isActive?: boolean | undefined;
|
|
375
|
+
strength?: {
|
|
376
|
+
numerator?: {
|
|
377
|
+
value: string | number;
|
|
378
|
+
code?: string | undefined;
|
|
379
|
+
system?: string | undefined;
|
|
380
|
+
unit?: string | undefined;
|
|
381
|
+
} | undefined;
|
|
382
|
+
denominator?: {
|
|
383
|
+
value: string | number;
|
|
384
|
+
code?: string | undefined;
|
|
385
|
+
system?: string | undefined;
|
|
386
|
+
unit?: string | undefined;
|
|
387
|
+
} | undefined;
|
|
388
|
+
} | undefined;
|
|
389
|
+
}[] | undefined;
|
|
390
|
+
batch?: {
|
|
391
|
+
lotNumber?: string | undefined;
|
|
392
|
+
expirationDate?: string | undefined;
|
|
393
|
+
} | undefined;
|
|
394
|
+
}>;
|
|
395
|
+
};
|