@nira-opencrvs/toolkit 1.9.13-rc.cdfd84c → 1.9.13-rc.ce5957d

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.
@@ -41,12 +41,13 @@ export declare const FieldType: {
41
41
  readonly QR_READER: "QR_READER";
42
42
  readonly ID_READER: "ID_READER";
43
43
  readonly LOADER: "LOADER";
44
+ readonly ICD11: "ICD11";
44
45
  };
45
46
  /**
46
47
  * Union of types that handle files. Using common type should help with compiler to know where to add new cases.
47
48
  */
48
49
  export declare const FileFieldType: z.ZodEnum<["FILE", "FILE_WITH_OPTIONS", "SIGNATURE"]>;
49
- export declare const fieldTypes: ("NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER")[];
50
+ export declare const fieldTypes: ("NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ICD11")[];
50
51
  export type FieldType = (typeof fieldTypes)[number];
51
52
  /**
52
53
  * Composite field types are field types that consist of multiple field values.
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, LocationInput, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, NumberWithUnitField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField, AlphaPrintButton, HttpField, SearchField, ButtonField, LinkButtonField, VerificationStatus, QueryParamReaderField, QrReaderField, IdReaderField, LoaderField, AgeField, FieldGroup } from './FieldConfig';
2
+ import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, LocationInput, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, NumberWithUnitField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField, AlphaPrintButton, HttpField, SearchField, ButtonField, LinkButtonField, VerificationStatus, QueryParamReaderField, QrReaderField, IdReaderField, LoaderField, AgeField, FieldGroup, Icd11Field } from './FieldConfig';
3
3
  import { FieldValue, DataFieldValue, DateRangeFieldValue, SelectDateRangeValue, VerificationStatusValue, AgeValue, FieldUpdateValue } from './FieldValue';
4
+ import { Icd11FieldValue } from './Icd11';
4
5
  import { AddressFieldValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NumberWithUnitFieldValue } from './CompositeFieldValue';
5
6
  import { ActionType } from './ActionType';
6
7
  /**
@@ -270,6 +271,24 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
270
271
  }, {
271
272
  numericValue?: number | undefined;
272
273
  unit?: string | undefined;
274
+ }>>> | z.ZodObject<{
275
+ code: z.ZodString;
276
+ label: z.ZodString;
277
+ }, "strip", z.ZodTypeAny, {
278
+ code: string;
279
+ label: string;
280
+ }, {
281
+ code: string;
282
+ label: string;
283
+ }> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
284
+ code: z.ZodString;
285
+ label: z.ZodString;
286
+ }, "strip", z.ZodTypeAny, {
287
+ code: string;
288
+ label: string;
289
+ }, {
290
+ code: string;
291
+ label: string;
273
292
  }>>> | z.ZodBranded<z.ZodString, "PlainDate"> | z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "PlainDate">>> | z.ZodObject<{
274
293
  age: z.ZodNumber;
275
294
  asOfDateRef: z.ZodString;
@@ -468,6 +487,24 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
468
487
  }, {
469
488
  numericValue?: number | undefined;
470
489
  unit?: string | undefined;
490
+ }>, z.ZodObject<{
491
+ code: z.ZodString;
492
+ label: z.ZodString;
493
+ }, "strip", z.ZodTypeAny, {
494
+ code: string;
495
+ label: string;
496
+ }, {
497
+ code: string;
498
+ label: string;
499
+ }>, z.ZodObject<{
500
+ code: z.ZodOptional<z.ZodString>;
501
+ label: z.ZodOptional<z.ZodString>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ code?: string | undefined;
504
+ label?: string | undefined;
505
+ }, {
506
+ code?: string | undefined;
507
+ label?: string | undefined;
471
508
  }>]>>;
472
509
  }, "strip", z.ZodTypeAny, {
473
510
  data: Record<string, string | number | boolean | {
@@ -513,6 +550,12 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
513
550
  } | {
514
551
  numericValue?: number | undefined;
515
552
  unit?: string | undefined;
553
+ } | {
554
+ code: string;
555
+ label: string;
556
+ } | {
557
+ code?: string | undefined;
558
+ label?: string | undefined;
516
559
  } | (string & z.BRAND<"PlainDate">) | {
517
560
  age: number;
518
561
  asOfDateRef: string;
@@ -564,6 +607,12 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
564
607
  } | {
565
608
  numericValue?: number | undefined;
566
609
  unit?: string | undefined;
610
+ } | {
611
+ code: string;
612
+ label: string;
613
+ } | {
614
+ code?: string | undefined;
615
+ label?: string | undefined;
567
616
  } | {
568
617
  age: number;
569
618
  asOfDateRef: string;
@@ -733,6 +782,24 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
733
782
  }, {
734
783
  numericValue?: number | undefined;
735
784
  unit?: string | undefined;
785
+ }>, z.ZodObject<{
786
+ code: z.ZodString;
787
+ label: z.ZodString;
788
+ }, "strip", z.ZodTypeAny, {
789
+ code: string;
790
+ label: string;
791
+ }, {
792
+ code: string;
793
+ label: string;
794
+ }>, z.ZodObject<{
795
+ code: z.ZodOptional<z.ZodString>;
796
+ label: z.ZodOptional<z.ZodString>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ code?: string | undefined;
799
+ label?: string | undefined;
800
+ }, {
801
+ code?: string | undefined;
802
+ label?: string | undefined;
736
803
  }>]>>;
737
804
  }, "strip", z.ZodTypeAny, {
738
805
  data: Record<string, string | number | boolean | {
@@ -778,6 +845,12 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
778
845
  } | {
779
846
  numericValue?: number | undefined;
780
847
  unit?: string | undefined;
848
+ } | {
849
+ code: string;
850
+ label: string;
851
+ } | {
852
+ code?: string | undefined;
853
+ label?: string | undefined;
781
854
  } | (string & z.BRAND<"PlainDate">) | {
782
855
  age: number;
783
856
  asOfDateRef: string;
@@ -829,6 +902,12 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
829
902
  } | {
830
903
  numericValue?: number | undefined;
831
904
  unit?: string | undefined;
905
+ } | {
906
+ code: string;
907
+ label: string;
908
+ } | {
909
+ code?: string | undefined;
910
+ label?: string | undefined;
832
911
  } | {
833
912
  age: number;
834
913
  asOfDateRef: string;
@@ -1283,6 +1362,13 @@ export declare const isLoaderFieldType: (field: {
1283
1362
  value: undefined;
1284
1363
  config: LoaderField;
1285
1364
  };
1365
+ export declare const isIcd11FieldType: (field: {
1366
+ config: FieldConfig;
1367
+ value: FieldValue;
1368
+ }) => field is {
1369
+ value: Icd11FieldValue | undefined;
1370
+ config: Icd11Field;
1371
+ };
1286
1372
  export type NonInteractiveFieldType = Divider | PageHeader | Paragraph | BulletList | DataField | AlphaPrintButton | HttpField | LinkButtonField | QueryParamReaderField | LoaderField;
1287
1373
  export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
1288
1374
  export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { AddressFieldValue, AddressFieldUpdateValue, FileFieldValue, FileFieldWithOptionValue, NameFieldValue, NameFieldUpdateValue, NumberWithUnitFieldValue, NumberWithUnitFieldUpdateValue, HttpFieldUpdateValue, QueryParamReaderFieldUpdateValue, QrReaderFieldValue, IdReaderFieldValue } from './CompositeFieldValue';
3
+ import { Icd11FieldValue, Icd11FieldUpdateValue } from './Icd11';
3
4
  import { PlainDate, plainDateToLocalDate } from './PlainDate';
4
5
  export { PlainDate, plainDateToLocalDate };
5
6
  /**
@@ -225,6 +226,24 @@ declare const LeafFieldValues: z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType"
225
226
  }, {
226
227
  numericValue?: number | undefined;
227
228
  unit?: string | undefined;
229
+ }>, z.ZodObject<{
230
+ code: z.ZodString;
231
+ label: z.ZodString;
232
+ }, "strip", z.ZodTypeAny, {
233
+ code: string;
234
+ label: string;
235
+ }, {
236
+ code: string;
237
+ label: string;
238
+ }>, z.ZodObject<{
239
+ code: z.ZodOptional<z.ZodString>;
240
+ label: z.ZodOptional<z.ZodString>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ code?: string | undefined;
243
+ label?: string | undefined;
244
+ }, {
245
+ code?: string | undefined;
246
+ label?: string | undefined;
228
247
  }>]>;
229
248
  type LeafFieldValues = z.infer<typeof LeafFieldValues>;
230
249
  export declare const FieldGroupValue: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
@@ -388,6 +407,24 @@ export declare const FieldGroupValue: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zod
388
407
  }, {
389
408
  numericValue?: number | undefined;
390
409
  unit?: string | undefined;
410
+ }>, z.ZodObject<{
411
+ code: z.ZodString;
412
+ label: z.ZodString;
413
+ }, "strip", z.ZodTypeAny, {
414
+ code: string;
415
+ label: string;
416
+ }, {
417
+ code: string;
418
+ label: string;
419
+ }>, z.ZodObject<{
420
+ code: z.ZodOptional<z.ZodString>;
421
+ label: z.ZodOptional<z.ZodString>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ code?: string | undefined;
424
+ label?: string | undefined;
425
+ }, {
426
+ code?: string | undefined;
427
+ label?: string | undefined;
391
428
  }>]>>;
392
429
  export type FieldGroupValue = z.infer<typeof FieldGroupValue>;
393
430
  export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -552,6 +589,24 @@ export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
552
589
  }, {
553
590
  numericValue?: number | undefined;
554
591
  unit?: string | undefined;
592
+ }>, z.ZodObject<{
593
+ code: z.ZodString;
594
+ label: z.ZodString;
595
+ }, "strip", z.ZodTypeAny, {
596
+ code: string;
597
+ label: string;
598
+ }, {
599
+ code: string;
600
+ label: string;
601
+ }>, z.ZodObject<{
602
+ code: z.ZodOptional<z.ZodString>;
603
+ label: z.ZodOptional<z.ZodString>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ code?: string | undefined;
606
+ label?: string | undefined;
607
+ }, {
608
+ code?: string | undefined;
609
+ label?: string | undefined;
555
610
  }>]>>;
556
611
  }, "strip", z.ZodTypeAny, {
557
612
  data: Record<string, string | number | boolean | {
@@ -597,6 +652,12 @@ export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
597
652
  } | {
598
653
  numericValue?: number | undefined;
599
654
  unit?: string | undefined;
655
+ } | {
656
+ code: string;
657
+ label: string;
658
+ } | {
659
+ code?: string | undefined;
660
+ label?: string | undefined;
600
661
  } | (string & z.BRAND<"PlainDate">) | {
601
662
  age: number;
602
663
  asOfDateRef: string;
@@ -648,6 +709,12 @@ export declare const DataFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
648
709
  } | {
649
710
  numericValue?: number | undefined;
650
711
  unit?: string | undefined;
712
+ } | {
713
+ code: string;
714
+ label: string;
715
+ } | {
716
+ code?: string | undefined;
717
+ label?: string | undefined;
651
718
  } | {
652
719
  age: number;
653
720
  asOfDateRef: string;
@@ -660,16 +727,16 @@ export type DataFieldValue = z.infer<typeof DataFieldValue>;
660
727
  export type FieldValue = LeafFieldValues | DataFieldValue | FieldGroupValue;
661
728
  export declare const FieldValue: z.ZodType<FieldValue>;
662
729
  export declare function safeUnion<T extends [z.ZodTypeAny, ...z.ZodTypeAny[]]>(schemas: T): z.ZodType<z.TypeOf<T[number]>, z.ZodTypeDef, z.TypeOf<T[number]>>;
663
- export type FieldUpdateValue = z.infer<typeof TextValue> | PlainDate | z.infer<typeof TimeValue> | z.infer<typeof AgeUpdateValue> | z.infer<typeof AddressFieldUpdateValue> | z.infer<typeof DateRangeFieldValue> | z.infer<typeof SelectDateRangeValue> | z.infer<typeof CheckboxFieldValue> | z.infer<typeof NumberFieldValue> | z.infer<typeof NumberWithUnitFieldUpdateValue> | z.infer<typeof FileFieldValue> | z.infer<typeof FileFieldWithOptionValue> | DataFieldValue | FieldGroupValue | z.infer<typeof NameFieldUpdateValue> | z.infer<typeof HttpFieldUpdateValue> | z.infer<typeof QueryParamReaderFieldUpdateValue>;
730
+ export type FieldUpdateValue = z.infer<typeof TextValue> | PlainDate | z.infer<typeof TimeValue> | z.infer<typeof AgeUpdateValue> | z.infer<typeof AddressFieldUpdateValue> | z.infer<typeof DateRangeFieldValue> | z.infer<typeof SelectDateRangeValue> | z.infer<typeof CheckboxFieldValue> | z.infer<typeof NumberFieldValue> | z.infer<typeof NumberWithUnitFieldUpdateValue> | z.infer<typeof FileFieldValue> | z.infer<typeof FileFieldWithOptionValue> | DataFieldValue | FieldGroupValue | z.infer<typeof NameFieldUpdateValue> | z.infer<typeof HttpFieldUpdateValue> | z.infer<typeof QueryParamReaderFieldUpdateValue> | z.infer<typeof Icd11FieldUpdateValue>;
664
731
  export declare const FieldUpdateValue: z.ZodType<FieldUpdateValue>;
665
732
  /**
666
733
  * NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
667
734
  * */
668
- export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | z.ZodString | z.ZodBoolean;
735
+ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | typeof Icd11FieldValue | z.ZodString | z.ZodBoolean;
669
736
  /**
670
737
  * NOTE: This is an exception. We need schema as a type in order to generate schema dynamically.
671
738
  *
672
739
  * FieldValueInputSchema uses Input types which have set optional values as nullish
673
740
  * */
674
- export type FieldUpdateValueSchema = typeof PlainDate | typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof NumberWithUnitFieldUpdateValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | z.ZodString | z.ZodBoolean;
741
+ export type FieldUpdateValueSchema = typeof PlainDate | typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof NumberWithUnitFieldUpdateValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | typeof Icd11FieldValue | typeof Icd11FieldUpdateValue | z.ZodString | z.ZodBoolean;
675
742
  //# sourceMappingURL=FieldValue.d.ts.map
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Value stored for an `ICD11` field. We keep both the code and the
4
+ * human-readable label because, unlike FACILITY/OFFICE/LOCATION, the full
5
+ * ICD-11 code list is never synced to the client -- there is no local
6
+ * dataset to resolve a code back to its label at render time.
7
+ */
8
+ export declare const Icd11FieldValue: z.ZodObject<{
9
+ code: z.ZodString;
10
+ label: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ code: string;
13
+ label: string;
14
+ }, {
15
+ code: string;
16
+ label: string;
17
+ }>;
18
+ export type Icd11FieldValue = z.infer<typeof Icd11FieldValue>;
19
+ export declare const Icd11FieldUpdateValue: z.ZodObject<{
20
+ code: z.ZodOptional<z.ZodString>;
21
+ label: z.ZodOptional<z.ZodString>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ code?: string | undefined;
24
+ label?: string | undefined;
25
+ }, {
26
+ code?: string | undefined;
27
+ label?: string | undefined;
28
+ }>;
29
+ export type Icd11FieldUpdateValue = z.infer<typeof Icd11FieldUpdateValue>;
30
+ /**
31
+ * Removes HTML markup and decodes the handful of HTML entities the WHO API
32
+ * emits. The WHO search API wraps matched terms in `<em class='found'>...</em>`
33
+ * highlighting tags -- these appear in BOTH the `title` field and
34
+ * `matchingPVs[].label` when `highlightingEnabled` is on -- so any text taken
35
+ * from the response has to be sanitised before being shown or stored.
36
+ */
37
+ export declare function stripIcd11Html(raw: string): string;
38
+ /**
39
+ * Extracts the readable disease label out of a WHO `matchingPVs[].label`
40
+ * entry, e.g. `<em class='found'>SSS</em> - [sick sinus syndrome]` -> `sick
41
+ * sinus syndrome`. Falls back to the tag-stripped string when there is no
42
+ * bracketed segment to prefer.
43
+ */
44
+ export declare function extractIcd11LabelFromMatchingPV(rawLabel: string): string;
45
+ /**
46
+ * Parses a raw WHO ICD-11 `/search` API response into a flat list of
47
+ * `{code, label}` results, one per `destinationEntities[]` entry.
48
+ */
49
+ export declare function parseIcd11SearchResponse(response: unknown): Icd11FieldValue[];
50
+ /** Renders a `{code, label}` pair the same way it's shown in the dropdown. */
51
+ export declare function formatIcd11Value(value: Icd11FieldValue): string;
52
+ //# sourceMappingURL=Icd11.d.ts.map
@@ -6,6 +6,7 @@ import { EventConfigInput } from './EventConfigInput';
6
6
  export declare const defineConfig: (config: EventConfigInput) => {
7
7
  id: string;
8
8
  title: import("./TranslationConfig").TranslationConfig;
9
+ label: import("./TranslationConfig").TranslationConfig;
9
10
  declaration: {
10
11
  label: import("./TranslationConfig").TranslationConfig;
11
12
  pages: {
@@ -33,8 +34,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
33
34
  };
34
35
  deduplication?: {
35
36
  id: string;
36
- query: import("./DeduplicationConfig").ClauseOutput;
37
37
  label: import("./TranslationConfig").TranslationConfig;
38
+ query: import("./DeduplicationConfig").ClauseOutput;
38
39
  } | undefined;
39
40
  } | {
40
41
  type: "VALIDATE";
@@ -45,8 +46,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
45
46
  };
46
47
  deduplication?: {
47
48
  id: string;
48
- query: import("./DeduplicationConfig").ClauseOutput;
49
49
  label: import("./TranslationConfig").TranslationConfig;
50
+ query: import("./DeduplicationConfig").ClauseOutput;
50
51
  } | undefined;
51
52
  } | {
52
53
  type: "ESCALATE";
@@ -57,8 +58,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
57
58
  };
58
59
  deduplication?: {
59
60
  id: string;
60
- query: import("./DeduplicationConfig").ClauseOutput;
61
61
  label: import("./TranslationConfig").TranslationConfig;
62
+ query: import("./DeduplicationConfig").ClauseOutput;
62
63
  } | undefined;
63
64
  } | {
64
65
  type: "REJECT";
@@ -75,8 +76,8 @@ export declare const defineConfig: (config: EventConfigInput) => {
75
76
  };
76
77
  deduplication?: {
77
78
  id: string;
78
- query: import("./DeduplicationConfig").ClauseOutput;
79
79
  label: import("./TranslationConfig").TranslationConfig;
80
+ query: import("./DeduplicationConfig").ClauseOutput;
80
81
  } | undefined;
81
82
  } | {
82
83
  type: "DELETE";
@@ -154,7 +155,6 @@ export declare const defineConfig: (config: EventConfigInput) => {
154
155
  type: "APPROVE_CORRECTION";
155
156
  label: import("./TranslationConfig").TranslationConfig;
156
157
  })[];
157
- label: import("./TranslationConfig").TranslationConfig;
158
158
  summary: {
159
159
  fields: ({
160
160
  fieldId: string;
@@ -184,7 +184,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
184
184
  };
185
185
  fieldId: string;
186
186
  fieldType: "field";
187
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
187
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ICD11" | undefined;
188
188
  options?: {
189
189
  value: string;
190
190
  label: string | import("./TranslationConfig").TranslationConfig;
@@ -219,7 +219,7 @@ export declare const defineConfig: (config: EventConfigInput) => {
219
219
  };
220
220
  fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
221
221
  fieldType: "event";
222
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
222
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ICD11" | undefined;
223
223
  options?: {
224
224
  value: string;
225
225
  label: string | import("./TranslationConfig").TranslationConfig;
@@ -20,6 +20,7 @@ export * from './TranslationConfig';
20
20
  export * from './FieldValue';
21
21
  export * from './FormConfig';
22
22
  export * from './CompositeFieldValue';
23
+ export * from './Icd11';
23
24
  export * from './state';
24
25
  export * from './utils';
25
26
  export * from './defineConfig';
@@ -215,6 +215,7 @@ export declare function getMixedPath<T = unknown>(obj: Record<string, unknown>,
215
215
  export declare function getEventConfigById(eventConfigs: EventConfig[], id: string): {
216
216
  id: string;
217
217
  title: import("./TranslationConfig").TranslationConfig;
218
+ label: import("./TranslationConfig").TranslationConfig;
218
219
  declaration: {
219
220
  label: import("./TranslationConfig").TranslationConfig;
220
221
  pages: {
@@ -242,8 +243,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
242
243
  };
243
244
  deduplication?: {
244
245
  id: string;
245
- query: import("./DeduplicationConfig").ClauseOutput;
246
246
  label: import("./TranslationConfig").TranslationConfig;
247
+ query: import("./DeduplicationConfig").ClauseOutput;
247
248
  } | undefined;
248
249
  } | {
249
250
  type: "VALIDATE";
@@ -254,8 +255,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
254
255
  };
255
256
  deduplication?: {
256
257
  id: string;
257
- query: import("./DeduplicationConfig").ClauseOutput;
258
258
  label: import("./TranslationConfig").TranslationConfig;
259
+ query: import("./DeduplicationConfig").ClauseOutput;
259
260
  } | undefined;
260
261
  } | {
261
262
  type: "ESCALATE";
@@ -266,8 +267,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
266
267
  };
267
268
  deduplication?: {
268
269
  id: string;
269
- query: import("./DeduplicationConfig").ClauseOutput;
270
270
  label: import("./TranslationConfig").TranslationConfig;
271
+ query: import("./DeduplicationConfig").ClauseOutput;
271
272
  } | undefined;
272
273
  } | {
273
274
  type: "REJECT";
@@ -284,8 +285,8 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
284
285
  };
285
286
  deduplication?: {
286
287
  id: string;
287
- query: import("./DeduplicationConfig").ClauseOutput;
288
288
  label: import("./TranslationConfig").TranslationConfig;
289
+ query: import("./DeduplicationConfig").ClauseOutput;
289
290
  } | undefined;
290
291
  } | {
291
292
  type: "DELETE";
@@ -363,7 +364,6 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
363
364
  type: "APPROVE_CORRECTION";
364
365
  label: import("./TranslationConfig").TranslationConfig;
365
366
  })[];
366
- label: import("./TranslationConfig").TranslationConfig;
367
367
  summary: {
368
368
  fields: ({
369
369
  fieldId: string;
@@ -393,7 +393,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
393
393
  };
394
394
  fieldId: string;
395
395
  fieldType: "field";
396
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
396
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ICD11" | undefined;
397
397
  options?: {
398
398
  value: string;
399
399
  label: string | import("./TranslationConfig").TranslationConfig;
@@ -428,7 +428,7 @@ export declare function getEventConfigById(eventConfigs: EventConfig[], id: stri
428
428
  };
429
429
  fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
430
430
  fieldType: "event";
431
- type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
431
+ type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ICD11" | undefined;
432
432
  options?: {
433
433
  value: string;
434
434
  label: string | import("./TranslationConfig").TranslationConfig;