@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.
Files changed (50) hide show
  1. package/README.md +118 -2
  2. package/dist/builders/chest-xray-study-builder.d.ts +16 -0
  3. package/dist/builders/encounter-builder.d.ts +124 -0
  4. package/dist/builders/risk-assessment-builder.d.ts +39 -0
  5. package/dist/builders/service-request-imaging-study-diagnostic-report-builder.d.ts +49 -0
  6. package/dist/client/create-client.d.ts +1 -0
  7. package/dist/client/transport.d.ts +9 -0
  8. package/dist/core/types.d.ts +160 -0
  9. package/dist/endpoints/allergy-intolerance.d.ts +720 -0
  10. package/dist/endpoints/clinical-impression.d.ts +530 -0
  11. package/dist/endpoints/composition.d.ts +3 -0
  12. package/dist/endpoints/condition.d.ts +195 -195
  13. package/dist/endpoints/diagnostic-report.d.ts +70 -70
  14. package/dist/endpoints/dicom-router.d.ts +6 -0
  15. package/dist/endpoints/encounter.d.ts +156 -115
  16. package/dist/endpoints/imaging-study.d.ts +790 -0
  17. package/dist/endpoints/location.d.ts +30 -30
  18. package/dist/endpoints/medication-administration.d.ts +910 -0
  19. package/dist/endpoints/medication-request.d.ts +260 -260
  20. package/dist/endpoints/nutrition-order.d.ts +1510 -0
  21. package/dist/endpoints/observation.d.ts +230 -230
  22. package/dist/endpoints/organization.d.ts +20 -20
  23. package/dist/endpoints/practitioner-role.d.ts +25 -25
  24. package/dist/endpoints/procedure.d.ts +215 -215
  25. package/dist/endpoints/questionnaire-response.d.ts +195 -0
  26. package/dist/endpoints/risk-assessment.d.ts +770 -0
  27. package/dist/endpoints/service-request.d.ts +190 -190
  28. package/dist/endpoints/specimen.d.ts +105 -105
  29. package/dist/index.d.ts +19 -3
  30. package/dist/index.js +13 -1
  31. package/dist/schemas/allergy-intolerance.d.ts +4148 -0
  32. package/dist/schemas/clinical-impression.d.ts +2666 -0
  33. package/dist/schemas/composition.d.ts +2914 -0
  34. package/dist/schemas/condition.d.ts +476 -476
  35. package/dist/schemas/diagnostic-report.d.ts +172 -172
  36. package/dist/schemas/encounter.d.ts +1124 -564
  37. package/dist/schemas/imaging-study.d.ts +4609 -0
  38. package/dist/schemas/location.d.ts +72 -72
  39. package/dist/schemas/medication-administration.d.ts +5420 -0
  40. package/dist/schemas/medication-request.d.ts +1083 -1083
  41. package/dist/schemas/nutrition-order.d.ts +12261 -0
  42. package/dist/schemas/observation.d.ts +598 -598
  43. package/dist/schemas/organization.d.ts +60 -60
  44. package/dist/schemas/practitioner-role.d.ts +60 -60
  45. package/dist/schemas/procedure.d.ts +536 -536
  46. package/dist/schemas/questionnaire-response.d.ts +939 -0
  47. package/dist/schemas/risk-assessment.d.ts +4591 -0
  48. package/dist/schemas/service-request.d.ts +470 -470
  49. package/dist/schemas/specimen.d.ts +312 -312
  50. package/package.json +8 -1
@@ -12,12 +12,12 @@ export declare function createConditionClient(transport: Transport): {
12
12
  };
13
13
  resourceType: "Condition";
14
14
  id: string;
15
- subject: {
15
+ encounter: {
16
16
  reference: string;
17
17
  type?: string | undefined;
18
18
  display?: string | undefined;
19
19
  };
20
- encounter: {
20
+ subject: {
21
21
  reference: string;
22
22
  type?: string | undefined;
23
23
  display?: string | undefined;
@@ -32,6 +32,24 @@ export declare function createConditionClient(transport: Transport): {
32
32
  profile?: string[] | undefined;
33
33
  versionId?: string | undefined;
34
34
  } | undefined;
35
+ severity?: {
36
+ coding?: {
37
+ code?: string | undefined;
38
+ system?: string | undefined;
39
+ display?: string | undefined;
40
+ }[] | undefined;
41
+ text?: string | undefined;
42
+ } | undefined;
43
+ note?: {
44
+ text: string;
45
+ authorReference?: {
46
+ reference: string;
47
+ type?: string | undefined;
48
+ display?: string | undefined;
49
+ } | undefined;
50
+ authorString?: string | undefined;
51
+ time?: string | undefined;
52
+ }[] | undefined;
35
53
  clinicalStatus?: {
36
54
  coding: {
37
55
  code: string;
@@ -56,22 +74,6 @@ export declare function createConditionClient(transport: Transport): {
56
74
  }[];
57
75
  text?: string | undefined;
58
76
  }[] | undefined;
59
- severity?: {
60
- coding?: {
61
- code?: string | undefined;
62
- system?: string | undefined;
63
- display?: string | undefined;
64
- }[] | undefined;
65
- text?: string | undefined;
66
- } | undefined;
67
- bodySite?: {
68
- coding?: {
69
- code?: string | undefined;
70
- system?: string | undefined;
71
- display?: string | undefined;
72
- }[] | undefined;
73
- text?: string | undefined;
74
- }[] | undefined;
75
77
  onsetDateTime?: string | undefined;
76
78
  onsetAge?: {
77
79
  value: number;
@@ -98,6 +100,25 @@ export declare function createConditionClient(transport: Transport): {
98
100
  } | undefined;
99
101
  } | undefined;
100
102
  onsetString?: string | undefined;
103
+ recordedDate?: string | undefined;
104
+ recorder?: {
105
+ reference: string;
106
+ type?: string | undefined;
107
+ display?: string | undefined;
108
+ } | undefined;
109
+ asserter?: {
110
+ reference: string;
111
+ type?: string | undefined;
112
+ display?: string | undefined;
113
+ } | undefined;
114
+ bodySite?: {
115
+ coding?: {
116
+ code?: string | undefined;
117
+ system?: string | undefined;
118
+ display?: string | undefined;
119
+ }[] | undefined;
120
+ text?: string | undefined;
121
+ }[] | undefined;
101
122
  abatementDateTime?: string | undefined;
102
123
  abatementAge?: {
103
124
  value: number;
@@ -124,17 +145,6 @@ export declare function createConditionClient(transport: Transport): {
124
145
  } | undefined;
125
146
  } | undefined;
126
147
  abatementString?: string | undefined;
127
- recordedDate?: string | undefined;
128
- recorder?: {
129
- reference: string;
130
- type?: string | undefined;
131
- display?: string | undefined;
132
- } | undefined;
133
- asserter?: {
134
- reference: string;
135
- type?: string | undefined;
136
- display?: string | undefined;
137
- } | undefined;
138
148
  stage?: {
139
149
  type?: {
140
150
  coding?: {
@@ -173,16 +183,6 @@ export declare function createConditionClient(transport: Transport): {
173
183
  display?: string | undefined;
174
184
  }[] | undefined;
175
185
  }[] | undefined;
176
- note?: {
177
- text: string;
178
- authorReference?: {
179
- reference: string;
180
- type?: string | undefined;
181
- display?: string | undefined;
182
- } | undefined;
183
- authorString?: string | undefined;
184
- time?: string | undefined;
185
- }[] | undefined;
186
186
  }>;
187
187
  getById(input: {
188
188
  id: string;
@@ -198,12 +198,12 @@ export declare function createConditionClient(transport: Transport): {
198
198
  };
199
199
  resourceType: "Condition";
200
200
  id: string;
201
- subject: {
201
+ encounter: {
202
202
  reference: string;
203
203
  type?: string | undefined;
204
204
  display?: string | undefined;
205
205
  };
206
- encounter: {
206
+ subject: {
207
207
  reference: string;
208
208
  type?: string | undefined;
209
209
  display?: string | undefined;
@@ -218,6 +218,24 @@ export declare function createConditionClient(transport: Transport): {
218
218
  profile?: string[] | undefined;
219
219
  versionId?: string | undefined;
220
220
  } | undefined;
221
+ severity?: {
222
+ coding?: {
223
+ code?: string | undefined;
224
+ system?: string | undefined;
225
+ display?: string | undefined;
226
+ }[] | undefined;
227
+ text?: string | undefined;
228
+ } | undefined;
229
+ note?: {
230
+ text: string;
231
+ authorReference?: {
232
+ reference: string;
233
+ type?: string | undefined;
234
+ display?: string | undefined;
235
+ } | undefined;
236
+ authorString?: string | undefined;
237
+ time?: string | undefined;
238
+ }[] | undefined;
221
239
  clinicalStatus?: {
222
240
  coding: {
223
241
  code: string;
@@ -242,22 +260,6 @@ export declare function createConditionClient(transport: Transport): {
242
260
  }[];
243
261
  text?: string | undefined;
244
262
  }[] | undefined;
245
- severity?: {
246
- coding?: {
247
- code?: string | undefined;
248
- system?: string | undefined;
249
- display?: string | undefined;
250
- }[] | undefined;
251
- text?: string | undefined;
252
- } | undefined;
253
- bodySite?: {
254
- coding?: {
255
- code?: string | undefined;
256
- system?: string | undefined;
257
- display?: string | undefined;
258
- }[] | undefined;
259
- text?: string | undefined;
260
- }[] | undefined;
261
263
  onsetDateTime?: string | undefined;
262
264
  onsetAge?: {
263
265
  value: number;
@@ -284,6 +286,25 @@ export declare function createConditionClient(transport: Transport): {
284
286
  } | undefined;
285
287
  } | undefined;
286
288
  onsetString?: string | undefined;
289
+ recordedDate?: string | undefined;
290
+ recorder?: {
291
+ reference: string;
292
+ type?: string | undefined;
293
+ display?: string | undefined;
294
+ } | undefined;
295
+ asserter?: {
296
+ reference: string;
297
+ type?: string | undefined;
298
+ display?: string | undefined;
299
+ } | undefined;
300
+ bodySite?: {
301
+ coding?: {
302
+ code?: string | undefined;
303
+ system?: string | undefined;
304
+ display?: string | undefined;
305
+ }[] | undefined;
306
+ text?: string | undefined;
307
+ }[] | undefined;
287
308
  abatementDateTime?: string | undefined;
288
309
  abatementAge?: {
289
310
  value: number;
@@ -310,17 +331,6 @@ export declare function createConditionClient(transport: Transport): {
310
331
  } | undefined;
311
332
  } | undefined;
312
333
  abatementString?: string | undefined;
313
- recordedDate?: string | undefined;
314
- recorder?: {
315
- reference: string;
316
- type?: string | undefined;
317
- display?: string | undefined;
318
- } | undefined;
319
- asserter?: {
320
- reference: string;
321
- type?: string | undefined;
322
- display?: string | undefined;
323
- } | undefined;
324
334
  stage?: {
325
335
  type?: {
326
336
  coding?: {
@@ -359,16 +369,6 @@ export declare function createConditionClient(transport: Transport): {
359
369
  display?: string | undefined;
360
370
  }[] | undefined;
361
371
  }[] | undefined;
362
- note?: {
363
- text: string;
364
- authorReference?: {
365
- reference: string;
366
- type?: string | undefined;
367
- display?: string | undefined;
368
- } | undefined;
369
- authorString?: string | undefined;
370
- time?: string | undefined;
371
- }[] | undefined;
372
372
  }>;
373
373
  search(input: ConditionSearchParams, signal?: AbortSignal): Promise<{
374
374
  resourceType: "Bundle";
@@ -390,12 +390,12 @@ export declare function createConditionClient(transport: Transport): {
390
390
  };
391
391
  resourceType: "Condition";
392
392
  id: string;
393
- subject: {
393
+ encounter: {
394
394
  reference: string;
395
395
  type?: string | undefined;
396
396
  display?: string | undefined;
397
397
  };
398
- encounter: {
398
+ subject: {
399
399
  reference: string;
400
400
  type?: string | undefined;
401
401
  display?: string | undefined;
@@ -410,6 +410,24 @@ export declare function createConditionClient(transport: Transport): {
410
410
  profile?: string[] | undefined;
411
411
  versionId?: string | undefined;
412
412
  } | undefined;
413
+ severity?: {
414
+ coding?: {
415
+ code?: string | undefined;
416
+ system?: string | undefined;
417
+ display?: string | undefined;
418
+ }[] | undefined;
419
+ text?: string | undefined;
420
+ } | undefined;
421
+ note?: {
422
+ text: string;
423
+ authorReference?: {
424
+ reference: string;
425
+ type?: string | undefined;
426
+ display?: string | undefined;
427
+ } | undefined;
428
+ authorString?: string | undefined;
429
+ time?: string | undefined;
430
+ }[] | undefined;
413
431
  clinicalStatus?: {
414
432
  coding: {
415
433
  code: string;
@@ -434,22 +452,6 @@ export declare function createConditionClient(transport: Transport): {
434
452
  }[];
435
453
  text?: string | undefined;
436
454
  }[] | undefined;
437
- severity?: {
438
- coding?: {
439
- code?: string | undefined;
440
- system?: string | undefined;
441
- display?: string | undefined;
442
- }[] | undefined;
443
- text?: string | undefined;
444
- } | undefined;
445
- bodySite?: {
446
- coding?: {
447
- code?: string | undefined;
448
- system?: string | undefined;
449
- display?: string | undefined;
450
- }[] | undefined;
451
- text?: string | undefined;
452
- }[] | undefined;
453
455
  onsetDateTime?: string | undefined;
454
456
  onsetAge?: {
455
457
  value: number;
@@ -476,6 +478,25 @@ export declare function createConditionClient(transport: Transport): {
476
478
  } | undefined;
477
479
  } | undefined;
478
480
  onsetString?: string | undefined;
481
+ recordedDate?: string | undefined;
482
+ recorder?: {
483
+ reference: string;
484
+ type?: string | undefined;
485
+ display?: string | undefined;
486
+ } | undefined;
487
+ asserter?: {
488
+ reference: string;
489
+ type?: string | undefined;
490
+ display?: string | undefined;
491
+ } | undefined;
492
+ bodySite?: {
493
+ coding?: {
494
+ code?: string | undefined;
495
+ system?: string | undefined;
496
+ display?: string | undefined;
497
+ }[] | undefined;
498
+ text?: string | undefined;
499
+ }[] | undefined;
479
500
  abatementDateTime?: string | undefined;
480
501
  abatementAge?: {
481
502
  value: number;
@@ -502,17 +523,6 @@ export declare function createConditionClient(transport: Transport): {
502
523
  } | undefined;
503
524
  } | undefined;
504
525
  abatementString?: string | undefined;
505
- recordedDate?: string | undefined;
506
- recorder?: {
507
- reference: string;
508
- type?: string | undefined;
509
- display?: string | undefined;
510
- } | undefined;
511
- asserter?: {
512
- reference: string;
513
- type?: string | undefined;
514
- display?: string | undefined;
515
- } | undefined;
516
526
  stage?: {
517
527
  type?: {
518
528
  coding?: {
@@ -551,16 +561,6 @@ export declare function createConditionClient(transport: Transport): {
551
561
  display?: string | undefined;
552
562
  }[] | undefined;
553
563
  }[] | undefined;
554
- note?: {
555
- text: string;
556
- authorReference?: {
557
- reference: string;
558
- type?: string | undefined;
559
- display?: string | undefined;
560
- } | undefined;
561
- authorString?: string | undefined;
562
- time?: string | undefined;
563
- }[] | undefined;
564
564
  };
565
565
  fullUrl?: string | undefined;
566
566
  search?: {
@@ -583,12 +583,12 @@ export declare function createConditionClient(transport: Transport): {
583
583
  };
584
584
  resourceType: "Condition";
585
585
  id: string;
586
- subject: {
586
+ encounter: {
587
587
  reference: string;
588
588
  type?: string | undefined;
589
589
  display?: string | undefined;
590
590
  };
591
- encounter: {
591
+ subject: {
592
592
  reference: string;
593
593
  type?: string | undefined;
594
594
  display?: string | undefined;
@@ -603,6 +603,24 @@ export declare function createConditionClient(transport: Transport): {
603
603
  profile?: string[] | undefined;
604
604
  versionId?: string | undefined;
605
605
  } | undefined;
606
+ severity?: {
607
+ coding?: {
608
+ code?: string | undefined;
609
+ system?: string | undefined;
610
+ display?: string | undefined;
611
+ }[] | undefined;
612
+ text?: string | undefined;
613
+ } | undefined;
614
+ note?: {
615
+ text: string;
616
+ authorReference?: {
617
+ reference: string;
618
+ type?: string | undefined;
619
+ display?: string | undefined;
620
+ } | undefined;
621
+ authorString?: string | undefined;
622
+ time?: string | undefined;
623
+ }[] | undefined;
606
624
  clinicalStatus?: {
607
625
  coding: {
608
626
  code: string;
@@ -627,22 +645,6 @@ export declare function createConditionClient(transport: Transport): {
627
645
  }[];
628
646
  text?: string | undefined;
629
647
  }[] | undefined;
630
- severity?: {
631
- coding?: {
632
- code?: string | undefined;
633
- system?: string | undefined;
634
- display?: string | undefined;
635
- }[] | undefined;
636
- text?: string | undefined;
637
- } | undefined;
638
- bodySite?: {
639
- coding?: {
640
- code?: string | undefined;
641
- system?: string | undefined;
642
- display?: string | undefined;
643
- }[] | undefined;
644
- text?: string | undefined;
645
- }[] | undefined;
646
648
  onsetDateTime?: string | undefined;
647
649
  onsetAge?: {
648
650
  value: number;
@@ -669,6 +671,25 @@ export declare function createConditionClient(transport: Transport): {
669
671
  } | undefined;
670
672
  } | undefined;
671
673
  onsetString?: string | undefined;
674
+ recordedDate?: string | undefined;
675
+ recorder?: {
676
+ reference: string;
677
+ type?: string | undefined;
678
+ display?: string | undefined;
679
+ } | undefined;
680
+ asserter?: {
681
+ reference: string;
682
+ type?: string | undefined;
683
+ display?: string | undefined;
684
+ } | undefined;
685
+ bodySite?: {
686
+ coding?: {
687
+ code?: string | undefined;
688
+ system?: string | undefined;
689
+ display?: string | undefined;
690
+ }[] | undefined;
691
+ text?: string | undefined;
692
+ }[] | undefined;
672
693
  abatementDateTime?: string | undefined;
673
694
  abatementAge?: {
674
695
  value: number;
@@ -695,17 +716,6 @@ export declare function createConditionClient(transport: Transport): {
695
716
  } | undefined;
696
717
  } | undefined;
697
718
  abatementString?: string | undefined;
698
- recordedDate?: string | undefined;
699
- recorder?: {
700
- reference: string;
701
- type?: string | undefined;
702
- display?: string | undefined;
703
- } | undefined;
704
- asserter?: {
705
- reference: string;
706
- type?: string | undefined;
707
- display?: string | undefined;
708
- } | undefined;
709
719
  stage?: {
710
720
  type?: {
711
721
  coding?: {
@@ -744,16 +754,6 @@ export declare function createConditionClient(transport: Transport): {
744
754
  display?: string | undefined;
745
755
  }[] | undefined;
746
756
  }[] | undefined;
747
- note?: {
748
- text: string;
749
- authorReference?: {
750
- reference: string;
751
- type?: string | undefined;
752
- display?: string | undefined;
753
- } | undefined;
754
- authorString?: string | undefined;
755
- time?: string | undefined;
756
- }[] | undefined;
757
757
  }>;
758
758
  update(input: {
759
759
  id: string;
@@ -770,12 +770,12 @@ export declare function createConditionClient(transport: Transport): {
770
770
  };
771
771
  resourceType: "Condition";
772
772
  id: string;
773
- subject: {
773
+ encounter: {
774
774
  reference: string;
775
775
  type?: string | undefined;
776
776
  display?: string | undefined;
777
777
  };
778
- encounter: {
778
+ subject: {
779
779
  reference: string;
780
780
  type?: string | undefined;
781
781
  display?: string | undefined;
@@ -790,6 +790,24 @@ export declare function createConditionClient(transport: Transport): {
790
790
  profile?: string[] | undefined;
791
791
  versionId?: string | undefined;
792
792
  } | undefined;
793
+ severity?: {
794
+ coding?: {
795
+ code?: string | undefined;
796
+ system?: string | undefined;
797
+ display?: string | undefined;
798
+ }[] | undefined;
799
+ text?: string | undefined;
800
+ } | undefined;
801
+ note?: {
802
+ text: string;
803
+ authorReference?: {
804
+ reference: string;
805
+ type?: string | undefined;
806
+ display?: string | undefined;
807
+ } | undefined;
808
+ authorString?: string | undefined;
809
+ time?: string | undefined;
810
+ }[] | undefined;
793
811
  clinicalStatus?: {
794
812
  coding: {
795
813
  code: string;
@@ -814,22 +832,6 @@ export declare function createConditionClient(transport: Transport): {
814
832
  }[];
815
833
  text?: string | undefined;
816
834
  }[] | undefined;
817
- severity?: {
818
- coding?: {
819
- code?: string | undefined;
820
- system?: string | undefined;
821
- display?: string | undefined;
822
- }[] | undefined;
823
- text?: string | undefined;
824
- } | undefined;
825
- bodySite?: {
826
- coding?: {
827
- code?: string | undefined;
828
- system?: string | undefined;
829
- display?: string | undefined;
830
- }[] | undefined;
831
- text?: string | undefined;
832
- }[] | undefined;
833
835
  onsetDateTime?: string | undefined;
834
836
  onsetAge?: {
835
837
  value: number;
@@ -856,6 +858,25 @@ export declare function createConditionClient(transport: Transport): {
856
858
  } | undefined;
857
859
  } | undefined;
858
860
  onsetString?: string | undefined;
861
+ recordedDate?: string | undefined;
862
+ recorder?: {
863
+ reference: string;
864
+ type?: string | undefined;
865
+ display?: string | undefined;
866
+ } | undefined;
867
+ asserter?: {
868
+ reference: string;
869
+ type?: string | undefined;
870
+ display?: string | undefined;
871
+ } | undefined;
872
+ bodySite?: {
873
+ coding?: {
874
+ code?: string | undefined;
875
+ system?: string | undefined;
876
+ display?: string | undefined;
877
+ }[] | undefined;
878
+ text?: string | undefined;
879
+ }[] | undefined;
859
880
  abatementDateTime?: string | undefined;
860
881
  abatementAge?: {
861
882
  value: number;
@@ -882,17 +903,6 @@ export declare function createConditionClient(transport: Transport): {
882
903
  } | undefined;
883
904
  } | undefined;
884
905
  abatementString?: string | undefined;
885
- recordedDate?: string | undefined;
886
- recorder?: {
887
- reference: string;
888
- type?: string | undefined;
889
- display?: string | undefined;
890
- } | undefined;
891
- asserter?: {
892
- reference: string;
893
- type?: string | undefined;
894
- display?: string | undefined;
895
- } | undefined;
896
906
  stage?: {
897
907
  type?: {
898
908
  coding?: {
@@ -931,15 +941,5 @@ export declare function createConditionClient(transport: Transport): {
931
941
  display?: string | undefined;
932
942
  }[] | undefined;
933
943
  }[] | undefined;
934
- note?: {
935
- text: string;
936
- authorReference?: {
937
- reference: string;
938
- type?: string | undefined;
939
- display?: string | undefined;
940
- } | undefined;
941
- authorString?: string | undefined;
942
- time?: string | undefined;
943
- }[] | undefined;
944
944
  }>;
945
945
  };