@icure/cardinal-sdk 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/api/FormApi.d.mts +2 -1
  2. package/api/FormBasicApi.d.mts +1 -0
  3. package/api/FormBasicInGroupApi.d.mts +1 -0
  4. package/api/FormInGroupApi.d.mts +2 -1
  5. package/api/FormTemplateApi.d.mts +2 -0
  6. package/api.d.mts +0 -8
  7. package/api.mjs +0 -8
  8. package/cardinal-sdk-ts.d.mts +26 -30
  9. package/cardinal-sdk-ts.mjs +39547 -39094
  10. package/cardinal-sdk.mjs +99857 -97723
  11. package/filters/DocumentFilters.d.mts +18 -0
  12. package/filters/DocumentFilters.mjs +7 -1
  13. package/filters/FormTemplateFilters.d.mts +7 -0
  14. package/filters/FormTemplateFilters.mjs +5 -0
  15. package/filters/MessageFilters.d.mts +18 -0
  16. package/filters/MessageFilters.mjs +7 -1
  17. package/filters.d.mts +1 -2
  18. package/filters.mjs +1 -2
  19. package/kotlinx-coroutines-core.mjs +8 -8
  20. package/model/CalendarItem.d.mts +22 -0
  21. package/model/CalendarItem.mjs +83 -0
  22. package/model/Code.d.mts +1 -1
  23. package/model/Code.mjs +4 -5
  24. package/model/Device.d.mts +1 -1
  25. package/model/Device.mjs +4 -5
  26. package/model/HealthcareParty.d.mts +2 -2
  27. package/model/HealthcareParty.mjs +7 -9
  28. package/model/Message.d.mts +4 -0
  29. package/model/Message.mjs +11 -0
  30. package/model/Patient.d.mts +3 -2
  31. package/model/Patient.mjs +8 -10
  32. package/model/base/CryptoActor.mjs +4 -4
  33. package/model/embed/form/template/Field.d.mts +1 -1
  34. package/model/embed/form/template/StructureElement.mjs +5 -5
  35. package/model/filter/predicate/Predicate.d.mts +1 -1
  36. package/model/filter/predicate/Predicate.mjs +1 -1
  37. package/model.d.mts +0 -18
  38. package/model.mjs +0 -18
  39. package/package.json +1 -1
  40. package/sdk/CardinalSdk.d.mts +0 -24
  41. package/api/ApplicationSettingsApi.d.mts +0 -6
  42. package/api/ApplicationSettingsApi.mjs +0 -1
  43. package/api/DocumentTemplateApi.d.mts +0 -22
  44. package/api/DocumentTemplateApi.mjs +0 -1
  45. package/api/EntityReferenceApi.d.mts +0 -5
  46. package/api/EntityReferenceApi.mjs +0 -1
  47. package/api/EntityTemplateApi.d.mts +0 -24
  48. package/api/EntityTemplateApi.mjs +0 -1
  49. package/api/KeywordApi.d.mts +0 -14
  50. package/api/KeywordApi.mjs +0 -1
  51. package/api/MedicalLocationApi.d.mts +0 -17
  52. package/api/MedicalLocationApi.mjs +0 -1
  53. package/api/TarificationApi.d.mts +0 -27
  54. package/api/TarificationApi.mjs +0 -1
  55. package/api/TimeTableApi.d.mts +0 -26
  56. package/api/TimeTableApi.mjs +0 -1
  57. package/filters/MedicalLocationFilters.d.mts +0 -8
  58. package/filters/MedicalLocationFilters.mjs +0 -6
  59. package/filters/TimeTableFilters.d.mts +0 -12
  60. package/filters/TimeTableFilters.mjs +0 -6
  61. package/model/ApplicationSettings.d.mts +0 -87
  62. package/model/ApplicationSettings.mjs +0 -256
  63. package/model/DocumentTemplate.d.mts +0 -35
  64. package/model/DocumentTemplate.mjs +0 -162
  65. package/model/EntityReference.d.mts +0 -10
  66. package/model/EntityReference.mjs +0 -46
  67. package/model/EntityTemplate.d.mts +0 -16
  68. package/model/EntityTemplate.mjs +0 -81
  69. package/model/Keyword.d.mts +0 -23
  70. package/model/Keyword.mjs +0 -99
  71. package/model/ListOfIds.d.mts +0 -6
  72. package/model/ListOfIds.mjs +0 -28
  73. package/model/MedicalLocation.d.mts +0 -28
  74. package/model/MedicalLocation.mjs +0 -116
  75. package/model/Tarification.d.mts +0 -50
  76. package/model/Tarification.mjs +0 -178
  77. package/model/TimeTable.d.mts +0 -25
  78. package/model/TimeTable.mjs +0 -111
  79. package/model/base/AppendixType.d.mts +0 -5
  80. package/model/base/AppendixType.mjs +0 -7
  81. package/model/base/CodeFlag.d.mts +0 -80
  82. package/model/base/CodeFlag.mjs +0 -82
  83. package/model/base/ReportVersion.d.mts +0 -3
  84. package/model/base/ReportVersion.mjs +0 -5
  85. package/model/embed/KeywordSubword.d.mts +0 -8
  86. package/model/embed/KeywordSubword.mjs +0 -35
  87. package/model/embed/LetterValue.d.mts +0 -9
  88. package/model/embed/LetterValue.mjs +0 -47
  89. package/model/embed/Periodicity.d.mts +0 -8
  90. package/model/embed/Periodicity.mjs +0 -36
  91. package/model/embed/TimeTableHour.d.mts +0 -7
  92. package/model/embed/TimeTableHour.mjs +0 -35
  93. package/model/embed/TimeTableItem.d.mts +0 -19
  94. package/model/embed/TimeTableItem.mjs +0 -96
  95. package/model/embed/Valorisation.d.mts +0 -56
  96. package/model/embed/Valorisation.mjs +0 -188
package/api/FormApi.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
1
+ import { BaseFilterOptions, FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
2
2
  import { FormShareOptions } from '../crypto/entities/FormShareOptions.mjs';
3
3
  import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
4
4
  import { EntityReferenceInGroup } from '../model/EntityReferenceInGroup.mjs';
@@ -60,6 +60,7 @@ export interface FormApi {
60
60
  purgeFormTemplate(formTemplate: FormTemplate): Promise<void>;
61
61
  purgeFormTemplates(formTemplates: Array<FormTemplate>): Promise<Array<StoredDocumentIdentifier>>;
62
62
  setTemplateAttachment(formTemplateId: string, payload: Int8Array): Promise<string>;
63
+ matchFormTemplateBy(filter: BaseFilterOptions<FormTemplate>): Promise<Array<string>>;
63
64
  shareWith(delegateId: string, form: DecryptedForm, options?: {
64
65
  options?: FormShareOptions | undefined;
65
66
  }): Promise<DecryptedForm>;
@@ -38,6 +38,7 @@ export interface FormBasicApi {
38
38
  purgeFormTemplate(formTemplate: FormTemplate): Promise<void>;
39
39
  purgeFormTemplates(formTemplates: Array<FormTemplate>): Promise<Array<StoredDocumentIdentifier>>;
40
40
  setTemplateAttachment(formTemplateId: string, payload: Int8Array): Promise<string>;
41
+ matchFormTemplateBy(filter: BaseFilterOptions<FormTemplate>): Promise<Array<string>>;
41
42
  createForm(entity: EncryptedForm): Promise<EncryptedForm>;
42
43
  createForms(entities: Array<EncryptedForm>): Promise<Array<EncryptedForm>>;
43
44
  modifyForm(entity: EncryptedForm): Promise<EncryptedForm>;
@@ -34,6 +34,7 @@ export interface FormBasicInGroupApi {
34
34
  purgeFormTemplateByIds(entityIds: Array<GroupScoped<StoredDocumentIdentifier>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
35
35
  purgeFormTemplate(formTemplate: GroupScoped<FormTemplate>): Promise<void>;
36
36
  purgeFormTemplates(formTemplates: Array<GroupScoped<FormTemplate>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
37
+ matchFormTemplateBy(groupId: string, filter: BaseFilterOptions<FormTemplate>): Promise<Array<string>>;
37
38
  createForm(entity: GroupScoped<EncryptedForm>): Promise<GroupScoped<EncryptedForm>>;
38
39
  createForms(entities: Array<GroupScoped<EncryptedForm>>): Promise<Array<GroupScoped<EncryptedForm>>>;
39
40
  undeleteFormById(entityId: GroupScoped<StoredDocumentIdentifier>): Promise<GroupScoped<EncryptedForm>>;
@@ -1,4 +1,4 @@
1
- import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
1
+ import { BaseFilterOptions, FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../cardinal-sdk-ts.mjs';
2
2
  import { FormShareOptions } from '../crypto/entities/FormShareOptions.mjs';
3
3
  import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
4
4
  import { EntityReferenceInGroup } from '../model/EntityReferenceInGroup.mjs';
@@ -58,6 +58,7 @@ export interface FormInGroupApi {
58
58
  purgeFormTemplateByIds(entityIds: Array<GroupScoped<StoredDocumentIdentifier>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
59
59
  purgeFormTemplate(formTemplate: GroupScoped<FormTemplate>): Promise<void>;
60
60
  purgeFormTemplates(formTemplates: Array<GroupScoped<FormTemplate>>): Promise<Array<GroupScoped<StoredDocumentIdentifier>>>;
61
+ matchFormTemplateBy(groupId: string, filter: BaseFilterOptions<FormTemplate>): Promise<Array<string>>;
61
62
  shareWith(delegate: EntityReferenceInGroup, form: GroupScoped<DecryptedForm>, options?: {
62
63
  options?: FormShareOptions | undefined;
63
64
  }): Promise<GroupScoped<DecryptedForm>>;
@@ -1,3 +1,4 @@
1
+ import { BaseFilterOptions } from '../cardinal-sdk-ts.mjs';
1
2
  import { FormTemplate } from '../model/FormTemplate.mjs';
2
3
  import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
3
4
  export interface FormTemplateApi {
@@ -22,4 +23,5 @@ export interface FormTemplateApi {
22
23
  purgeFormTemplate(formTemplate: FormTemplate): Promise<void>;
23
24
  purgeFormTemplates(formTemplates: Array<FormTemplate>): Promise<Array<StoredDocumentIdentifier>>;
24
25
  setTemplateAttachment(formTemplateId: string, payload: Int8Array): Promise<string>;
26
+ matchFormTemplateBy(filter: BaseFilterOptions<FormTemplate>): Promise<Array<string>>;
25
27
  }
package/api.d.mts CHANGED
@@ -1,9 +1,7 @@
1
1
  export * from './api/ReceiptFlavouredApi.mjs';
2
- export * from './api/KeywordApi.mjs';
3
2
  export * from './api/TopicFlavouredApi.mjs';
4
3
  export * from './api/TopicBasicInGroupApi.mjs';
5
4
  export * from './api/DeviceApi.mjs';
6
- export * from './api/TimeTableApi.mjs';
7
5
  export * from './api/InvoiceBasicInGroupApi.mjs';
8
6
  export * from './api/FormFlavouredApi.mjs';
9
7
  export * from './api/HealthElementFlavouredInGroupApi.mjs';
@@ -14,13 +12,11 @@ export * from './api/PatientFlavouredApi.mjs';
14
12
  export * from './api/ContactInGroupApi.mjs';
15
13
  export * from './api/AccessLogInGroupApi.mjs';
16
14
  export * from './api/MessageBasicApi.mjs';
17
- export * from './api/DocumentTemplateApi.mjs';
18
15
  export * from './api/MessageInGroupApi.mjs';
19
16
  export * from './api/HealthElementFlavouredApi.mjs';
20
17
  export * from './api/HealthElementBasicApi.mjs';
21
18
  export * from './api/ContactFlavouredApi.mjs';
22
19
  export * from './api/AccessLogBasicInGroupApi.mjs';
23
- export * from './api/EntityReferenceApi.mjs';
24
20
  export * from './api/CalendarItemInGroupApi.mjs';
25
21
  export * from './api/TopicApi.mjs';
26
22
  export * from './api/ReceiptFlavouredInGroupApi.mjs';
@@ -29,7 +25,6 @@ export * from './api/GroupApi.mjs';
29
25
  export * from './api/MessageBasicInGroupApi.mjs';
30
26
  export * from './api/FormInGroupApi.mjs';
31
27
  export * from './api/HealthcarePartyApi.mjs';
32
- export * from './api/TarificationApi.mjs';
33
28
  export * from './api/ReceiptBasicInGroupApi.mjs';
34
29
  export * from './api/CardinalMaintenanceTaskApi.mjs';
35
30
  export * from './api/PatientFlavouredInGroupApi.mjs';
@@ -43,8 +38,6 @@ export * from './api/InvoiceBasicApi.mjs';
43
38
  export * from './api/ContactBasicInGroupApi.mjs';
44
39
  export * from './api/DocumentBasicApi.mjs';
45
40
  export * from './api/AgendaInGroupApi.mjs';
46
- export * from './api/ApplicationSettingsApi.mjs';
47
- export * from './api/EntityTemplateApi.mjs';
48
41
  export * from './api/MaintenanceTaskBasicApi.mjs';
49
42
  export * from './api/CodeInGroupApi.mjs';
50
43
  export * from './api/HealthElementBasicInGroupApi.mjs';
@@ -61,7 +54,6 @@ export * from './api/AccessLogFlavouredInGroupApi.mjs';
61
54
  export * from './api/PatientBasicInGroupApi.mjs';
62
55
  export * from './api/ReceiptBasicApi.mjs';
63
56
  export * from './api/ClassificationBasicApi.mjs';
64
- export * from './api/MedicalLocationApi.mjs';
65
57
  export * from './api/DataOwnerApi.mjs';
66
58
  export * from './api/PlaceApi.mjs';
67
59
  export * from './api/CryptoApi.mjs';
package/api.mjs CHANGED
@@ -1,9 +1,7 @@
1
1
  export * from './api/ReceiptFlavouredApi.mjs';
2
- export * from './api/KeywordApi.mjs';
3
2
  export * from './api/TopicFlavouredApi.mjs';
4
3
  export * from './api/TopicBasicInGroupApi.mjs';
5
4
  export * from './api/DeviceApi.mjs';
6
- export * from './api/TimeTableApi.mjs';
7
5
  export * from './api/InvoiceBasicInGroupApi.mjs';
8
6
  export * from './api/FormFlavouredApi.mjs';
9
7
  export * from './api/HealthElementFlavouredInGroupApi.mjs';
@@ -14,13 +12,11 @@ export * from './api/PatientFlavouredApi.mjs';
14
12
  export * from './api/ContactInGroupApi.mjs';
15
13
  export * from './api/AccessLogInGroupApi.mjs';
16
14
  export * from './api/MessageBasicApi.mjs';
17
- export * from './api/DocumentTemplateApi.mjs';
18
15
  export * from './api/MessageInGroupApi.mjs';
19
16
  export * from './api/HealthElementFlavouredApi.mjs';
20
17
  export * from './api/HealthElementBasicApi.mjs';
21
18
  export * from './api/ContactFlavouredApi.mjs';
22
19
  export * from './api/AccessLogBasicInGroupApi.mjs';
23
- export * from './api/EntityReferenceApi.mjs';
24
20
  export * from './api/CalendarItemInGroupApi.mjs';
25
21
  export * from './api/TopicApi.mjs';
26
22
  export * from './api/ReceiptFlavouredInGroupApi.mjs';
@@ -29,7 +25,6 @@ export * from './api/GroupApi.mjs';
29
25
  export * from './api/MessageBasicInGroupApi.mjs';
30
26
  export * from './api/FormInGroupApi.mjs';
31
27
  export * from './api/HealthcarePartyApi.mjs';
32
- export * from './api/TarificationApi.mjs';
33
28
  export * from './api/ReceiptBasicInGroupApi.mjs';
34
29
  export * from './api/CardinalMaintenanceTaskApi.mjs';
35
30
  export * from './api/PatientFlavouredInGroupApi.mjs';
@@ -43,8 +38,6 @@ export * from './api/InvoiceBasicApi.mjs';
43
38
  export * from './api/ContactBasicInGroupApi.mjs';
44
39
  export * from './api/DocumentBasicApi.mjs';
45
40
  export * from './api/AgendaInGroupApi.mjs';
46
- export * from './api/ApplicationSettingsApi.mjs';
47
- export * from './api/EntityTemplateApi.mjs';
48
41
  export * from './api/MaintenanceTaskBasicApi.mjs';
49
42
  export * from './api/CodeInGroupApi.mjs';
50
43
  export * from './api/HealthElementBasicInGroupApi.mjs';
@@ -61,7 +54,6 @@ export * from './api/AccessLogFlavouredInGroupApi.mjs';
61
54
  export * from './api/PatientBasicInGroupApi.mjs';
62
55
  export * from './api/ReceiptBasicApi.mjs';
63
56
  export * from './api/ClassificationBasicApi.mjs';
64
- export * from './api/MedicalLocationApi.mjs';
65
57
  export * from './api/DataOwnerApi.mjs';
66
58
  export * from './api/PlaceApi.mjs';
67
59
  export * from './api/CryptoApi.mjs';
@@ -305,6 +305,12 @@ export declare namespace InternalDocumentFiltersObj.$metadata$ {
305
305
  byOwningEntitySecretIdsAndTypeForDataOwner(dataOwnerId: string, documentType: string, secretIds: Array<string>): FilterOptions<model.Document>;
306
306
  byOwningEntitySecretIdsAndTypeForDataOwnerInGroup(dataOwner: model.EntityReferenceInGroup, documentType: string, secretIds: Array<string>): FilterOptions<model.Document>;
307
307
  byOwningEntitySecretIdsAndTypeForSelf(documentType: string, secretIds: Array<string>): FilterOptions<model.Document>;
308
+ byCodeForDataOwner(dataOwnerId: string, codeType: string, options: any): BaseSortableFilterOptions<model.Document>;
309
+ byCodeForDataOwnerInGroup(dataOwner: model.EntityReferenceInGroup, codeType: string, options: any): BaseSortableFilterOptions<model.Document>;
310
+ byCodeForSelf(codeType: string, options: any): SortableFilterOptions<model.Document>;
311
+ byTagForDataOwner(dataOwnerId: string, tagType: string, options: any): BaseSortableFilterOptions<model.Document>;
312
+ byTagForDataOwnerInGroup(dataOwner: model.EntityReferenceInGroup, tagType: string, options: any): BaseSortableFilterOptions<model.Document>;
313
+ byTagForSelf(tagType: string, options: any): SortableFilterOptions<model.Document>;
308
314
  private constructor();
309
315
  }
310
316
  }
@@ -331,6 +337,20 @@ export declare namespace InternalFormFiltersObj.$metadata$ {
331
337
  private constructor();
332
338
  }
333
339
  }
340
+ export declare abstract class InternalFormTemplateFiltersObj {
341
+ static readonly getInstance: () => typeof InternalFormTemplateFiltersObj.$metadata$.type;
342
+ private constructor();
343
+ }
344
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
345
+ export declare namespace InternalFormTemplateFiltersObj.$metadata$ {
346
+ abstract class type extends KtSingleton<constructor>() {
347
+ private constructor();
348
+ }
349
+ abstract class constructor {
350
+ bySpecialtyCode(specialtyCode: string): BaseFilterOptions<model.FormTemplate>;
351
+ private constructor();
352
+ }
353
+ }
334
354
  export declare abstract class InternalGroupFiltersObj {
335
355
  static readonly getInstance: () => typeof InternalGroupFiltersObj.$metadata$.type;
336
356
  private constructor();
@@ -426,21 +446,6 @@ export declare namespace InternalMaintenanceTaskFiltersObj.$metadata$ {
426
446
  private constructor();
427
447
  }
428
448
  }
429
- export declare abstract class InternalMedicalLocationFiltersObj {
430
- static readonly getInstance: () => typeof InternalMedicalLocationFiltersObj.$metadata$.type;
431
- private constructor();
432
- }
433
- /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
434
- export declare namespace InternalMedicalLocationFiltersObj.$metadata$ {
435
- abstract class type extends KtSingleton<constructor>() {
436
- private constructor();
437
- }
438
- abstract class constructor {
439
- all(): BaseFilterOptions<model.MedicalLocation>;
440
- byPostCode(postCode: string): BaseFilterOptions<model.MedicalLocation>;
441
- private constructor();
442
- }
443
- }
444
449
  export declare abstract class InternalMessageFiltersObj {
445
450
  static readonly getInstance: () => typeof InternalMessageFiltersObj.$metadata$.type;
446
451
  private constructor();
@@ -479,6 +484,12 @@ export declare namespace InternalMessageFiltersObj.$metadata$ {
479
484
  lifecycleBetweenForDataOwner(dataOwnerId: string, startTimestamp: Nullable<number>, endTimestamp: Nullable<number>, descending: boolean): BaseFilterOptions<model.Message>;
480
485
  lifecycleBetweenForDataOwnerInGroupInGroup(dataOwner: model.EntityReferenceInGroup, startTimestamp: Nullable<number>, endTimestamp: Nullable<number>, descending: boolean): BaseFilterOptions<model.Message>;
481
486
  lifecycleBetweenForSelf(startTimestamp: Nullable<number>, endTimestamp: Nullable<number>, descending: boolean): FilterOptions<model.Message>;
487
+ byCodeForDataOwner(dataOwnerId: string, codeType: string, options: any): BaseSortableFilterOptions<model.Message>;
488
+ byCodeForDataOwnerInGroup(dataOwner: model.EntityReferenceInGroup, codeType: string, options: any): BaseSortableFilterOptions<model.Message>;
489
+ byCodeForSelf(codeType: string, options: any): SortableFilterOptions<model.Message>;
490
+ byTagForDataOwner(dataOwnerId: string, tagType: string, options: any): BaseSortableFilterOptions<model.Message>;
491
+ byTagForDataOwnerInGroup(dataOwner: model.EntityReferenceInGroup, tagType: string, options: any): BaseSortableFilterOptions<model.Message>;
492
+ byTagForSelf(tagType: string, options: any): SortableFilterOptions<model.Message>;
482
493
  private constructor();
483
494
  }
484
495
  }
@@ -572,21 +583,6 @@ export declare namespace InternalServiceFiltersObj.$metadata$ {
572
583
  private constructor();
573
584
  }
574
585
  }
575
- export declare abstract class InternalTimeTableFiltersObj {
576
- static readonly getInstance: () => typeof InternalTimeTableFiltersObj.$metadata$.type;
577
- private constructor();
578
- }
579
- /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
580
- export declare namespace InternalTimeTableFiltersObj.$metadata$ {
581
- abstract class type extends KtSingleton<constructor>() {
582
- private constructor();
583
- }
584
- abstract class constructor {
585
- byAgendaId(agendaId: string): BaseFilterOptions<model.TimeTable>;
586
- byPeriodAndAgendaId(agendaId: string, options: any): BaseSortableFilterOptions<model.TimeTable>;
587
- private constructor();
588
- }
589
- }
590
586
  export declare abstract class InternalTopicFiltersObj {
591
587
  static readonly getInstance: () => typeof InternalTopicFiltersObj.$metadata$.type;
592
588
  private constructor();