@icure/api 7.1.12 → 7.1.13
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/icc-api/model/models.d.ts +36 -14
- package/icc-api/model/models.js +36 -14
- package/icc-api/model/models.js.map +1 -1
- package/icc-x-api/filters/{PatientByHcPartyGenderEducationProfession.d.ts → PatientByHcPartyGenderEducationProfessionFilter.d.ts} +2 -1
- package/icc-x-api/filters/PatientByHcPartyGenderEducationProfessionFilter.js +16 -0
- package/icc-x-api/filters/PatientByHcPartyGenderEducationProfessionFilter.js.map +1 -0
- package/icc-x-api/filters/filters.d.ts +7 -7
- package/icc-x-api/filters/filters.js +25 -25
- package/icc-x-api/filters/filters.js.map +1 -1
- package/package.json +1 -1
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.d.ts +0 -31
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.js +0 -32
- package/icc-api/model/PatientByHcPartyGenderEducationProfession.js.map +0 -1
- package/icc-x-api/filters/PatientByHcPartyGenderEducationProfession.js +0 -15
- package/icc-x-api/filters/PatientByHcPartyGenderEducationProfession.js.map +0 -1
|
@@ -15,8 +15,8 @@ import { Delegation } from './Delegation';
|
|
|
15
15
|
export * from './AbstractFilterCode';
|
|
16
16
|
export * from './AbstractFilterContact';
|
|
17
17
|
export * from './AbstractFilterDevice';
|
|
18
|
-
export * from './AbstractFilterHealthElement';
|
|
19
18
|
export * from './AbstractFilterHealthcareParty';
|
|
19
|
+
export * from './AbstractFilterHealthElement';
|
|
20
20
|
export * from './AbstractFilterInvoice';
|
|
21
21
|
export * from './AbstractFilterMaintenanceTask';
|
|
22
22
|
export * from './AbstractFilterPatient';
|
|
@@ -34,15 +34,20 @@ export * from './Ampp';
|
|
|
34
34
|
export * from './AmppComponent';
|
|
35
35
|
export * from './Annotation';
|
|
36
36
|
export * from './ApplicationSettings';
|
|
37
|
+
export * from './Appointment';
|
|
38
|
+
export * from './AppointmentImport';
|
|
37
39
|
export * from './AppointmentTypeAndPlace';
|
|
38
40
|
export * from './Article';
|
|
39
41
|
export * from './Atc';
|
|
42
|
+
export * from './Attachment';
|
|
40
43
|
export * from './AttachmentMetadata';
|
|
41
44
|
export * from './AuthenticationResponse';
|
|
42
45
|
export * from './AuthenticationToken';
|
|
43
46
|
export * from './Basic';
|
|
44
47
|
export * from './Body';
|
|
48
|
+
export * from './Body3';
|
|
45
49
|
export * from './BulkAttachmentUpdateOptions';
|
|
50
|
+
export * from './ByteArray';
|
|
46
51
|
export * from './CalendarItem';
|
|
47
52
|
export * from './CalendarItemTag';
|
|
48
53
|
export * from './CalendarItemType';
|
|
@@ -57,17 +62,19 @@ export * from './CodeType';
|
|
|
57
62
|
export * from './CommentedClassification';
|
|
58
63
|
export * from './Commercialization';
|
|
59
64
|
export * from './Company';
|
|
65
|
+
export * from './Connection';
|
|
60
66
|
export * from './Contact';
|
|
61
67
|
export * from './Content';
|
|
62
|
-
export * from './Connection';
|
|
63
68
|
export * from './Copayment';
|
|
69
|
+
export * from './CryptoActorStub';
|
|
64
70
|
export * from './Data';
|
|
65
71
|
export * from './DataAttachment';
|
|
66
|
-
export * from './DataOwnerRegistrationSuccess';
|
|
67
|
-
export * from './DataOwnerWithType';
|
|
68
72
|
export * from './DatabaseInfo';
|
|
69
73
|
export * from './DatabaseInitialisation';
|
|
70
74
|
export * from './DatabaseSynchronization';
|
|
75
|
+
export * from './DataOwnerRegistrationSuccess';
|
|
76
|
+
export * from './DataOwnerTypeEnum';
|
|
77
|
+
export * from './DataOwnerWithType';
|
|
71
78
|
export * from './Delegation';
|
|
72
79
|
export * from './DeletedAttachment';
|
|
73
80
|
export * from './Device';
|
|
@@ -79,9 +86,11 @@ export * from './Document';
|
|
|
79
86
|
export * from './DocumentGroup';
|
|
80
87
|
export * from './DocumentTemplate';
|
|
81
88
|
export * from './Duration';
|
|
82
|
-
export * from './EIDItem';
|
|
83
89
|
export * from './Editor';
|
|
84
90
|
export * from './EfactInvoice';
|
|
91
|
+
export * from './EIDItem';
|
|
92
|
+
export * from './EmailOrSmsMessage';
|
|
93
|
+
export * from './EmailTemplate';
|
|
85
94
|
export * from './Employer';
|
|
86
95
|
export * from './EmploymentInfo';
|
|
87
96
|
export * from './EntityReference';
|
|
@@ -90,8 +99,8 @@ export * from './Episode';
|
|
|
90
99
|
export * from './FilterChainCode';
|
|
91
100
|
export * from './FilterChainContact';
|
|
92
101
|
export * from './FilterChainDevice';
|
|
93
|
-
export * from './FilterChainHealthElement';
|
|
94
102
|
export * from './FilterChainHealthcareParty';
|
|
103
|
+
export * from './FilterChainHealthElement';
|
|
95
104
|
export * from './FilterChainInvoice';
|
|
96
105
|
export * from './FilterChainMaintenanceTask';
|
|
97
106
|
export * from './FilterChainPatient';
|
|
@@ -113,28 +122,30 @@ export * from './Formula';
|
|
|
113
122
|
export * from './FrontEndMigration';
|
|
114
123
|
export * from './Group';
|
|
115
124
|
export * from './GroupDatabasesInfo';
|
|
125
|
+
export * from './GroupDeletionReport';
|
|
116
126
|
export * from './GuiCode';
|
|
117
127
|
export * from './GuiCodeType';
|
|
118
|
-
export * from './GroupDeletionReport';
|
|
119
|
-
export * from './HealthElement';
|
|
120
128
|
export * from './HealthcareParty';
|
|
121
129
|
export * from './HealthcarePartyHistoryStatus';
|
|
130
|
+
export * from './HealthElement';
|
|
122
131
|
export * from './IcureStub';
|
|
123
|
-
export * from './IdWithRev';
|
|
124
132
|
export * from './Identifier';
|
|
125
133
|
export * from './IdentityDocumentReader';
|
|
134
|
+
export * from './IdWithRev';
|
|
126
135
|
export * from './ImportMapping';
|
|
127
136
|
export * from './ImportResult';
|
|
128
137
|
export * from './IncapacityExportInfo';
|
|
138
|
+
export * from './IndexedIdentifier';
|
|
129
139
|
export * from './IndexingInfo';
|
|
130
140
|
export * from './Ingredient';
|
|
131
141
|
export * from './Insurability';
|
|
132
142
|
export * from './Insurance';
|
|
133
143
|
export * from './Invoice';
|
|
134
144
|
export * from './InvoiceItem';
|
|
135
|
-
export * from './InvoiceSender';
|
|
136
145
|
export * from './InvoicesBatch';
|
|
146
|
+
export * from './InvoiceSender';
|
|
137
147
|
export * from './InvoicingCode';
|
|
148
|
+
export * from './ISO639_1';
|
|
138
149
|
export * from './Keyword';
|
|
139
150
|
export * from './KeywordSubword';
|
|
140
151
|
export * from './LabelledOccurence';
|
|
@@ -153,9 +164,13 @@ export * from './MedicationSchemeExportInfo';
|
|
|
153
164
|
export * from './Medicinalproduct';
|
|
154
165
|
export * from './Message';
|
|
155
166
|
export * from './MessageReadStatus';
|
|
156
|
-
export * from './MessageWithBatch';
|
|
157
167
|
export * from './MessagesReadStatusUpdate';
|
|
168
|
+
export * from './MessageWithBatch';
|
|
169
|
+
export * from './MikronoAppointmentTypeRest';
|
|
170
|
+
export * from './MikronoCredentials';
|
|
158
171
|
export * from './MimeAttachment';
|
|
172
|
+
export * from './ModelHelper';
|
|
173
|
+
export * from './models';
|
|
159
174
|
export * from './Nmp';
|
|
160
175
|
export * from './NoGenericPrescriptionReason';
|
|
161
176
|
export * from './NoSwitchReason';
|
|
@@ -173,8 +188,8 @@ export * from './PaginatedListDocument';
|
|
|
173
188
|
export * from './PaginatedListEntityTemplate';
|
|
174
189
|
export * from './PaginatedListForm';
|
|
175
190
|
export * from './PaginatedListGroup';
|
|
176
|
-
export * from './PaginatedListHealthElement';
|
|
177
191
|
export * from './PaginatedListHealthcareParty';
|
|
192
|
+
export * from './PaginatedListHealthElement';
|
|
178
193
|
export * from './PaginatedListInvoice';
|
|
179
194
|
export * from './PaginatedListMaintenanceTask';
|
|
180
195
|
export * from './PaginatedListMessage';
|
|
@@ -192,9 +207,11 @@ export * from './Part';
|
|
|
192
207
|
export * from './Partnership';
|
|
193
208
|
export * from './Patient';
|
|
194
209
|
export * from './PatientHealthCareParty';
|
|
210
|
+
export * from './PatientRegistrationSuccess';
|
|
195
211
|
export * from './Payment';
|
|
196
212
|
export * from './Periodicity';
|
|
197
213
|
export * from './Permission';
|
|
214
|
+
export * from './PermissionCriterion';
|
|
198
215
|
export * from './PermissionItem';
|
|
199
216
|
export * from './PersonName';
|
|
200
217
|
export * from './PharmaceuticalForm';
|
|
@@ -209,6 +226,7 @@ export * from './PublicKey';
|
|
|
209
226
|
export * from './Quantity';
|
|
210
227
|
export * from './Receipt';
|
|
211
228
|
export * from './ReferralPeriod';
|
|
229
|
+
export * from './RefreshTokenExpiredError';
|
|
212
230
|
export * from './RegimenItem';
|
|
213
231
|
export * from './RegistrationInformation';
|
|
214
232
|
export * from './RegistrationSuccess';
|
|
@@ -217,13 +235,14 @@ export * from './ReimbursementCriterion';
|
|
|
217
235
|
export * from './Remote';
|
|
218
236
|
export * from './RemoteAuthentication';
|
|
219
237
|
export * from './Renewal';
|
|
220
|
-
export * from './Replication';
|
|
221
238
|
export * from './ReplicateCommand';
|
|
239
|
+
export * from './Replication';
|
|
222
240
|
export * from './ReplicationInfo';
|
|
223
241
|
export * from './ReplicationStats';
|
|
224
242
|
export * from './ReplicatorDocument';
|
|
225
243
|
export * from './ReplicatorResponse';
|
|
226
244
|
export * from './ResultInfo';
|
|
245
|
+
export * from './RevisionInfo';
|
|
227
246
|
export * from './Right';
|
|
228
247
|
export * from './RouteOfAdministration';
|
|
229
248
|
export * from './SamText';
|
|
@@ -238,8 +257,8 @@ export * from './StrengthRange';
|
|
|
238
257
|
export * from './StructureElement';
|
|
239
258
|
export * from './SubContact';
|
|
240
259
|
export * from './Substance';
|
|
241
|
-
export * from './SubstanceStub';
|
|
242
260
|
export * from './Substanceproduct';
|
|
261
|
+
export * from './SubstanceStub';
|
|
243
262
|
export * from './Suggest';
|
|
244
263
|
export * from './SumehrContent';
|
|
245
264
|
export * from './SumehrExportInfo';
|
|
@@ -270,6 +289,9 @@ export * from './VmpGroupStub';
|
|
|
270
289
|
export * from './VmpStub';
|
|
271
290
|
export * from './Vtm';
|
|
272
291
|
export * from './Wada';
|
|
292
|
+
export * from './WebSession';
|
|
293
|
+
export * from './WebSessionMaxIdleTime';
|
|
294
|
+
export * from './WebSessionMaxIdleTimeUnits';
|
|
273
295
|
export * from './Weekday';
|
|
274
296
|
export * from './CryptoActorStub';
|
|
275
297
|
export type EncryptedEntity = AccessLog | Article | CalendarItem | Classification | Contact | Document | Form | HealthElement | Invoice | MaintenanceTask | Message | Patient | Receipt;
|
package/icc-api/model/models.js
CHANGED
|
@@ -17,8 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./AbstractFilterCode"), exports);
|
|
18
18
|
__exportStar(require("./AbstractFilterContact"), exports);
|
|
19
19
|
__exportStar(require("./AbstractFilterDevice"), exports);
|
|
20
|
-
__exportStar(require("./AbstractFilterHealthElement"), exports);
|
|
21
20
|
__exportStar(require("./AbstractFilterHealthcareParty"), exports);
|
|
21
|
+
__exportStar(require("./AbstractFilterHealthElement"), exports);
|
|
22
22
|
__exportStar(require("./AbstractFilterInvoice"), exports);
|
|
23
23
|
__exportStar(require("./AbstractFilterMaintenanceTask"), exports);
|
|
24
24
|
__exportStar(require("./AbstractFilterPatient"), exports);
|
|
@@ -36,15 +36,20 @@ __exportStar(require("./Ampp"), exports);
|
|
|
36
36
|
__exportStar(require("./AmppComponent"), exports);
|
|
37
37
|
__exportStar(require("./Annotation"), exports);
|
|
38
38
|
__exportStar(require("./ApplicationSettings"), exports);
|
|
39
|
+
__exportStar(require("./Appointment"), exports);
|
|
40
|
+
__exportStar(require("./AppointmentImport"), exports);
|
|
39
41
|
__exportStar(require("./AppointmentTypeAndPlace"), exports);
|
|
40
42
|
__exportStar(require("./Article"), exports);
|
|
41
43
|
__exportStar(require("./Atc"), exports);
|
|
44
|
+
__exportStar(require("./Attachment"), exports);
|
|
42
45
|
__exportStar(require("./AttachmentMetadata"), exports);
|
|
43
46
|
__exportStar(require("./AuthenticationResponse"), exports);
|
|
44
47
|
__exportStar(require("./AuthenticationToken"), exports);
|
|
45
48
|
__exportStar(require("./Basic"), exports);
|
|
46
49
|
__exportStar(require("./Body"), exports);
|
|
50
|
+
__exportStar(require("./Body3"), exports);
|
|
47
51
|
__exportStar(require("./BulkAttachmentUpdateOptions"), exports);
|
|
52
|
+
__exportStar(require("./ByteArray"), exports);
|
|
48
53
|
__exportStar(require("./CalendarItem"), exports);
|
|
49
54
|
__exportStar(require("./CalendarItemTag"), exports);
|
|
50
55
|
__exportStar(require("./CalendarItemType"), exports);
|
|
@@ -59,17 +64,19 @@ __exportStar(require("./CodeType"), exports);
|
|
|
59
64
|
__exportStar(require("./CommentedClassification"), exports);
|
|
60
65
|
__exportStar(require("./Commercialization"), exports);
|
|
61
66
|
__exportStar(require("./Company"), exports);
|
|
67
|
+
__exportStar(require("./Connection"), exports);
|
|
62
68
|
__exportStar(require("./Contact"), exports);
|
|
63
69
|
__exportStar(require("./Content"), exports);
|
|
64
|
-
__exportStar(require("./Connection"), exports);
|
|
65
70
|
__exportStar(require("./Copayment"), exports);
|
|
71
|
+
__exportStar(require("./CryptoActorStub"), exports);
|
|
66
72
|
__exportStar(require("./Data"), exports);
|
|
67
73
|
__exportStar(require("./DataAttachment"), exports);
|
|
68
|
-
__exportStar(require("./DataOwnerRegistrationSuccess"), exports);
|
|
69
|
-
__exportStar(require("./DataOwnerWithType"), exports);
|
|
70
74
|
__exportStar(require("./DatabaseInfo"), exports);
|
|
71
75
|
__exportStar(require("./DatabaseInitialisation"), exports);
|
|
72
76
|
__exportStar(require("./DatabaseSynchronization"), exports);
|
|
77
|
+
__exportStar(require("./DataOwnerRegistrationSuccess"), exports);
|
|
78
|
+
__exportStar(require("./DataOwnerTypeEnum"), exports);
|
|
79
|
+
__exportStar(require("./DataOwnerWithType"), exports);
|
|
73
80
|
__exportStar(require("./Delegation"), exports);
|
|
74
81
|
__exportStar(require("./DeletedAttachment"), exports);
|
|
75
82
|
__exportStar(require("./Device"), exports);
|
|
@@ -81,9 +88,11 @@ __exportStar(require("./Document"), exports);
|
|
|
81
88
|
__exportStar(require("./DocumentGroup"), exports);
|
|
82
89
|
__exportStar(require("./DocumentTemplate"), exports);
|
|
83
90
|
__exportStar(require("./Duration"), exports);
|
|
84
|
-
__exportStar(require("./EIDItem"), exports);
|
|
85
91
|
__exportStar(require("./Editor"), exports);
|
|
86
92
|
__exportStar(require("./EfactInvoice"), exports);
|
|
93
|
+
__exportStar(require("./EIDItem"), exports);
|
|
94
|
+
__exportStar(require("./EmailOrSmsMessage"), exports);
|
|
95
|
+
__exportStar(require("./EmailTemplate"), exports);
|
|
87
96
|
__exportStar(require("./Employer"), exports);
|
|
88
97
|
__exportStar(require("./EmploymentInfo"), exports);
|
|
89
98
|
__exportStar(require("./EntityReference"), exports);
|
|
@@ -92,8 +101,8 @@ __exportStar(require("./Episode"), exports);
|
|
|
92
101
|
__exportStar(require("./FilterChainCode"), exports);
|
|
93
102
|
__exportStar(require("./FilterChainContact"), exports);
|
|
94
103
|
__exportStar(require("./FilterChainDevice"), exports);
|
|
95
|
-
__exportStar(require("./FilterChainHealthElement"), exports);
|
|
96
104
|
__exportStar(require("./FilterChainHealthcareParty"), exports);
|
|
105
|
+
__exportStar(require("./FilterChainHealthElement"), exports);
|
|
97
106
|
__exportStar(require("./FilterChainInvoice"), exports);
|
|
98
107
|
__exportStar(require("./FilterChainMaintenanceTask"), exports);
|
|
99
108
|
__exportStar(require("./FilterChainPatient"), exports);
|
|
@@ -115,28 +124,30 @@ __exportStar(require("./Formula"), exports);
|
|
|
115
124
|
__exportStar(require("./FrontEndMigration"), exports);
|
|
116
125
|
__exportStar(require("./Group"), exports);
|
|
117
126
|
__exportStar(require("./GroupDatabasesInfo"), exports);
|
|
127
|
+
__exportStar(require("./GroupDeletionReport"), exports);
|
|
118
128
|
__exportStar(require("./GuiCode"), exports);
|
|
119
129
|
__exportStar(require("./GuiCodeType"), exports);
|
|
120
|
-
__exportStar(require("./GroupDeletionReport"), exports);
|
|
121
|
-
__exportStar(require("./HealthElement"), exports);
|
|
122
130
|
__exportStar(require("./HealthcareParty"), exports);
|
|
123
131
|
__exportStar(require("./HealthcarePartyHistoryStatus"), exports);
|
|
132
|
+
__exportStar(require("./HealthElement"), exports);
|
|
124
133
|
__exportStar(require("./IcureStub"), exports);
|
|
125
|
-
__exportStar(require("./IdWithRev"), exports);
|
|
126
134
|
__exportStar(require("./Identifier"), exports);
|
|
127
135
|
__exportStar(require("./IdentityDocumentReader"), exports);
|
|
136
|
+
__exportStar(require("./IdWithRev"), exports);
|
|
128
137
|
__exportStar(require("./ImportMapping"), exports);
|
|
129
138
|
__exportStar(require("./ImportResult"), exports);
|
|
130
139
|
__exportStar(require("./IncapacityExportInfo"), exports);
|
|
140
|
+
__exportStar(require("./IndexedIdentifier"), exports);
|
|
131
141
|
__exportStar(require("./IndexingInfo"), exports);
|
|
132
142
|
__exportStar(require("./Ingredient"), exports);
|
|
133
143
|
__exportStar(require("./Insurability"), exports);
|
|
134
144
|
__exportStar(require("./Insurance"), exports);
|
|
135
145
|
__exportStar(require("./Invoice"), exports);
|
|
136
146
|
__exportStar(require("./InvoiceItem"), exports);
|
|
137
|
-
__exportStar(require("./InvoiceSender"), exports);
|
|
138
147
|
__exportStar(require("./InvoicesBatch"), exports);
|
|
148
|
+
__exportStar(require("./InvoiceSender"), exports);
|
|
139
149
|
__exportStar(require("./InvoicingCode"), exports);
|
|
150
|
+
__exportStar(require("./ISO639_1"), exports);
|
|
140
151
|
__exportStar(require("./Keyword"), exports);
|
|
141
152
|
__exportStar(require("./KeywordSubword"), exports);
|
|
142
153
|
__exportStar(require("./LabelledOccurence"), exports);
|
|
@@ -155,9 +166,13 @@ __exportStar(require("./MedicationSchemeExportInfo"), exports);
|
|
|
155
166
|
__exportStar(require("./Medicinalproduct"), exports);
|
|
156
167
|
__exportStar(require("./Message"), exports);
|
|
157
168
|
__exportStar(require("./MessageReadStatus"), exports);
|
|
158
|
-
__exportStar(require("./MessageWithBatch"), exports);
|
|
159
169
|
__exportStar(require("./MessagesReadStatusUpdate"), exports);
|
|
170
|
+
__exportStar(require("./MessageWithBatch"), exports);
|
|
171
|
+
__exportStar(require("./MikronoAppointmentTypeRest"), exports);
|
|
172
|
+
__exportStar(require("./MikronoCredentials"), exports);
|
|
160
173
|
__exportStar(require("./MimeAttachment"), exports);
|
|
174
|
+
__exportStar(require("./ModelHelper"), exports);
|
|
175
|
+
__exportStar(require("./models"), exports);
|
|
161
176
|
__exportStar(require("./Nmp"), exports);
|
|
162
177
|
__exportStar(require("./NoGenericPrescriptionReason"), exports);
|
|
163
178
|
__exportStar(require("./NoSwitchReason"), exports);
|
|
@@ -175,8 +190,8 @@ __exportStar(require("./PaginatedListDocument"), exports);
|
|
|
175
190
|
__exportStar(require("./PaginatedListEntityTemplate"), exports);
|
|
176
191
|
__exportStar(require("./PaginatedListForm"), exports);
|
|
177
192
|
__exportStar(require("./PaginatedListGroup"), exports);
|
|
178
|
-
__exportStar(require("./PaginatedListHealthElement"), exports);
|
|
179
193
|
__exportStar(require("./PaginatedListHealthcareParty"), exports);
|
|
194
|
+
__exportStar(require("./PaginatedListHealthElement"), exports);
|
|
180
195
|
__exportStar(require("./PaginatedListInvoice"), exports);
|
|
181
196
|
__exportStar(require("./PaginatedListMaintenanceTask"), exports);
|
|
182
197
|
__exportStar(require("./PaginatedListMessage"), exports);
|
|
@@ -194,9 +209,11 @@ __exportStar(require("./Part"), exports);
|
|
|
194
209
|
__exportStar(require("./Partnership"), exports);
|
|
195
210
|
__exportStar(require("./Patient"), exports);
|
|
196
211
|
__exportStar(require("./PatientHealthCareParty"), exports);
|
|
212
|
+
__exportStar(require("./PatientRegistrationSuccess"), exports);
|
|
197
213
|
__exportStar(require("./Payment"), exports);
|
|
198
214
|
__exportStar(require("./Periodicity"), exports);
|
|
199
215
|
__exportStar(require("./Permission"), exports);
|
|
216
|
+
__exportStar(require("./PermissionCriterion"), exports);
|
|
200
217
|
__exportStar(require("./PermissionItem"), exports);
|
|
201
218
|
__exportStar(require("./PersonName"), exports);
|
|
202
219
|
__exportStar(require("./PharmaceuticalForm"), exports);
|
|
@@ -211,6 +228,7 @@ __exportStar(require("./PublicKey"), exports);
|
|
|
211
228
|
__exportStar(require("./Quantity"), exports);
|
|
212
229
|
__exportStar(require("./Receipt"), exports);
|
|
213
230
|
__exportStar(require("./ReferralPeriod"), exports);
|
|
231
|
+
__exportStar(require("./RefreshTokenExpiredError"), exports);
|
|
214
232
|
__exportStar(require("./RegimenItem"), exports);
|
|
215
233
|
__exportStar(require("./RegistrationInformation"), exports);
|
|
216
234
|
__exportStar(require("./RegistrationSuccess"), exports);
|
|
@@ -219,13 +237,14 @@ __exportStar(require("./ReimbursementCriterion"), exports);
|
|
|
219
237
|
__exportStar(require("./Remote"), exports);
|
|
220
238
|
__exportStar(require("./RemoteAuthentication"), exports);
|
|
221
239
|
__exportStar(require("./Renewal"), exports);
|
|
222
|
-
__exportStar(require("./Replication"), exports);
|
|
223
240
|
__exportStar(require("./ReplicateCommand"), exports);
|
|
241
|
+
__exportStar(require("./Replication"), exports);
|
|
224
242
|
__exportStar(require("./ReplicationInfo"), exports);
|
|
225
243
|
__exportStar(require("./ReplicationStats"), exports);
|
|
226
244
|
__exportStar(require("./ReplicatorDocument"), exports);
|
|
227
245
|
__exportStar(require("./ReplicatorResponse"), exports);
|
|
228
246
|
__exportStar(require("./ResultInfo"), exports);
|
|
247
|
+
__exportStar(require("./RevisionInfo"), exports);
|
|
229
248
|
__exportStar(require("./Right"), exports);
|
|
230
249
|
__exportStar(require("./RouteOfAdministration"), exports);
|
|
231
250
|
__exportStar(require("./SamText"), exports);
|
|
@@ -240,8 +259,8 @@ __exportStar(require("./StrengthRange"), exports);
|
|
|
240
259
|
__exportStar(require("./StructureElement"), exports);
|
|
241
260
|
__exportStar(require("./SubContact"), exports);
|
|
242
261
|
__exportStar(require("./Substance"), exports);
|
|
243
|
-
__exportStar(require("./SubstanceStub"), exports);
|
|
244
262
|
__exportStar(require("./Substanceproduct"), exports);
|
|
263
|
+
__exportStar(require("./SubstanceStub"), exports);
|
|
245
264
|
__exportStar(require("./Suggest"), exports);
|
|
246
265
|
__exportStar(require("./SumehrContent"), exports);
|
|
247
266
|
__exportStar(require("./SumehrExportInfo"), exports);
|
|
@@ -272,6 +291,9 @@ __exportStar(require("./VmpGroupStub"), exports);
|
|
|
272
291
|
__exportStar(require("./VmpStub"), exports);
|
|
273
292
|
__exportStar(require("./Vtm"), exports);
|
|
274
293
|
__exportStar(require("./Wada"), exports);
|
|
294
|
+
__exportStar(require("./WebSession"), exports);
|
|
295
|
+
__exportStar(require("./WebSessionMaxIdleTime"), exports);
|
|
296
|
+
__exportStar(require("./WebSessionMaxIdleTimeUnits"), exports);
|
|
275
297
|
__exportStar(require("./Weekday"), exports);
|
|
276
298
|
__exportStar(require("./CryptoActorStub"), exports);
|
|
277
299
|
//# sourceMappingURL=models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../icc-api/model/models.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,uDAAoC;AACpC,0DAAuC;AACvC,yDAAsC;AACtC,gEAA6C;AAC7C,kEAA+C;AAC/C,0DAAuC;AACvC,kEAA+C;AAC/C,0DAAuC;AACvC,0DAAuC;AACvC,uDAAoC;AACpC,8CAA2B;AAC3B,kDAA+B;AAC/B,4CAAyB;AACzB,2DAAwC;AACxC,2CAAwB;AACxB,sDAAmC;AACnC,wCAAqB;AACrB,iDAA8B;AAC9B,yCAAsB;AACtB,kDAA+B;AAC/B,+CAA4B;AAC5B,wDAAqC;AACrC,4DAAyC;AACzC,4CAAyB;AACzB,wCAAqB;AACrB,uDAAoC;AACpC,2DAAwC;AACxC,wDAAqC;AACrC,0CAAuB;AACvB,yCAAsB;AACtB,gEAA6C;AAC7C,iDAA8B;AAC9B,oDAAiC;AACjC,qDAAkC;AAClC,mDAAgC;AAChC,uDAAoC;AACpC,0DAAuC;AACvC,mDAAgC;AAChC,2DAAwC;AACxC,yCAAsB;AACtB,6CAA0B;AAC1B,6CAA0B;AAC1B,4DAAyC;AACzC,sDAAmC;AACnC,4CAAyB;AACzB,4CAAyB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pC,+CAA4B;AAC5B,0CAAuB;AACvB,0DAAuC;AACvC,4CAAyB;AACzB,+CAA4B;AAC5B,kDAA+B;AAC/B,4CAAyB;AACzB,4CAAyB;AACzB,gDAA6B;AAC7B,8DAA2C;AAC3C,sDAAmC;AACnC,kDAA+B;AAC/B,qDAAkC;AAClC,+CAA4B;AAC5B,8CAA2B;AAC3B,kDAA+B;AAC/B,qDAAkC;AAClC,4CAAyB;AACzB,kDAA+B;AAC/B,qDAAkC;AAClC,mDAAgC;AAChC,kDAA+B;AAC/B,+CAA4B;AAC5B,wCAAqB;AACrB,iDAA8B;AAC9B,4CAAyB;AACzB,+CAA4B;AAC5B,8CAA2B;AAC3B,kDAA+B;AAC/B,kDAA+B;AAC/B,mDAAgC;AAChC,qDAAkC;AAClC,yCAAsB;AACtB,yCAAsB;AACtB,2DAAwC;AACxC,8CAA2B;AAC3B,iDAA8B;AAC9B,0CAAuB;AACvB,gDAA6B;AAC7B,sDAAmC;AACnC,wCAAqB;AACrB,iDAA8B;AAC9B,6CAA0B;AAC1B,iDAA8B;AAC9B,4CAAyB;AACzB,wCAAqB;AACrB,yCAAsB;AACtB,4CAAyB;AACzB,oDAAiC","sourcesContent":["import { AccessLog } from './AccessLog'\nimport { Article } from './Article'\nimport { Classification } from './Classification'\nimport { Document } from './Document'\nimport { HealthElement } from './HealthElement'\nimport { Invoice } from './Invoice'\nimport { Form } from './Form'\nimport { Contact } from './Contact'\nimport { CalendarItem } from './CalendarItem'\nimport { MaintenanceTask } from './MaintenanceTask'\nimport { Message } from './Message'\nimport { Receipt } from './Receipt'\nimport { Patient } from './Patient'\nimport { Delegation } from './Delegation'\n\nexport * from './AbstractFilterCode'\nexport * from './AbstractFilterContact'\nexport * from './AbstractFilterDevice'\nexport * from './AbstractFilterHealthElement'\nexport * from './AbstractFilterHealthcareParty'\nexport * from './AbstractFilterInvoice'\nexport * from './AbstractFilterMaintenanceTask'\nexport * from './AbstractFilterPatient'\nexport * from './AbstractFilterService'\nexport * from './AbstractFilterUser'\nexport * from './AccessLog'\nexport * from './AddedDocument'\nexport * from './Address'\nexport * from './AdministrationQuantity'\nexport * from './Agenda'\nexport * from './AgreementAppendix'\nexport * from './Amp'\nexport * from './AmpComponent'\nexport * from './Ampp'\nexport * from './AmppComponent'\nexport * from './Annotation'\nexport * from './ApplicationSettings'\nexport * from './AppointmentTypeAndPlace'\nexport * from './Article'\nexport * from './Atc'\nexport * from './AttachmentMetadata'\nexport * from './AuthenticationResponse'\nexport * from './AuthenticationToken'\nexport * from './Basic'\nexport * from './Body'\nexport * from './BulkAttachmentUpdateOptions'\nexport * from './CalendarItem'\nexport * from './CalendarItemTag'\nexport * from './CalendarItemType'\nexport * from './CareTeamMember'\nexport * from './CareTeamMembership'\nexport * from './CheckSMFPatientResult'\nexport * from './Classification'\nexport * from './ClassificationTemplate'\nexport * from './Code'\nexport * from './CodeStub'\nexport * from './CodeType'\nexport * from './CommentedClassification'\nexport * from './Commercialization'\nexport * from './Company'\nexport * from './Contact'\nexport * from './Content'\nexport * from './Connection'\nexport * from './Copayment'\nexport * from './Data'\nexport * from './DataAttachment'\nexport * from './DataOwnerRegistrationSuccess'\nexport * from './DataOwnerWithType'\nexport * from './DatabaseInfo'\nexport * from './DatabaseInitialisation'\nexport * from './DatabaseSynchronization'\nexport * from './Delegation'\nexport * from './DeletedAttachment'\nexport * from './Device'\nexport * from './DeviceType'\nexport * from './DiaryNoteExportInfo'\nexport * from './Dmpp'\nexport * from './DocIdentifier'\nexport * from './Document'\nexport * from './DocumentGroup'\nexport * from './DocumentTemplate'\nexport * from './Duration'\nexport * from './EIDItem'\nexport * from './Editor'\nexport * from './EfactInvoice'\nexport * from './Employer'\nexport * from './EmploymentInfo'\nexport * from './EntityReference'\nexport * from './EntityTemplate'\nexport * from './Episode'\nexport * from './FilterChainCode'\nexport * from './FilterChainContact'\nexport * from './FilterChainDevice'\nexport * from './FilterChainHealthElement'\nexport * from './FilterChainHealthcareParty'\nexport * from './FilterChainInvoice'\nexport * from './FilterChainMaintenanceTask'\nexport * from './FilterChainPatient'\nexport * from './FilterChainService'\nexport * from './FilterChainUser'\nexport * from './FinancialInstitutionInformation'\nexport * from './FlatRateTarification'\nexport * from './FlowItem'\nexport * from './Form'\nexport * from './FormColumn'\nexport * from './FormDataOption'\nexport * from './FormLayout'\nexport * from './FormLayoutData'\nexport * from './FormPlanning'\nexport * from './FormSection'\nexport * from './FormTemplate'\nexport * from './FormTemplateLayout'\nexport * from './Formula'\nexport * from './FrontEndMigration'\nexport * from './Group'\nexport * from './GroupDatabasesInfo'\nexport * from './GuiCode'\nexport * from './GuiCodeType'\nexport * from './GroupDeletionReport'\nexport * from './HealthElement'\nexport * from './HealthcareParty'\nexport * from './HealthcarePartyHistoryStatus'\nexport * from './IcureStub'\nexport * from './IdWithRev'\nexport * from './Identifier'\nexport * from './IdentityDocumentReader'\nexport * from './ImportMapping'\nexport * from './ImportResult'\nexport * from './IncapacityExportInfo'\nexport * from './IndexingInfo'\nexport * from './Ingredient'\nexport * from './Insurability'\nexport * from './Insurance'\nexport * from './Invoice'\nexport * from './InvoiceItem'\nexport * from './InvoiceSender'\nexport * from './InvoicesBatch'\nexport * from './InvoicingCode'\nexport * from './Keyword'\nexport * from './KeywordSubword'\nexport * from './LabelledOccurence'\nexport * from './LetterValue'\nexport * from './ListOfIds'\nexport * from './ListOfProperties'\nexport * from './LoginCredentials'\nexport * from './MaintenanceTask'\nexport * from './MapOfIds'\nexport * from './Measure'\nexport * from './MedexInfo'\nexport * from './MedicalHouseContract'\nexport * from './MedicalLocation'\nexport * from './Medication'\nexport * from './MedicationSchemeExportInfo'\nexport * from './Medicinalproduct'\nexport * from './Message'\nexport * from './MessageReadStatus'\nexport * from './MessageWithBatch'\nexport * from './MessagesReadStatusUpdate'\nexport * from './MimeAttachment'\nexport * from './Nmp'\nexport * from './NoGenericPrescriptionReason'\nexport * from './NoSwitchReason'\nexport * from './NumeratorRange'\nexport * from './PackagingType'\nexport * from './PaginatedDocumentKeyIdPairObject'\nexport * from './PaginatedListAccessLog'\nexport * from './PaginatedListAmp'\nexport * from './PaginatedListClassification'\nexport * from './PaginatedListClassificationTemplate'\nexport * from './PaginatedListCode'\nexport * from './PaginatedListContact'\nexport * from './PaginatedListDevice'\nexport * from './PaginatedListDocument'\nexport * from './PaginatedListEntityTemplate'\nexport * from './PaginatedListForm'\nexport * from './PaginatedListGroup'\nexport * from './PaginatedListHealthElement'\nexport * from './PaginatedListHealthcareParty'\nexport * from './PaginatedListInvoice'\nexport * from './PaginatedListMaintenanceTask'\nexport * from './PaginatedListMessage'\nexport * from './PaginatedListNmp'\nexport * from './PaginatedListPatient'\nexport * from './PaginatedListService'\nexport * from './PaginatedListString'\nexport * from './PaginatedListTarification'\nexport * from './PaginatedListUser'\nexport * from './PaginatedListVmp'\nexport * from './PaginatedListVmpGroup'\nexport * from './Paragraph'\nexport * from './ParagraphAgreement'\nexport * from './Part'\nexport * from './Partnership'\nexport * from './Patient'\nexport * from './PatientHealthCareParty'\nexport * from './Payment'\nexport * from './Periodicity'\nexport * from './Permission'\nexport * from './PermissionItem'\nexport * from './PersonName'\nexport * from './PharmaceuticalForm'\nexport * from './PharmaceuticalFormStub'\nexport * from './Place'\nexport * from './PlanOfAction'\nexport * from './Predicate'\nexport * from './Pricing'\nexport * from './PropertyStub'\nexport * from './PropertyTypeStub'\nexport * from './PublicKey'\nexport * from './Quantity'\nexport * from './Receipt'\nexport * from './ReferralPeriod'\nexport * from './RegimenItem'\nexport * from './RegistrationInformation'\nexport * from './RegistrationSuccess'\nexport * from './Reimbursement'\nexport * from './ReimbursementCriterion'\nexport * from './Remote'\nexport * from './RemoteAuthentication'\nexport * from './Renewal'\nexport * from './Replication'\nexport * from './ReplicateCommand'\nexport * from './ReplicationInfo'\nexport * from './ReplicationStats'\nexport * from './ReplicatorDocument'\nexport * from './ReplicatorResponse'\nexport * from './ResultInfo'\nexport * from './Right'\nexport * from './RouteOfAdministration'\nexport * from './SamText'\nexport * from './SamVersion'\nexport * from './SchoolingInfo'\nexport * from './Section'\nexport * from './Service'\nexport * from './ServiceLink'\nexport * from './SoftwareMedicalFileExport'\nexport * from './StandardSubstance'\nexport * from './StrengthRange'\nexport * from './StructureElement'\nexport * from './SubContact'\nexport * from './Substance'\nexport * from './SubstanceStub'\nexport * from './Substanceproduct'\nexport * from './Suggest'\nexport * from './SumehrContent'\nexport * from './SumehrExportInfo'\nexport * from './SumehrValidity'\nexport * from './SupplyProblem'\nexport * from './Suspension'\nexport * from './Tag'\nexport * from './Tarification'\nexport * from './Telecom'\nexport * from './TimeSeries'\nexport * from './TimeTable'\nexport * from './TimeTableHour'\nexport * from './TimeTableItem'\nexport * from './TokenWithGroup'\nexport * from './TypedValueObject'\nexport * from './Unit'\nexport * from './User'\nexport * from './UserAndHealthcareParty'\nexport * from './UserGroup'\nexport * from './Valorisation'\nexport * from './Verse'\nexport * from './VirtualForm'\nexport * from './VirtualIngredient'\nexport * from './Vmp'\nexport * from './VmpComponent'\nexport * from './VmpGroup'\nexport * from './VmpGroupStub'\nexport * from './VmpStub'\nexport * from './Vtm'\nexport * from './Wada'\nexport * from './Weekday'\nexport * from './CryptoActorStub'\n\nexport type EncryptedEntity =\n | AccessLog\n | Article\n | CalendarItem\n | Classification\n | Contact\n | Document\n | Form\n | HealthElement\n | Invoice\n | MaintenanceTask\n | Message\n | Patient\n | Receipt\n\nexport type EncryptedEntityStub = {\n secretForeignKeys?: Array<string>\n cryptedForeignKeys?: { [key: string]: Delegation[] }\n delegations?: { [key: string]: Delegation[] }\n encryptionKeys?: { [key: string]: Delegation[] }\n encryptedSelf?: string\n}\n\nexport type EncryptedParentEntity = Message | Patient\n\nexport type { ISO639_1 } from './ISO639_1'\n"]}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../icc-api/model/models.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAeA,uDAAoC;AACpC,0DAAuC;AACvC,yDAAsC;AACtC,kEAA+C;AAC/C,gEAA6C;AAC7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5B,wCAAqB;AACrB,iDAA8B;AAC9B,4CAAyB;AACzB,+CAA4B;AAC5B,8CAA2B;AAC3B,kDAA+B;AAC/B,kDAA+B;AAC/B,mDAAgC;AAChC,qDAAkC;AAClC,yCAAsB;AACtB,yCAAsB;AACtB,2DAAwC;AACxC,8CAA2B;AAC3B,iDAA8B;AAC9B,0CAAuB;AACvB,gDAA6B;AAC7B,sDAAmC;AACnC,wCAAqB;AACrB,iDAA8B;AAC9B,6CAA0B;AAC1B,iDAA8B;AAC9B,4CAAyB;AACzB,wCAAqB;AACrB,yCAAsB;AACtB,+CAA4B;AAC5B,0DAAuC;AACvC,+DAA4C;AAC5C,4CAAyB;AACzB,oDAAiC","sourcesContent":["import { AccessLog } from './AccessLog'\nimport { Article } from './Article'\nimport { Classification } from './Classification'\nimport { Document } from './Document'\nimport { HealthElement } from './HealthElement'\nimport { Invoice } from './Invoice'\nimport { Form } from './Form'\nimport { Contact } from './Contact'\nimport { CalendarItem } from './CalendarItem'\nimport { MaintenanceTask } from './MaintenanceTask'\nimport { Message } from './Message'\nimport { Receipt } from './Receipt'\nimport { Patient } from './Patient'\nimport { Delegation } from './Delegation'\n\nexport * from './AbstractFilterCode'\nexport * from './AbstractFilterContact'\nexport * from './AbstractFilterDevice'\nexport * from './AbstractFilterHealthcareParty'\nexport * from './AbstractFilterHealthElement'\nexport * from './AbstractFilterInvoice'\nexport * from './AbstractFilterMaintenanceTask'\nexport * from './AbstractFilterPatient'\nexport * from './AbstractFilterService'\nexport * from './AbstractFilterUser'\nexport * from './AccessLog'\nexport * from './AddedDocument'\nexport * from './Address'\nexport * from './AdministrationQuantity'\nexport * from './Agenda'\nexport * from './AgreementAppendix'\nexport * from './Amp'\nexport * from './AmpComponent'\nexport * from './Ampp'\nexport * from './AmppComponent'\nexport * from './Annotation'\nexport * from './ApplicationSettings'\nexport * from './Appointment'\nexport * from './AppointmentImport'\nexport * from './AppointmentTypeAndPlace'\nexport * from './Article'\nexport * from './Atc'\nexport * from './Attachment'\nexport * from './AttachmentMetadata'\nexport * from './AuthenticationResponse'\nexport * from './AuthenticationToken'\nexport * from './Basic'\nexport * from './Body'\nexport * from './Body3'\nexport * from './BulkAttachmentUpdateOptions'\nexport * from './ByteArray'\nexport * from './CalendarItem'\nexport * from './CalendarItemTag'\nexport * from './CalendarItemType'\nexport * from './CareTeamMember'\nexport * from './CareTeamMembership'\nexport * from './CheckSMFPatientResult'\nexport * from './Classification'\nexport * from './ClassificationTemplate'\nexport * from './Code'\nexport * from './CodeStub'\nexport * from './CodeType'\nexport * from './CommentedClassification'\nexport * from './Commercialization'\nexport * from './Company'\nexport * from './Connection'\nexport * from './Contact'\nexport * from './Content'\nexport * from './Copayment'\nexport * from './CryptoActorStub'\nexport * from './Data'\nexport * from './DataAttachment'\nexport * from './DatabaseInfo'\nexport * from './DatabaseInitialisation'\nexport * from './DatabaseSynchronization'\nexport * from './DataOwnerRegistrationSuccess'\nexport * from './DataOwnerTypeEnum'\nexport * from './DataOwnerWithType'\nexport * from './Delegation'\nexport * from './DeletedAttachment'\nexport * from './Device'\nexport * from './DeviceType'\nexport * from './DiaryNoteExportInfo'\nexport * from './Dmpp'\nexport * from './DocIdentifier'\nexport * from './Document'\nexport * from './DocumentGroup'\nexport * from './DocumentTemplate'\nexport * from './Duration'\nexport * from './Editor'\nexport * from './EfactInvoice'\nexport * from './EIDItem'\nexport * from './EmailOrSmsMessage'\nexport * from './EmailTemplate'\nexport * from './Employer'\nexport * from './EmploymentInfo'\nexport * from './EntityReference'\nexport * from './EntityTemplate'\nexport * from './Episode'\nexport * from './FilterChainCode'\nexport * from './FilterChainContact'\nexport * from './FilterChainDevice'\nexport * from './FilterChainHealthcareParty'\nexport * from './FilterChainHealthElement'\nexport * from './FilterChainInvoice'\nexport * from './FilterChainMaintenanceTask'\nexport * from './FilterChainPatient'\nexport * from './FilterChainService'\nexport * from './FilterChainUser'\nexport * from './FinancialInstitutionInformation'\nexport * from './FlatRateTarification'\nexport * from './FlowItem'\nexport * from './Form'\nexport * from './FormColumn'\nexport * from './FormDataOption'\nexport * from './FormLayout'\nexport * from './FormLayoutData'\nexport * from './FormPlanning'\nexport * from './FormSection'\nexport * from './FormTemplate'\nexport * from './FormTemplateLayout'\nexport * from './Formula'\nexport * from './FrontEndMigration'\nexport * from './Group'\nexport * from './GroupDatabasesInfo'\nexport * from './GroupDeletionReport'\nexport * from './GuiCode'\nexport * from './GuiCodeType'\nexport * from './HealthcareParty'\nexport * from './HealthcarePartyHistoryStatus'\nexport * from './HealthElement'\nexport * from './IcureStub'\nexport * from './Identifier'\nexport * from './IdentityDocumentReader'\nexport * from './IdWithRev'\nexport * from './ImportMapping'\nexport * from './ImportResult'\nexport * from './IncapacityExportInfo'\nexport * from './IndexedIdentifier'\nexport * from './IndexingInfo'\nexport * from './Ingredient'\nexport * from './Insurability'\nexport * from './Insurance'\nexport * from './Invoice'\nexport * from './InvoiceItem'\nexport * from './InvoicesBatch'\nexport * from './InvoiceSender'\nexport * from './InvoicingCode'\nexport * from './ISO639_1'\nexport * from './Keyword'\nexport * from './KeywordSubword'\nexport * from './LabelledOccurence'\nexport * from './LetterValue'\nexport * from './ListOfIds'\nexport * from './ListOfProperties'\nexport * from './LoginCredentials'\nexport * from './MaintenanceTask'\nexport * from './MapOfIds'\nexport * from './Measure'\nexport * from './MedexInfo'\nexport * from './MedicalHouseContract'\nexport * from './MedicalLocation'\nexport * from './Medication'\nexport * from './MedicationSchemeExportInfo'\nexport * from './Medicinalproduct'\nexport * from './Message'\nexport * from './MessageReadStatus'\nexport * from './MessagesReadStatusUpdate'\nexport * from './MessageWithBatch'\nexport * from './MikronoAppointmentTypeRest'\nexport * from './MikronoCredentials'\nexport * from './MimeAttachment'\nexport * from './ModelHelper'\nexport * from './models'\nexport * from './Nmp'\nexport * from './NoGenericPrescriptionReason'\nexport * from './NoSwitchReason'\nexport * from './NumeratorRange'\nexport * from './PackagingType'\nexport * from './PaginatedDocumentKeyIdPairObject'\nexport * from './PaginatedListAccessLog'\nexport * from './PaginatedListAmp'\nexport * from './PaginatedListClassification'\nexport * from './PaginatedListClassificationTemplate'\nexport * from './PaginatedListCode'\nexport * from './PaginatedListContact'\nexport * from './PaginatedListDevice'\nexport * from './PaginatedListDocument'\nexport * from './PaginatedListEntityTemplate'\nexport * from './PaginatedListForm'\nexport * from './PaginatedListGroup'\nexport * from './PaginatedListHealthcareParty'\nexport * from './PaginatedListHealthElement'\nexport * from './PaginatedListInvoice'\nexport * from './PaginatedListMaintenanceTask'\nexport * from './PaginatedListMessage'\nexport * from './PaginatedListNmp'\nexport * from './PaginatedListPatient'\nexport * from './PaginatedListService'\nexport * from './PaginatedListString'\nexport * from './PaginatedListTarification'\nexport * from './PaginatedListUser'\nexport * from './PaginatedListVmp'\nexport * from './PaginatedListVmpGroup'\nexport * from './Paragraph'\nexport * from './ParagraphAgreement'\nexport * from './Part'\nexport * from './Partnership'\nexport * from './Patient'\nexport * from './PatientHealthCareParty'\nexport * from './PatientRegistrationSuccess'\nexport * from './Payment'\nexport * from './Periodicity'\nexport * from './Permission'\nexport * from './PermissionCriterion'\nexport * from './PermissionItem'\nexport * from './PersonName'\nexport * from './PharmaceuticalForm'\nexport * from './PharmaceuticalFormStub'\nexport * from './Place'\nexport * from './PlanOfAction'\nexport * from './Predicate'\nexport * from './Pricing'\nexport * from './PropertyStub'\nexport * from './PropertyTypeStub'\nexport * from './PublicKey'\nexport * from './Quantity'\nexport * from './Receipt'\nexport * from './ReferralPeriod'\nexport * from './RefreshTokenExpiredError'\nexport * from './RegimenItem'\nexport * from './RegistrationInformation'\nexport * from './RegistrationSuccess'\nexport * from './Reimbursement'\nexport * from './ReimbursementCriterion'\nexport * from './Remote'\nexport * from './RemoteAuthentication'\nexport * from './Renewal'\nexport * from './ReplicateCommand'\nexport * from './Replication'\nexport * from './ReplicationInfo'\nexport * from './ReplicationStats'\nexport * from './ReplicatorDocument'\nexport * from './ReplicatorResponse'\nexport * from './ResultInfo'\nexport * from './RevisionInfo'\nexport * from './Right'\nexport * from './RouteOfAdministration'\nexport * from './SamText'\nexport * from './SamVersion'\nexport * from './SchoolingInfo'\nexport * from './Section'\nexport * from './Service'\nexport * from './ServiceLink'\nexport * from './SoftwareMedicalFileExport'\nexport * from './StandardSubstance'\nexport * from './StrengthRange'\nexport * from './StructureElement'\nexport * from './SubContact'\nexport * from './Substance'\nexport * from './Substanceproduct'\nexport * from './SubstanceStub'\nexport * from './Suggest'\nexport * from './SumehrContent'\nexport * from './SumehrExportInfo'\nexport * from './SumehrValidity'\nexport * from './SupplyProblem'\nexport * from './Suspension'\nexport * from './Tag'\nexport * from './Tarification'\nexport * from './Telecom'\nexport * from './TimeSeries'\nexport * from './TimeTable'\nexport * from './TimeTableHour'\nexport * from './TimeTableItem'\nexport * from './TokenWithGroup'\nexport * from './TypedValueObject'\nexport * from './Unit'\nexport * from './User'\nexport * from './UserAndHealthcareParty'\nexport * from './UserGroup'\nexport * from './Valorisation'\nexport * from './Verse'\nexport * from './VirtualForm'\nexport * from './VirtualIngredient'\nexport * from './Vmp'\nexport * from './VmpComponent'\nexport * from './VmpGroup'\nexport * from './VmpGroupStub'\nexport * from './VmpStub'\nexport * from './Vtm'\nexport * from './Wada'\nexport * from './WebSession'\nexport * from './WebSessionMaxIdleTime'\nexport * from './WebSessionMaxIdleTimeUnits'\nexport * from './Weekday'\nexport * from './CryptoActorStub'\n\nexport type EncryptedEntity =\n | AccessLog\n | Article\n | CalendarItem\n | Classification\n | Contact\n | Document\n | Form\n | HealthElement\n | Invoice\n | MaintenanceTask\n | Message\n | Patient\n | Receipt\n\nexport type EncryptedEntityStub = {\n secretForeignKeys?: Array<string>\n cryptedForeignKeys?: { [key: string]: Delegation[] }\n delegations?: { [key: string]: Delegation[] }\n encryptionKeys?: { [key: string]: Delegation[] }\n encryptedSelf?: string\n}\n\nexport type EncryptedParentEntity = Message | Patient\n\nexport type { ISO639_1 } from './ISO639_1'\n"]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AbstractFilterPatient } from '../../icc-api/model/AbstractFilterPatient';
|
|
2
2
|
import { Patient } from '../../icc-api/model/Patient';
|
|
3
3
|
import GenderEnum = Patient.GenderEnum;
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class PatientByHcPartyGenderEducationProfessionFilter extends AbstractFilterPatient {
|
|
5
5
|
constructor(json: JSON | any);
|
|
6
6
|
healthcarePartyId?: string;
|
|
7
7
|
gender?: GenderEnum;
|
|
8
8
|
education?: string;
|
|
9
9
|
profession?: string;
|
|
10
|
+
desc?: string;
|
|
10
11
|
$type: string;
|
|
11
12
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PatientByHcPartyGenderEducationProfessionFilter = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* Copyright (c) 2020. Taktik SA, All rights reserved.
|
|
6
|
+
*/
|
|
7
|
+
const AbstractFilterPatient_1 = require("../../icc-api/model/AbstractFilterPatient");
|
|
8
|
+
class PatientByHcPartyGenderEducationProfessionFilter extends AbstractFilterPatient_1.AbstractFilterPatient {
|
|
9
|
+
constructor(json) {
|
|
10
|
+
super(json);
|
|
11
|
+
this.$type = 'PatientByHcPartyGenderEducationProfession'; // Named according to the Kotlin class name in kraken-refactor without filter at the end
|
|
12
|
+
Object.assign(this, json);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.PatientByHcPartyGenderEducationProfessionFilter = PatientByHcPartyGenderEducationProfessionFilter;
|
|
16
|
+
//# sourceMappingURL=PatientByHcPartyGenderEducationProfessionFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PatientByHcPartyGenderEducationProfessionFilter.js","sourceRoot":"","sources":["../../../icc-x-api/filters/PatientByHcPartyGenderEducationProfessionFilter.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,qFAAiF;AAIjF,MAAa,+CAAgD,SAAQ,6CAAqB;IACxF,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAYb,UAAK,GAAG,2CAA2C,CAAA,CAAC,wFAAwF;QAV1I,MAAM,CAAC,MAAM,CAAC,IAAuD,EAAE,IAAI,CAAC,CAAA;IAE9E,CAAC;CASF;AAfD,0GAeC","sourcesContent":["/*\n * Copyright (c) 2020. Taktik SA, All rights reserved.\n */\nimport { AbstractFilterPatient } from '../../icc-api/model/AbstractFilterPatient'\nimport { Patient } from '../../icc-api/model/Patient'\nimport GenderEnum = Patient.GenderEnum\n\nexport class PatientByHcPartyGenderEducationProfessionFilter extends AbstractFilterPatient {\n constructor(json: JSON | any) {\n super(json)\n\n Object.assign(this as PatientByHcPartyGenderEducationProfessionFilter, json)\n\n }\n\n healthcarePartyId?: string\n gender?: GenderEnum\n education?: string\n profession?: string\n desc?: string\n\n $type = 'PatientByHcPartyGenderEducationProfession' // Named according to the Kotlin class name in kraken-refactor without filter at the end\n}\n"]}
|
|
@@ -9,12 +9,10 @@ import { IntersectionFilter } from './IntersectionFilter';
|
|
|
9
9
|
import { UnionFilter } from './UnionFilter';
|
|
10
10
|
import { ComplementFilter } from './ComplementFilter';
|
|
11
11
|
import GenderEnum = Patient.GenderEnum;
|
|
12
|
-
import { HealthcareParty } from '../../icc-api/model/HealthcareParty';
|
|
13
|
-
import { AbstractFilterHealthcareParty } from 'icc-api/model/AbstractFilterHealthcareParty';
|
|
14
12
|
import { Device } from '../../icc-api/model/Device';
|
|
15
13
|
import { AbstractFilterDevice } from '../../icc-api/model/AbstractFilterDevice';
|
|
16
14
|
import { MaintenanceTask } from '../../icc-api/model/MaintenanceTask';
|
|
17
|
-
import { AbstractFilterMaintenanceTask } from 'icc-api/model/AbstractFilterMaintenanceTask';
|
|
15
|
+
import { AbstractFilterMaintenanceTask } from '../../icc-api/model/AbstractFilterMaintenanceTask';
|
|
18
16
|
import { Code } from '../../icc-api/model/Code';
|
|
19
17
|
import { AbstractFilterCode } from '../../icc-api/model/AbstractFilterCode';
|
|
20
18
|
import { HealthElement } from '../../icc-api/model/HealthElement';
|
|
@@ -23,6 +21,8 @@ import { Invoice } from '../../icc-api/model/Invoice';
|
|
|
23
21
|
import { AbstractFilterInvoice } from '../../icc-api/model/AbstractFilterInvoice';
|
|
24
22
|
import { User } from '../../icc-api/model/User';
|
|
25
23
|
import { AbstractFilterUser } from '../../icc-api/model/AbstractFilterUser';
|
|
24
|
+
import { HealthcareParty } from "../../icc-api/model/HealthcareParty";
|
|
25
|
+
import { AbstractFilterHealthcareParty } from "../../icc-api/model/AbstractFilterHealthcareParty";
|
|
26
26
|
export * from './AllCodesFilter';
|
|
27
27
|
export * from './AllDevicesFilter';
|
|
28
28
|
export * from './AllHealthcarePartiesFilter';
|
|
@@ -56,7 +56,7 @@ export * from './PatientByHcPartyAndSsinsFilter';
|
|
|
56
56
|
export * from './PatientByHcPartyDateOfBirthBetweenFilter';
|
|
57
57
|
export * from './PatientByHcPartyDateOfBirthFilter';
|
|
58
58
|
export * from './PatientByHcPartyFilter';
|
|
59
|
-
export * from './
|
|
59
|
+
export * from './PatientByHcPartyGenderEducationProfessionFilter';
|
|
60
60
|
export * from './PatientByHcPartyNameContainsFuzzyFilter';
|
|
61
61
|
export * from './PatientByHcPartyNameFilter';
|
|
62
62
|
export * from './PatientByIdsFilter';
|
|
@@ -79,13 +79,11 @@ export declare class Filter {
|
|
|
79
79
|
export type AbstractFilter<T> = (T extends Patient ? AbstractFilterPatient : T extends Contact ? AbstractFilterContact : T extends Service ? AbstractFilterService : T extends HealthcareParty ? AbstractFilterHealthcareParty : T extends Device ? AbstractFilterDevice : T extends MaintenanceTask ? AbstractFilterMaintenanceTask : T extends Code ? AbstractFilterCode : T extends HealthElement ? AbstractFilterHealthElement : T extends Invoice ? AbstractFilterInvoice : T extends User ? AbstractFilterUser : never) | ConstantFilter<T> | IntersectionFilter<T> | UnionFilter<T> | ComplementFilter<T>;
|
|
80
80
|
declare abstract class FilterBuilder<T> {
|
|
81
81
|
filterProvider?: () => AbstractFilter<T>;
|
|
82
|
-
composer: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T>;
|
|
83
82
|
protected constructor(filterProvider?: () => AbstractFilter<T>, composer?: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T>);
|
|
83
|
+
composer: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T>;
|
|
84
84
|
abstract build(): AbstractFilter<T>;
|
|
85
85
|
abstract clone(filterProvider?: () => AbstractFilter<T>, composer?: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T>;
|
|
86
86
|
listOf(elements: T[]): FilterBuilder<T>;
|
|
87
|
-
private makeLazyLeftRightFilterBuilder;
|
|
88
|
-
private makeEagerLeftRightFilterBuilder;
|
|
89
87
|
/**
|
|
90
88
|
* There are two ways of doing and, or, …
|
|
91
89
|
*
|
|
@@ -107,6 +105,8 @@ declare abstract class FilterBuilder<T> {
|
|
|
107
105
|
and(filterBuilderFactory?: (it: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T>;
|
|
108
106
|
or(filterBuilderFactory?: (it: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T>;
|
|
109
107
|
minus(filterBuilderFactory?: (it: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T>;
|
|
108
|
+
private makeLazyLeftRightFilterBuilder;
|
|
109
|
+
private makeEagerLeftRightFilterBuilder;
|
|
110
110
|
}
|
|
111
111
|
declare class PatientFilterBuilder extends FilterBuilder<Patient> {
|
|
112
112
|
hcpId?: string;
|
|
@@ -27,7 +27,7 @@ const PatientByHcPartyDateOfBirthBetweenFilter_1 = require("./PatientByHcPartyDa
|
|
|
27
27
|
const PatientByHcPartyDateOfBirthFilter_1 = require("./PatientByHcPartyDateOfBirthFilter");
|
|
28
28
|
const date_fns_1 = require("date-fns");
|
|
29
29
|
const PatientByHcPartyFilter_1 = require("./PatientByHcPartyFilter");
|
|
30
|
-
const
|
|
30
|
+
const PatientByHcPartyGenderEducationProfessionFilter_1 = require("./PatientByHcPartyGenderEducationProfessionFilter");
|
|
31
31
|
const PatientByIdsFilter_1 = require("./PatientByIdsFilter");
|
|
32
32
|
const PatientByHcPartyNameContainsFuzzyFilter_1 = require("./PatientByHcPartyNameContainsFuzzyFilter");
|
|
33
33
|
const ContactByHcPartyFilter_1 = require("./ContactByHcPartyFilter");
|
|
@@ -64,7 +64,7 @@ __exportStar(require("./PatientByHcPartyAndSsinsFilter"), exports);
|
|
|
64
64
|
__exportStar(require("./PatientByHcPartyDateOfBirthBetweenFilter"), exports);
|
|
65
65
|
__exportStar(require("./PatientByHcPartyDateOfBirthFilter"), exports);
|
|
66
66
|
__exportStar(require("./PatientByHcPartyFilter"), exports);
|
|
67
|
-
__exportStar(require("./
|
|
67
|
+
__exportStar(require("./PatientByHcPartyGenderEducationProfessionFilter"), exports);
|
|
68
68
|
__exportStar(require("./PatientByHcPartyNameContainsFuzzyFilter"), exports);
|
|
69
69
|
__exportStar(require("./PatientByHcPartyNameFilter"), exports);
|
|
70
70
|
__exportStar(require("./PatientByIdsFilter"), exports);
|
|
@@ -89,10 +89,10 @@ class Filter {
|
|
|
89
89
|
exports.Filter = Filter;
|
|
90
90
|
const f = new ComplementFilter_1.ComplementFilter(new ContactByHcPartyFilter_1.ContactByHcPartyFilter({}), new ContactByHcPartyFilter_1.ContactByHcPartyFilter({}));
|
|
91
91
|
class FilterBuilder {
|
|
92
|
+
// This is the method that is called each time we chain a filter to another filter. The default behaviour is to
|
|
93
|
+
// return a FilterBuilder with the provider set to the last element in the chain, except when we use combination
|
|
94
|
+
// operators like or()/and()/… . After one of those, the composer is set to a function that will return a FilterBuilder
|
|
92
95
|
constructor(filterProvider, composer) {
|
|
93
|
-
// This is the method that is called each time we chain a filter to another filter. The default behaviour is to
|
|
94
|
-
// return a FilterBuilder with the provider set to the last element in the chain, except when we use combination
|
|
95
|
-
// operators like or()/and()/… . After one of those, the composer is set to a function that will return a FilterBuilder
|
|
96
96
|
// that combines the existing filterBuilder with the filter definition we just added.
|
|
97
97
|
this.composer = (thisFilterBuilder, otherFilterBuilder) => otherFilterBuilder;
|
|
98
98
|
this.filterProvider = filterProvider;
|
|
@@ -101,25 +101,6 @@ class FilterBuilder {
|
|
|
101
101
|
listOf(elements) {
|
|
102
102
|
return this.clone(() => new ConstantFilter_1.ConstantFilter(elements));
|
|
103
103
|
}
|
|
104
|
-
makeLazyLeftRightFilterBuilder(leftHandRightHandFiltersCombiner) {
|
|
105
|
-
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
106
|
-
const leftHandFilterBuilder = this;
|
|
107
|
-
const leftHandFilter = leftHandFilterBuilder.build(); // Freeze the leftHand filter
|
|
108
|
-
return leftHandFilterBuilder.filterProvider
|
|
109
|
-
? this.clone(undefined, //filter provider is indeterminate until we have performed a composition
|
|
110
|
-
(unused, rightHandFilterBuilder) => {
|
|
111
|
-
// because we freeze the leftHand in the state it is right now, we are not going to use its value when the composition occurs
|
|
112
|
-
const rightHandFilter = rightHandFilterBuilder.build();
|
|
113
|
-
return rightHandFilter
|
|
114
|
-
? this.clone(leftHandRightHandFiltersCombiner(leftHandFilter, rightHandFilter), rightHandFilterBuilder.composer)
|
|
115
|
-
: rightHandFilterBuilder; //Can this happen ?
|
|
116
|
-
})
|
|
117
|
-
: this;
|
|
118
|
-
}
|
|
119
|
-
makeEagerLeftRightFilterBuilder(rightHandFilterBuilderFactory, leftHandRightHandFiltersCombiner) {
|
|
120
|
-
const rightHandFilterBuilder = rightHandFilterBuilderFactory(this);
|
|
121
|
-
return this.filterProvider ? this.clone(leftHandRightHandFiltersCombiner(this.build(), rightHandFilterBuilder.build())) : this;
|
|
122
|
-
}
|
|
123
104
|
/**
|
|
124
105
|
* There are two ways of doing and, or, …
|
|
125
106
|
*
|
|
@@ -150,6 +131,25 @@ class FilterBuilder {
|
|
|
150
131
|
const combiner = (leftHandFilter, rightHandFilter) => () => new ComplementFilter_1.ComplementFilter(leftHandFilter, rightHandFilter);
|
|
151
132
|
return filterBuilderFactory ? this.makeEagerLeftRightFilterBuilder(filterBuilderFactory, combiner) : this.makeLazyLeftRightFilterBuilder(combiner);
|
|
152
133
|
}
|
|
134
|
+
makeLazyLeftRightFilterBuilder(leftHandRightHandFiltersCombiner) {
|
|
135
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
136
|
+
const leftHandFilterBuilder = this;
|
|
137
|
+
const leftHandFilter = leftHandFilterBuilder.build(); // Freeze the leftHand filter
|
|
138
|
+
return leftHandFilterBuilder.filterProvider
|
|
139
|
+
? this.clone(undefined, //filter provider is indeterminate until we have performed a composition
|
|
140
|
+
(unused, rightHandFilterBuilder) => {
|
|
141
|
+
// because we freeze the leftHand in the state it is right now, we are not going to use its value when the composition occurs
|
|
142
|
+
const rightHandFilter = rightHandFilterBuilder.build();
|
|
143
|
+
return rightHandFilter
|
|
144
|
+
? this.clone(leftHandRightHandFiltersCombiner(leftHandFilter, rightHandFilter), rightHandFilterBuilder.composer)
|
|
145
|
+
: rightHandFilterBuilder; //Can this happen ?
|
|
146
|
+
})
|
|
147
|
+
: this;
|
|
148
|
+
}
|
|
149
|
+
makeEagerLeftRightFilterBuilder(rightHandFilterBuilderFactory, leftHandRightHandFiltersCombiner) {
|
|
150
|
+
const rightHandFilterBuilder = rightHandFilterBuilderFactory(this);
|
|
151
|
+
return this.filterProvider ? this.clone(leftHandRightHandFiltersCombiner(this.build(), rightHandFilterBuilder.build())) : this;
|
|
152
|
+
}
|
|
153
153
|
}
|
|
154
154
|
class PatientFilterBuilder extends FilterBuilder {
|
|
155
155
|
constructor(filterProvider, hcpId, composer) {
|
|
@@ -220,7 +220,7 @@ class PatientFilterBuilder extends FilterBuilder {
|
|
|
220
220
|
return this.withDateOfBirthBetween(parseInt((0, date_fns_1.format)((0, date_fns_1.add)(new Date(), { years: -age }), 'yyyyMMdd')), 99991231);
|
|
221
221
|
}
|
|
222
222
|
byGenderEducationProfession(gender, education, profession) {
|
|
223
|
-
return this.composer(this, new PatientFilterBuilder(() => new
|
|
223
|
+
return this.composer(this, new PatientFilterBuilder(() => new PatientByHcPartyGenderEducationProfessionFilter_1.PatientByHcPartyGenderEducationProfessionFilter({
|
|
224
224
|
healthcarePartyId: this.hcpId,
|
|
225
225
|
gender: gender,
|
|
226
226
|
education: education,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../icc-x-api/filters/filters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAiD;AAOjD,6DAAyD;AACzD,+CAA2C;AAC3C,yDAAqD;AACrD,uFAAmF;AACnF,yFAAqF;AACrF,+FAA2F;AAC3F,qFAAiF;AACjF,yGAAqG;AACrG,2FAAuF;AAEvF,uCAAsC;AACtC,qEAAiE;AACjE,2GAAuG;AACvG,6DAAyD;AACzD,uGAAmG;AAGnG,qEAAiE;AAgBjE,mDAAgC;AAChC,qDAAkC;AAClC,+DAA4C;AAC5C,mDAAgC;AAChC,oDAAiC;AACjC,wEAAqD;AACrD,qDAAkC;AAClC,mDAAgC;AAChC,2DAAwC;AACxC,6EAA0D;AAC1D,sEAAmD;AACnD,8DAA2C;AAC3C,0DAAuC;AACvC,sDAAmC;AACnC,iEAA8C;AAC9C,4EAAyD;AACzD,kFAA+D;AAC/D,wEAAqD;AACrD,6DAA0C;AAC1C,+DAA4C;AAC5C,gEAA6C;AAC7C,mEAAgD;AAChD,uDAAoC;AACpC,mEAAgD;AAChD,oEAAiD;AACjD,qEAAkD;AAClD,wEAAqD;AACrD,yEAAsD;AACtD,kEAA+C;AAC/C,mEAAgD;AAChD,6EAA0D;AAC1D,sEAAmD;AACnD,2DAAwC;AACxC,8EAA2D;AAC3D,4EAAyD;AACzD,+DAA4C;AAC5C,uDAAoC;AACpC,0EAAuD;AACvD,2DAAwC;A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C,IAAA,cAAG,EAAC,IAAI,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAA;IAC9G,CAAC;IAED,2BAA2B,CAAC,MAAmB,EAAE,SAAkB,EAAE,UAAmB;QACtF,OAAO,IAAI,CAAC,QAAQ,CAClB,IAAI,EACJ,IAAI,oBAAoB,CACtB,GAAG,EAAE,CACH,IAAI,qFAAyC,CAAC;YAC5C,iBAAiB,EAAE,IAAI,CAAC,KAAK;YAC7B,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,UAAU;SACvB,CAAC,EACJ,IAAI,CAAC,KAAK,CACX,CACsB,CAAA;IAC3B,CAAC;IAED,KAAK,CAAC,GAAa;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,oBAAoB,CAAC,GAAG,EAAE,CAAC,IAAI,uCAAkB,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAyB,CAAA;IACtI,CAAC;IAED,YAAY,CAAC,IAAY;QACvB,OAAO,IAAI,CAAC,QAAQ,CAClB,IAAI,EACJ,IAAI,oBAAoB,CACtB,GAAG,EAAE,CACH,IAAI,iFAAuC,CAAC;YAC1C,iBAAiB,EAAE,IAAI,CAAC,KAAK;YAC7B,YAAY,EAAE,IAAI;SACnB,CAAC,EACJ,IAAI,CAAC,KAAK,CACX,CACsB,CAAA;IAC3B,CAAC;IAED,KAAK;;QACH,OAAO,CAAA,MAAA,IAAI,CAAC,cAAc,oDAAI,KAAI,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAA;IACtD,CAAC;CACF","sourcesContent":["import { ConstantFilter } from './ConstantFilter'\nimport { Patient } from '../../icc-api/model/Patient'\nimport { AbstractFilterPatient } from '../../icc-api/model/AbstractFilterPatient'\nimport { AbstractFilterContact } from '../../icc-api/model/AbstractFilterContact'\nimport { AbstractFilterService } from '../../icc-api/model/AbstractFilterService'\nimport { Service } from '../../icc-api/model/Service'\nimport { Contact } from '../../icc-api/model/Contact'\nimport { IntersectionFilter } from './IntersectionFilter'\nimport { UnionFilter } from './UnionFilter'\nimport { ComplementFilter } from './ComplementFilter'\nimport { PatientByHcPartyAndActiveFilter } from './PatientByHcPartyAndActiveFilter'\nimport { PatientByHcPartyAndAddressFilter } from './PatientByHcPartyAndAddressFilter'\nimport { PatientByHcPartyAndExternalIdFilter } from './PatientByHcPartyAndExternalIdFilter'\nimport { PatientByHcPartyAndSsinsFilter } from './PatientByHcPartyAndSsinsFilter'\nimport { PatientByHcPartyDateOfBirthBetweenFilter } from './PatientByHcPartyDateOfBirthBetweenFilter'\nimport { PatientByHcPartyDateOfBirthFilter } from './PatientByHcPartyDateOfBirthFilter'\n\nimport { add, format } from 'date-fns'\nimport { PatientByHcPartyFilter } from './PatientByHcPartyFilter'\nimport { PatientByHcPartyGenderEducationProfession } from './PatientByHcPartyGenderEducationProfession'\nimport { PatientByIdsFilter } from './PatientByIdsFilter'\nimport { PatientByHcPartyNameContainsFuzzyFilter } from './PatientByHcPartyNameContainsFuzzyFilter'\n\nimport GenderEnum = Patient.GenderEnum\nimport { ContactByHcPartyFilter } from './ContactByHcPartyFilter'\nimport { HealthcareParty } from '../../icc-api/model/HealthcareParty'\nimport { AbstractFilterHealthcareParty } from 'icc-api/model/AbstractFilterHealthcareParty'\nimport { Device } from '../../icc-api/model/Device'\nimport { AbstractFilterDevice } from '../../icc-api/model/AbstractFilterDevice'\nimport { MaintenanceTask } from '../../icc-api/model/MaintenanceTask'\nimport { AbstractFilterMaintenanceTask } from 'icc-api/model/AbstractFilterMaintenanceTask'\nimport { Code } from '../../icc-api/model/Code'\nimport { AbstractFilterCode } from '../../icc-api/model/AbstractFilterCode'\nimport { HealthElement } from '../../icc-api/model/HealthElement'\nimport { AbstractFilterHealthElement } from '../../icc-api/model/AbstractFilterHealthElement'\nimport { Invoice } from '../../icc-api/model/Invoice'\nimport { AbstractFilterInvoice } from '../../icc-api/model/AbstractFilterInvoice'\nimport { User } from '../../icc-api/model/User'\nimport { AbstractFilterUser } from '../../icc-api/model/AbstractFilterUser'\n\nexport * from './AllCodesFilter'\nexport * from './AllDevicesFilter'\nexport * from './AllHealthcarePartiesFilter'\nexport * from './AllUsersFilter'\nexport * from './CodeByIdsFilter'\nexport * from './CodeByRegionTypeLabelLanguageFilter'\nexport * from './ComplementFilter'\nexport * from './ConstantFilter'\nexport * from './ContactByHcPartyFilter'\nexport * from './ContactByHcPartyPatientTagCodeDateFilter'\nexport * from './ContactByHcPartyTagCodeDateFilter'\nexport * from './ContactByServiceIdsFilter'\nexport * from './DeviceByHcPartyFilter'\nexport * from './DeviceByIdsFilter'\nexport * from './HealthElementByHcPartyFilter'\nexport * from './HealthElementByHcPartyIdentifiersFilter'\nexport * from './HealthElementByHcPartySecretForeignKeysFilter'\nexport * from './HealthElementByHcPartyTagCodeFilter'\nexport * from './HealthElementByIdsFilter'\nexport * from './HealthcarePartyByIdsFilter'\nexport * from './HealthcarePartyByNameFilter'\nexport * from './HealthcarePartyByTagCodeFilter'\nexport * from './IntersectionFilter'\nexport * from './InvoiceByHcPartyCodeDateFilter'\nexport * from './PatientByHcPartyAndActiveFilter'\nexport * from './PatientByHcPartyAndAddressFilter'\nexport * from './PatientByHcPartyAndExternalIdFilter'\nexport * from './PatientByHcPartyAndIdentifiersFilter'\nexport * from './PatientByHcPartyAndSsinFilter'\nexport * from './PatientByHcPartyAndSsinsFilter'\nexport * from './PatientByHcPartyDateOfBirthBetweenFilter'\nexport * from './PatientByHcPartyDateOfBirthFilter'\nexport * from './PatientByHcPartyFilter'\nexport * from './PatientByHcPartyGenderEducationProfession'\nexport * from './PatientByHcPartyNameContainsFuzzyFilter'\nexport * from './PatientByHcPartyNameFilter'\nexport * from './PatientByIdsFilter'\nexport * from './ServiceByContactsAndSubcontactsFilter'\nexport * from './ServiceByHcPartyFilter'\nexport * from './ServiceByHcPartyIdentifiersFilter'\nexport * from './ServiceByHcPartyHealthElementIdsFilter'\nexport * from './ServiceByHcPartyTagCodeDateFilter'\nexport * from './ServiceByIdsFilter'\nexport * from './ServiceBySecretForeignKeys'\nexport * from './UnionFilter'\nexport * from './UserByIdsFilter'\nexport * from './MaintenanceTaskByHcPartyAndIdentifiersFilter'\nexport * from './MaintenanceTaskByHcPartyAndTypeFilter'\nexport * from './MaintenanceTaskByIdsFilter'\nexport * from './MaintenanceTaskAfterDateFilter'\n\nexport class Filter {\n public static patient(): PatientFilterBuilder {\n return new PatientFilterBuilder()\n }\n}\n\nexport type AbstractFilter<T> =\n | (T extends Patient\n ? AbstractFilterPatient\n : T extends Contact\n ? AbstractFilterContact\n : T extends Service\n ? AbstractFilterService\n : T extends HealthcareParty\n ? AbstractFilterHealthcareParty\n : T extends Device\n ? AbstractFilterDevice\n : T extends MaintenanceTask\n ? AbstractFilterMaintenanceTask\n : T extends Code\n ? AbstractFilterCode\n : T extends HealthElement\n ? AbstractFilterHealthElement\n : T extends Invoice\n ? AbstractFilterInvoice\n : T extends User\n ? AbstractFilterUser\n : never)\n | ConstantFilter<T>\n | IntersectionFilter<T>\n | UnionFilter<T>\n | ComplementFilter<T>\n\nconst f: AbstractFilterContact = new ComplementFilter<Contact>(new ContactByHcPartyFilter({}), new ContactByHcPartyFilter({}))\n\nabstract class FilterBuilder<T> {\n // This is the current generator for the filter, when we call build(), filterProvider() is going to be called\n filterProvider?: () => AbstractFilter<T>\n // This is the method that is called each time we chain a filter to another filter. The default behaviour is to\n // return a FilterBuilder with the provider set to the last element in the chain, except when we use combination\n // operators like or()/and()/… . After one of those, the composer is set to a function that will return a FilterBuilder\n // that combines the existing filterBuilder with the filter definition we just added.\n composer: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T> = (\n thisFilterBuilder: FilterBuilder<T>,\n otherFilterBuilder: FilterBuilder<T>\n ) => otherFilterBuilder\n\n protected constructor(\n filterProvider?: () => AbstractFilter<T>,\n composer?: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T>\n ) {\n this.filterProvider = filterProvider\n composer && (this.composer = composer)\n }\n\n abstract build(): AbstractFilter<T>\n\n abstract clone(\n filterProvider?: () => AbstractFilter<T>,\n composer?: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T>\n ): FilterBuilder<T>\n\n listOf(elements: T[]): FilterBuilder<T> {\n return this.clone(() => new ConstantFilter<T>(elements) as AbstractFilter<T>)\n }\n\n private makeLazyLeftRightFilterBuilder(\n leftHandRightHandFiltersCombiner: (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () => AbstractFilter<T>\n ) {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const leftHandFilterBuilder: FilterBuilder<T> = this\n const leftHandFilter = leftHandFilterBuilder.build() // Freeze the leftHand filter\n\n return leftHandFilterBuilder.filterProvider\n ? this.clone(\n undefined, //filter provider is indeterminate until we have performed a composition\n (unused: FilterBuilder<T>, rightHandFilterBuilder: FilterBuilder<T>) => {\n // because we freeze the leftHand in the state it is right now, we are not going to use its value when the composition occurs\n const rightHandFilter = rightHandFilterBuilder.build()\n\n return rightHandFilter\n ? this.clone(leftHandRightHandFiltersCombiner(leftHandFilter, rightHandFilter), rightHandFilterBuilder.composer)\n : rightHandFilterBuilder //Can this happen ?\n }\n )\n : this\n }\n\n private makeEagerLeftRightFilterBuilder(\n rightHandFilterBuilderFactory: (it: FilterBuilder<T>) => FilterBuilder<T>,\n leftHandRightHandFiltersCombiner: (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () => AbstractFilter<T>\n ) {\n const rightHandFilterBuilder = rightHandFilterBuilderFactory(this)\n return this.filterProvider ? this.clone(leftHandRightHandFiltersCombiner(this.build(), rightHandFilterBuilder.build())) : this\n }\n\n /**\n * There are two ways of doing and, or, …\n *\n * 1) for (...) or (...) we use the syntax ... .or((builder) => builder...)\n * ex: youngerThan(65).or((b) => b.olderThan(18).and().gender(M)) means any gender < 65 or male > 18\n * 2) for ((...) or ...) we use the syntax ... .or().…\n * ex: youngerThan(65).or().olderThan(18).and().gender(M) means males between 18 and 65\n *\n * When 1) is used we do not have to wait for anything to provide a resolved builder that can later be combined with extra elements in the chain.\n * In other words, we can build the current filter chain up to the or/and/… and we can build what is inside the or/and/… brackets and we can set\n * the filterProvider of the returned Builder to () => UnionFilter([leftHand.build(), innerBrackets.build()]).\n *\n * When 2) is used, things get more tricky because we will have to do an or/and/… between what we have on the leftHand and with what we do not have\n * yet on the right hand. What we do in that situation is to set the filterProvider() to undefined because calling build() without having provided a\n * rightHand doesn't make sense. We set a composer that is going to be called the next time we chain a filter.\n *\n * @param filterBuilderFactory\n */\n\n and(filterBuilderFactory?: (it: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T> {\n const combiner = (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () =>\n new IntersectionFilter<T>([leftHandFilter, rightHandFilter]) as AbstractFilter<T>\n\n return filterBuilderFactory ? this.makeEagerLeftRightFilterBuilder(filterBuilderFactory, combiner) : this.makeLazyLeftRightFilterBuilder(combiner)\n }\n\n or(filterBuilderFactory?: (it: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T> {\n const combiner = (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () =>\n new UnionFilter<T>([leftHandFilter, rightHandFilter]) as AbstractFilter<T>\n\n return filterBuilderFactory ? this.makeEagerLeftRightFilterBuilder(filterBuilderFactory, combiner) : this.makeLazyLeftRightFilterBuilder(combiner)\n }\n\n minus(filterBuilderFactory?: (it: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T> {\n const combiner = (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () =>\n new ComplementFilter<T>(leftHandFilter, rightHandFilter) as AbstractFilter<T>\n\n return filterBuilderFactory ? this.makeEagerLeftRightFilterBuilder(filterBuilderFactory, combiner) : this.makeLazyLeftRightFilterBuilder(combiner)\n }\n}\n\nclass PatientFilterBuilder extends FilterBuilder<Patient> {\n hcpId?: string\n\n constructor(\n filterProvider?: () => AbstractFilter<Patient>,\n hcpId?: string,\n composer?: (thisFilterBuilder: FilterBuilder<Patient>, otherFilterBuilder: FilterBuilder<Patient>) => FilterBuilder<Patient>\n ) {\n super(filterProvider, composer)\n this.hcpId = hcpId\n }\n\n clone(\n filterProvider?: () => AbstractFilter<Patient>,\n composer?: (thisFilterBuilder: FilterBuilder<Patient>, otherFilterBuilder: FilterBuilder<Patient>) => FilterBuilder<Patient>\n ): FilterBuilder<Patient> {\n return new PatientFilterBuilder(filterProvider, this.hcpId, composer)\n }\n\n listOf(elements: Patient[]): PatientFilterBuilder {\n return new PatientFilterBuilder(() => new ConstantFilter<Patient>(elements) as AbstractFilter<Patient>)\n }\n\n and(filterBuilderFactory?: (it: PatientFilterBuilder) => PatientFilterBuilder): PatientFilterBuilder {\n return super.and(filterBuilderFactory as any) as PatientFilterBuilder\n }\n\n or(filterBuilderFactory?: (it: PatientFilterBuilder) => PatientFilterBuilder): PatientFilterBuilder {\n return super.or(filterBuilderFactory as any) as PatientFilterBuilder\n }\n\n minus(filterBuilderFactory?: (it: PatientFilterBuilder) => PatientFilterBuilder): PatientFilterBuilder {\n return super.minus(filterBuilderFactory as any) as PatientFilterBuilder\n }\n\n forHcp(hcpId: string): PatientFilterBuilder {\n return this.composer(this, new PatientFilterBuilder(this.filterProvider, hcpId)) as PatientFilterBuilder\n }\n\n all(): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(() => new PatientByHcPartyFilter({ healthcarePartyId: this.hcpId }), this.hcpId)\n ) as PatientFilterBuilder\n }\n\n activePatients(): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(() => new PatientByHcPartyAndActiveFilter({ healthcarePartyId: this.hcpId, active: true }), this.hcpId)\n ) as PatientFilterBuilder\n }\n\n inactivePatients(): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(() => new PatientByHcPartyAndActiveFilter({ healthcarePartyId: this.hcpId, active: false }), this.hcpId)\n ) as PatientFilterBuilder\n }\n\n byAddress(searchString?: string, postalCode?: string, houseNumber?: string): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyAndAddressFilter({\n healthcarePartyId: this.hcpId,\n searchString,\n postalCode,\n houseNumber,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n withExternalId(externalId: string): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyAndExternalIdFilter({\n healthcarePartyId: this.hcpId,\n externalId: externalId,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n withSsins(ssins: string[]): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(() => new PatientByHcPartyAndSsinsFilter({ healthcarePartyId: this.hcpId, ssins: ssins }), this.hcpId)\n ) as PatientFilterBuilder\n }\n\n withDateOfBirthBetween(from?: number, to?: number): PatientFilterBuilder {\n return this.composer(\n this,\n this.clone(\n () =>\n new PatientByHcPartyDateOfBirthBetweenFilter({\n healthcarePartyId: this.hcpId,\n minDateOfBirth: from,\n maxDateOfBirth: to,\n })\n )\n ) as PatientFilterBuilder\n }\n\n byDateOfBirth(dateOfBirth: number): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyDateOfBirthFilter({\n healthcarePartyId: this.hcpId,\n dateOfBirth: dateOfBirth,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n olderThan(age: number): PatientFilterBuilder {\n return this.withDateOfBirthBetween(10000101, parseInt(format(add(new Date(), { years: -age }), 'yyyyMMdd')))\n }\n\n youngerThan(age: number): PatientFilterBuilder {\n return this.withDateOfBirthBetween(parseInt(format(add(new Date(), { years: -age }), 'yyyyMMdd')), 99991231)\n }\n\n byGenderEducationProfession(gender?: GenderEnum, education?: string, profession?: string): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyGenderEducationProfession({\n healthcarePartyId: this.hcpId,\n gender: gender,\n education: education,\n profession: profession,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n byIds(ids: string[]): PatientFilterBuilder {\n return this.composer(this, new PatientFilterBuilder(() => new PatientByIdsFilter({ ids: ids }), this.hcpId)) as PatientFilterBuilder\n }\n\n searchByName(name: string): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyNameContainsFuzzyFilter({\n healthcarePartyId: this.hcpId,\n searchString: name,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n build(): AbstractFilter<Patient> {\n return this.filterProvider?.() || this.all().build()\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../icc-x-api/filters/filters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAA+C;AAO/C,6DAAuD;AACvD,+CAAyC;AACzC,yDAAmD;AACnD,uFAAiF;AACjF,yFAAmF;AACnF,+FAAyF;AACzF,qFAA+E;AAC/E,yGAAmG;AACnG,2FAAqF;AAErF,uCAAoC;AACpC,qEAA+D;AAC/D,uHAAiH;AACjH,6DAAuD;AACvD,uGAAiG;AAGjG,qEAA+D;AAgB/D,mDAAgC;AAChC,qDAAkC;AAClC,+DAA4C;AAC5C,mDAAgC;AAChC,oDAAiC;AACjC,wEAAqD;AACrD,qDAAkC;AAClC,mDAAgC;AAChC,2DAAwC;AACxC,6EAA0D;AAC1D,sEAAmD;AACnD,8DAA2C;AAC3C,0DAAuC;AACvC,sDAAmC;AACnC,iEAA8C;AAC9C,4EAAyD;AACzD,kFAA+D;AAC/D,wEAAqD;AACrD,6DAA0C;AAC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,CACX,CACsB,CAAA;IAC3B,CAAC;IAED,KAAK;;QACH,OAAO,CAAA,MAAA,IAAI,CAAC,cAAc,oDAAI,KAAI,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,CAAA;IACtD,CAAC;CACF","sourcesContent":["import {ConstantFilter} from './ConstantFilter'\nimport {Patient} from '../../icc-api/model/Patient'\nimport {AbstractFilterPatient} from '../../icc-api/model/AbstractFilterPatient'\nimport {AbstractFilterContact} from '../../icc-api/model/AbstractFilterContact'\nimport {AbstractFilterService} from '../../icc-api/model/AbstractFilterService'\nimport {Service} from '../../icc-api/model/Service'\nimport {Contact} from '../../icc-api/model/Contact'\nimport {IntersectionFilter} from './IntersectionFilter'\nimport {UnionFilter} from './UnionFilter'\nimport {ComplementFilter} from './ComplementFilter'\nimport {PatientByHcPartyAndActiveFilter} from './PatientByHcPartyAndActiveFilter'\nimport {PatientByHcPartyAndAddressFilter} from './PatientByHcPartyAndAddressFilter'\nimport {PatientByHcPartyAndExternalIdFilter} from './PatientByHcPartyAndExternalIdFilter'\nimport {PatientByHcPartyAndSsinsFilter} from './PatientByHcPartyAndSsinsFilter'\nimport {PatientByHcPartyDateOfBirthBetweenFilter} from './PatientByHcPartyDateOfBirthBetweenFilter'\nimport {PatientByHcPartyDateOfBirthFilter} from './PatientByHcPartyDateOfBirthFilter'\n\nimport {add, format} from 'date-fns'\nimport {PatientByHcPartyFilter} from './PatientByHcPartyFilter'\nimport {PatientByHcPartyGenderEducationProfessionFilter} from './PatientByHcPartyGenderEducationProfessionFilter'\nimport {PatientByIdsFilter} from './PatientByIdsFilter'\nimport {PatientByHcPartyNameContainsFuzzyFilter} from './PatientByHcPartyNameContainsFuzzyFilter'\n\nimport GenderEnum = Patient.GenderEnum\nimport {ContactByHcPartyFilter} from './ContactByHcPartyFilter'\nimport {Device} from '../../icc-api/model/Device'\nimport {AbstractFilterDevice} from '../../icc-api/model/AbstractFilterDevice'\nimport {MaintenanceTask} from '../../icc-api/model/MaintenanceTask'\nimport {AbstractFilterMaintenanceTask} from '../../icc-api/model/AbstractFilterMaintenanceTask'\nimport {Code} from '../../icc-api/model/Code'\nimport {AbstractFilterCode} from '../../icc-api/model/AbstractFilterCode'\nimport {HealthElement} from '../../icc-api/model/HealthElement'\nimport {AbstractFilterHealthElement} from '../../icc-api/model/AbstractFilterHealthElement'\nimport {Invoice} from '../../icc-api/model/Invoice'\nimport {AbstractFilterInvoice} from '../../icc-api/model/AbstractFilterInvoice'\nimport {User} from '../../icc-api/model/User'\nimport {AbstractFilterUser} from '../../icc-api/model/AbstractFilterUser'\nimport {HealthcareParty} from \"../../icc-api/model/HealthcareParty\"\nimport {AbstractFilterHealthcareParty} from \"../../icc-api/model/AbstractFilterHealthcareParty\"\n\nexport * from './AllCodesFilter'\nexport * from './AllDevicesFilter'\nexport * from './AllHealthcarePartiesFilter'\nexport * from './AllUsersFilter'\nexport * from './CodeByIdsFilter'\nexport * from './CodeByRegionTypeLabelLanguageFilter'\nexport * from './ComplementFilter'\nexport * from './ConstantFilter'\nexport * from './ContactByHcPartyFilter'\nexport * from './ContactByHcPartyPatientTagCodeDateFilter'\nexport * from './ContactByHcPartyTagCodeDateFilter'\nexport * from './ContactByServiceIdsFilter'\nexport * from './DeviceByHcPartyFilter'\nexport * from './DeviceByIdsFilter'\nexport * from './HealthElementByHcPartyFilter'\nexport * from './HealthElementByHcPartyIdentifiersFilter'\nexport * from './HealthElementByHcPartySecretForeignKeysFilter'\nexport * from './HealthElementByHcPartyTagCodeFilter'\nexport * from './HealthElementByIdsFilter'\nexport * from './HealthcarePartyByIdsFilter'\nexport * from './HealthcarePartyByNameFilter'\nexport * from './HealthcarePartyByTagCodeFilter'\nexport * from './IntersectionFilter'\nexport * from './InvoiceByHcPartyCodeDateFilter'\nexport * from './PatientByHcPartyAndActiveFilter'\nexport * from './PatientByHcPartyAndAddressFilter'\nexport * from './PatientByHcPartyAndExternalIdFilter'\nexport * from './PatientByHcPartyAndIdentifiersFilter'\nexport * from './PatientByHcPartyAndSsinFilter'\nexport * from './PatientByHcPartyAndSsinsFilter'\nexport * from './PatientByHcPartyDateOfBirthBetweenFilter'\nexport * from './PatientByHcPartyDateOfBirthFilter'\nexport * from './PatientByHcPartyFilter'\nexport * from './PatientByHcPartyGenderEducationProfessionFilter'\nexport * from './PatientByHcPartyNameContainsFuzzyFilter'\nexport * from './PatientByHcPartyNameFilter'\nexport * from './PatientByIdsFilter'\nexport * from './ServiceByContactsAndSubcontactsFilter'\nexport * from './ServiceByHcPartyFilter'\nexport * from './ServiceByHcPartyIdentifiersFilter'\nexport * from './ServiceByHcPartyHealthElementIdsFilter'\nexport * from './ServiceByHcPartyTagCodeDateFilter'\nexport * from './ServiceByIdsFilter'\nexport * from './ServiceBySecretForeignKeys'\nexport * from './UnionFilter'\nexport * from './UserByIdsFilter'\nexport * from './MaintenanceTaskByHcPartyAndIdentifiersFilter'\nexport * from './MaintenanceTaskByHcPartyAndTypeFilter'\nexport * from './MaintenanceTaskByIdsFilter'\nexport * from './MaintenanceTaskAfterDateFilter'\n\nexport class Filter {\n public static patient(): PatientFilterBuilder {\n return new PatientFilterBuilder()\n }\n}\n\nexport type AbstractFilter<T> =\n | (T extends Patient\n ? AbstractFilterPatient\n : T extends Contact\n ? AbstractFilterContact\n : T extends Service\n ? AbstractFilterService\n : T extends HealthcareParty\n ? AbstractFilterHealthcareParty\n : T extends Device\n ? AbstractFilterDevice\n : T extends MaintenanceTask\n ? AbstractFilterMaintenanceTask\n : T extends Code\n ? AbstractFilterCode\n : T extends HealthElement\n ? AbstractFilterHealthElement\n : T extends Invoice\n ? AbstractFilterInvoice\n : T extends User\n ? AbstractFilterUser\n : never)\n | ConstantFilter<T>\n | IntersectionFilter<T>\n | UnionFilter<T>\n | ComplementFilter<T>\n\nconst f: AbstractFilterContact = new ComplementFilter<Contact>(new ContactByHcPartyFilter({}), new ContactByHcPartyFilter({}))\n\nabstract class FilterBuilder<T> {\n // This is the current generator for the filter, when we call build(), filterProvider() is going to be called\n filterProvider?: () => AbstractFilter<T>\n // This is the method that is called each time we chain a filter to another filter. The default behaviour is to\n // return a FilterBuilder with the provider set to the last element in the chain, except when we use combination\n // operators like or()/and()/… . After one of those, the composer is set to a function that will return a FilterBuilder\n\n protected constructor(\n filterProvider?: () => AbstractFilter<T>,\n composer?: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T>\n ) {\n this.filterProvider = filterProvider\n composer && (this.composer = composer)\n }\n\n // that combines the existing filterBuilder with the filter definition we just added.\n composer: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T> = (\n thisFilterBuilder: FilterBuilder<T>,\n otherFilterBuilder: FilterBuilder<T>\n ) => otherFilterBuilder\n\n abstract build(): AbstractFilter<T>\n\n abstract clone(\n filterProvider?: () => AbstractFilter<T>,\n composer?: (thisFilterBuilder: FilterBuilder<T>, otherFilterBuilder: FilterBuilder<T>) => FilterBuilder<T>\n ): FilterBuilder<T>\n\n listOf(elements: T[]): FilterBuilder<T> {\n return this.clone(() => new ConstantFilter<T>(elements) as AbstractFilter<T>)\n }\n\n /**\n * There are two ways of doing and, or, …\n *\n * 1) for (...) or (...) we use the syntax ... .or((builder) => builder...)\n * ex: youngerThan(65).or((b) => b.olderThan(18).and().gender(M)) means any gender < 65 or male > 18\n * 2) for ((...) or ...) we use the syntax ... .or().…\n * ex: youngerThan(65).or().olderThan(18).and().gender(M) means males between 18 and 65\n *\n * When 1) is used we do not have to wait for anything to provide a resolved builder that can later be combined with extra elements in the chain.\n * In other words, we can build the current filter chain up to the or/and/… and we can build what is inside the or/and/… brackets and we can set\n * the filterProvider of the returned Builder to () => UnionFilter([leftHand.build(), innerBrackets.build()]).\n *\n * When 2) is used, things get more tricky because we will have to do an or/and/… between what we have on the leftHand and with what we do not have\n * yet on the right hand. What we do in that situation is to set the filterProvider() to undefined because calling build() without having provided a\n * rightHand doesn't make sense. We set a composer that is going to be called the next time we chain a filter.\n *\n * @param filterBuilderFactory\n */\n\n and(filterBuilderFactory?: (it: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T> {\n const combiner = (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () =>\n new IntersectionFilter<T>([leftHandFilter, rightHandFilter]) as AbstractFilter<T>\n\n return filterBuilderFactory ? this.makeEagerLeftRightFilterBuilder(filterBuilderFactory, combiner) : this.makeLazyLeftRightFilterBuilder(combiner)\n }\n\n or(filterBuilderFactory?: (it: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T> {\n const combiner = (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () =>\n new UnionFilter<T>([leftHandFilter, rightHandFilter]) as AbstractFilter<T>\n\n return filterBuilderFactory ? this.makeEagerLeftRightFilterBuilder(filterBuilderFactory, combiner) : this.makeLazyLeftRightFilterBuilder(combiner)\n }\n\n minus(filterBuilderFactory?: (it: FilterBuilder<T>) => FilterBuilder<T>): FilterBuilder<T> {\n const combiner = (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () =>\n new ComplementFilter<T>(leftHandFilter, rightHandFilter) as AbstractFilter<T>\n\n return filterBuilderFactory ? this.makeEagerLeftRightFilterBuilder(filterBuilderFactory, combiner) : this.makeLazyLeftRightFilterBuilder(combiner)\n }\n\n private makeLazyLeftRightFilterBuilder(\n leftHandRightHandFiltersCombiner: (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () => AbstractFilter<T>\n ) {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const leftHandFilterBuilder: FilterBuilder<T> = this\n const leftHandFilter = leftHandFilterBuilder.build() // Freeze the leftHand filter\n\n return leftHandFilterBuilder.filterProvider\n ? this.clone(\n undefined, //filter provider is indeterminate until we have performed a composition\n (unused: FilterBuilder<T>, rightHandFilterBuilder: FilterBuilder<T>) => {\n // because we freeze the leftHand in the state it is right now, we are not going to use its value when the composition occurs\n const rightHandFilter = rightHandFilterBuilder.build()\n\n return rightHandFilter\n ? this.clone(leftHandRightHandFiltersCombiner(leftHandFilter, rightHandFilter), rightHandFilterBuilder.composer)\n : rightHandFilterBuilder //Can this happen ?\n }\n )\n : this\n }\n\n private makeEagerLeftRightFilterBuilder(\n rightHandFilterBuilderFactory: (it: FilterBuilder<T>) => FilterBuilder<T>,\n leftHandRightHandFiltersCombiner: (leftHandFilter: AbstractFilter<T>, rightHandFilter: AbstractFilter<T>) => () => AbstractFilter<T>\n ) {\n const rightHandFilterBuilder = rightHandFilterBuilderFactory(this)\n return this.filterProvider ? this.clone(leftHandRightHandFiltersCombiner(this.build(), rightHandFilterBuilder.build())) : this\n }\n}\n\nclass PatientFilterBuilder extends FilterBuilder<Patient> {\n hcpId?: string\n\n constructor(\n filterProvider?: () => AbstractFilter<Patient>,\n hcpId?: string,\n composer?: (thisFilterBuilder: FilterBuilder<Patient>, otherFilterBuilder: FilterBuilder<Patient>) => FilterBuilder<Patient>\n ) {\n super(filterProvider, composer)\n this.hcpId = hcpId\n }\n\n clone(\n filterProvider?: () => AbstractFilter<Patient>,\n composer?: (thisFilterBuilder: FilterBuilder<Patient>, otherFilterBuilder: FilterBuilder<Patient>) => FilterBuilder<Patient>\n ): FilterBuilder<Patient> {\n return new PatientFilterBuilder(filterProvider, this.hcpId, composer)\n }\n\n listOf(elements: Patient[]): PatientFilterBuilder {\n return new PatientFilterBuilder(() => new ConstantFilter<Patient>(elements) as AbstractFilter<Patient>)\n }\n\n and(filterBuilderFactory?: (it: PatientFilterBuilder) => PatientFilterBuilder): PatientFilterBuilder {\n return super.and(filterBuilderFactory as any) as PatientFilterBuilder\n }\n\n or(filterBuilderFactory?: (it: PatientFilterBuilder) => PatientFilterBuilder): PatientFilterBuilder {\n return super.or(filterBuilderFactory as any) as PatientFilterBuilder\n }\n\n minus(filterBuilderFactory?: (it: PatientFilterBuilder) => PatientFilterBuilder): PatientFilterBuilder {\n return super.minus(filterBuilderFactory as any) as PatientFilterBuilder\n }\n\n forHcp(hcpId: string): PatientFilterBuilder {\n return this.composer(this, new PatientFilterBuilder(this.filterProvider, hcpId)) as PatientFilterBuilder\n }\n\n all(): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(() => new PatientByHcPartyFilter({healthcarePartyId: this.hcpId}), this.hcpId)\n ) as PatientFilterBuilder\n }\n\n activePatients(): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(() => new PatientByHcPartyAndActiveFilter({healthcarePartyId: this.hcpId, active: true}), this.hcpId)\n ) as PatientFilterBuilder\n }\n\n inactivePatients(): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(() => new PatientByHcPartyAndActiveFilter({healthcarePartyId: this.hcpId, active: false}), this.hcpId)\n ) as PatientFilterBuilder\n }\n\n byAddress(searchString?: string, postalCode?: string, houseNumber?: string): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyAndAddressFilter({\n healthcarePartyId: this.hcpId,\n searchString,\n postalCode,\n houseNumber,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n withExternalId(externalId: string): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyAndExternalIdFilter({\n healthcarePartyId: this.hcpId,\n externalId: externalId,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n withSsins(ssins: string[]): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(() => new PatientByHcPartyAndSsinsFilter({healthcarePartyId: this.hcpId, ssins: ssins}), this.hcpId)\n ) as PatientFilterBuilder\n }\n\n withDateOfBirthBetween(from?: number, to?: number): PatientFilterBuilder {\n return this.composer(\n this,\n this.clone(\n () =>\n new PatientByHcPartyDateOfBirthBetweenFilter({\n healthcarePartyId: this.hcpId,\n minDateOfBirth: from,\n maxDateOfBirth: to,\n })\n )\n ) as PatientFilterBuilder\n }\n\n byDateOfBirth(dateOfBirth: number): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyDateOfBirthFilter({\n healthcarePartyId: this.hcpId,\n dateOfBirth: dateOfBirth,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n olderThan(age: number): PatientFilterBuilder {\n return this.withDateOfBirthBetween(10000101, parseInt(format(add(new Date(), {years: -age}), 'yyyyMMdd')))\n }\n\n youngerThan(age: number): PatientFilterBuilder {\n return this.withDateOfBirthBetween(parseInt(format(add(new Date(), {years: -age}), 'yyyyMMdd')), 99991231)\n }\n\n byGenderEducationProfession(gender?: GenderEnum, education?: string, profession?: string): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyGenderEducationProfessionFilter({\n healthcarePartyId: this.hcpId,\n gender: gender,\n education: education,\n profession: profession,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n byIds(ids: string[]): PatientFilterBuilder {\n return this.composer(this, new PatientFilterBuilder(() => new PatientByIdsFilter({ids: ids}), this.hcpId)) as PatientFilterBuilder\n }\n\n searchByName(name: string): PatientFilterBuilder {\n return this.composer(\n this,\n new PatientFilterBuilder(\n () =>\n new PatientByHcPartyNameContainsFuzzyFilter({\n healthcarePartyId: this.hcpId,\n searchString: name,\n }),\n this.hcpId\n )\n ) as PatientFilterBuilder\n }\n\n build(): AbstractFilter<Patient> {\n return this.filterProvider?.() || this.all().build()\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* iCure Data Stack API Documentation
|
|
3
|
-
* The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: v1
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export declare class PatientByHcPartyGenderEducationProfession {
|
|
13
|
-
constructor(json: JSON | any);
|
|
14
|
-
desc?: string;
|
|
15
|
-
healthcarePartyId?: string;
|
|
16
|
-
gender?: PatientByHcPartyGenderEducationProfession.GenderEnum;
|
|
17
|
-
education?: string;
|
|
18
|
-
profession?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare namespace PatientByHcPartyGenderEducationProfession {
|
|
21
|
-
type GenderEnum = 'M' | 'F' | 'I' | 'C' | 'Y' | 'X' | 'U';
|
|
22
|
-
const GenderEnum: {
|
|
23
|
-
M: GenderEnum;
|
|
24
|
-
F: GenderEnum;
|
|
25
|
-
I: GenderEnum;
|
|
26
|
-
C: GenderEnum;
|
|
27
|
-
Y: GenderEnum;
|
|
28
|
-
X: GenderEnum;
|
|
29
|
-
U: GenderEnum;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* iCure Data Stack API Documentation
|
|
4
|
-
* The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.
|
|
5
|
-
*
|
|
6
|
-
* OpenAPI spec version: v1
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
10
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PatientByHcPartyGenderEducationProfession = void 0;
|
|
15
|
-
class PatientByHcPartyGenderEducationProfession {
|
|
16
|
-
constructor(json) {
|
|
17
|
-
Object.assign(this, json);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.PatientByHcPartyGenderEducationProfession = PatientByHcPartyGenderEducationProfession;
|
|
21
|
-
(function (PatientByHcPartyGenderEducationProfession) {
|
|
22
|
-
PatientByHcPartyGenderEducationProfession.GenderEnum = {
|
|
23
|
-
M: 'M',
|
|
24
|
-
F: 'F',
|
|
25
|
-
I: 'I',
|
|
26
|
-
C: 'C',
|
|
27
|
-
Y: 'Y',
|
|
28
|
-
X: 'X',
|
|
29
|
-
U: 'U',
|
|
30
|
-
};
|
|
31
|
-
})(PatientByHcPartyGenderEducationProfession = exports.PatientByHcPartyGenderEducationProfession || (exports.PatientByHcPartyGenderEducationProfession = {}));
|
|
32
|
-
//# sourceMappingURL=PatientByHcPartyGenderEducationProfession.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PatientByHcPartyGenderEducationProfession.js","sourceRoot":"","sources":["../../../icc-api/model/PatientByHcPartyGenderEducationProfession.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,yCAAyC;IACpD,YAAY,IAAgB;QAC1B,MAAM,CAAC,MAAM,CAAC,IAAiD,EAAE,IAAI,CAAC,CAAA;IACxE,CAAC;CAOF;AAVD,8FAUC;AACD,WAAiB,yCAAyC;IAE3C,oDAAU,GAAG;QACxB,CAAC,EAAE,GAAiB;QACpB,CAAC,EAAE,GAAiB;QACpB,CAAC,EAAE,GAAiB;QACpB,CAAC,EAAE,GAAiB;QACpB,CAAC,EAAE,GAAiB;QACpB,CAAC,EAAE,GAAiB;QACpB,CAAC,EAAE,GAAiB;KACrB,CAAA;AACH,CAAC,EAXgB,yCAAyC,GAAzC,iDAAyC,KAAzC,iDAAyC,QAWzD","sourcesContent":["/**\n * iCure Data Stack API Documentation\n * The iCure Data Stack Application API is the native interface to iCure. This version is obsolete, please use v2.\n *\n * OpenAPI spec version: v1\n *\n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n\nexport class PatientByHcPartyGenderEducationProfession {\n constructor(json: JSON | any) {\n Object.assign(this as PatientByHcPartyGenderEducationProfession, json)\n }\n\n desc?: string\n healthcarePartyId?: string\n gender?: PatientByHcPartyGenderEducationProfession.GenderEnum\n education?: string\n profession?: string\n}\nexport namespace PatientByHcPartyGenderEducationProfession {\n export type GenderEnum = 'M' | 'F' | 'I' | 'C' | 'Y' | 'X' | 'U'\n export const GenderEnum = {\n M: 'M' as GenderEnum,\n F: 'F' as GenderEnum,\n I: 'I' as GenderEnum,\n C: 'C' as GenderEnum,\n Y: 'Y' as GenderEnum,\n X: 'X' as GenderEnum,\n U: 'U' as GenderEnum,\n }\n}\n"]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PatientByHcPartyGenderEducationProfession = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* Copyright (c) 2020. Taktik SA, All rights reserved.
|
|
6
|
-
*/
|
|
7
|
-
const AbstractFilterPatient_1 = require("../../icc-api/model/AbstractFilterPatient");
|
|
8
|
-
class PatientByHcPartyGenderEducationProfession extends AbstractFilterPatient_1.AbstractFilterPatient {
|
|
9
|
-
constructor(json) {
|
|
10
|
-
super(json);
|
|
11
|
-
this.$type = 'PatientByHcPartyGenderEducationProfession';
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.PatientByHcPartyGenderEducationProfession = PatientByHcPartyGenderEducationProfession;
|
|
15
|
-
//# sourceMappingURL=PatientByHcPartyGenderEducationProfession.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PatientByHcPartyGenderEducationProfession.js","sourceRoot":"","sources":["../../../icc-x-api/filters/PatientByHcPartyGenderEducationProfession.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,qFAAiF;AAIjF,MAAa,yCAA0C,SAAQ,6CAAqB;IAClF,YAAY,IAAgB;QAC1B,KAAK,CAAC,IAAI,CAAC,CAAA;QAQb,UAAK,GAAG,2CAA2C,CAAA;IAPnD,CAAC;CAQF;AAXD,8FAWC","sourcesContent":["/*\n * Copyright (c) 2020. Taktik SA, All rights reserved.\n */\nimport { AbstractFilterPatient } from '../../icc-api/model/AbstractFilterPatient'\nimport { Patient } from '../../icc-api/model/Patient'\nimport GenderEnum = Patient.GenderEnum\n\nexport class PatientByHcPartyGenderEducationProfession extends AbstractFilterPatient {\n constructor(json: JSON | any) {\n super(json)\n }\n\n healthcarePartyId?: string\n gender?: GenderEnum\n education?: string\n profession?: string\n\n $type = 'PatientByHcPartyGenderEducationProfession'\n}\n"]}
|