@icure/cardinal-sdk 2.0.0 → 2.1.1

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 (103) 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 +61 -30
  9. package/cardinal-sdk-ts.mjs +39682 -39198
  10. package/cardinal-sdk.mjs +100830 -98348
  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/kotlin-kotlin-stdlib.mjs +4 -4
  20. package/kotlinx-coroutines-core.mjs +1 -1
  21. package/model/CalendarItem.d.mts +22 -0
  22. package/model/CalendarItem.mjs +83 -0
  23. package/model/Code.d.mts +1 -1
  24. package/model/Code.mjs +4 -5
  25. package/model/Device.d.mts +1 -1
  26. package/model/Device.mjs +4 -5
  27. package/model/Group.d.mts +15 -0
  28. package/model/Group.mjs +69 -0
  29. package/model/HealthElement.d.mts +3 -0
  30. package/model/HealthElement.mjs +12 -0
  31. package/model/HealthcareParty.d.mts +2 -2
  32. package/model/HealthcareParty.mjs +7 -9
  33. package/model/Message.d.mts +4 -0
  34. package/model/Message.mjs +11 -0
  35. package/model/Patient.d.mts +3 -2
  36. package/model/Patient.mjs +8 -10
  37. package/model/User.d.mts +2 -0
  38. package/model/User.mjs +12 -0
  39. package/model/base/CryptoActor.mjs +4 -4
  40. package/model/embed/form/template/Field.d.mts +1 -1
  41. package/model/embed/form/template/StructureElement.mjs +5 -5
  42. package/model/filter/predicate/Predicate.d.mts +1 -1
  43. package/model/filter/predicate/Predicate.mjs +1 -1
  44. package/model.d.mts +0 -18
  45. package/model.mjs +0 -18
  46. package/package.json +1 -1
  47. package/sdk/CardinalSdk.d.mts +0 -24
  48. package/api/ApplicationSettingsApi.d.mts +0 -6
  49. package/api/ApplicationSettingsApi.mjs +0 -1
  50. package/api/DocumentTemplateApi.d.mts +0 -22
  51. package/api/DocumentTemplateApi.mjs +0 -1
  52. package/api/EntityReferenceApi.d.mts +0 -5
  53. package/api/EntityReferenceApi.mjs +0 -1
  54. package/api/EntityTemplateApi.d.mts +0 -24
  55. package/api/EntityTemplateApi.mjs +0 -1
  56. package/api/KeywordApi.d.mts +0 -14
  57. package/api/KeywordApi.mjs +0 -1
  58. package/api/MedicalLocationApi.d.mts +0 -17
  59. package/api/MedicalLocationApi.mjs +0 -1
  60. package/api/TarificationApi.d.mts +0 -27
  61. package/api/TarificationApi.mjs +0 -1
  62. package/api/TimeTableApi.d.mts +0 -26
  63. package/api/TimeTableApi.mjs +0 -1
  64. package/filters/MedicalLocationFilters.d.mts +0 -8
  65. package/filters/MedicalLocationFilters.mjs +0 -6
  66. package/filters/TimeTableFilters.d.mts +0 -12
  67. package/filters/TimeTableFilters.mjs +0 -6
  68. package/model/ApplicationSettings.d.mts +0 -87
  69. package/model/ApplicationSettings.mjs +0 -256
  70. package/model/DocumentTemplate.d.mts +0 -35
  71. package/model/DocumentTemplate.mjs +0 -162
  72. package/model/EntityReference.d.mts +0 -10
  73. package/model/EntityReference.mjs +0 -46
  74. package/model/EntityTemplate.d.mts +0 -16
  75. package/model/EntityTemplate.mjs +0 -81
  76. package/model/Keyword.d.mts +0 -23
  77. package/model/Keyword.mjs +0 -99
  78. package/model/ListOfIds.d.mts +0 -6
  79. package/model/ListOfIds.mjs +0 -28
  80. package/model/MedicalLocation.d.mts +0 -28
  81. package/model/MedicalLocation.mjs +0 -116
  82. package/model/Tarification.d.mts +0 -50
  83. package/model/Tarification.mjs +0 -178
  84. package/model/TimeTable.d.mts +0 -25
  85. package/model/TimeTable.mjs +0 -111
  86. package/model/base/AppendixType.d.mts +0 -5
  87. package/model/base/AppendixType.mjs +0 -7
  88. package/model/base/CodeFlag.d.mts +0 -80
  89. package/model/base/CodeFlag.mjs +0 -82
  90. package/model/base/ReportVersion.d.mts +0 -3
  91. package/model/base/ReportVersion.mjs +0 -5
  92. package/model/embed/KeywordSubword.d.mts +0 -8
  93. package/model/embed/KeywordSubword.mjs +0 -35
  94. package/model/embed/LetterValue.d.mts +0 -9
  95. package/model/embed/LetterValue.mjs +0 -47
  96. package/model/embed/Periodicity.d.mts +0 -8
  97. package/model/embed/Periodicity.mjs +0 -36
  98. package/model/embed/TimeTableHour.d.mts +0 -7
  99. package/model/embed/TimeTableHour.mjs +0 -35
  100. package/model/embed/TimeTableItem.d.mts +0 -19
  101. package/model/embed/TimeTableItem.mjs +0 -96
  102. package/model/embed/Valorisation.d.mts +0 -56
  103. package/model/embed/Valorisation.mjs +0 -188
@@ -1,188 +0,0 @@
1
- // auto-generated file
2
- import { expectArray, expectMap, expectNumber, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
3
- export class DecryptedValorisation {
4
- constructor(partial) {
5
- this.startOfValidity = undefined;
6
- this.endOfValidity = undefined;
7
- this.predicate = undefined;
8
- this.reference = undefined;
9
- this.totalAmount = undefined;
10
- this.reimbursement = undefined;
11
- this.patientIntervention = undefined;
12
- this.doctorSupplement = undefined;
13
- this.vat = undefined;
14
- this.label = {};
15
- this.encryptedSelf = undefined;
16
- this.isEncrypted = false;
17
- if (partial.isEncrypted !== undefined && partial.isEncrypted !== false)
18
- throw new Error('partial.isEncrypted must be undefined or false');
19
- if ('startOfValidity' in partial)
20
- this.startOfValidity = partial.startOfValidity;
21
- if ('endOfValidity' in partial)
22
- this.endOfValidity = partial.endOfValidity;
23
- if ('predicate' in partial)
24
- this.predicate = partial.predicate;
25
- if ('reference' in partial)
26
- this.reference = partial.reference;
27
- if ('totalAmount' in partial)
28
- this.totalAmount = partial.totalAmount;
29
- if ('reimbursement' in partial)
30
- this.reimbursement = partial.reimbursement;
31
- if ('patientIntervention' in partial)
32
- this.patientIntervention = partial.patientIntervention;
33
- if ('doctorSupplement' in partial)
34
- this.doctorSupplement = partial.doctorSupplement;
35
- if ('vat' in partial)
36
- this.vat = partial.vat;
37
- if ('label' in partial)
38
- this.label = partial.label;
39
- if ('encryptedSelf' in partial)
40
- this.encryptedSelf = partial.encryptedSelf;
41
- }
42
- toJSON() {
43
- const res = {};
44
- if (this.startOfValidity != undefined)
45
- res['startOfValidity'] = this.startOfValidity;
46
- if (this.endOfValidity != undefined)
47
- res['endOfValidity'] = this.endOfValidity;
48
- if (this.predicate != undefined)
49
- res['predicate'] = this.predicate;
50
- if (this.reference != undefined)
51
- res['reference'] = this.reference.map((x0) => x0);
52
- if (this.totalAmount != undefined)
53
- res['totalAmount'] = this.totalAmount;
54
- if (this.reimbursement != undefined)
55
- res['reimbursement'] = this.reimbursement;
56
- if (this.patientIntervention != undefined)
57
- res['patientIntervention'] = this.patientIntervention;
58
- if (this.doctorSupplement != undefined)
59
- res['doctorSupplement'] = this.doctorSupplement;
60
- if (this.vat != undefined)
61
- res['vat'] = this.vat;
62
- if (this.label != undefined)
63
- res['label'] = Object.fromEntries(Object.entries(this.label).map(([k0, v0]) => [k0, v0]));
64
- if (this.encryptedSelf != undefined)
65
- res['encryptedSelf'] = this.encryptedSelf;
66
- res['isEncrypted'] = false;
67
- return res;
68
- }
69
- static fromJSON(json, ignoreUnknownKeys = false, path = ['DecryptedValorisation']) {
70
- if (typeof json != 'object')
71
- throw new Error(`Expected json object at path ${path.join("")}`);
72
- const jCpy = Object.assign({}, json);
73
- if (extractEntry(jCpy, "isEncrypted", true, path) !== false)
74
- throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be false. The provided json doesn't represent a DecryptedValorisation`);
75
- const res = new DecryptedValorisation({
76
- startOfValidity: expectNumber(extractEntry(jCpy, 'startOfValidity', false, path), true, true, [...path, ".startOfValidity"]),
77
- endOfValidity: expectNumber(extractEntry(jCpy, 'endOfValidity', false, path), true, true, [...path, ".endOfValidity"]),
78
- predicate: expectString(extractEntry(jCpy, 'predicate', false, path), true, [...path, ".predicate"]),
79
- reference: expectArray(extractEntry(jCpy, 'reference', false, path), true, [...path, ".reference"], (x0, p0) => expectNumber(x0, false, true, p0)),
80
- totalAmount: expectNumber(extractEntry(jCpy, 'totalAmount', false, path), true, false, [...path, ".totalAmount"]),
81
- reimbursement: expectNumber(extractEntry(jCpy, 'reimbursement', false, path), true, false, [...path, ".reimbursement"]),
82
- patientIntervention: expectNumber(extractEntry(jCpy, 'patientIntervention', false, path), true, false, [...path, ".patientIntervention"]),
83
- doctorSupplement: expectNumber(extractEntry(jCpy, 'doctorSupplement', false, path), true, false, [...path, ".doctorSupplement"]),
84
- vat: expectNumber(extractEntry(jCpy, 'vat', false, path), true, false, [...path, ".vat"]),
85
- label: expectMap(extractEntry(jCpy, 'label', false, path), true, [...path, ".label"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
86
- encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
87
- });
88
- if (!ignoreUnknownKeys) {
89
- const unused = Object.keys(jCpy);
90
- if (unused.length > 0)
91
- throw new Error(`Unexpected key(s) for json object DecryptedValorisation at path ${path.join("")}: ${unused}`);
92
- }
93
- return res;
94
- }
95
- }
96
- export class EncryptedValorisation {
97
- constructor(partial) {
98
- this.startOfValidity = undefined;
99
- this.endOfValidity = undefined;
100
- this.predicate = undefined;
101
- this.reference = undefined;
102
- this.totalAmount = undefined;
103
- this.reimbursement = undefined;
104
- this.patientIntervention = undefined;
105
- this.doctorSupplement = undefined;
106
- this.vat = undefined;
107
- this.label = {};
108
- this.encryptedSelf = undefined;
109
- this.isEncrypted = true;
110
- if (partial.isEncrypted !== undefined && partial.isEncrypted !== true)
111
- throw new Error('partial.isEncrypted must be undefined or true');
112
- if ('startOfValidity' in partial)
113
- this.startOfValidity = partial.startOfValidity;
114
- if ('endOfValidity' in partial)
115
- this.endOfValidity = partial.endOfValidity;
116
- if ('predicate' in partial)
117
- this.predicate = partial.predicate;
118
- if ('reference' in partial)
119
- this.reference = partial.reference;
120
- if ('totalAmount' in partial)
121
- this.totalAmount = partial.totalAmount;
122
- if ('reimbursement' in partial)
123
- this.reimbursement = partial.reimbursement;
124
- if ('patientIntervention' in partial)
125
- this.patientIntervention = partial.patientIntervention;
126
- if ('doctorSupplement' in partial)
127
- this.doctorSupplement = partial.doctorSupplement;
128
- if ('vat' in partial)
129
- this.vat = partial.vat;
130
- if ('label' in partial)
131
- this.label = partial.label;
132
- if ('encryptedSelf' in partial)
133
- this.encryptedSelf = partial.encryptedSelf;
134
- }
135
- toJSON() {
136
- const res = {};
137
- if (this.startOfValidity != undefined)
138
- res['startOfValidity'] = this.startOfValidity;
139
- if (this.endOfValidity != undefined)
140
- res['endOfValidity'] = this.endOfValidity;
141
- if (this.predicate != undefined)
142
- res['predicate'] = this.predicate;
143
- if (this.reference != undefined)
144
- res['reference'] = this.reference.map((x0) => x0);
145
- if (this.totalAmount != undefined)
146
- res['totalAmount'] = this.totalAmount;
147
- if (this.reimbursement != undefined)
148
- res['reimbursement'] = this.reimbursement;
149
- if (this.patientIntervention != undefined)
150
- res['patientIntervention'] = this.patientIntervention;
151
- if (this.doctorSupplement != undefined)
152
- res['doctorSupplement'] = this.doctorSupplement;
153
- if (this.vat != undefined)
154
- res['vat'] = this.vat;
155
- if (this.label != undefined)
156
- res['label'] = Object.fromEntries(Object.entries(this.label).map(([k0, v0]) => [k0, v0]));
157
- if (this.encryptedSelf != undefined)
158
- res['encryptedSelf'] = this.encryptedSelf;
159
- res['isEncrypted'] = true;
160
- return res;
161
- }
162
- static fromJSON(json, ignoreUnknownKeys = false, path = ['EncryptedValorisation']) {
163
- if (typeof json != 'object')
164
- throw new Error(`Expected json object at path ${path.join("")}`);
165
- const jCpy = Object.assign({}, json);
166
- if (extractEntry(jCpy, "isEncrypted", true, path) !== true)
167
- throw new Error(`Unexpected value for ${path.join("")} isEncrypted marker, should be true. The provided json doesn't represent a EncryptedValorisation`);
168
- const res = new EncryptedValorisation({
169
- startOfValidity: expectNumber(extractEntry(jCpy, 'startOfValidity', false, path), true, true, [...path, ".startOfValidity"]),
170
- endOfValidity: expectNumber(extractEntry(jCpy, 'endOfValidity', false, path), true, true, [...path, ".endOfValidity"]),
171
- predicate: expectString(extractEntry(jCpy, 'predicate', false, path), true, [...path, ".predicate"]),
172
- reference: expectArray(extractEntry(jCpy, 'reference', false, path), true, [...path, ".reference"], (x0, p0) => expectNumber(x0, false, true, p0)),
173
- totalAmount: expectNumber(extractEntry(jCpy, 'totalAmount', false, path), true, false, [...path, ".totalAmount"]),
174
- reimbursement: expectNumber(extractEntry(jCpy, 'reimbursement', false, path), true, false, [...path, ".reimbursement"]),
175
- patientIntervention: expectNumber(extractEntry(jCpy, 'patientIntervention', false, path), true, false, [...path, ".patientIntervention"]),
176
- doctorSupplement: expectNumber(extractEntry(jCpy, 'doctorSupplement', false, path), true, false, [...path, ".doctorSupplement"]),
177
- vat: expectNumber(extractEntry(jCpy, 'vat', false, path), true, false, [...path, ".vat"]),
178
- label: expectMap(extractEntry(jCpy, 'label', false, path), true, [...path, ".label"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
179
- encryptedSelf: expectString(extractEntry(jCpy, 'encryptedSelf', false, path), true, [...path, ".encryptedSelf"]),
180
- });
181
- if (!ignoreUnknownKeys) {
182
- const unused = Object.keys(jCpy);
183
- if (unused.length > 0)
184
- throw new Error(`Unexpected key(s) for json object EncryptedValorisation at path ${path.join("")}: ${unused}`);
185
- }
186
- return res;
187
- }
188
- }