@icure/cardinal-sdk 3.0.0-PREVIEW-2 → 3.0.0-PREVIEW-4
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/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/api/ApplicationSettingsApi.d.mts +6 -0
- package/api/ApplicationSettingsApi.mjs +1 -0
- package/api/CryptoApi.d.mts +23 -0
- package/api/DataOwnerApi.d.mts +107 -0
- package/api/DocumentTemplateApi.d.mts +22 -0
- package/api/DocumentTemplateApi.mjs +1 -0
- package/api/EntityReferenceApi.d.mts +5 -0
- package/api/EntityReferenceApi.mjs +1 -0
- package/api/EntityTemplateApi.d.mts +24 -0
- package/api/EntityTemplateApi.mjs +1 -0
- package/api/HealthcarePartyApi.d.mts +10 -0
- package/api/KeywordApi.d.mts +14 -0
- package/api/KeywordApi.mjs +1 -0
- package/api/MedicalLocationApi.d.mts +17 -0
- package/api/MedicalLocationApi.mjs +1 -0
- package/api/TarificationApi.d.mts +27 -0
- package/api/TarificationApi.mjs +1 -0
- package/api/TimeTableApi.d.mts +26 -0
- package/api/TimeTableApi.mjs +1 -0
- package/cardinal-sdk-ts.mjs +43382 -42838
- package/cardinal-sdk.mjs +111008 -107369
- package/crypto/CryptoStrategies.d.mts +44 -8
- package/crypto/CryptoStrategies.mjs +41 -7
- package/crypto/entities/BulkShareByIdsResult.d.mts +31 -17
- package/crypto/entities/BulkShareByIdsResult.mjs +5 -5
- package/crypto/entities/FailedRequestDetails.d.mts +13 -9
- package/crypto/entities/FailedRequestDetails.mjs +10 -7
- package/crypto/entities/SecretIdShareOptions.d.mts +4 -0
- package/crypto/entities/SecretIdShareOptions.mjs +4 -0
- package/crypto/entities/SecretIdUseOption.d.mts +5 -0
- package/crypto/entities/ShareAllPatientDataOptions.d.mts +49 -0
- package/crypto/entities/ShareAllPatientDataOptions.mjs +58 -0
- package/crypto/entities/ShareRequestPurpose.d.mts +12 -0
- package/crypto/entities/ShareRequestPurpose.mjs +14 -0
- package/crypto/entities/ShareRequestSummary.d.mts +51 -0
- package/crypto/entities/ShareRequestSummary.mjs +21 -0
- package/crypto/entities/SharedSecretIdsSource.d.mts +8 -0
- package/crypto/entities/SharedSecretIdsSource.mjs +10 -0
- package/crypto/entities/SuccessfulRequestDetails.d.mts +22 -0
- package/crypto/entities/SuccessfulRequestDetails.mjs +11 -0
- package/crypto.d.mts +4 -1
- package/crypto.mjs +4 -1
- package/filters/ClassificationFilters.d.mts +27 -0
- package/filters/ClassificationFilters.mjs +8 -0
- package/filters/MedicalLocationFilters.d.mts +8 -0
- package/filters/MedicalLocationFilters.mjs +6 -0
- package/filters/TimeTableFilters.d.mts +12 -0
- package/filters/TimeTableFilters.mjs +6 -0
- package/kotlin-kotlin-stdlib.mjs +33 -16
- package/kotlinx-coroutines-core.mjs +8 -8
- package/model/ApplicationSettings.d.mts +87 -0
- package/model/ApplicationSettings.mjs +256 -0
- package/model/DocumentTemplate.d.mts +35 -0
- package/model/DocumentTemplate.mjs +162 -0
- package/model/EntityReference.d.mts +10 -0
- package/model/EntityReference.mjs +46 -0
- package/model/EntityTemplate.d.mts +16 -0
- package/model/EntityTemplate.mjs +81 -0
- package/model/GroupScoped.d.mts +18 -0
- package/model/Keyword.d.mts +23 -0
- package/model/Keyword.mjs +99 -0
- package/model/ListOfIds.d.mts +6 -0
- package/model/ListOfIds.mjs +28 -0
- package/model/MedicalLocation.d.mts +28 -0
- package/model/MedicalLocation.mjs +116 -0
- package/model/PaginatedDocumentKeyIdPair.d.mts +0 -1
- package/model/PaginatedDocumentKeyIdPair.mjs +0 -1
- package/model/Tarification.d.mts +50 -0
- package/model/Tarification.mjs +178 -0
- package/model/TimeTable.d.mts +25 -0
- package/model/TimeTable.mjs +111 -0
- package/model/base/AppendixType.d.mts +5 -0
- package/model/base/AppendixType.mjs +7 -0
- package/model/base/CodeFlag.d.mts +80 -0
- package/model/base/CodeFlag.mjs +82 -0
- package/model/base/ReportVersion.d.mts +3 -0
- package/model/base/ReportVersion.mjs +5 -0
- package/model/embed/HealthElementAsserter.d.mts +30 -1
- package/model/embed/HealthElementAsserter.mjs +41 -1
- package/model/embed/KeywordSubword.d.mts +8 -0
- package/model/embed/KeywordSubword.mjs +35 -0
- package/model/embed/LetterValue.d.mts +9 -0
- package/model/embed/LetterValue.mjs +47 -0
- package/model/embed/Periodicity.d.mts +8 -0
- package/model/embed/Periodicity.mjs +36 -0
- package/model/embed/TimeTableHour.d.mts +7 -0
- package/model/embed/TimeTableHour.mjs +35 -0
- package/model/embed/TimeTableItem.d.mts +19 -0
- package/model/embed/TimeTableItem.mjs +96 -0
- package/model/embed/Valorisation.d.mts +56 -0
- package/model/embed/Valorisation.mjs +188 -0
- package/package.json +1 -1
- package/subscription/EntitySubscriptionEvent.d.mts +3 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
export var CodeFlag;
|
|
3
|
+
(function (CodeFlag) {
|
|
4
|
+
CodeFlag["MaleOnly"] = "MaleOnly";
|
|
5
|
+
CodeFlag["FemaleOnly"] = "FemaleOnly";
|
|
6
|
+
CodeFlag["Deptkinesitherapy"] = "Deptkinesitherapy";
|
|
7
|
+
CodeFlag["Deptnursing"] = "Deptnursing";
|
|
8
|
+
CodeFlag["Deptgeneralpractice"] = "Deptgeneralpractice";
|
|
9
|
+
CodeFlag["Deptsocialworker"] = "Deptsocialworker";
|
|
10
|
+
CodeFlag["Deptpsychology"] = "Deptpsychology";
|
|
11
|
+
CodeFlag["Deptadministrative"] = "Deptadministrative";
|
|
12
|
+
CodeFlag["Deptdietetics"] = "Deptdietetics";
|
|
13
|
+
CodeFlag["Deptspeechtherapy"] = "Deptspeechtherapy";
|
|
14
|
+
CodeFlag["Deptdentistry"] = "Deptdentistry";
|
|
15
|
+
CodeFlag["Deptoccupationaltherapy"] = "Deptoccupationaltherapy";
|
|
16
|
+
CodeFlag["Depthealthcare"] = "Depthealthcare";
|
|
17
|
+
CodeFlag["Deptgynecology"] = "Deptgynecology";
|
|
18
|
+
CodeFlag["Deptpediatry"] = "Deptpediatry";
|
|
19
|
+
CodeFlag["Deptalgology"] = "Deptalgology";
|
|
20
|
+
CodeFlag["Deptanatomopathology"] = "Deptanatomopathology";
|
|
21
|
+
CodeFlag["Deptanesthesiology"] = "Deptanesthesiology";
|
|
22
|
+
CodeFlag["Deptbacteriology"] = "Deptbacteriology";
|
|
23
|
+
CodeFlag["Deptcardiacsurgery"] = "Deptcardiacsurgery";
|
|
24
|
+
CodeFlag["Deptcardiology"] = "Deptcardiology";
|
|
25
|
+
CodeFlag["Deptchildandadolescentpsychiatry"] = "Deptchildandadolescentpsychiatry";
|
|
26
|
+
CodeFlag["Deptdermatology"] = "Deptdermatology";
|
|
27
|
+
CodeFlag["Deptdiabetology"] = "Deptdiabetology";
|
|
28
|
+
CodeFlag["Deptemergency"] = "Deptemergency";
|
|
29
|
+
CodeFlag["Deptendocrinology"] = "Deptendocrinology";
|
|
30
|
+
CodeFlag["Deptgastroenterology"] = "Deptgastroenterology";
|
|
31
|
+
CodeFlag["Deptgenetics"] = "Deptgenetics";
|
|
32
|
+
CodeFlag["Deptgeriatry"] = "Deptgeriatry";
|
|
33
|
+
CodeFlag["Depthandsurgery"] = "Depthandsurgery";
|
|
34
|
+
CodeFlag["Depthematology"] = "Depthematology";
|
|
35
|
+
CodeFlag["Deptinfectiousdisease"] = "Deptinfectiousdisease";
|
|
36
|
+
CodeFlag["Deptintensivecare"] = "Deptintensivecare";
|
|
37
|
+
CodeFlag["Deptlaboratory"] = "Deptlaboratory";
|
|
38
|
+
CodeFlag["Deptmajorburns"] = "Deptmajorburns";
|
|
39
|
+
CodeFlag["Deptmaxillofacialsurgery"] = "Deptmaxillofacialsurgery";
|
|
40
|
+
CodeFlag["Deptmedicine"] = "Deptmedicine";
|
|
41
|
+
CodeFlag["Deptmolecularbiology"] = "Deptmolecularbiology";
|
|
42
|
+
CodeFlag["Deptneonatalogy"] = "Deptneonatalogy";
|
|
43
|
+
CodeFlag["Deptnephrology"] = "Deptnephrology";
|
|
44
|
+
CodeFlag["Deptneurology"] = "Deptneurology";
|
|
45
|
+
CodeFlag["Deptneurosurgery"] = "Deptneurosurgery";
|
|
46
|
+
CodeFlag["Deptnte"] = "Deptnte";
|
|
47
|
+
CodeFlag["Deptnuclear"] = "Deptnuclear";
|
|
48
|
+
CodeFlag["Deptnutritiondietetics"] = "Deptnutritiondietetics";
|
|
49
|
+
CodeFlag["Deptobstetrics"] = "Deptobstetrics";
|
|
50
|
+
CodeFlag["Deptoncology"] = "Deptoncology";
|
|
51
|
+
CodeFlag["Deptophtalmology"] = "Deptophtalmology";
|
|
52
|
+
CodeFlag["Deptorthopedy"] = "Deptorthopedy";
|
|
53
|
+
CodeFlag["Deptpalliativecare"] = "Deptpalliativecare";
|
|
54
|
+
CodeFlag["Deptpediatricintensivecare"] = "Deptpediatricintensivecare";
|
|
55
|
+
CodeFlag["Deptpediatricsurgery"] = "Deptpediatricsurgery";
|
|
56
|
+
CodeFlag["Deptpharmacy"] = "Deptpharmacy";
|
|
57
|
+
CodeFlag["Deptphysicalmedecine"] = "Deptphysicalmedecine";
|
|
58
|
+
CodeFlag["Deptphysiotherapy"] = "Deptphysiotherapy";
|
|
59
|
+
CodeFlag["Deptplasticandreparatorysurgery"] = "Deptplasticandreparatorysurgery";
|
|
60
|
+
CodeFlag["Deptpneumology"] = "Deptpneumology";
|
|
61
|
+
CodeFlag["Deptpodiatry"] = "Deptpodiatry";
|
|
62
|
+
CodeFlag["Deptpsychiatry"] = "Deptpsychiatry";
|
|
63
|
+
CodeFlag["Deptradiology"] = "Deptradiology";
|
|
64
|
+
CodeFlag["Deptradiotherapy"] = "Deptradiotherapy";
|
|
65
|
+
CodeFlag["Deptrevalidation"] = "Deptrevalidation";
|
|
66
|
+
CodeFlag["Deptrheumatology"] = "Deptrheumatology";
|
|
67
|
+
CodeFlag["Deptrhumatology"] = "Deptrhumatology";
|
|
68
|
+
CodeFlag["Deptsenology"] = "Deptsenology";
|
|
69
|
+
CodeFlag["Deptsocialservice"] = "Deptsocialservice";
|
|
70
|
+
CodeFlag["Deptsportsmedecine"] = "Deptsportsmedecine";
|
|
71
|
+
CodeFlag["Deptstomatology"] = "Deptstomatology";
|
|
72
|
+
CodeFlag["Deptsurgery"] = "Deptsurgery";
|
|
73
|
+
CodeFlag["Deptthoracicsurgery"] = "Deptthoracicsurgery";
|
|
74
|
+
CodeFlag["Depttoxicology"] = "Depttoxicology";
|
|
75
|
+
CodeFlag["Depttropicalmedecine"] = "Depttropicalmedecine";
|
|
76
|
+
CodeFlag["Depturology"] = "Depturology";
|
|
77
|
+
CodeFlag["Deptvascularsurgery"] = "Deptvascularsurgery";
|
|
78
|
+
CodeFlag["Deptvisceraldigestiveabdominalsurgery"] = "Deptvisceraldigestiveabdominalsurgery";
|
|
79
|
+
CodeFlag["Depttransplantsurgery"] = "Depttransplantsurgery";
|
|
80
|
+
CodeFlag["Deptpercutaneous"] = "Deptpercutaneous";
|
|
81
|
+
CodeFlag["Deptchildbirth"] = "Deptchildbirth";
|
|
82
|
+
})(CodeFlag || (CodeFlag = {}));
|
|
@@ -59,7 +59,7 @@ export declare class HealthElementAsserter {
|
|
|
59
59
|
* party is named by
|
|
60
60
|
* [localAsserterIdentifier]. Carries no [AsserterTypeDto].
|
|
61
61
|
*/
|
|
62
|
-
externalAsserterIdentifier:
|
|
62
|
+
externalAsserterIdentifier: HealthElementAsserter.ExternalAsserterIdentifier | undefined;
|
|
63
63
|
constructor(partial: Partial<HealthElementAsserter>);
|
|
64
64
|
toJSON(): object;
|
|
65
65
|
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): HealthElementAsserter;
|
|
@@ -88,4 +88,33 @@ export declare namespace HealthElementAsserter {
|
|
|
88
88
|
toJSON(): object;
|
|
89
89
|
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): LocalAsserterIdentifier;
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
* The party making the assertion, when it has no record in this iCure instance.
|
|
95
|
+
*
|
|
96
|
+
* The party is named by a business [identifier] issued by another system: a national registry
|
|
97
|
+
* number, an entry in
|
|
98
|
+
* the sending hospital's directory, and so on. Because the record lives elsewhere there is no
|
|
99
|
+
* [AsserterTypeDto]
|
|
100
|
+
* here - the kind of a record we do not store is not knowable to us. The wrapper around the
|
|
101
|
+
* [IdentifierDto] mirrors
|
|
102
|
+
* [LocalAsserterIdentifier] on the other branch, and is where anything specific to an external
|
|
103
|
+
* asserter would go:
|
|
104
|
+
* [IdentifierDto] itself is shared by every `identifiers` field in the model and cannot carry it.
|
|
105
|
+
*/
|
|
106
|
+
class ExternalAsserterIdentifier {
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* The business identifier of the party in the system that issued it. `system` names that issuing
|
|
111
|
+
* system and
|
|
112
|
+
* `value` is the party's identifier within it; together they are what makes the party
|
|
113
|
+
* resolvable.
|
|
114
|
+
*/
|
|
115
|
+
identifier: Identifier;
|
|
116
|
+
constructor(partial: Partial<ExternalAsserterIdentifier> & Pick<ExternalAsserterIdentifier, "identifier">);
|
|
117
|
+
toJSON(): object;
|
|
118
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): ExternalAsserterIdentifier;
|
|
119
|
+
}
|
|
91
120
|
}
|
|
@@ -83,7 +83,7 @@ export class HealthElementAsserter {
|
|
|
83
83
|
const jCpy = Object.assign({}, json);
|
|
84
84
|
const res = new HealthElementAsserter({
|
|
85
85
|
localAsserterIdentifier: expectObject(extractEntry(jCpy, 'localAsserterIdentifier', false, path), true, ignoreUnknownKeys, [...path, ".localAsserterIdentifier"], HealthElementAsserter.LocalAsserterIdentifier.fromJSON),
|
|
86
|
-
externalAsserterIdentifier: expectObject(extractEntry(jCpy, 'externalAsserterIdentifier', false, path), true, ignoreUnknownKeys, [...path, ".externalAsserterIdentifier"],
|
|
86
|
+
externalAsserterIdentifier: expectObject(extractEntry(jCpy, 'externalAsserterIdentifier', false, path), true, ignoreUnknownKeys, [...path, ".externalAsserterIdentifier"], HealthElementAsserter.ExternalAsserterIdentifier.fromJSON),
|
|
87
87
|
});
|
|
88
88
|
if (!ignoreUnknownKeys) {
|
|
89
89
|
const unused = Object.keys(jCpy);
|
|
@@ -128,4 +128,44 @@ export class HealthElementAsserter {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
HealthElementAsserter.LocalAsserterIdentifier = LocalAsserterIdentifier;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
*
|
|
134
|
+
* The party making the assertion, when it has no record in this iCure instance.
|
|
135
|
+
*
|
|
136
|
+
* The party is named by a business [identifier] issued by another system: a national registry
|
|
137
|
+
* number, an entry in
|
|
138
|
+
* the sending hospital's directory, and so on. Because the record lives elsewhere there is no
|
|
139
|
+
* [AsserterTypeDto]
|
|
140
|
+
* here - the kind of a record we do not store is not knowable to us. The wrapper around the
|
|
141
|
+
* [IdentifierDto] mirrors
|
|
142
|
+
* [LocalAsserterIdentifier] on the other branch, and is where anything specific to an external
|
|
143
|
+
* asserter would go:
|
|
144
|
+
* [IdentifierDto] itself is shared by every `identifiers` field in the model and cannot carry it.
|
|
145
|
+
*/
|
|
146
|
+
class ExternalAsserterIdentifier {
|
|
147
|
+
constructor(partial) {
|
|
148
|
+
this.identifier = partial.identifier;
|
|
149
|
+
}
|
|
150
|
+
toJSON() {
|
|
151
|
+
const res = {};
|
|
152
|
+
res['identifier'] = this.identifier.toJSON();
|
|
153
|
+
return res;
|
|
154
|
+
}
|
|
155
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['ExternalAsserterIdentifier']) {
|
|
156
|
+
if (typeof json != 'object')
|
|
157
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
158
|
+
const jCpy = Object.assign({}, json);
|
|
159
|
+
const res = new ExternalAsserterIdentifier({
|
|
160
|
+
identifier: expectObject(extractEntry(jCpy, 'identifier', true, path), false, ignoreUnknownKeys, [...path, ".identifier"], Identifier.fromJSON),
|
|
161
|
+
});
|
|
162
|
+
if (!ignoreUnknownKeys) {
|
|
163
|
+
const unused = Object.keys(jCpy);
|
|
164
|
+
if (unused.length > 0)
|
|
165
|
+
throw new Error(`Unexpected key(s) for json object ExternalAsserterIdentifier at path ${path.join("")}: ${unused}`);
|
|
166
|
+
}
|
|
167
|
+
return res;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
HealthElementAsserter.ExternalAsserterIdentifier = ExternalAsserterIdentifier;
|
|
131
171
|
})(HealthElementAsserter || (HealthElementAsserter = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KeywordSubword as KeywordSubword_ } from './KeywordSubword.mjs';
|
|
2
|
+
export declare class KeywordSubword {
|
|
3
|
+
value: string | undefined;
|
|
4
|
+
subWords: Array<KeywordSubword_> | undefined;
|
|
5
|
+
constructor(partial: Partial<KeywordSubword>);
|
|
6
|
+
toJSON(): object;
|
|
7
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): KeywordSubword;
|
|
8
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectArray, expectObject, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
|
+
export class KeywordSubword {
|
|
4
|
+
constructor(partial) {
|
|
5
|
+
this.value = undefined;
|
|
6
|
+
this.subWords = undefined;
|
|
7
|
+
if ('value' in partial)
|
|
8
|
+
this.value = partial.value;
|
|
9
|
+
if ('subWords' in partial)
|
|
10
|
+
this.subWords = partial.subWords;
|
|
11
|
+
}
|
|
12
|
+
toJSON() {
|
|
13
|
+
const res = {};
|
|
14
|
+
if (this.value != undefined)
|
|
15
|
+
res['value'] = this.value;
|
|
16
|
+
if (this.subWords != undefined)
|
|
17
|
+
res['subWords'] = this.subWords.map((x0) => x0.toJSON());
|
|
18
|
+
return res;
|
|
19
|
+
}
|
|
20
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['KeywordSubword']) {
|
|
21
|
+
if (typeof json != 'object')
|
|
22
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
23
|
+
const jCpy = Object.assign({}, json);
|
|
24
|
+
const res = new KeywordSubword({
|
|
25
|
+
value: expectString(extractEntry(jCpy, 'value', false, path), true, [...path, ".value"]),
|
|
26
|
+
subWords: expectArray(extractEntry(jCpy, 'subWords', false, path), true, [...path, ".subWords"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, KeywordSubword.fromJSON)),
|
|
27
|
+
});
|
|
28
|
+
if (!ignoreUnknownKeys) {
|
|
29
|
+
const unused = Object.keys(jCpy);
|
|
30
|
+
if (unused.length > 0)
|
|
31
|
+
throw new Error(`Unexpected key(s) for json object KeywordSubword at path ${path.join("")}: ${unused}`);
|
|
32
|
+
}
|
|
33
|
+
return res;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class LetterValue {
|
|
2
|
+
letter: string | undefined;
|
|
3
|
+
index: string | undefined;
|
|
4
|
+
coefficient: number | undefined;
|
|
5
|
+
value: number | undefined;
|
|
6
|
+
constructor(partial: Partial<LetterValue>);
|
|
7
|
+
toJSON(): object;
|
|
8
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): LetterValue;
|
|
9
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectNumber, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
|
+
export class LetterValue {
|
|
4
|
+
constructor(partial) {
|
|
5
|
+
this.letter = undefined;
|
|
6
|
+
this.index = undefined;
|
|
7
|
+
this.coefficient = undefined;
|
|
8
|
+
this.value = undefined;
|
|
9
|
+
if ('letter' in partial)
|
|
10
|
+
this.letter = partial.letter;
|
|
11
|
+
if ('index' in partial)
|
|
12
|
+
this.index = partial.index;
|
|
13
|
+
if ('coefficient' in partial)
|
|
14
|
+
this.coefficient = partial.coefficient;
|
|
15
|
+
if ('value' in partial)
|
|
16
|
+
this.value = partial.value;
|
|
17
|
+
}
|
|
18
|
+
toJSON() {
|
|
19
|
+
const res = {};
|
|
20
|
+
if (this.letter != undefined)
|
|
21
|
+
res['letter'] = this.letter;
|
|
22
|
+
if (this.index != undefined)
|
|
23
|
+
res['index'] = this.index;
|
|
24
|
+
if (this.coefficient != undefined)
|
|
25
|
+
res['coefficient'] = this.coefficient;
|
|
26
|
+
if (this.value != undefined)
|
|
27
|
+
res['value'] = this.value;
|
|
28
|
+
return res;
|
|
29
|
+
}
|
|
30
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['LetterValue']) {
|
|
31
|
+
if (typeof json != 'object')
|
|
32
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
33
|
+
const jCpy = Object.assign({}, json);
|
|
34
|
+
const res = new LetterValue({
|
|
35
|
+
letter: expectString(extractEntry(jCpy, 'letter', false, path), true, [...path, ".letter"]),
|
|
36
|
+
index: expectString(extractEntry(jCpy, 'index', false, path), true, [...path, ".index"]),
|
|
37
|
+
coefficient: expectNumber(extractEntry(jCpy, 'coefficient', false, path), true, false, [...path, ".coefficient"]),
|
|
38
|
+
value: expectNumber(extractEntry(jCpy, 'value', false, path), true, false, [...path, ".value"]),
|
|
39
|
+
});
|
|
40
|
+
if (!ignoreUnknownKeys) {
|
|
41
|
+
const unused = Object.keys(jCpy);
|
|
42
|
+
if (unused.length > 0)
|
|
43
|
+
throw new Error(`Unexpected key(s) for json object LetterValue at path ${path.join("")}: ${unused}`);
|
|
44
|
+
}
|
|
45
|
+
return res;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CodeStub } from '../base/CodeStub.mjs';
|
|
2
|
+
export declare class Periodicity {
|
|
3
|
+
relatedCode: CodeStub | undefined;
|
|
4
|
+
relatedPeriodicity: CodeStub | undefined;
|
|
5
|
+
constructor(partial: Partial<Periodicity>);
|
|
6
|
+
toJSON(): object;
|
|
7
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): Periodicity;
|
|
8
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectObject, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
|
+
import { CodeStub } from '../base/CodeStub.mjs';
|
|
4
|
+
export class Periodicity {
|
|
5
|
+
constructor(partial) {
|
|
6
|
+
this.relatedCode = undefined;
|
|
7
|
+
this.relatedPeriodicity = undefined;
|
|
8
|
+
if ('relatedCode' in partial)
|
|
9
|
+
this.relatedCode = partial.relatedCode;
|
|
10
|
+
if ('relatedPeriodicity' in partial)
|
|
11
|
+
this.relatedPeriodicity = partial.relatedPeriodicity;
|
|
12
|
+
}
|
|
13
|
+
toJSON() {
|
|
14
|
+
const res = {};
|
|
15
|
+
if (this.relatedCode != undefined)
|
|
16
|
+
res['relatedCode'] = this.relatedCode.toJSON();
|
|
17
|
+
if (this.relatedPeriodicity != undefined)
|
|
18
|
+
res['relatedPeriodicity'] = this.relatedPeriodicity.toJSON();
|
|
19
|
+
return res;
|
|
20
|
+
}
|
|
21
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['Periodicity']) {
|
|
22
|
+
if (typeof json != 'object')
|
|
23
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
24
|
+
const jCpy = Object.assign({}, json);
|
|
25
|
+
const res = new Periodicity({
|
|
26
|
+
relatedCode: expectObject(extractEntry(jCpy, 'relatedCode', false, path), true, ignoreUnknownKeys, [...path, ".relatedCode"], CodeStub.fromJSON),
|
|
27
|
+
relatedPeriodicity: expectObject(extractEntry(jCpy, 'relatedPeriodicity', false, path), true, ignoreUnknownKeys, [...path, ".relatedPeriodicity"], CodeStub.fromJSON),
|
|
28
|
+
});
|
|
29
|
+
if (!ignoreUnknownKeys) {
|
|
30
|
+
const unused = Object.keys(jCpy);
|
|
31
|
+
if (unused.length > 0)
|
|
32
|
+
throw new Error(`Unexpected key(s) for json object Periodicity at path ${path.join("")}: ${unused}`);
|
|
33
|
+
}
|
|
34
|
+
return res;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class TimeTableHour {
|
|
2
|
+
startHour: number | undefined;
|
|
3
|
+
endHour: number | undefined;
|
|
4
|
+
constructor(partial: Partial<TimeTableHour>);
|
|
5
|
+
toJSON(): object;
|
|
6
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): TimeTableHour;
|
|
7
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectNumber, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
|
+
export class TimeTableHour {
|
|
4
|
+
constructor(partial) {
|
|
5
|
+
this.startHour = undefined;
|
|
6
|
+
this.endHour = undefined;
|
|
7
|
+
if ('startHour' in partial)
|
|
8
|
+
this.startHour = partial.startHour;
|
|
9
|
+
if ('endHour' in partial)
|
|
10
|
+
this.endHour = partial.endHour;
|
|
11
|
+
}
|
|
12
|
+
toJSON() {
|
|
13
|
+
const res = {};
|
|
14
|
+
if (this.startHour != undefined)
|
|
15
|
+
res['startHour'] = this.startHour;
|
|
16
|
+
if (this.endHour != undefined)
|
|
17
|
+
res['endHour'] = this.endHour;
|
|
18
|
+
return res;
|
|
19
|
+
}
|
|
20
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['TimeTableHour']) {
|
|
21
|
+
if (typeof json != 'object')
|
|
22
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
23
|
+
const jCpy = Object.assign({}, json);
|
|
24
|
+
const res = new TimeTableHour({
|
|
25
|
+
startHour: expectNumber(extractEntry(jCpy, 'startHour', false, path), true, true, [...path, ".startHour"]),
|
|
26
|
+
endHour: expectNumber(extractEntry(jCpy, 'endHour', false, path), true, true, [...path, ".endHour"]),
|
|
27
|
+
});
|
|
28
|
+
if (!ignoreUnknownKeys) {
|
|
29
|
+
const unused = Object.keys(jCpy);
|
|
30
|
+
if (unused.length > 0)
|
|
31
|
+
throw new Error(`Unexpected key(s) for json object TimeTableHour at path ${path.join("")}: ${unused}`);
|
|
32
|
+
}
|
|
33
|
+
return res;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TimeTableHour } from './TimeTableHour.mjs';
|
|
2
|
+
export declare class TimeTableItem {
|
|
3
|
+
rruleStartDate: number | undefined;
|
|
4
|
+
rrule: string | undefined;
|
|
5
|
+
notBeforeInMinutes: number | undefined;
|
|
6
|
+
notAfterInMinutes: number | undefined;
|
|
7
|
+
zoneId: string | undefined;
|
|
8
|
+
hours: Array<TimeTableHour>;
|
|
9
|
+
calendarItemTypeId: string | undefined;
|
|
10
|
+
homeVisit: boolean;
|
|
11
|
+
placeId: string | undefined;
|
|
12
|
+
publicTimeTableItem: boolean;
|
|
13
|
+
acceptsNewPatient: boolean;
|
|
14
|
+
unavailable: boolean;
|
|
15
|
+
reservingRights: Array<string>;
|
|
16
|
+
constructor(partial: Partial<TimeTableItem>);
|
|
17
|
+
toJSON(): object;
|
|
18
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): TimeTableItem;
|
|
19
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// auto-generated file
|
|
2
|
+
import { expectArray, expectBoolean, expectNumber, expectObject, expectString, extractEntry } from '../../internal/JsonDecodeUtils.mjs';
|
|
3
|
+
import { TimeTableHour } from './TimeTableHour.mjs';
|
|
4
|
+
export class TimeTableItem {
|
|
5
|
+
constructor(partial) {
|
|
6
|
+
this.rruleStartDate = undefined;
|
|
7
|
+
this.rrule = undefined;
|
|
8
|
+
this.notBeforeInMinutes = undefined;
|
|
9
|
+
this.notAfterInMinutes = undefined;
|
|
10
|
+
this.zoneId = undefined;
|
|
11
|
+
this.hours = [];
|
|
12
|
+
this.calendarItemTypeId = undefined;
|
|
13
|
+
this.homeVisit = false;
|
|
14
|
+
this.placeId = undefined;
|
|
15
|
+
this.publicTimeTableItem = false;
|
|
16
|
+
this.acceptsNewPatient = true;
|
|
17
|
+
this.unavailable = false;
|
|
18
|
+
this.reservingRights = [];
|
|
19
|
+
if ('rruleStartDate' in partial)
|
|
20
|
+
this.rruleStartDate = partial.rruleStartDate;
|
|
21
|
+
if ('rrule' in partial)
|
|
22
|
+
this.rrule = partial.rrule;
|
|
23
|
+
if ('notBeforeInMinutes' in partial)
|
|
24
|
+
this.notBeforeInMinutes = partial.notBeforeInMinutes;
|
|
25
|
+
if ('notAfterInMinutes' in partial)
|
|
26
|
+
this.notAfterInMinutes = partial.notAfterInMinutes;
|
|
27
|
+
if ('zoneId' in partial)
|
|
28
|
+
this.zoneId = partial.zoneId;
|
|
29
|
+
if ('hours' in partial && partial.hours !== undefined)
|
|
30
|
+
this.hours = partial.hours;
|
|
31
|
+
if ('calendarItemTypeId' in partial)
|
|
32
|
+
this.calendarItemTypeId = partial.calendarItemTypeId;
|
|
33
|
+
if ('homeVisit' in partial && partial.homeVisit !== undefined)
|
|
34
|
+
this.homeVisit = partial.homeVisit;
|
|
35
|
+
if ('placeId' in partial)
|
|
36
|
+
this.placeId = partial.placeId;
|
|
37
|
+
if ('publicTimeTableItem' in partial && partial.publicTimeTableItem !== undefined)
|
|
38
|
+
this.publicTimeTableItem = partial.publicTimeTableItem;
|
|
39
|
+
if ('acceptsNewPatient' in partial && partial.acceptsNewPatient !== undefined)
|
|
40
|
+
this.acceptsNewPatient = partial.acceptsNewPatient;
|
|
41
|
+
if ('unavailable' in partial && partial.unavailable !== undefined)
|
|
42
|
+
this.unavailable = partial.unavailable;
|
|
43
|
+
if ('reservingRights' in partial && partial.reservingRights !== undefined)
|
|
44
|
+
this.reservingRights = partial.reservingRights;
|
|
45
|
+
}
|
|
46
|
+
toJSON() {
|
|
47
|
+
const res = {};
|
|
48
|
+
if (this.rruleStartDate != undefined)
|
|
49
|
+
res['rruleStartDate'] = this.rruleStartDate;
|
|
50
|
+
if (this.rrule != undefined)
|
|
51
|
+
res['rrule'] = this.rrule;
|
|
52
|
+
if (this.notBeforeInMinutes != undefined)
|
|
53
|
+
res['notBeforeInMinutes'] = this.notBeforeInMinutes;
|
|
54
|
+
if (this.notAfterInMinutes != undefined)
|
|
55
|
+
res['notAfterInMinutes'] = this.notAfterInMinutes;
|
|
56
|
+
if (this.zoneId != undefined)
|
|
57
|
+
res['zoneId'] = this.zoneId;
|
|
58
|
+
res['hours'] = this.hours.map((x0) => x0.toJSON());
|
|
59
|
+
if (this.calendarItemTypeId != undefined)
|
|
60
|
+
res['calendarItemTypeId'] = this.calendarItemTypeId;
|
|
61
|
+
res['homeVisit'] = this.homeVisit;
|
|
62
|
+
if (this.placeId != undefined)
|
|
63
|
+
res['placeId'] = this.placeId;
|
|
64
|
+
res['publicTimeTableItem'] = this.publicTimeTableItem;
|
|
65
|
+
res['acceptsNewPatient'] = this.acceptsNewPatient;
|
|
66
|
+
res['unavailable'] = this.unavailable;
|
|
67
|
+
res['reservingRights'] = this.reservingRights.map((x0) => x0);
|
|
68
|
+
return res;
|
|
69
|
+
}
|
|
70
|
+
static fromJSON(json, ignoreUnknownKeys = false, path = ['TimeTableItem']) {
|
|
71
|
+
if (typeof json != 'object')
|
|
72
|
+
throw new Error(`Expected json object at path ${path.join("")}`);
|
|
73
|
+
const jCpy = Object.assign({}, json);
|
|
74
|
+
const res = new TimeTableItem({
|
|
75
|
+
rruleStartDate: expectNumber(extractEntry(jCpy, 'rruleStartDate', false, path), true, true, [...path, ".rruleStartDate"]),
|
|
76
|
+
rrule: expectString(extractEntry(jCpy, 'rrule', false, path), true, [...path, ".rrule"]),
|
|
77
|
+
notBeforeInMinutes: expectNumber(extractEntry(jCpy, 'notBeforeInMinutes', false, path), true, true, [...path, ".notBeforeInMinutes"]),
|
|
78
|
+
notAfterInMinutes: expectNumber(extractEntry(jCpy, 'notAfterInMinutes', false, path), true, true, [...path, ".notAfterInMinutes"]),
|
|
79
|
+
zoneId: expectString(extractEntry(jCpy, 'zoneId', false, path), true, [...path, ".zoneId"]),
|
|
80
|
+
hours: expectArray(extractEntry(jCpy, 'hours', false, path), false, [...path, ".hours"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, TimeTableHour.fromJSON)),
|
|
81
|
+
calendarItemTypeId: expectString(extractEntry(jCpy, 'calendarItemTypeId', false, path), true, [...path, ".calendarItemTypeId"]),
|
|
82
|
+
homeVisit: expectBoolean(extractEntry(jCpy, 'homeVisit', false, path), false, [...path, ".homeVisit"]),
|
|
83
|
+
placeId: expectString(extractEntry(jCpy, 'placeId', false, path), true, [...path, ".placeId"]),
|
|
84
|
+
publicTimeTableItem: expectBoolean(extractEntry(jCpy, 'publicTimeTableItem', false, path), false, [...path, ".publicTimeTableItem"]),
|
|
85
|
+
acceptsNewPatient: expectBoolean(extractEntry(jCpy, 'acceptsNewPatient', false, path), false, [...path, ".acceptsNewPatient"]),
|
|
86
|
+
unavailable: expectBoolean(extractEntry(jCpy, 'unavailable', false, path), false, [...path, ".unavailable"]),
|
|
87
|
+
reservingRights: expectArray(extractEntry(jCpy, 'reservingRights', false, path), false, [...path, ".reservingRights"], (x0, p0) => expectString(x0, false, p0)),
|
|
88
|
+
});
|
|
89
|
+
if (!ignoreUnknownKeys) {
|
|
90
|
+
const unused = Object.keys(jCpy);
|
|
91
|
+
if (unused.length > 0)
|
|
92
|
+
throw new Error(`Unexpected key(s) for json object TimeTableItem at path ${path.join("")}: ${unused}`);
|
|
93
|
+
}
|
|
94
|
+
return res;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Base64String } from '../specializations/Base64String.mjs';
|
|
2
|
+
import { Encryptable } from './Encryptable.mjs';
|
|
3
|
+
export interface Valorisation extends Encryptable {
|
|
4
|
+
startOfValidity: number | undefined;
|
|
5
|
+
endOfValidity: number | undefined;
|
|
6
|
+
predicate: string | undefined;
|
|
7
|
+
reference: Array<number> | undefined;
|
|
8
|
+
totalAmount: number | undefined;
|
|
9
|
+
reimbursement: number | undefined;
|
|
10
|
+
patientIntervention: number | undefined;
|
|
11
|
+
doctorSupplement: number | undefined;
|
|
12
|
+
vat: number | undefined;
|
|
13
|
+
label: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
} | undefined;
|
|
16
|
+
readonly isEncrypted: boolean;
|
|
17
|
+
toJSON(): object;
|
|
18
|
+
}
|
|
19
|
+
export declare class DecryptedValorisation {
|
|
20
|
+
startOfValidity: number | undefined;
|
|
21
|
+
endOfValidity: number | undefined;
|
|
22
|
+
predicate: string | undefined;
|
|
23
|
+
reference: Array<number> | undefined;
|
|
24
|
+
totalAmount: number | undefined;
|
|
25
|
+
reimbursement: number | undefined;
|
|
26
|
+
patientIntervention: number | undefined;
|
|
27
|
+
doctorSupplement: number | undefined;
|
|
28
|
+
vat: number | undefined;
|
|
29
|
+
label: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
} | undefined;
|
|
32
|
+
encryptedSelf: Base64String | undefined;
|
|
33
|
+
readonly isEncrypted: false;
|
|
34
|
+
constructor(partial: Partial<DecryptedValorisation>);
|
|
35
|
+
toJSON(): object;
|
|
36
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): DecryptedValorisation;
|
|
37
|
+
}
|
|
38
|
+
export declare class EncryptedValorisation {
|
|
39
|
+
startOfValidity: number | undefined;
|
|
40
|
+
endOfValidity: number | undefined;
|
|
41
|
+
predicate: string | undefined;
|
|
42
|
+
reference: Array<number> | undefined;
|
|
43
|
+
totalAmount: number | undefined;
|
|
44
|
+
reimbursement: number | undefined;
|
|
45
|
+
patientIntervention: number | undefined;
|
|
46
|
+
doctorSupplement: number | undefined;
|
|
47
|
+
vat: number | undefined;
|
|
48
|
+
label: {
|
|
49
|
+
[key: string]: string;
|
|
50
|
+
} | undefined;
|
|
51
|
+
encryptedSelf: Base64String | undefined;
|
|
52
|
+
readonly isEncrypted: true;
|
|
53
|
+
constructor(partial: Partial<EncryptedValorisation>);
|
|
54
|
+
toJSON(): object;
|
|
55
|
+
static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array<string>): EncryptedValorisation;
|
|
56
|
+
}
|