@awell-health/awell-extensions 2.0.154 → 2.0.156

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/dist/extensions/awell/index.js +1 -0
  2. package/dist/extensions/awell/index.js.map +1 -1
  3. package/dist/extensions/awell/v1/actions/getDataPointValue/__testdata__/getDataPointValue.mock.d.ts +84 -0
  4. package/dist/extensions/awell/v1/actions/getDataPointValue/__testdata__/getDataPointValue.mock.js +110 -0
  5. package/dist/extensions/awell/v1/actions/getDataPointValue/__testdata__/getDataPointValue.mock.js.map +1 -0
  6. package/dist/extensions/awell/v1/actions/getDataPointValue/config/dataPoints.d.ts +34 -0
  7. package/dist/extensions/awell/v1/actions/getDataPointValue/config/dataPoints.js +38 -0
  8. package/dist/extensions/awell/v1/actions/getDataPointValue/config/dataPoints.js.map +1 -0
  9. package/dist/extensions/awell/v1/actions/getDataPointValue/config/fields.d.ts +28 -0
  10. package/dist/extensions/awell/v1/actions/getDataPointValue/config/fields.js +26 -0
  11. package/dist/extensions/awell/v1/actions/getDataPointValue/config/fields.js.map +1 -0
  12. package/dist/extensions/awell/v1/actions/getDataPointValue/config/index.d.ts +2 -0
  13. package/dist/extensions/awell/v1/actions/getDataPointValue/config/index.js +9 -0
  14. package/dist/extensions/awell/v1/actions/getDataPointValue/config/index.js.map +1 -0
  15. package/dist/extensions/awell/v1/actions/getDataPointValue/getDataPointValue.d.ts +4 -0
  16. package/dist/extensions/awell/v1/actions/getDataPointValue/getDataPointValue.js +90 -0
  17. package/dist/extensions/awell/v1/actions/getDataPointValue/getDataPointValue.js.map +1 -0
  18. package/dist/extensions/awell/v1/actions/getDataPointValue/index.d.ts +1 -0
  19. package/dist/extensions/awell/v1/actions/getDataPointValue/index.js +6 -0
  20. package/dist/extensions/awell/v1/actions/getDataPointValue/index.js.map +1 -0
  21. package/dist/extensions/awell/v1/actions/index.d.ts +1 -0
  22. package/dist/extensions/awell/v1/actions/index.js +3 -1
  23. package/dist/extensions/awell/v1/actions/index.js.map +1 -1
  24. package/dist/extensions/awellTasks/api/schema/GetCareflowComments.schema.d.ts +6 -6
  25. package/dist/extensions/canvasMedical/v1/validation/extension.zod.d.ts +32 -32
  26. package/dist/extensions/canvasMedical/v1/validation/patient.zod.d.ts +76 -76
  27. package/dist/extensions/collectData/v1/actions/collectMedication/config/datapoints.d.ts +4 -0
  28. package/dist/extensions/collectData/v1/actions/collectMedication/config/datapoints.js +7 -0
  29. package/dist/extensions/collectData/v1/actions/collectMedication/config/datapoints.js.map +1 -1
  30. package/dist/extensions/markdown.json +1 -1
  31. package/package.json +1 -1
@@ -30,15 +30,15 @@ export declare const patientSchema: z.ZodObject<{
30
30
  code: string;
31
31
  system: string;
32
32
  };
33
- url?: string | undefined;
34
33
  valueString?: string | undefined;
34
+ url?: string | undefined;
35
35
  }, {
36
36
  valueCoding: {
37
37
  code: string;
38
38
  system: string;
39
39
  };
40
- url?: string | undefined;
41
40
  valueString?: string | undefined;
41
+ url?: string | undefined;
42
42
  }>, "many">;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  url: string;
@@ -47,8 +47,8 @@ export declare const patientSchema: z.ZodObject<{
47
47
  code: string;
48
48
  system: string;
49
49
  };
50
- url?: string | undefined;
51
50
  valueString?: string | undefined;
51
+ url?: string | undefined;
52
52
  }[];
53
53
  }, {
54
54
  url: string;
@@ -57,8 +57,8 @@ export declare const patientSchema: z.ZodObject<{
57
57
  code: string;
58
58
  system: string;
59
59
  };
60
- url?: string | undefined;
61
60
  valueString?: string | undefined;
61
+ url?: string | undefined;
62
62
  }[];
63
63
  }>, z.ZodObject<{
64
64
  url: z.ZodString;
@@ -80,15 +80,15 @@ export declare const patientSchema: z.ZodObject<{
80
80
  code: string;
81
81
  system: string;
82
82
  };
83
- url?: string | undefined;
84
83
  valueString?: string | undefined;
84
+ url?: string | undefined;
85
85
  }, {
86
86
  valueCoding: {
87
87
  code: string;
88
88
  system: string;
89
89
  };
90
- url?: string | undefined;
91
90
  valueString?: string | undefined;
91
+ url?: string | undefined;
92
92
  }>, "many">;
93
93
  }, "strip", z.ZodTypeAny, {
94
94
  url: string;
@@ -97,8 +97,8 @@ export declare const patientSchema: z.ZodObject<{
97
97
  code: string;
98
98
  system: string;
99
99
  };
100
- url?: string | undefined;
101
100
  valueString?: string | undefined;
101
+ url?: string | undefined;
102
102
  }[];
103
103
  }, {
104
104
  url: string;
@@ -107,8 +107,8 @@ export declare const patientSchema: z.ZodObject<{
107
107
  code: string;
108
108
  system: string;
109
109
  };
110
- url?: string | undefined;
111
110
  valueString?: string | undefined;
111
+ url?: string | undefined;
112
112
  }[];
113
113
  }>, z.ZodObject<{
114
114
  url: z.ZodString;
@@ -123,20 +123,20 @@ export declare const patientSchema: z.ZodObject<{
123
123
  url: z.ZodString;
124
124
  valueString: z.ZodString;
125
125
  }, "strip", z.ZodTypeAny, {
126
- url: string;
127
126
  valueString: string;
128
- }, {
129
127
  url: string;
128
+ }, {
130
129
  valueString: string;
130
+ url: string;
131
131
  }>, z.ZodObject<{
132
132
  url: z.ZodString;
133
133
  valueString: z.ZodString;
134
134
  }, "strip", z.ZodTypeAny, {
135
- url: string;
136
135
  valueString: string;
137
- }, {
138
136
  url: string;
137
+ }, {
139
138
  valueString: string;
139
+ url: string;
140
140
  }>, z.ZodObject<{
141
141
  url: z.ZodString;
142
142
  extension: z.ZodArray<z.ZodObject<{
@@ -193,23 +193,23 @@ export declare const patientSchema: z.ZodObject<{
193
193
  url: z.ZodString;
194
194
  valueString: z.ZodString;
195
195
  }, "strip", z.ZodTypeAny, {
196
- url: string;
197
196
  valueString: string;
198
- }, {
199
197
  url: string;
198
+ }, {
200
199
  valueString: string;
200
+ url: string;
201
201
  }>, "many">;
202
202
  }, "strip", z.ZodTypeAny, {
203
203
  url: string;
204
204
  extension: {
205
- url: string;
206
205
  valueString: string;
206
+ url: string;
207
207
  }[];
208
208
  }, {
209
209
  url: string;
210
210
  extension: {
211
- url: string;
212
211
  valueString: string;
212
+ url: string;
213
213
  }[];
214
214
  }>]>, "many">>;
215
215
  identifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -338,11 +338,11 @@ export declare const patientSchema: z.ZodObject<{
338
338
  url: z.ZodString;
339
339
  valueBoolean: z.ZodBoolean;
340
340
  }, "strip", z.ZodTypeAny, {
341
- url: string;
342
341
  valueBoolean: boolean;
343
- }, {
344
342
  url: string;
343
+ }, {
345
344
  valueBoolean: boolean;
345
+ url: string;
346
346
  }>, "many">>;
347
347
  system: z.ZodString;
348
348
  value: z.ZodString;
@@ -353,8 +353,8 @@ export declare const patientSchema: z.ZodObject<{
353
353
  system: string;
354
354
  id?: string | undefined;
355
355
  extension?: {
356
- url: string;
357
356
  valueBoolean: boolean;
357
+ url: string;
358
358
  }[] | undefined;
359
359
  use?: string | undefined;
360
360
  rank?: number | undefined;
@@ -363,8 +363,8 @@ export declare const patientSchema: z.ZodObject<{
363
363
  system: string;
364
364
  id?: string | undefined;
365
365
  extension?: {
366
- url: string;
367
366
  valueBoolean: boolean;
367
+ url: string;
368
368
  }[] | undefined;
369
369
  use?: string | undefined;
370
370
  rank?: number | undefined;
@@ -400,19 +400,19 @@ export declare const patientSchema: z.ZodObject<{
400
400
  url: z.ZodString;
401
401
  valueBoolean: z.ZodBoolean;
402
402
  }, "strip", z.ZodTypeAny, {
403
- url: string;
404
403
  valueBoolean: boolean;
405
- }, {
406
404
  url: string;
405
+ }, {
407
406
  valueBoolean: boolean;
407
+ url: string;
408
408
  }>, "many">>;
409
409
  }, "strip", z.ZodTypeAny, {
410
410
  name: {
411
411
  text: string;
412
412
  };
413
413
  extension?: {
414
- url: string;
415
414
  valueBoolean: boolean;
415
+ url: string;
416
416
  }[] | undefined;
417
417
  relationship?: {
418
418
  text: string;
@@ -426,8 +426,8 @@ export declare const patientSchema: z.ZodObject<{
426
426
  text: string;
427
427
  };
428
428
  extension?: {
429
- url: string;
430
429
  valueBoolean: boolean;
430
+ url: string;
431
431
  }[] | undefined;
432
432
  relationship?: {
433
433
  text: string;
@@ -525,8 +525,8 @@ export declare const patientSchema: z.ZodObject<{
525
525
  code: string;
526
526
  system: string;
527
527
  };
528
- url?: string | undefined;
529
528
  valueString?: string | undefined;
529
+ url?: string | undefined;
530
530
  }[];
531
531
  } | {
532
532
  url: string;
@@ -535,18 +535,18 @@ export declare const patientSchema: z.ZodObject<{
535
535
  code: string;
536
536
  system: string;
537
537
  };
538
- url?: string | undefined;
539
538
  valueString?: string | undefined;
539
+ url?: string | undefined;
540
540
  }[];
541
541
  } | {
542
542
  url: string;
543
543
  valueCode: string;
544
544
  } | {
545
- url: string;
546
545
  valueString: string;
547
- } | {
548
546
  url: string;
547
+ } | {
549
548
  valueString: string;
549
+ url: string;
550
550
  } | {
551
551
  url: string;
552
552
  extension: {
@@ -560,8 +560,8 @@ export declare const patientSchema: z.ZodObject<{
560
560
  } | {
561
561
  url: string;
562
562
  extension: {
563
- url: string;
564
563
  valueString: string;
564
+ url: string;
565
565
  }[];
566
566
  })[] | undefined;
567
567
  telecom?: {
@@ -569,8 +569,8 @@ export declare const patientSchema: z.ZodObject<{
569
569
  system: string;
570
570
  id?: string | undefined;
571
571
  extension?: {
572
- url: string;
573
572
  valueBoolean: boolean;
573
+ url: string;
574
574
  }[] | undefined;
575
575
  use?: string | undefined;
576
576
  rank?: number | undefined;
@@ -581,8 +581,8 @@ export declare const patientSchema: z.ZodObject<{
581
581
  text: string;
582
582
  };
583
583
  extension?: {
584
- url: string;
585
584
  valueBoolean: boolean;
585
+ url: string;
586
586
  }[] | undefined;
587
587
  relationship?: {
588
588
  text: string;
@@ -649,8 +649,8 @@ export declare const patientSchema: z.ZodObject<{
649
649
  code: string;
650
650
  system: string;
651
651
  };
652
- url?: string | undefined;
653
652
  valueString?: string | undefined;
653
+ url?: string | undefined;
654
654
  }[];
655
655
  } | {
656
656
  url: string;
@@ -659,18 +659,18 @@ export declare const patientSchema: z.ZodObject<{
659
659
  code: string;
660
660
  system: string;
661
661
  };
662
- url?: string | undefined;
663
662
  valueString?: string | undefined;
663
+ url?: string | undefined;
664
664
  }[];
665
665
  } | {
666
666
  url: string;
667
667
  valueCode: string;
668
668
  } | {
669
- url: string;
670
669
  valueString: string;
671
- } | {
672
670
  url: string;
671
+ } | {
673
672
  valueString: string;
673
+ url: string;
674
674
  } | {
675
675
  url: string;
676
676
  extension: {
@@ -684,8 +684,8 @@ export declare const patientSchema: z.ZodObject<{
684
684
  } | {
685
685
  url: string;
686
686
  extension: {
687
- url: string;
688
687
  valueString: string;
688
+ url: string;
689
689
  }[];
690
690
  })[] | undefined;
691
691
  telecom?: {
@@ -693,8 +693,8 @@ export declare const patientSchema: z.ZodObject<{
693
693
  system: string;
694
694
  id?: string | undefined;
695
695
  extension?: {
696
- url: string;
697
696
  valueBoolean: boolean;
697
+ url: string;
698
698
  }[] | undefined;
699
699
  use?: string | undefined;
700
700
  rank?: number | undefined;
@@ -705,8 +705,8 @@ export declare const patientSchema: z.ZodObject<{
705
705
  text: string;
706
706
  };
707
707
  extension?: {
708
- url: string;
709
708
  valueBoolean: boolean;
709
+ url: string;
710
710
  }[] | undefined;
711
711
  relationship?: {
712
712
  text: string;
@@ -753,15 +753,15 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
753
753
  code: string;
754
754
  system: string;
755
755
  };
756
- url?: string | undefined;
757
756
  valueString?: string | undefined;
757
+ url?: string | undefined;
758
758
  }, {
759
759
  valueCoding: {
760
760
  code: string;
761
761
  system: string;
762
762
  };
763
- url?: string | undefined;
764
763
  valueString?: string | undefined;
764
+ url?: string | undefined;
765
765
  }>, "many">;
766
766
  }, "strip", z.ZodTypeAny, {
767
767
  url: string;
@@ -770,8 +770,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
770
770
  code: string;
771
771
  system: string;
772
772
  };
773
- url?: string | undefined;
774
773
  valueString?: string | undefined;
774
+ url?: string | undefined;
775
775
  }[];
776
776
  }, {
777
777
  url: string;
@@ -780,8 +780,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
780
780
  code: string;
781
781
  system: string;
782
782
  };
783
- url?: string | undefined;
784
783
  valueString?: string | undefined;
784
+ url?: string | undefined;
785
785
  }[];
786
786
  }>, z.ZodObject<{
787
787
  url: z.ZodString;
@@ -803,15 +803,15 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
803
803
  code: string;
804
804
  system: string;
805
805
  };
806
- url?: string | undefined;
807
806
  valueString?: string | undefined;
807
+ url?: string | undefined;
808
808
  }, {
809
809
  valueCoding: {
810
810
  code: string;
811
811
  system: string;
812
812
  };
813
- url?: string | undefined;
814
813
  valueString?: string | undefined;
814
+ url?: string | undefined;
815
815
  }>, "many">;
816
816
  }, "strip", z.ZodTypeAny, {
817
817
  url: string;
@@ -820,8 +820,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
820
820
  code: string;
821
821
  system: string;
822
822
  };
823
- url?: string | undefined;
824
823
  valueString?: string | undefined;
824
+ url?: string | undefined;
825
825
  }[];
826
826
  }, {
827
827
  url: string;
@@ -830,8 +830,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
830
830
  code: string;
831
831
  system: string;
832
832
  };
833
- url?: string | undefined;
834
833
  valueString?: string | undefined;
834
+ url?: string | undefined;
835
835
  }[];
836
836
  }>, z.ZodObject<{
837
837
  url: z.ZodString;
@@ -846,20 +846,20 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
846
846
  url: z.ZodString;
847
847
  valueString: z.ZodString;
848
848
  }, "strip", z.ZodTypeAny, {
849
- url: string;
850
849
  valueString: string;
851
- }, {
852
850
  url: string;
851
+ }, {
853
852
  valueString: string;
853
+ url: string;
854
854
  }>, z.ZodObject<{
855
855
  url: z.ZodString;
856
856
  valueString: z.ZodString;
857
857
  }, "strip", z.ZodTypeAny, {
858
- url: string;
859
858
  valueString: string;
860
- }, {
861
859
  url: string;
860
+ }, {
862
861
  valueString: string;
862
+ url: string;
863
863
  }>, z.ZodObject<{
864
864
  url: z.ZodString;
865
865
  extension: z.ZodArray<z.ZodObject<{
@@ -916,23 +916,23 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
916
916
  url: z.ZodString;
917
917
  valueString: z.ZodString;
918
918
  }, "strip", z.ZodTypeAny, {
919
- url: string;
920
919
  valueString: string;
921
- }, {
922
920
  url: string;
921
+ }, {
923
922
  valueString: string;
923
+ url: string;
924
924
  }>, "many">;
925
925
  }, "strip", z.ZodTypeAny, {
926
926
  url: string;
927
927
  extension: {
928
- url: string;
929
928
  valueString: string;
929
+ url: string;
930
930
  }[];
931
931
  }, {
932
932
  url: string;
933
933
  extension: {
934
- url: string;
935
934
  valueString: string;
935
+ url: string;
936
936
  }[];
937
937
  }>]>, "many">>;
938
938
  identifier: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1061,11 +1061,11 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1061
1061
  url: z.ZodString;
1062
1062
  valueBoolean: z.ZodBoolean;
1063
1063
  }, "strip", z.ZodTypeAny, {
1064
- url: string;
1065
1064
  valueBoolean: boolean;
1066
- }, {
1067
1065
  url: string;
1066
+ }, {
1068
1067
  valueBoolean: boolean;
1068
+ url: string;
1069
1069
  }>, "many">>;
1070
1070
  system: z.ZodString;
1071
1071
  value: z.ZodString;
@@ -1076,8 +1076,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1076
1076
  system: string;
1077
1077
  id?: string | undefined;
1078
1078
  extension?: {
1079
- url: string;
1080
1079
  valueBoolean: boolean;
1080
+ url: string;
1081
1081
  }[] | undefined;
1082
1082
  use?: string | undefined;
1083
1083
  rank?: number | undefined;
@@ -1086,8 +1086,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1086
1086
  system: string;
1087
1087
  id?: string | undefined;
1088
1088
  extension?: {
1089
- url: string;
1090
1089
  valueBoolean: boolean;
1090
+ url: string;
1091
1091
  }[] | undefined;
1092
1092
  use?: string | undefined;
1093
1093
  rank?: number | undefined;
@@ -1123,19 +1123,19 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1123
1123
  url: z.ZodString;
1124
1124
  valueBoolean: z.ZodBoolean;
1125
1125
  }, "strip", z.ZodTypeAny, {
1126
- url: string;
1127
1126
  valueBoolean: boolean;
1128
- }, {
1129
1127
  url: string;
1128
+ }, {
1130
1129
  valueBoolean: boolean;
1130
+ url: string;
1131
1131
  }>, "many">>;
1132
1132
  }, "strip", z.ZodTypeAny, {
1133
1133
  name: {
1134
1134
  text: string;
1135
1135
  };
1136
1136
  extension?: {
1137
- url: string;
1138
1137
  valueBoolean: boolean;
1138
+ url: string;
1139
1139
  }[] | undefined;
1140
1140
  relationship?: {
1141
1141
  text: string;
@@ -1149,8 +1149,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1149
1149
  text: string;
1150
1150
  };
1151
1151
  extension?: {
1152
- url: string;
1153
1152
  valueBoolean: boolean;
1153
+ url: string;
1154
1154
  }[] | undefined;
1155
1155
  relationship?: {
1156
1156
  text: string;
@@ -1251,8 +1251,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1251
1251
  code: string;
1252
1252
  system: string;
1253
1253
  };
1254
- url?: string | undefined;
1255
1254
  valueString?: string | undefined;
1255
+ url?: string | undefined;
1256
1256
  }[];
1257
1257
  } | {
1258
1258
  url: string;
@@ -1261,18 +1261,18 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1261
1261
  code: string;
1262
1262
  system: string;
1263
1263
  };
1264
- url?: string | undefined;
1265
1264
  valueString?: string | undefined;
1265
+ url?: string | undefined;
1266
1266
  }[];
1267
1267
  } | {
1268
1268
  url: string;
1269
1269
  valueCode: string;
1270
1270
  } | {
1271
- url: string;
1272
1271
  valueString: string;
1273
- } | {
1274
1272
  url: string;
1273
+ } | {
1275
1274
  valueString: string;
1275
+ url: string;
1276
1276
  } | {
1277
1277
  url: string;
1278
1278
  extension: {
@@ -1286,8 +1286,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1286
1286
  } | {
1287
1287
  url: string;
1288
1288
  extension: {
1289
- url: string;
1290
1289
  valueString: string;
1290
+ url: string;
1291
1291
  }[];
1292
1292
  })[] | undefined;
1293
1293
  telecom?: {
@@ -1295,8 +1295,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1295
1295
  system: string;
1296
1296
  id?: string | undefined;
1297
1297
  extension?: {
1298
- url: string;
1299
1298
  valueBoolean: boolean;
1299
+ url: string;
1300
1300
  }[] | undefined;
1301
1301
  use?: string | undefined;
1302
1302
  rank?: number | undefined;
@@ -1307,8 +1307,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1307
1307
  text: string;
1308
1308
  };
1309
1309
  extension?: {
1310
- url: string;
1311
1310
  valueBoolean: boolean;
1311
+ url: string;
1312
1312
  }[] | undefined;
1313
1313
  relationship?: {
1314
1314
  text: string;
@@ -1376,8 +1376,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1376
1376
  code: string;
1377
1377
  system: string;
1378
1378
  };
1379
- url?: string | undefined;
1380
1379
  valueString?: string | undefined;
1380
+ url?: string | undefined;
1381
1381
  }[];
1382
1382
  } | {
1383
1383
  url: string;
@@ -1386,18 +1386,18 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1386
1386
  code: string;
1387
1387
  system: string;
1388
1388
  };
1389
- url?: string | undefined;
1390
1389
  valueString?: string | undefined;
1390
+ url?: string | undefined;
1391
1391
  }[];
1392
1392
  } | {
1393
1393
  url: string;
1394
1394
  valueCode: string;
1395
1395
  } | {
1396
- url: string;
1397
1396
  valueString: string;
1398
- } | {
1399
1397
  url: string;
1398
+ } | {
1400
1399
  valueString: string;
1400
+ url: string;
1401
1401
  } | {
1402
1402
  url: string;
1403
1403
  extension: {
@@ -1411,8 +1411,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1411
1411
  } | {
1412
1412
  url: string;
1413
1413
  extension: {
1414
- url: string;
1415
1414
  valueString: string;
1415
+ url: string;
1416
1416
  }[];
1417
1417
  })[] | undefined;
1418
1418
  telecom?: {
@@ -1420,8 +1420,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1420
1420
  system: string;
1421
1421
  id?: string | undefined;
1422
1422
  extension?: {
1423
- url: string;
1424
1423
  valueBoolean: boolean;
1424
+ url: string;
1425
1425
  }[] | undefined;
1426
1426
  use?: string | undefined;
1427
1427
  rank?: number | undefined;
@@ -1432,8 +1432,8 @@ export declare const patientWithIdSchema: z.ZodObject<z.objectUtil.extendShape<{
1432
1432
  text: string;
1433
1433
  };
1434
1434
  extension?: {
1435
- url: string;
1436
1435
  valueBoolean: boolean;
1436
+ url: string;
1437
1437
  }[] | undefined;
1438
1438
  relationship?: {
1439
1439
  text: string;
@@ -7,4 +7,8 @@ export declare const dataPoints: {
7
7
  key: string;
8
8
  valueType: "string";
9
9
  };
10
+ prettyMedicationData: {
11
+ key: string;
12
+ valueType: "string";
13
+ };
10
14
  };
@@ -2,13 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dataPoints = void 0;
4
4
  exports.dataPoints = {
5
+ // Serialized JSON object stored in JSON data point
5
6
  medicationData: {
6
7
  key: 'medicationData',
7
8
  valueType: 'json',
8
9
  },
10
+ // Serialized JSON object stored in string data point
9
11
  medicationDataString: {
10
12
  key: 'medicationDataString',
11
13
  valueType: 'string',
12
14
  },
15
+ // Pretty / human readable text output
16
+ prettyMedicationData: {
17
+ key: 'prettyMedicationData',
18
+ valueType: 'string',
19
+ },
13
20
  };
14
21
  //# sourceMappingURL=datapoints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../../extensions/collectData/v1/actions/collectMedication/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,cAAc,EAAE;QACd,GAAG,EAAE,gBAAgB;QACrB,SAAS,EAAE,MAAM;KAClB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,sBAAsB;QAC3B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
1
+ {"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../../extensions/collectData/v1/actions/collectMedication/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,mDAAmD;IACnD,cAAc,EAAE;QACd,GAAG,EAAE,gBAAgB;QACrB,SAAS,EAAE,MAAM;KAClB;IACD,qDAAqD;IACrD,oBAAoB,EAAE;QACpB,GAAG,EAAE,sBAAsB;QAC3B,SAAS,EAAE,QAAQ;KACpB;IACD,sCAAsC;IACtC,oBAAoB,EAAE;QACpB,GAAG,EAAE,sBAAsB;QAC3B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
@@ -4,7 +4,7 @@
4
4
  "changelog": "# Athena changelog"
5
5
  },
6
6
  "awell": {
7
- "readme": "---\ntitle: Awell Workflow\ndescription: Enrich your care flows with powerful Awell actions.\n---\n\n# Awell API extension\n\n## Extension settings\n\nYou will need to provide the [API URL](https://developers.awellhealth.com/awell-orchestration/api-reference/overview/endpoints) and an [API key](https://developers.awellhealth.com/awell-orchestration/api-reference/overview/authorization).\n\n## Custom Actions\n\n### Start care flow\n\nStarts a new care flow for the patient enrolled in your current care flow.\n\n**Passing baseline info:**\nPlease read the documentation on [our developer hub](https://developers.awellhealth.com/awell-orchestration/api-reference/mutations/start-pathway) to learn more about how to pass baseline info.\n\n**Example of how to configure a value for the baseline info action field:**\n\n```json\n[\n {\n \"data_point_definition_id\": \"age\",\n \"value\": \"29\"\n },\n {\n \"data_point_definition_id\": \"dob\",\n \"value\": \"1993-11-30\"\n }\n]\n```\n\n### Stop care flow\n\nStops the care flow the patient is currently enrolled in. A reason is why you are stopping the care flow is mandatory.\n\n### Update patient\n\nAllows updating patient data for the patient currently enrolled in the care flow.\n\n### Is patient already enrolled in care flow\n\nChecks whether the patient is already enrolled in a care flow definition. The care flow the patient is currently enrolled in does not count and is excluded from the results.\n\n**Action fields:**\n\n- pathwayStatus: a comma-separated string of care flow statuses that will be used when looking for care flows the patient is already enrolled in. By default, we only look at active care flows. Options: \"active\", \"completed\", \"missing_baseline_info\", \"starting\", and \"stopped\".\n- careFlowDefinitionIds: a comma-separated string of care flow definition ids that will be used when looking for care flows the patient is already enrolled in. By default, we only search for care flows that match the current care flow definition id (i.e. is the patient already included in the current care flow?).\n\n**Data points:**\n\n- result: a boolean indicating whether the patient is already enrolled in another care flow that matches your criteria (status & care flow definition id)\n- nbrOfResults: the number of care flows found for the patient that match the criteria.\n- careFlowIds: a comma-separated string of care flow ids that matched your search criteria. It will be empty when the result is `false` because then there are no other care flow ids that match your criteria.\n\n### Search patients by patient code\n\nNote that this action is deprecated and we recommend using [identifiers](https://developers.awellhealth.com/awell-orchestration/docs/misc/patient-identifiers) instead.\n\nSearch whether, apart from the patient currently enrolled in the care flow, another patient with the same `patient_code` already exists.\n\n**Data points:**\n\n1. patientAlreadyExists: a boolean which will be true if minimum one patient with the patient code already exists.\n2. numberOfPatientsFound: the number of patients found with the same patient code.\n3. awellPatientIds: a comma-separated string of all Awell patient ids (except the current patient) that have the same patient code as the patient currently enrolled in the care flow. Will return an empty string when there are no other patients with the same patient code.\n\n### Get patient by identifier\n\nThis action lets you check if a patient with a specific identifier already exists in Awell. It's particularly useful when a patient's identity is initially anonymous during the start of the care flow, but later becomes identifiable through the identifiers collected during the care flow. This check ensures whether a patient with that identifier is already present or not.\n\n### Add identifier to patient\n\nThis action allows you to add a unique identifier to the current patient's profile. If the patient already has an identifier with the same system but a different value, this action will update the existing identifier with the new value provided. \n\nFirst, it checks if this identifier (system and value) is already associated with another patient. If it's safe to proceed, it will add or update the identifier as needed. However, if another patient already has this identifier, the action will stop and notify you, preventing duplicates. To avoid conflicts, we recommend first running the \"Get patient by identifier\" action to check for any existing matches.\n\n## Webhooks\n\nWebhooks in the Awell extension offer ways to trigger a care flow based on the end of another care flow, or from any event that happens in your system (via the pathwayStart webhook).\n",
7
+ "readme": "---\ntitle: Awell Workflow\ndescription: Enrich your care flows with powerful Awell actions.\n---\n\n# Awell API extension\n\n## Extension settings\n\nYou will need to provide the [API URL](https://developers.awellhealth.com/awell-orchestration/api-reference/overview/endpoints) and an [API key](https://developers.awellhealth.com/awell-orchestration/api-reference/overview/authorization).\n\n## Custom Actions\n\n### Start care flow\n\nStarts a new care flow for the patient enrolled in your current care flow.\n\n**Passing baseline info:**\nPlease read the documentation on [our developer hub](https://developers.awellhealth.com/awell-orchestration/api-reference/mutations/start-pathway) to learn more about how to pass baseline info.\n\n**Example of how to configure a value for the baseline info action field:**\n\n```json\n[\n {\n \"data_point_definition_id\": \"age\",\n \"value\": \"29\"\n },\n {\n \"data_point_definition_id\": \"dob\",\n \"value\": \"1993-11-30\"\n }\n]\n```\n\n### Stop care flow\n\nStops the care flow the patient is currently enrolled in. A reason is why you are stopping the care flow is mandatory.\n\n### Update patient\n\nAllows updating patient data for the patient currently enrolled in the care flow.\n\n### Is patient already enrolled in care flow\n\nChecks whether the patient is already enrolled in a care flow definition. The care flow the patient is currently enrolled in does not count and is excluded from the results.\n\n**Action fields:**\n\n- pathwayStatus: a comma-separated string of care flow statuses that will be used when looking for care flows the patient is already enrolled in. By default, we only look at active care flows. Options: \"active\", \"completed\", \"missing_baseline_info\", \"starting\", and \"stopped\".\n- careFlowDefinitionIds: a comma-separated string of care flow definition ids that will be used when looking for care flows the patient is already enrolled in. By default, we only search for care flows that match the current care flow definition id (i.e. is the patient already included in the current care flow?).\n\n**Data points:**\n\n- result: a boolean indicating whether the patient is already enrolled in another care flow that matches your criteria (status & care flow definition id)\n- nbrOfResults: the number of care flows found for the patient that match the criteria.\n- careFlowIds: a comma-separated string of care flow ids that matched your search criteria. It will be empty when the result is `false` because then there are no other care flow ids that match your criteria.\n\n### Search patients by patient code\n\nNote that this action is deprecated and we recommend using [identifiers](https://developers.awellhealth.com/awell-orchestration/docs/misc/patient-identifiers) instead.\n\nSearch whether, apart from the patient currently enrolled in the care flow, another patient with the same `patient_code` already exists.\n\n**Data points:**\n\n1. patientAlreadyExists: a boolean which will be true if minimum one patient with the patient code already exists.\n2. numberOfPatientsFound: the number of patients found with the same patient code.\n3. awellPatientIds: a comma-separated string of all Awell patient ids (except the current patient) that have the same patient code as the patient currently enrolled in the care flow. Will return an empty string when there are no other patients with the same patient code.\n\n### Get patient by identifier\n\nThis action lets you check if a patient with a specific identifier already exists in Awell. It's particularly useful when a patient's identity is initially anonymous during the start of the care flow, but later becomes identifiable through the identifiers collected during the care flow. This check ensures whether a patient with that identifier is already present or not.\n\n### Add identifier to patient\n\nThis action allows you to add a unique identifier to the current patient's profile. If the patient already has an identifier with the same system but a different value, this action will update the existing identifier with the new value provided. \n\nFirst, it checks if this identifier (system and value) is already associated with another patient. If it's safe to proceed, it will add or update the identifier as needed. However, if another patient already has this identifier, the action will stop and notify you, preventing duplicates. To avoid conflicts, we recommend first running the \"Get patient by identifier\" action to check for any existing matches.\n\n### Get data point value\n\nThis action allows you to read the most recent data point value of a given data point definition id from a care flow different from the current one. The action returns multiple data points, each with a different value type. Pick the one you need from the returned data points based on the value type of the data point you want to read the value from.\n\n**Example:**\nIf the data point you want to read the value from is of type `number`, then you should use the `valueNumber` data point.\n\n## Webhooks\n\nWebhooks in the Awell extension offer ways to trigger a care flow based on the end of another care flow, or from any event that happens in your system (via the pathwayStart webhook).\n",
8
8
  "changelog": "# Awell changelog\n\n## April 2024\n\nTwo new action were added: \"Get patient by identifier\" and \"Add identifier to patient\".\n\n## October 26, 2023\n\nGeneric webhook to start a care flow added\n\n## April 19, 2023\n\nStop care flow action added.\nSearch patients by patient code action was added.\n\"Is patient enrolled in care flow\" action added.\n"
9
9
  },
10
10
  "awellTasks": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.154",
3
+ "version": "2.0.156",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {