@digitalmedika/satusehat 0.1.0 → 0.2.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/README.md +118 -2
- package/dist/builders/chest-xray-study-builder.d.ts +16 -0
- package/dist/builders/encounter-builder.d.ts +124 -0
- package/dist/builders/risk-assessment-builder.d.ts +39 -0
- package/dist/builders/service-request-imaging-study-diagnostic-report-builder.d.ts +49 -0
- package/dist/client/create-client.d.ts +1 -0
- package/dist/client/transport.d.ts +9 -0
- package/dist/core/types.d.ts +160 -0
- package/dist/endpoints/allergy-intolerance.d.ts +720 -0
- package/dist/endpoints/clinical-impression.d.ts +530 -0
- package/dist/endpoints/composition.d.ts +3 -0
- package/dist/endpoints/condition.d.ts +195 -195
- package/dist/endpoints/diagnostic-report.d.ts +70 -70
- package/dist/endpoints/dicom-router.d.ts +6 -0
- package/dist/endpoints/encounter.d.ts +156 -115
- package/dist/endpoints/imaging-study.d.ts +790 -0
- package/dist/endpoints/location.d.ts +30 -30
- package/dist/endpoints/medication-administration.d.ts +910 -0
- package/dist/endpoints/medication-request.d.ts +260 -260
- package/dist/endpoints/nutrition-order.d.ts +1510 -0
- package/dist/endpoints/observation.d.ts +230 -230
- package/dist/endpoints/organization.d.ts +20 -20
- package/dist/endpoints/practitioner-role.d.ts +25 -25
- package/dist/endpoints/procedure.d.ts +215 -215
- package/dist/endpoints/questionnaire-response.d.ts +195 -0
- package/dist/endpoints/risk-assessment.d.ts +770 -0
- package/dist/endpoints/service-request.d.ts +190 -190
- package/dist/endpoints/specimen.d.ts +105 -105
- package/dist/index.d.ts +19 -3
- package/dist/index.js +13 -1
- package/dist/schemas/allergy-intolerance.d.ts +4148 -0
- package/dist/schemas/clinical-impression.d.ts +2666 -0
- package/dist/schemas/composition.d.ts +2914 -0
- package/dist/schemas/condition.d.ts +476 -476
- package/dist/schemas/diagnostic-report.d.ts +172 -172
- package/dist/schemas/encounter.d.ts +1124 -564
- package/dist/schemas/imaging-study.d.ts +4609 -0
- package/dist/schemas/location.d.ts +72 -72
- package/dist/schemas/medication-administration.d.ts +5420 -0
- package/dist/schemas/medication-request.d.ts +1083 -1083
- package/dist/schemas/nutrition-order.d.ts +12261 -0
- package/dist/schemas/observation.d.ts +598 -598
- package/dist/schemas/organization.d.ts +60 -60
- package/dist/schemas/practitioner-role.d.ts +60 -60
- package/dist/schemas/procedure.d.ts +536 -536
- package/dist/schemas/questionnaire-response.d.ts +939 -0
- package/dist/schemas/risk-assessment.d.ts +4591 -0
- package/dist/schemas/service-request.d.ts +470 -470
- package/dist/schemas/specimen.d.ts +312 -312
- package/package.json +8 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { type Transport } from "../client/transport";
|
|
2
3
|
import type { EncounterCreateInput, EncounterPatchInput, EncounterSearchParams } from "../schemas/encounter";
|
|
3
4
|
export declare function createEncounterClient(transport: Transport): {
|
|
4
5
|
create(input: EncounterCreateInput, signal?: AbortSignal): Promise<{
|
|
5
|
-
status: "unknown" | "
|
|
6
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
6
7
|
period: {
|
|
7
8
|
start: string;
|
|
8
9
|
end: string;
|
|
@@ -19,6 +20,14 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
19
20
|
type?: string | undefined;
|
|
20
21
|
display?: string | undefined;
|
|
21
22
|
};
|
|
23
|
+
reasonCode: {
|
|
24
|
+
coding: {
|
|
25
|
+
code: string;
|
|
26
|
+
system: string;
|
|
27
|
+
display?: string | undefined;
|
|
28
|
+
}[];
|
|
29
|
+
text?: string | undefined;
|
|
30
|
+
}[];
|
|
22
31
|
location: {
|
|
23
32
|
location: {
|
|
24
33
|
reference: string;
|
|
@@ -26,7 +35,15 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
26
35
|
display?: string | undefined;
|
|
27
36
|
};
|
|
28
37
|
status?: "active" | "completed" | "planned" | "reserved" | undefined;
|
|
29
|
-
extension?:
|
|
38
|
+
extension?: ({
|
|
39
|
+
url: "https://fhir.kemkes.go.id/r4/StructureDefinition/serviceClass";
|
|
40
|
+
extension: {
|
|
41
|
+
url: "valueCode";
|
|
42
|
+
valueCode: string;
|
|
43
|
+
}[];
|
|
44
|
+
} | z.objectOutputType<{
|
|
45
|
+
url: z.ZodString;
|
|
46
|
+
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
30
47
|
period?: {
|
|
31
48
|
start?: string | undefined;
|
|
32
49
|
end?: string | undefined;
|
|
@@ -40,21 +57,13 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
40
57
|
text?: string | undefined;
|
|
41
58
|
} | undefined;
|
|
42
59
|
}[];
|
|
43
|
-
reasonCode: {
|
|
44
|
-
coding: {
|
|
45
|
-
code: string;
|
|
46
|
-
system: string;
|
|
47
|
-
display?: string | undefined;
|
|
48
|
-
}[];
|
|
49
|
-
text?: string | undefined;
|
|
50
|
-
}[];
|
|
51
60
|
class: {
|
|
52
61
|
code: string;
|
|
53
62
|
system: string;
|
|
54
63
|
display?: string | undefined;
|
|
55
64
|
};
|
|
56
65
|
statusHistory: {
|
|
57
|
-
status: "unknown" | "
|
|
66
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
58
67
|
period: {
|
|
59
68
|
start: string;
|
|
60
69
|
end: string;
|
|
@@ -116,16 +125,16 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
116
125
|
type?: string | undefined;
|
|
117
126
|
display?: string | undefined;
|
|
118
127
|
}[] | undefined;
|
|
119
|
-
|
|
128
|
+
reasonReference?: {
|
|
120
129
|
reference: string;
|
|
121
130
|
type?: string | undefined;
|
|
122
131
|
display?: string | undefined;
|
|
123
|
-
} | undefined;
|
|
124
|
-
|
|
132
|
+
}[] | undefined;
|
|
133
|
+
partOf?: {
|
|
125
134
|
reference: string;
|
|
126
135
|
type?: string | undefined;
|
|
127
136
|
display?: string | undefined;
|
|
128
|
-
}
|
|
137
|
+
} | undefined;
|
|
129
138
|
priority?: {
|
|
130
139
|
coding?: {
|
|
131
140
|
code?: string | undefined;
|
|
@@ -179,11 +188,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
179
188
|
display?: string | undefined;
|
|
180
189
|
} | undefined;
|
|
181
190
|
admitSource?: {
|
|
182
|
-
coding
|
|
183
|
-
code
|
|
184
|
-
system
|
|
191
|
+
coding: {
|
|
192
|
+
code: string;
|
|
193
|
+
system: "http://terminology.hl7.org/CodeSystem/admit-source";
|
|
185
194
|
display?: string | undefined;
|
|
186
|
-
}[]
|
|
195
|
+
}[];
|
|
187
196
|
text?: string | undefined;
|
|
188
197
|
} | undefined;
|
|
189
198
|
reAdmission?: {
|
|
@@ -216,11 +225,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
216
225
|
display?: string | undefined;
|
|
217
226
|
} | undefined;
|
|
218
227
|
dischargeDisposition?: {
|
|
219
|
-
coding
|
|
220
|
-
code
|
|
221
|
-
system
|
|
228
|
+
coding: {
|
|
229
|
+
code: string;
|
|
230
|
+
system: "http://terminology.hl7.org/CodeSystem/discharge-disposition";
|
|
222
231
|
display?: string | undefined;
|
|
223
|
-
}[]
|
|
232
|
+
}[];
|
|
224
233
|
text?: string | undefined;
|
|
225
234
|
} | undefined;
|
|
226
235
|
} | undefined;
|
|
@@ -229,7 +238,7 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
229
238
|
id: string;
|
|
230
239
|
signal?: AbortSignal;
|
|
231
240
|
}): Promise<{
|
|
232
|
-
status: "unknown" | "
|
|
241
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
233
242
|
period: {
|
|
234
243
|
start: string;
|
|
235
244
|
end: string;
|
|
@@ -246,6 +255,14 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
246
255
|
type?: string | undefined;
|
|
247
256
|
display?: string | undefined;
|
|
248
257
|
};
|
|
258
|
+
reasonCode: {
|
|
259
|
+
coding: {
|
|
260
|
+
code: string;
|
|
261
|
+
system: string;
|
|
262
|
+
display?: string | undefined;
|
|
263
|
+
}[];
|
|
264
|
+
text?: string | undefined;
|
|
265
|
+
}[];
|
|
249
266
|
location: {
|
|
250
267
|
location: {
|
|
251
268
|
reference: string;
|
|
@@ -253,7 +270,15 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
253
270
|
display?: string | undefined;
|
|
254
271
|
};
|
|
255
272
|
status?: "active" | "completed" | "planned" | "reserved" | undefined;
|
|
256
|
-
extension?:
|
|
273
|
+
extension?: ({
|
|
274
|
+
url: "https://fhir.kemkes.go.id/r4/StructureDefinition/serviceClass";
|
|
275
|
+
extension: {
|
|
276
|
+
url: "valueCode";
|
|
277
|
+
valueCode: string;
|
|
278
|
+
}[];
|
|
279
|
+
} | z.objectOutputType<{
|
|
280
|
+
url: z.ZodString;
|
|
281
|
+
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
257
282
|
period?: {
|
|
258
283
|
start?: string | undefined;
|
|
259
284
|
end?: string | undefined;
|
|
@@ -267,21 +292,13 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
267
292
|
text?: string | undefined;
|
|
268
293
|
} | undefined;
|
|
269
294
|
}[];
|
|
270
|
-
reasonCode: {
|
|
271
|
-
coding: {
|
|
272
|
-
code: string;
|
|
273
|
-
system: string;
|
|
274
|
-
display?: string | undefined;
|
|
275
|
-
}[];
|
|
276
|
-
text?: string | undefined;
|
|
277
|
-
}[];
|
|
278
295
|
class: {
|
|
279
296
|
code: string;
|
|
280
297
|
system: string;
|
|
281
298
|
display?: string | undefined;
|
|
282
299
|
};
|
|
283
300
|
statusHistory: {
|
|
284
|
-
status: "unknown" | "
|
|
301
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
285
302
|
period: {
|
|
286
303
|
start: string;
|
|
287
304
|
end: string;
|
|
@@ -343,16 +360,16 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
343
360
|
type?: string | undefined;
|
|
344
361
|
display?: string | undefined;
|
|
345
362
|
}[] | undefined;
|
|
346
|
-
|
|
363
|
+
reasonReference?: {
|
|
347
364
|
reference: string;
|
|
348
365
|
type?: string | undefined;
|
|
349
366
|
display?: string | undefined;
|
|
350
|
-
} | undefined;
|
|
351
|
-
|
|
367
|
+
}[] | undefined;
|
|
368
|
+
partOf?: {
|
|
352
369
|
reference: string;
|
|
353
370
|
type?: string | undefined;
|
|
354
371
|
display?: string | undefined;
|
|
355
|
-
}
|
|
372
|
+
} | undefined;
|
|
356
373
|
priority?: {
|
|
357
374
|
coding?: {
|
|
358
375
|
code?: string | undefined;
|
|
@@ -406,11 +423,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
406
423
|
display?: string | undefined;
|
|
407
424
|
} | undefined;
|
|
408
425
|
admitSource?: {
|
|
409
|
-
coding
|
|
410
|
-
code
|
|
411
|
-
system
|
|
426
|
+
coding: {
|
|
427
|
+
code: string;
|
|
428
|
+
system: "http://terminology.hl7.org/CodeSystem/admit-source";
|
|
412
429
|
display?: string | undefined;
|
|
413
|
-
}[]
|
|
430
|
+
}[];
|
|
414
431
|
text?: string | undefined;
|
|
415
432
|
} | undefined;
|
|
416
433
|
reAdmission?: {
|
|
@@ -443,11 +460,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
443
460
|
display?: string | undefined;
|
|
444
461
|
} | undefined;
|
|
445
462
|
dischargeDisposition?: {
|
|
446
|
-
coding
|
|
447
|
-
code
|
|
448
|
-
system
|
|
463
|
+
coding: {
|
|
464
|
+
code: string;
|
|
465
|
+
system: "http://terminology.hl7.org/CodeSystem/discharge-disposition";
|
|
449
466
|
display?: string | undefined;
|
|
450
|
-
}[]
|
|
467
|
+
}[];
|
|
451
468
|
text?: string | undefined;
|
|
452
469
|
} | undefined;
|
|
453
470
|
} | undefined;
|
|
@@ -462,7 +479,7 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
462
479
|
}[] | undefined;
|
|
463
480
|
entry?: {
|
|
464
481
|
resource: {
|
|
465
|
-
status: "unknown" | "
|
|
482
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
466
483
|
period: {
|
|
467
484
|
start: string;
|
|
468
485
|
end: string;
|
|
@@ -479,6 +496,14 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
479
496
|
type?: string | undefined;
|
|
480
497
|
display?: string | undefined;
|
|
481
498
|
};
|
|
499
|
+
reasonCode: {
|
|
500
|
+
coding: {
|
|
501
|
+
code: string;
|
|
502
|
+
system: string;
|
|
503
|
+
display?: string | undefined;
|
|
504
|
+
}[];
|
|
505
|
+
text?: string | undefined;
|
|
506
|
+
}[];
|
|
482
507
|
location: {
|
|
483
508
|
location: {
|
|
484
509
|
reference: string;
|
|
@@ -486,7 +511,15 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
486
511
|
display?: string | undefined;
|
|
487
512
|
};
|
|
488
513
|
status?: "active" | "completed" | "planned" | "reserved" | undefined;
|
|
489
|
-
extension?:
|
|
514
|
+
extension?: ({
|
|
515
|
+
url: "https://fhir.kemkes.go.id/r4/StructureDefinition/serviceClass";
|
|
516
|
+
extension: {
|
|
517
|
+
url: "valueCode";
|
|
518
|
+
valueCode: string;
|
|
519
|
+
}[];
|
|
520
|
+
} | z.objectOutputType<{
|
|
521
|
+
url: z.ZodString;
|
|
522
|
+
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
490
523
|
period?: {
|
|
491
524
|
start?: string | undefined;
|
|
492
525
|
end?: string | undefined;
|
|
@@ -500,21 +533,13 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
500
533
|
text?: string | undefined;
|
|
501
534
|
} | undefined;
|
|
502
535
|
}[];
|
|
503
|
-
reasonCode: {
|
|
504
|
-
coding: {
|
|
505
|
-
code: string;
|
|
506
|
-
system: string;
|
|
507
|
-
display?: string | undefined;
|
|
508
|
-
}[];
|
|
509
|
-
text?: string | undefined;
|
|
510
|
-
}[];
|
|
511
536
|
class: {
|
|
512
537
|
code: string;
|
|
513
538
|
system: string;
|
|
514
539
|
display?: string | undefined;
|
|
515
540
|
};
|
|
516
541
|
statusHistory: {
|
|
517
|
-
status: "unknown" | "
|
|
542
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
518
543
|
period: {
|
|
519
544
|
start: string;
|
|
520
545
|
end: string;
|
|
@@ -576,16 +601,16 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
576
601
|
type?: string | undefined;
|
|
577
602
|
display?: string | undefined;
|
|
578
603
|
}[] | undefined;
|
|
579
|
-
|
|
604
|
+
reasonReference?: {
|
|
580
605
|
reference: string;
|
|
581
606
|
type?: string | undefined;
|
|
582
607
|
display?: string | undefined;
|
|
583
|
-
} | undefined;
|
|
584
|
-
|
|
608
|
+
}[] | undefined;
|
|
609
|
+
partOf?: {
|
|
585
610
|
reference: string;
|
|
586
611
|
type?: string | undefined;
|
|
587
612
|
display?: string | undefined;
|
|
588
|
-
}
|
|
613
|
+
} | undefined;
|
|
589
614
|
priority?: {
|
|
590
615
|
coding?: {
|
|
591
616
|
code?: string | undefined;
|
|
@@ -639,11 +664,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
639
664
|
display?: string | undefined;
|
|
640
665
|
} | undefined;
|
|
641
666
|
admitSource?: {
|
|
642
|
-
coding
|
|
643
|
-
code
|
|
644
|
-
system
|
|
667
|
+
coding: {
|
|
668
|
+
code: string;
|
|
669
|
+
system: "http://terminology.hl7.org/CodeSystem/admit-source";
|
|
645
670
|
display?: string | undefined;
|
|
646
|
-
}[]
|
|
671
|
+
}[];
|
|
647
672
|
text?: string | undefined;
|
|
648
673
|
} | undefined;
|
|
649
674
|
reAdmission?: {
|
|
@@ -676,11 +701,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
676
701
|
display?: string | undefined;
|
|
677
702
|
} | undefined;
|
|
678
703
|
dischargeDisposition?: {
|
|
679
|
-
coding
|
|
680
|
-
code
|
|
681
|
-
system
|
|
704
|
+
coding: {
|
|
705
|
+
code: string;
|
|
706
|
+
system: "http://terminology.hl7.org/CodeSystem/discharge-disposition";
|
|
682
707
|
display?: string | undefined;
|
|
683
|
-
}[]
|
|
708
|
+
}[];
|
|
684
709
|
text?: string | undefined;
|
|
685
710
|
} | undefined;
|
|
686
711
|
} | undefined;
|
|
@@ -696,7 +721,7 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
696
721
|
body: EncounterPatchInput;
|
|
697
722
|
signal?: AbortSignal;
|
|
698
723
|
}): Promise<{
|
|
699
|
-
status: "unknown" | "
|
|
724
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
700
725
|
period: {
|
|
701
726
|
start: string;
|
|
702
727
|
end: string;
|
|
@@ -713,6 +738,14 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
713
738
|
type?: string | undefined;
|
|
714
739
|
display?: string | undefined;
|
|
715
740
|
};
|
|
741
|
+
reasonCode: {
|
|
742
|
+
coding: {
|
|
743
|
+
code: string;
|
|
744
|
+
system: string;
|
|
745
|
+
display?: string | undefined;
|
|
746
|
+
}[];
|
|
747
|
+
text?: string | undefined;
|
|
748
|
+
}[];
|
|
716
749
|
location: {
|
|
717
750
|
location: {
|
|
718
751
|
reference: string;
|
|
@@ -720,7 +753,15 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
720
753
|
display?: string | undefined;
|
|
721
754
|
};
|
|
722
755
|
status?: "active" | "completed" | "planned" | "reserved" | undefined;
|
|
723
|
-
extension?:
|
|
756
|
+
extension?: ({
|
|
757
|
+
url: "https://fhir.kemkes.go.id/r4/StructureDefinition/serviceClass";
|
|
758
|
+
extension: {
|
|
759
|
+
url: "valueCode";
|
|
760
|
+
valueCode: string;
|
|
761
|
+
}[];
|
|
762
|
+
} | z.objectOutputType<{
|
|
763
|
+
url: z.ZodString;
|
|
764
|
+
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
724
765
|
period?: {
|
|
725
766
|
start?: string | undefined;
|
|
726
767
|
end?: string | undefined;
|
|
@@ -734,21 +775,13 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
734
775
|
text?: string | undefined;
|
|
735
776
|
} | undefined;
|
|
736
777
|
}[];
|
|
737
|
-
reasonCode: {
|
|
738
|
-
coding: {
|
|
739
|
-
code: string;
|
|
740
|
-
system: string;
|
|
741
|
-
display?: string | undefined;
|
|
742
|
-
}[];
|
|
743
|
-
text?: string | undefined;
|
|
744
|
-
}[];
|
|
745
778
|
class: {
|
|
746
779
|
code: string;
|
|
747
780
|
system: string;
|
|
748
781
|
display?: string | undefined;
|
|
749
782
|
};
|
|
750
783
|
statusHistory: {
|
|
751
|
-
status: "unknown" | "
|
|
784
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
752
785
|
period: {
|
|
753
786
|
start: string;
|
|
754
787
|
end: string;
|
|
@@ -810,16 +843,16 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
810
843
|
type?: string | undefined;
|
|
811
844
|
display?: string | undefined;
|
|
812
845
|
}[] | undefined;
|
|
813
|
-
|
|
846
|
+
reasonReference?: {
|
|
814
847
|
reference: string;
|
|
815
848
|
type?: string | undefined;
|
|
816
849
|
display?: string | undefined;
|
|
817
|
-
} | undefined;
|
|
818
|
-
|
|
850
|
+
}[] | undefined;
|
|
851
|
+
partOf?: {
|
|
819
852
|
reference: string;
|
|
820
853
|
type?: string | undefined;
|
|
821
854
|
display?: string | undefined;
|
|
822
|
-
}
|
|
855
|
+
} | undefined;
|
|
823
856
|
priority?: {
|
|
824
857
|
coding?: {
|
|
825
858
|
code?: string | undefined;
|
|
@@ -873,11 +906,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
873
906
|
display?: string | undefined;
|
|
874
907
|
} | undefined;
|
|
875
908
|
admitSource?: {
|
|
876
|
-
coding
|
|
877
|
-
code
|
|
878
|
-
system
|
|
909
|
+
coding: {
|
|
910
|
+
code: string;
|
|
911
|
+
system: "http://terminology.hl7.org/CodeSystem/admit-source";
|
|
879
912
|
display?: string | undefined;
|
|
880
|
-
}[]
|
|
913
|
+
}[];
|
|
881
914
|
text?: string | undefined;
|
|
882
915
|
} | undefined;
|
|
883
916
|
reAdmission?: {
|
|
@@ -910,11 +943,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
910
943
|
display?: string | undefined;
|
|
911
944
|
} | undefined;
|
|
912
945
|
dischargeDisposition?: {
|
|
913
|
-
coding
|
|
914
|
-
code
|
|
915
|
-
system
|
|
946
|
+
coding: {
|
|
947
|
+
code: string;
|
|
948
|
+
system: "http://terminology.hl7.org/CodeSystem/discharge-disposition";
|
|
916
949
|
display?: string | undefined;
|
|
917
|
-
}[]
|
|
950
|
+
}[];
|
|
918
951
|
text?: string | undefined;
|
|
919
952
|
} | undefined;
|
|
920
953
|
} | undefined;
|
|
@@ -924,7 +957,7 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
924
957
|
body: EncounterCreateInput;
|
|
925
958
|
signal?: AbortSignal;
|
|
926
959
|
}): Promise<{
|
|
927
|
-
status: "unknown" | "
|
|
960
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
928
961
|
period: {
|
|
929
962
|
start: string;
|
|
930
963
|
end: string;
|
|
@@ -941,6 +974,14 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
941
974
|
type?: string | undefined;
|
|
942
975
|
display?: string | undefined;
|
|
943
976
|
};
|
|
977
|
+
reasonCode: {
|
|
978
|
+
coding: {
|
|
979
|
+
code: string;
|
|
980
|
+
system: string;
|
|
981
|
+
display?: string | undefined;
|
|
982
|
+
}[];
|
|
983
|
+
text?: string | undefined;
|
|
984
|
+
}[];
|
|
944
985
|
location: {
|
|
945
986
|
location: {
|
|
946
987
|
reference: string;
|
|
@@ -948,7 +989,15 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
948
989
|
display?: string | undefined;
|
|
949
990
|
};
|
|
950
991
|
status?: "active" | "completed" | "planned" | "reserved" | undefined;
|
|
951
|
-
extension?:
|
|
992
|
+
extension?: ({
|
|
993
|
+
url: "https://fhir.kemkes.go.id/r4/StructureDefinition/serviceClass";
|
|
994
|
+
extension: {
|
|
995
|
+
url: "valueCode";
|
|
996
|
+
valueCode: string;
|
|
997
|
+
}[];
|
|
998
|
+
} | z.objectOutputType<{
|
|
999
|
+
url: z.ZodString;
|
|
1000
|
+
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
952
1001
|
period?: {
|
|
953
1002
|
start?: string | undefined;
|
|
954
1003
|
end?: string | undefined;
|
|
@@ -962,21 +1011,13 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
962
1011
|
text?: string | undefined;
|
|
963
1012
|
} | undefined;
|
|
964
1013
|
}[];
|
|
965
|
-
reasonCode: {
|
|
966
|
-
coding: {
|
|
967
|
-
code: string;
|
|
968
|
-
system: string;
|
|
969
|
-
display?: string | undefined;
|
|
970
|
-
}[];
|
|
971
|
-
text?: string | undefined;
|
|
972
|
-
}[];
|
|
973
1014
|
class: {
|
|
974
1015
|
code: string;
|
|
975
1016
|
system: string;
|
|
976
1017
|
display?: string | undefined;
|
|
977
1018
|
};
|
|
978
1019
|
statusHistory: {
|
|
979
|
-
status: "unknown" | "
|
|
1020
|
+
status: "unknown" | "in-progress" | "entered-in-error" | "cancelled" | "planned" | "arrived" | "triaged" | "onleave" | "finished";
|
|
980
1021
|
period: {
|
|
981
1022
|
start: string;
|
|
982
1023
|
end: string;
|
|
@@ -1038,16 +1079,16 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
1038
1079
|
type?: string | undefined;
|
|
1039
1080
|
display?: string | undefined;
|
|
1040
1081
|
}[] | undefined;
|
|
1041
|
-
|
|
1082
|
+
reasonReference?: {
|
|
1042
1083
|
reference: string;
|
|
1043
1084
|
type?: string | undefined;
|
|
1044
1085
|
display?: string | undefined;
|
|
1045
|
-
} | undefined;
|
|
1046
|
-
|
|
1086
|
+
}[] | undefined;
|
|
1087
|
+
partOf?: {
|
|
1047
1088
|
reference: string;
|
|
1048
1089
|
type?: string | undefined;
|
|
1049
1090
|
display?: string | undefined;
|
|
1050
|
-
}
|
|
1091
|
+
} | undefined;
|
|
1051
1092
|
priority?: {
|
|
1052
1093
|
coding?: {
|
|
1053
1094
|
code?: string | undefined;
|
|
@@ -1101,11 +1142,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
1101
1142
|
display?: string | undefined;
|
|
1102
1143
|
} | undefined;
|
|
1103
1144
|
admitSource?: {
|
|
1104
|
-
coding
|
|
1105
|
-
code
|
|
1106
|
-
system
|
|
1145
|
+
coding: {
|
|
1146
|
+
code: string;
|
|
1147
|
+
system: "http://terminology.hl7.org/CodeSystem/admit-source";
|
|
1107
1148
|
display?: string | undefined;
|
|
1108
|
-
}[]
|
|
1149
|
+
}[];
|
|
1109
1150
|
text?: string | undefined;
|
|
1110
1151
|
} | undefined;
|
|
1111
1152
|
reAdmission?: {
|
|
@@ -1138,11 +1179,11 @@ export declare function createEncounterClient(transport: Transport): {
|
|
|
1138
1179
|
display?: string | undefined;
|
|
1139
1180
|
} | undefined;
|
|
1140
1181
|
dischargeDisposition?: {
|
|
1141
|
-
coding
|
|
1142
|
-
code
|
|
1143
|
-
system
|
|
1182
|
+
coding: {
|
|
1183
|
+
code: string;
|
|
1184
|
+
system: "http://terminology.hl7.org/CodeSystem/discharge-disposition";
|
|
1144
1185
|
display?: string | undefined;
|
|
1145
|
-
}[]
|
|
1186
|
+
}[];
|
|
1146
1187
|
text?: string | undefined;
|
|
1147
1188
|
} | undefined;
|
|
1148
1189
|
} | undefined;
|