@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.
- package/api/FormApi.d.mts +2 -1
- package/api/FormBasicApi.d.mts +1 -0
- package/api/FormBasicInGroupApi.d.mts +1 -0
- package/api/FormInGroupApi.d.mts +2 -1
- package/api/FormTemplateApi.d.mts +2 -0
- package/api.d.mts +0 -8
- package/api.mjs +0 -8
- package/cardinal-sdk-ts.d.mts +61 -30
- package/cardinal-sdk-ts.mjs +39682 -39198
- package/cardinal-sdk.mjs +100830 -98348
- package/filters/DocumentFilters.d.mts +18 -0
- package/filters/DocumentFilters.mjs +7 -1
- package/filters/FormTemplateFilters.d.mts +7 -0
- package/filters/FormTemplateFilters.mjs +5 -0
- package/filters/MessageFilters.d.mts +18 -0
- package/filters/MessageFilters.mjs +7 -1
- package/filters.d.mts +1 -2
- package/filters.mjs +1 -2
- package/kotlin-kotlin-stdlib.mjs +4 -4
- package/kotlinx-coroutines-core.mjs +1 -1
- package/model/CalendarItem.d.mts +22 -0
- package/model/CalendarItem.mjs +83 -0
- package/model/Code.d.mts +1 -1
- package/model/Code.mjs +4 -5
- package/model/Device.d.mts +1 -1
- package/model/Device.mjs +4 -5
- package/model/Group.d.mts +15 -0
- package/model/Group.mjs +69 -0
- package/model/HealthElement.d.mts +3 -0
- package/model/HealthElement.mjs +12 -0
- package/model/HealthcareParty.d.mts +2 -2
- package/model/HealthcareParty.mjs +7 -9
- package/model/Message.d.mts +4 -0
- package/model/Message.mjs +11 -0
- package/model/Patient.d.mts +3 -2
- package/model/Patient.mjs +8 -10
- package/model/User.d.mts +2 -0
- package/model/User.mjs +12 -0
- package/model/base/CryptoActor.mjs +4 -4
- package/model/embed/form/template/Field.d.mts +1 -1
- package/model/embed/form/template/StructureElement.mjs +5 -5
- package/model/filter/predicate/Predicate.d.mts +1 -1
- package/model/filter/predicate/Predicate.mjs +1 -1
- package/model.d.mts +0 -18
- package/model.mjs +0 -18
- package/package.json +1 -1
- package/sdk/CardinalSdk.d.mts +0 -24
- package/api/ApplicationSettingsApi.d.mts +0 -6
- package/api/ApplicationSettingsApi.mjs +0 -1
- package/api/DocumentTemplateApi.d.mts +0 -22
- package/api/DocumentTemplateApi.mjs +0 -1
- package/api/EntityReferenceApi.d.mts +0 -5
- package/api/EntityReferenceApi.mjs +0 -1
- package/api/EntityTemplateApi.d.mts +0 -24
- package/api/EntityTemplateApi.mjs +0 -1
- package/api/KeywordApi.d.mts +0 -14
- package/api/KeywordApi.mjs +0 -1
- package/api/MedicalLocationApi.d.mts +0 -17
- package/api/MedicalLocationApi.mjs +0 -1
- package/api/TarificationApi.d.mts +0 -27
- package/api/TarificationApi.mjs +0 -1
- package/api/TimeTableApi.d.mts +0 -26
- package/api/TimeTableApi.mjs +0 -1
- package/filters/MedicalLocationFilters.d.mts +0 -8
- package/filters/MedicalLocationFilters.mjs +0 -6
- package/filters/TimeTableFilters.d.mts +0 -12
- package/filters/TimeTableFilters.mjs +0 -6
- package/model/ApplicationSettings.d.mts +0 -87
- package/model/ApplicationSettings.mjs +0 -256
- package/model/DocumentTemplate.d.mts +0 -35
- package/model/DocumentTemplate.mjs +0 -162
- package/model/EntityReference.d.mts +0 -10
- package/model/EntityReference.mjs +0 -46
- package/model/EntityTemplate.d.mts +0 -16
- package/model/EntityTemplate.mjs +0 -81
- package/model/Keyword.d.mts +0 -23
- package/model/Keyword.mjs +0 -99
- package/model/ListOfIds.d.mts +0 -6
- package/model/ListOfIds.mjs +0 -28
- package/model/MedicalLocation.d.mts +0 -28
- package/model/MedicalLocation.mjs +0 -116
- package/model/Tarification.d.mts +0 -50
- package/model/Tarification.mjs +0 -178
- package/model/TimeTable.d.mts +0 -25
- package/model/TimeTable.mjs +0 -111
- package/model/base/AppendixType.d.mts +0 -5
- package/model/base/AppendixType.mjs +0 -7
- package/model/base/CodeFlag.d.mts +0 -80
- package/model/base/CodeFlag.mjs +0 -82
- package/model/base/ReportVersion.d.mts +0 -3
- package/model/base/ReportVersion.mjs +0 -5
- package/model/embed/KeywordSubword.d.mts +0 -8
- package/model/embed/KeywordSubword.mjs +0 -35
- package/model/embed/LetterValue.d.mts +0 -9
- package/model/embed/LetterValue.mjs +0 -47
- package/model/embed/Periodicity.d.mts +0 -8
- package/model/embed/Periodicity.mjs +0 -36
- package/model/embed/TimeTableHour.d.mts +0 -7
- package/model/embed/TimeTableHour.mjs +0 -35
- package/model/embed/TimeTableItem.d.mts +0 -19
- package/model/embed/TimeTableItem.mjs +0 -96
- package/model/embed/Valorisation.d.mts +0 -56
- 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
|
-
}
|