@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
@@ -1,7 +0,0 @@
1
- // auto-generated file
2
- export var AppendixType;
3
- (function (AppendixType) {
4
- AppendixType["ExternalLink"] = "ExternalLink";
5
- AppendixType["Video"] = "Video";
6
- AppendixType["Description"] = "Description";
7
- })(AppendixType || (AppendixType = {}));
@@ -1,80 +0,0 @@
1
- export declare enum CodeFlag {
2
- MaleOnly = "MaleOnly",
3
- FemaleOnly = "FemaleOnly",
4
- Deptkinesitherapy = "Deptkinesitherapy",
5
- Deptnursing = "Deptnursing",
6
- Deptgeneralpractice = "Deptgeneralpractice",
7
- Deptsocialworker = "Deptsocialworker",
8
- Deptpsychology = "Deptpsychology",
9
- Deptadministrative = "Deptadministrative",
10
- Deptdietetics = "Deptdietetics",
11
- Deptspeechtherapy = "Deptspeechtherapy",
12
- Deptdentistry = "Deptdentistry",
13
- Deptoccupationaltherapy = "Deptoccupationaltherapy",
14
- Depthealthcare = "Depthealthcare",
15
- Deptgynecology = "Deptgynecology",
16
- Deptpediatry = "Deptpediatry",
17
- Deptalgology = "Deptalgology",
18
- Deptanatomopathology = "Deptanatomopathology",
19
- Deptanesthesiology = "Deptanesthesiology",
20
- Deptbacteriology = "Deptbacteriology",
21
- Deptcardiacsurgery = "Deptcardiacsurgery",
22
- Deptcardiology = "Deptcardiology",
23
- Deptchildandadolescentpsychiatry = "Deptchildandadolescentpsychiatry",
24
- Deptdermatology = "Deptdermatology",
25
- Deptdiabetology = "Deptdiabetology",
26
- Deptemergency = "Deptemergency",
27
- Deptendocrinology = "Deptendocrinology",
28
- Deptgastroenterology = "Deptgastroenterology",
29
- Deptgenetics = "Deptgenetics",
30
- Deptgeriatry = "Deptgeriatry",
31
- Depthandsurgery = "Depthandsurgery",
32
- Depthematology = "Depthematology",
33
- Deptinfectiousdisease = "Deptinfectiousdisease",
34
- Deptintensivecare = "Deptintensivecare",
35
- Deptlaboratory = "Deptlaboratory",
36
- Deptmajorburns = "Deptmajorburns",
37
- Deptmaxillofacialsurgery = "Deptmaxillofacialsurgery",
38
- Deptmedicine = "Deptmedicine",
39
- Deptmolecularbiology = "Deptmolecularbiology",
40
- Deptneonatalogy = "Deptneonatalogy",
41
- Deptnephrology = "Deptnephrology",
42
- Deptneurology = "Deptneurology",
43
- Deptneurosurgery = "Deptneurosurgery",
44
- Deptnte = "Deptnte",
45
- Deptnuclear = "Deptnuclear",
46
- Deptnutritiondietetics = "Deptnutritiondietetics",
47
- Deptobstetrics = "Deptobstetrics",
48
- Deptoncology = "Deptoncology",
49
- Deptophtalmology = "Deptophtalmology",
50
- Deptorthopedy = "Deptorthopedy",
51
- Deptpalliativecare = "Deptpalliativecare",
52
- Deptpediatricintensivecare = "Deptpediatricintensivecare",
53
- Deptpediatricsurgery = "Deptpediatricsurgery",
54
- Deptpharmacy = "Deptpharmacy",
55
- Deptphysicalmedecine = "Deptphysicalmedecine",
56
- Deptphysiotherapy = "Deptphysiotherapy",
57
- Deptplasticandreparatorysurgery = "Deptplasticandreparatorysurgery",
58
- Deptpneumology = "Deptpneumology",
59
- Deptpodiatry = "Deptpodiatry",
60
- Deptpsychiatry = "Deptpsychiatry",
61
- Deptradiology = "Deptradiology",
62
- Deptradiotherapy = "Deptradiotherapy",
63
- Deptrevalidation = "Deptrevalidation",
64
- Deptrheumatology = "Deptrheumatology",
65
- Deptrhumatology = "Deptrhumatology",
66
- Deptsenology = "Deptsenology",
67
- Deptsocialservice = "Deptsocialservice",
68
- Deptsportsmedecine = "Deptsportsmedecine",
69
- Deptstomatology = "Deptstomatology",
70
- Deptsurgery = "Deptsurgery",
71
- Deptthoracicsurgery = "Deptthoracicsurgery",
72
- Depttoxicology = "Depttoxicology",
73
- Depttropicalmedecine = "Depttropicalmedecine",
74
- Depturology = "Depturology",
75
- Deptvascularsurgery = "Deptvascularsurgery",
76
- Deptvisceraldigestiveabdominalsurgery = "Deptvisceraldigestiveabdominalsurgery",
77
- Depttransplantsurgery = "Depttransplantsurgery",
78
- Deptpercutaneous = "Deptpercutaneous",
79
- Deptchildbirth = "Deptchildbirth"
80
- }
@@ -1,82 +0,0 @@
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 = {}));
@@ -1,3 +0,0 @@
1
- export declare enum ReportVersion {
2
- V1_0_0 = "V1_0_0"
3
- }
@@ -1,5 +0,0 @@
1
- // auto-generated file
2
- export var ReportVersion;
3
- (function (ReportVersion) {
4
- ReportVersion["V1_0_0"] = "V1_0_0";
5
- })(ReportVersion || (ReportVersion = {}));
@@ -1,8 +0,0 @@
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
- }
@@ -1,35 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,47 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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
- }
@@ -1,36 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
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
- }
@@ -1,35 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
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
- }
@@ -1,96 +0,0 @@
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
- }
@@ -1,56 +0,0 @@
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
- }