@icure/api 4.2.22 → 4.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/icc-api/api/IccDeviceApi.d.ts +10 -0
  2. package/icc-api/api/IccDeviceApi.js +13 -0
  3. package/icc-api/api/IccDeviceApi.js.map +1 -1
  4. package/icc-api/api/IccHcpartyApi.d.ts +11 -1
  5. package/icc-api/api/IccHcpartyApi.js +14 -1
  6. package/icc-api/api/IccHcpartyApi.js.map +1 -1
  7. package/icc-api/api/IccMaintenanceTaskApi.d.ts +56 -0
  8. package/icc-api/api/IccMaintenanceTaskApi.js +111 -0
  9. package/icc-api/api/IccMaintenanceTaskApi.js.map +1 -0
  10. package/icc-api/api/IccPatientApi.d.ts +10 -0
  11. package/icc-api/api/IccPatientApi.js +13 -0
  12. package/icc-api/api/IccPatientApi.js.map +1 -1
  13. package/icc-api/api/IccUserApi.d.ts +2 -2
  14. package/icc-api/api/IccUserApi.js +4 -4
  15. package/icc-api/api/IccUserApi.js.map +1 -1
  16. package/icc-api/iccApi.d.ts +1 -1
  17. package/icc-api/iccApi.js +1 -1
  18. package/icc-api/iccApi.js.map +1 -1
  19. package/icc-api/model/AbstractFilterMaintenanceTask.d.ts +15 -0
  20. package/icc-api/model/AbstractFilterMaintenanceTask.js +21 -0
  21. package/icc-api/model/AbstractFilterMaintenanceTask.js.map +1 -0
  22. package/icc-api/model/Device.d.ts +5 -7
  23. package/icc-api/model/Device.js.map +1 -1
  24. package/icc-api/model/FilterChainMaintenanceTask.d.ts +19 -0
  25. package/icc-api/model/FilterChainMaintenanceTask.js +11 -0
  26. package/icc-api/model/FilterChainMaintenanceTask.js.map +1 -0
  27. package/icc-api/model/FormTemplate.d.ts +1 -0
  28. package/icc-api/model/FormTemplate.js.map +1 -1
  29. package/icc-api/model/HealthcareParty.d.ts +18 -7
  30. package/icc-api/model/HealthcareParty.js.map +1 -1
  31. package/icc-api/model/MaintenanceTask.d.ts +95 -0
  32. package/icc-api/model/MaintenanceTask.js +18 -0
  33. package/icc-api/model/MaintenanceTask.js.map +1 -0
  34. package/icc-api/model/PaginatedListMaintenanceTask.d.ts +20 -0
  35. package/icc-api/model/PaginatedListMaintenanceTask.js +10 -0
  36. package/icc-api/model/PaginatedListMaintenanceTask.js.map +1 -0
  37. package/icc-api/model/Patient.d.ts +5 -7
  38. package/icc-api/model/Patient.js.map +1 -1
  39. package/icc-api/model/PermissionItem.d.ts +1 -0
  40. package/icc-api/model/PermissionItem.js.map +1 -1
  41. package/icc-api/model/models.d.ts +4 -7
  42. package/icc-api/model/models.js +4 -7
  43. package/icc-api/model/models.js.map +1 -1
  44. package/icc-x-api/icc-classification-x-api.d.ts +2 -2
  45. package/icc-x-api/icc-classification-x-api.js +4 -4
  46. package/icc-x-api/icc-classification-x-api.js.map +1 -1
  47. package/icc-x-api/icc-contact-x-api.d.ts +1 -1
  48. package/icc-x-api/icc-contact-x-api.js +5 -5
  49. package/icc-x-api/icc-contact-x-api.js.map +1 -1
  50. package/icc-x-api/icc-crypto-x-api.d.ts +1 -1
  51. package/icc-x-api/icc-crypto-x-api.js +1 -1
  52. package/icc-x-api/icc-crypto-x-api.js.map +1 -1
  53. package/icc-x-api/icc-form-x-api.d.ts +1 -1
  54. package/icc-x-api/icc-form-x-api.js +4 -4
  55. package/icc-x-api/icc-form-x-api.js.map +1 -1
  56. package/icc-x-api/icc-helement-x-api.d.ts +2 -2
  57. package/icc-x-api/icc-helement-x-api.js +4 -4
  58. package/icc-x-api/icc-helement-x-api.js.map +1 -1
  59. package/icc-x-api/icc-invoice-x-api.d.ts +1 -1
  60. package/icc-x-api/icc-invoice-x-api.js +4 -4
  61. package/icc-x-api/icc-invoice-x-api.js.map +1 -1
  62. package/icc-x-api/icc-message-x-api.d.ts +1 -1
  63. package/icc-x-api/icc-message-x-api.js +2 -2
  64. package/icc-x-api/icc-message-x-api.js.map +1 -1
  65. package/icc-x-api/icc-patient-x-api.d.ts +2 -2
  66. package/icc-x-api/icc-patient-x-api.js +4 -4
  67. package/icc-x-api/icc-patient-x-api.js.map +1 -1
  68. package/package.json +2 -1
@@ -4,6 +4,7 @@ export * from './AbstractFilterDevice';
4
4
  export * from './AbstractFilterHealthElement';
5
5
  export * from './AbstractFilterHealthcareParty';
6
6
  export * from './AbstractFilterInvoice';
7
+ export * from './AbstractFilterMaintenanceTask';
7
8
  export * from './AbstractFilterPatient';
8
9
  export * from './AbstractFilterService';
9
10
  export * from './AbstractFilterUser';
@@ -19,8 +20,6 @@ export * from './Ampp';
19
20
  export * from './AmppComponent';
20
21
  export * from './Annotation';
21
22
  export * from './ApplicationSettings';
22
- export * from './Appointment';
23
- export * from './AppointmentImport';
24
23
  export * from './AppointmentTypeAndPlace';
25
24
  export * from './Article';
26
25
  export * from './Atc';
@@ -63,7 +62,6 @@ export * from './Duration';
63
62
  export * from './EIDItem';
64
63
  export * from './Editor';
65
64
  export * from './EfactInvoice';
66
- export * from './EmailOrSmsMessage';
67
65
  export * from './Employer';
68
66
  export * from './EmploymentInfo';
69
67
  export * from './EntityReference';
@@ -75,6 +73,7 @@ export * from './FilterChainDevice';
75
73
  export * from './FilterChainHealthElement';
76
74
  export * from './FilterChainHealthcareParty';
77
75
  export * from './FilterChainInvoice';
76
+ export * from './FilterChainMaintenanceTask';
78
77
  export * from './FilterChainPatient';
79
78
  export * from './FilterChainService';
80
79
  export * from './FilterChainUser';
@@ -106,7 +105,6 @@ export * from './IdentityDocumentReader';
106
105
  export * from './ImportMapping';
107
106
  export * from './ImportResult';
108
107
  export * from './IncapacityExportInfo';
109
- export * from './IndexedIdentifier';
110
108
  export * from './IndexingInfo';
111
109
  export * from './Ingredient';
112
110
  export * from './Insurability';
@@ -123,6 +121,7 @@ export * from './LetterValue';
123
121
  export * from './ListOfIds';
124
122
  export * from './ListOfProperties';
125
123
  export * from './LoginCredentials';
124
+ export * from './MaintenanceTask';
126
125
  export * from './MapOfIds';
127
126
  export * from './Measure';
128
127
  export * from './MedexInfo';
@@ -135,8 +134,6 @@ export * from './Message';
135
134
  export * from './MessageReadStatus';
136
135
  export * from './MessageWithBatch';
137
136
  export * from './MessagesReadStatusUpdate';
138
- export * from './MikronoAppointmentTypeRest';
139
- export * from './MikronoCredentials';
140
137
  export * from './MimeAttachment';
141
138
  export * from './Nmp';
142
139
  export * from './NoGenericPrescriptionReason';
@@ -158,6 +155,7 @@ export * from './PaginatedListGroup';
158
155
  export * from './PaginatedListHealthElement';
159
156
  export * from './PaginatedListHealthcareParty';
160
157
  export * from './PaginatedListInvoice';
158
+ export * from './PaginatedListMaintenanceTask';
161
159
  export * from './PaginatedListMessage';
162
160
  export * from './PaginatedListNmp';
163
161
  export * from './PaginatedListPatient';
@@ -172,7 +170,6 @@ export * from './ParagraphAgreement';
172
170
  export * from './Partnership';
173
171
  export * from './Patient';
174
172
  export * from './PatientHealthCareParty';
175
- export * from './PatientRegistrationSuccess';
176
173
  export * from './Payment';
177
174
  export * from './Periodicity';
178
175
  export * from './Permission';
@@ -16,6 +16,7 @@ __exportStar(require("./AbstractFilterDevice"), exports);
16
16
  __exportStar(require("./AbstractFilterHealthElement"), exports);
17
17
  __exportStar(require("./AbstractFilterHealthcareParty"), exports);
18
18
  __exportStar(require("./AbstractFilterInvoice"), exports);
19
+ __exportStar(require("./AbstractFilterMaintenanceTask"), exports);
19
20
  __exportStar(require("./AbstractFilterPatient"), exports);
20
21
  __exportStar(require("./AbstractFilterService"), exports);
21
22
  __exportStar(require("./AbstractFilterUser"), exports);
@@ -31,8 +32,6 @@ __exportStar(require("./Ampp"), exports);
31
32
  __exportStar(require("./AmppComponent"), exports);
32
33
  __exportStar(require("./Annotation"), exports);
33
34
  __exportStar(require("./ApplicationSettings"), exports);
34
- __exportStar(require("./Appointment"), exports);
35
- __exportStar(require("./AppointmentImport"), exports);
36
35
  __exportStar(require("./AppointmentTypeAndPlace"), exports);
37
36
  __exportStar(require("./Article"), exports);
38
37
  __exportStar(require("./Atc"), exports);
@@ -75,7 +74,6 @@ __exportStar(require("./Duration"), exports);
75
74
  __exportStar(require("./EIDItem"), exports);
76
75
  __exportStar(require("./Editor"), exports);
77
76
  __exportStar(require("./EfactInvoice"), exports);
78
- __exportStar(require("./EmailOrSmsMessage"), exports);
79
77
  __exportStar(require("./Employer"), exports);
80
78
  __exportStar(require("./EmploymentInfo"), exports);
81
79
  __exportStar(require("./EntityReference"), exports);
@@ -87,6 +85,7 @@ __exportStar(require("./FilterChainDevice"), exports);
87
85
  __exportStar(require("./FilterChainHealthElement"), exports);
88
86
  __exportStar(require("./FilterChainHealthcareParty"), exports);
89
87
  __exportStar(require("./FilterChainInvoice"), exports);
88
+ __exportStar(require("./FilterChainMaintenanceTask"), exports);
90
89
  __exportStar(require("./FilterChainPatient"), exports);
91
90
  __exportStar(require("./FilterChainService"), exports);
92
91
  __exportStar(require("./FilterChainUser"), exports);
@@ -118,7 +117,6 @@ __exportStar(require("./IdentityDocumentReader"), exports);
118
117
  __exportStar(require("./ImportMapping"), exports);
119
118
  __exportStar(require("./ImportResult"), exports);
120
119
  __exportStar(require("./IncapacityExportInfo"), exports);
121
- __exportStar(require("./IndexedIdentifier"), exports);
122
120
  __exportStar(require("./IndexingInfo"), exports);
123
121
  __exportStar(require("./Ingredient"), exports);
124
122
  __exportStar(require("./Insurability"), exports);
@@ -135,6 +133,7 @@ __exportStar(require("./LetterValue"), exports);
135
133
  __exportStar(require("./ListOfIds"), exports);
136
134
  __exportStar(require("./ListOfProperties"), exports);
137
135
  __exportStar(require("./LoginCredentials"), exports);
136
+ __exportStar(require("./MaintenanceTask"), exports);
138
137
  __exportStar(require("./MapOfIds"), exports);
139
138
  __exportStar(require("./Measure"), exports);
140
139
  __exportStar(require("./MedexInfo"), exports);
@@ -147,8 +146,6 @@ __exportStar(require("./Message"), exports);
147
146
  __exportStar(require("./MessageReadStatus"), exports);
148
147
  __exportStar(require("./MessageWithBatch"), exports);
149
148
  __exportStar(require("./MessagesReadStatusUpdate"), exports);
150
- __exportStar(require("./MikronoAppointmentTypeRest"), exports);
151
- __exportStar(require("./MikronoCredentials"), exports);
152
149
  __exportStar(require("./MimeAttachment"), exports);
153
150
  __exportStar(require("./Nmp"), exports);
154
151
  __exportStar(require("./NoGenericPrescriptionReason"), exports);
@@ -170,6 +167,7 @@ __exportStar(require("./PaginatedListGroup"), exports);
170
167
  __exportStar(require("./PaginatedListHealthElement"), exports);
171
168
  __exportStar(require("./PaginatedListHealthcareParty"), exports);
172
169
  __exportStar(require("./PaginatedListInvoice"), exports);
170
+ __exportStar(require("./PaginatedListMaintenanceTask"), exports);
173
171
  __exportStar(require("./PaginatedListMessage"), exports);
174
172
  __exportStar(require("./PaginatedListNmp"), exports);
175
173
  __exportStar(require("./PaginatedListPatient"), exports);
@@ -184,7 +182,6 @@ __exportStar(require("./ParagraphAgreement"), exports);
184
182
  __exportStar(require("./Partnership"), exports);
185
183
  __exportStar(require("./Patient"), exports);
186
184
  __exportStar(require("./PatientHealthCareParty"), exports);
187
- __exportStar(require("./PatientRegistrationSuccess"), exports);
188
185
  __exportStar(require("./Payment"), exports);
189
186
  __exportStar(require("./Periodicity"), exports);
190
187
  __exportStar(require("./Permission"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../icc-api/model/models.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAoC;AACpC,0DAAuC;AACvC,yDAAsC;AACtC,gEAA6C;AAC7C,kEAA+C;AAC/C,0DAAuC;AACvC,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,gDAA6B;AAC7B,sDAAmC;AACnC,4DAAyC;AACzC,4CAAyB;AACzB,wCAAqB;AACrB,2DAAwC;AACxC,w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;AAC7B,4DAAyC;AACzC,wDAAqC;AACrC,kDAA+B;AAC/B,2DAAwC;AACxC,2CAAwB;AACxB,yDAAsC;AACtC,4CAAyB;AACzB,gDAA6B;AAC7B,qDAAkC;AAClC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,+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","sourcesContent":["export * from './AbstractFilterCode'\nexport * from './AbstractFilterContact'\nexport * from './AbstractFilterDevice'\nexport * from './AbstractFilterHealthElement'\nexport * from './AbstractFilterHealthcareParty'\nexport * from './AbstractFilterInvoice'\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 './AuthenticationResponse'\nexport * from './AuthenticationToken'\nexport * from './Basic'\nexport * from './Body'\nexport * from './Body1'\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 './CommentedClassification'\nexport * from './Commercialization'\nexport * from './Company'\nexport * from './Contact'\nexport * from './Content'\nexport * from './Copayment'\nexport * from './Data'\nexport * from './DataOwnerRegistrationSuccess'\nexport * from './DatabaseInfo'\nexport * from './DatabaseInitialisation'\nexport * from './DatabaseSynchronization'\nexport * from './Delegation'\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 './EmailOrSmsMessage'\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 './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 './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 './IndexedIdentifier'\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 './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 './MikronoAppointmentTypeRest'\nexport * from './MikronoCredentials'\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 './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 './Partnership'\nexport * from './Patient'\nexport * from './PatientHealthCareParty'\nexport * from './PatientRegistrationSuccess'\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'\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../icc-api/model/models.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,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,2DAAwC;AACxC,wDAAqC;AACrC,0CAAuB;AACvB,yCAAsB;AACtB,0CAAuB;AACvB,iDAA8B;AAC9B,oDAAiC;AACjC,qDAAkC;AAClC,mDAAgC;AAChC,uDAAoC;AACpC,0DAAuC;AACvC,mDAAgC;AAChC,2DAAwC;AACxC,yCAAsB;AACtB,6CAA0B;AAC1B,4DAAyC;AACzC,sDAAmC;AACnC,4CAAyB;AACzB,4CAAyB;AAC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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","sourcesContent":["export * 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 './AuthenticationResponse'\nexport * from './AuthenticationToken'\nexport * from './Basic'\nexport * from './Body'\nexport * from './Body1'\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 './CommentedClassification'\nexport * from './Commercialization'\nexport * from './Company'\nexport * from './Contact'\nexport * from './Content'\nexport * from './Copayment'\nexport * from './Data'\nexport * from './DataOwnerRegistrationSuccess'\nexport * from './DatabaseInfo'\nexport * from './DatabaseInitialisation'\nexport * from './DatabaseSynchronization'\nexport * from './Delegation'\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 './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 './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'\n"]}
@@ -8,7 +8,7 @@ export declare class IccClassificationXApi extends IccClassificationApi {
8
8
  constructor(host: string, headers: {
9
9
  [key: string]: string;
10
10
  }, crypto: IccCryptoXApi, userApi: IccUserXApi, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
11
- newInstance(user: models.User, patient: models.Patient, c: any): Promise<models.Classification>;
12
- initDelegationsAndEncryptionKeys(user: models.User, patient: models.Patient, classification: models.Classification): Promise<models.Classification>;
11
+ newInstance(user: models.User, patient: models.Patient, c?: any, delegates?: string[]): Promise<models.Classification>;
12
+ initDelegationsAndEncryptionKeys(user: models.User, patient: models.Patient, classification: models.Classification, delegates?: string[]): Promise<models.Classification>;
13
13
  findBy(hcpartyId: string, patient: models.Patient): Promise<models.Classification[]>;
14
14
  }
@@ -14,7 +14,7 @@ class IccClassificationXApi extends icc_api_1.IccClassificationApi {
14
14
  this.crypto = crypto;
15
15
  this.userApi = userApi;
16
16
  }
17
- newInstance(user, patient, c) {
17
+ newInstance(user, patient, c = {}, delegates = []) {
18
18
  const classification = _.assign({
19
19
  id: this.crypto.randomUuid(),
20
20
  _type: 'org.taktik.icure.entities.Classification',
@@ -27,9 +27,9 @@ class IccClassificationXApi extends icc_api_1.IccClassificationApi {
27
27
  healthElementId: this.crypto.randomUuid(),
28
28
  openingDate: parseInt(moment().format('YYYYMMDDHHmmss')),
29
29
  }, c || {});
30
- return this.initDelegationsAndEncryptionKeys(user, patient, classification);
30
+ return this.initDelegationsAndEncryptionKeys(user, patient, classification, delegates);
31
31
  }
32
- initDelegationsAndEncryptionKeys(user, patient, classification) {
32
+ initDelegationsAndEncryptionKeys(user, patient, classification, delegates = []) {
33
33
  const dataOwnerId = this.userApi.getDataOwnerOf(user);
34
34
  return this.crypto
35
35
  .extractDelegationsSFKs(patient, dataOwnerId)
@@ -41,7 +41,7 @@ class IccClassificationXApi extends icc_api_1.IccClassificationApi {
41
41
  secretForeignKeys: initData.secretForeignKeys,
42
42
  });
43
43
  let promise = Promise.resolve(classification);
44
- (user.autoDelegations ? (user.autoDelegations.all || []).concat(user.autoDelegations.medicalInformation || []) : []).forEach((delegateId) => (promise = promise.then((classification) => this.crypto
44
+ _.uniq(delegates.concat(user.autoDelegations ? (user.autoDelegations.all || []).concat(user.autoDelegations.medicalInformation || []) : [])).forEach((delegateId) => (promise = promise.then((classification) => this.crypto
45
45
  .extendedDelegationsAndCryptedForeignKeys(classification, patient, dataOwnerId, delegateId, initData.secretId)
46
46
  .then((extraData) => _.extend(classification, {
47
47
  delegations: extraData.delegations,
@@ -1 +1 @@
1
- {"version":3,"file":"icc-classification-x-api.js","sourceRoot":"","sources":["../../icc-x-api/icc-classification-x-api.ts"],"names":[],"mappings":";;;AAAA,wCAAiD;AAKjD,4BAA2B;AAC3B,iCAAgC;AAGhC,MAAa,qBAAsB,SAAQ,8BAAoB;IAI7D,YACE,IAAY,EACZ,OAAkC,EAClC,MAAqB,EACrB,OAAoB,EACpB,YAA2E,OAAO,MAAM,KAAK,WAAW;QACtG,CAAC,CAAC,MAAM,CAAC,KAAK;QACd,CAAC,CAAC,OAAO,IAAI,KAAK,WAAW;YAC7B,CAAC,CAAC,IAAI,CAAC,KAAK;YACZ,CAAC,CAAC,KAAK;QAET,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,CAAC,CAAA;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,WAAW,CAAC,IAAiB,EAAE,OAAuB,EAAE,CAAM;QAC5D,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAC7B;YACE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YAC5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-crypto-x-api'\n\nimport * as models from '../icc-api/model/models'\n\nimport * as _ from 'lodash'\nimport * as moment from 'moment'\nimport { IccUserXApi } from './icc-user-x-api'\n\nexport class IccClassificationXApi extends IccClassificationApi {\n crypto: IccCryptoXApi\n userApi: IccUserXApi\n\n constructor(\n host: string,\n headers: { [key: string]: string },\n crypto: IccCryptoXApi,\n userApi: IccUserXApi,\n fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !== 'undefined'\n ? window.fetch\n : typeof self !== 'undefined'\n ? self.fetch\n : fetch\n ) {\n super(host, headers, fetchImpl)\n this.crypto = crypto\n this.userApi = userApi\n }\n\n newInstance(user: models.User, patient: models.Patient, c: any): Promise<models.Classification> {\n const classification = _.assign(\n {\n id: this.crypto.randomUuid(),\n _type: 'org.taktik.icure.entities.Classification',\n created: new Date().getTime(),\n modified: new Date().getTime(),\n responsible: this.userApi.getDataOwnerOf(user),\n author: user.id,\n codes: [],\n tags: [],\n healthElementId: this.crypto.randomUuid(),\n openingDate: parseInt(moment().format('YYYYMMDDHHmmss')),\n },\n c || {}\n )\n\n return this.initDelegationsAndEncryptionKeys(user, patient, classification)\n }\n\n initDelegationsAndEncryptionKeys(\n user: models.User,\n patient: models.Patient,\n classification: models.Classification\n ): Promise<models.Classification> {\n const dataOwnerId = this.userApi.getDataOwnerOf(user)\n return this.crypto\n .extractDelegationsSFKs(patient, dataOwnerId!)\n .then((secretForeignKeys) => this.crypto.initObjectDelegations(classification, patient, dataOwnerId!, secretForeignKeys.extractedKeys[0]))\n .then((initData) => {\n _.extend(classification, {\n delegations: initData.delegations,\n cryptedForeignKeys: initData.cryptedForeignKeys,\n secretForeignKeys: initData.secretForeignKeys,\n })\n\n let promise = Promise.resolve(classification)\n ;(user.autoDelegations ? (user.autoDelegations.all || []).concat(user.autoDelegations.medicalInformation || []) : []).forEach(\n (delegateId) =>\n (promise = promise.then((classification) =>\n this.crypto\n .extendedDelegationsAndCryptedForeignKeys(classification, patient, dataOwnerId!, delegateId, initData.secretId)\n .then((extraData) =>\n _.extend(classification, {\n delegations: extraData.delegations,\n cryptedForeignKeys: extraData.cryptedForeignKeys,\n })\n )\n .catch((e) => {\n console.log(e)\n return classification\n })\n ))\n )\n\n return promise\n })\n }\n\n findBy(hcpartyId: string, patient: models.Patient) {\n return this.crypto\n .extractDelegationsSFKs(patient, hcpartyId)\n .then((secretForeignKeys) =>\n this.findClassificationsByHCPartyPatientForeignKeys(secretForeignKeys.hcpartyId!, _.uniq(secretForeignKeys.extractedKeys).join(','))\n )\n }\n}\n"]}
1
+ {"version":3,"file":"icc-classification-x-api.js","sourceRoot":"","sources":["../../icc-x-api/icc-classification-x-api.ts"],"names":[],"mappings":";;;AAAA,wCAAiD;AAKjD,4BAA2B;AAC3B,iCAAgC;AAGhC,MAAa,qBAAsB,SAAQ,8BAAoB;IAI7D,YACE,IAAY,EACZ,OAAkC,EAClC,MAAqB,EACrB,OAAoB,EACpB,YAA2E,OAAO,MAAM,KAAK,WAAW;QACtG,CAAC,CAAC,MAAM,CAAC,KAAK;QACd,CAAC,CAAC,OAAO,IAAI,KAAK,WAAW;YAC7B,CAAC,CAAC,IAAI,CAAC,KAAK;YACZ,CAAC,CAAC,KAAK;QAET,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,SAAS,CAAC,CAAA;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,WAAW,CAAC,IAAiB,EAAE,OAAuB,EAAE,IAAS,EAAE,EAAE,YAAsB,EAAE;QAC3F,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAC7B;YACE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;YAC5B,KAAK,EAAE,0CAA0C;YACjD,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;YAC7B,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;YAC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,eAAe,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CACrI,CAAC,OAAO,CACP,CAAC,UAAU,EAAE,EAAE,CACb,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,EAAE,CACzC,IAAI,CAAC,MAAM;iBACR,wCAAwC,CAAC,cAAc,EAAE,OAAO,EAAE,WAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAAC;iBAC9G,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAClB,CAAC,CAAC,MAAM,CAAC,cAAc,EAAE;gBACvB,WAAW,EAAE,SAAS,CAAC,WAAW;gBAClC,kBAAkB,EAAE,SAAS,CAAC,kBAAkB;aACjD,CAAC,CACH;iBACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;gBACX,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;gBACd,OAAO,cAAc,CAAA;YACvB,CAAC,CAAC,CACL,CAAC,CACL,CAAA;YAED,OAAO,OAAO,CAAA;QAChB,CAAC,CAAC,CAAA;IACN,CAAC;IAED,MAAM,CAAC,SAAiB,EAAE,OAAuB;QAC/C,OAAO,IAAI,CAAC,MAAM;aACf,sBAAsB,CAAC,OAAO,EAAE,SAAS,CAAC;aAC1C,IAAI,CAAC,CAAC,iBAAiB,EAAE,EAAE,CAC1B,IAAI,CAAC,8CAA8C,CAAC,iBAAiB,CAAC,SAAU,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CACrI,CAAA;IACL,CAAC;CACF;AAzFD,sDAyFC","sourcesContent":["import { IccClassificationApi } from '../icc-api'\nimport { IccCryptoXApi } from './icc-crypto-x-api'\n\nimport * as models from '../icc-api/model/models'\n\nimport * as _ from 'lodash'\nimport * as moment from 'moment'\nimport { IccUserXApi } from './icc-user-x-api'\n\nexport class IccClassificationXApi extends IccClassificationApi {\n crypto: IccCryptoXApi\n userApi: IccUserXApi\n\n constructor(\n host: string,\n headers: { [key: string]: string },\n crypto: IccCryptoXApi,\n userApi: IccUserXApi,\n fetchImpl: (input: RequestInfo, init?: RequestInit) => Promise<Response> = typeof window !== 'undefined'\n ? window.fetch\n : typeof self !== 'undefined'\n ? self.fetch\n : fetch\n ) {\n super(host, headers, fetchImpl)\n this.crypto = crypto\n this.userApi = userApi\n }\n\n newInstance(user: models.User, patient: models.Patient, c: any = {}, delegates: string[] = []): Promise<models.Classification> {\n const classification = _.assign(\n {\n id: this.crypto.randomUuid(),\n _type: 'org.taktik.icure.entities.Classification',\n created: new Date().getTime(),\n modified: new Date().getTime(),\n responsible: this.userApi.getDataOwnerOf(user),\n author: user.id,\n codes: [],\n tags: [],\n healthElementId: this.crypto.randomUuid(),\n openingDate: parseInt(moment().format('YYYYMMDDHHmmss')),\n },\n c || {}\n )\n\n return this.initDelegationsAndEncryptionKeys(user, patient, classification, delegates)\n }\n\n initDelegationsAndEncryptionKeys(\n user: models.User,\n patient: models.Patient,\n classification: models.Classification,\n delegates: string[] = []\n ): Promise<models.Classification> {\n const dataOwnerId = this.userApi.getDataOwnerOf(user)\n return this.crypto\n .extractDelegationsSFKs(patient, dataOwnerId!)\n .then((secretForeignKeys) => this.crypto.initObjectDelegations(classification, patient, dataOwnerId!, secretForeignKeys.extractedKeys[0]))\n .then((initData) => {\n _.extend(classification, {\n delegations: initData.delegations,\n cryptedForeignKeys: initData.cryptedForeignKeys,\n secretForeignKeys: initData.secretForeignKeys,\n })\n\n let promise = Promise.resolve(classification)\n _.uniq(\n delegates.concat(user.autoDelegations ? (user.autoDelegations.all || []).concat(user.autoDelegations.medicalInformation || []) : [])\n ).forEach(\n (delegateId) =>\n (promise = promise.then((classification) =>\n this.crypto\n .extendedDelegationsAndCryptedForeignKeys(classification, patient, dataOwnerId!, delegateId, initData.secretId)\n .then((extraData) =>\n _.extend(classification, {\n delegations: extraData.delegations,\n cryptedForeignKeys: extraData.cryptedForeignKeys,\n })\n )\n .catch((e) => {\n console.log(e)\n return classification\n })\n ))\n )\n\n return promise\n })\n }\n\n findBy(hcpartyId: string, patient: models.Patient) {\n return this.crypto\n .extractDelegationsSFKs(patient, hcpartyId)\n .then((secretForeignKeys) =>\n this.findClassificationsByHCPartyPatientForeignKeys(secretForeignKeys.hcpartyId!, _.uniq(secretForeignKeys.extractedKeys).join(','))\n )\n }\n}\n"]}
@@ -11,7 +11,7 @@ export declare class IccContactXApi extends IccContactApi {
11
11
  constructor(host: string, headers: {
12
12
  [key: string]: string;
13
13
  }, crypto: IccCryptoXApi, userApi: IccUserXApi, fetchImpl?: (input: RequestInfo, init?: RequestInit) => Promise<Response>);
14
- newInstance(user: models.User, patient: models.Patient, c: any, confidential?: boolean): Promise<models.Contact>;
14
+ newInstance(user: models.User, patient: models.Patient, c: any, confidential?: boolean, delegates?: string[]): Promise<models.Contact>;
15
15
  /**
16
16
  * 1. Extract(decrypt) the patient's secretForeignKeys from the
17
17
  * "delegations" object.
@@ -30,7 +30,7 @@ class IccContactXApi extends icc_api_1.IccContactApi {
30
30
  this.crypto = crypto;
31
31
  this.userApi = userApi;
32
32
  }
33
- newInstance(user, patient, c, confidential = false) {
33
+ newInstance(user, patient, c, confidential = false, delegates = []) {
34
34
  const contact = new models.Contact(_.extend({
35
35
  id: this.crypto.randomUuid(),
36
36
  _type: 'org.taktik.icure.entities.Contact',
@@ -45,7 +45,7 @@ class IccContactXApi extends icc_api_1.IccContactApi {
45
45
  services: [],
46
46
  openingDate: parseInt(moment().format('YYYYMMDDHHmmss')),
47
47
  }, c || {}));
48
- return this.initDelegationsAndEncryptionKeys(user, patient, contact, confidential);
48
+ return this.initDelegationsAndEncryptionKeys(user, patient, contact, confidential, delegates);
49
49
  }
50
50
  /**
51
51
  * 1. Extract(decrypt) the patient's secretForeignKeys from the
@@ -55,13 +55,13 @@ class IccContactXApi extends icc_api_1.IccContactApi {
55
55
  * 4. Return the contact with the extended delegations, cryptedForeignKeys
56
56
  * & encryptionKeys.
57
57
  */
58
- initDelegationsAndEncryptionKeys(user, patient, contact, confidential = false) {
58
+ initDelegationsAndEncryptionKeys(user, patient, contact, confidential = false, delegates = []) {
59
59
  const dataOwnerId = this.userApi.getDataOwnerOf(user);
60
60
  return this.crypto
61
61
  .extractPreferredSfk(patient, dataOwnerId, confidential)
62
62
  .then((key) => {
63
63
  if (!key) {
64
- console.error(`SFK cannot be found for HealthElement ${key}. The health element will not be reachable from the patient side`);
64
+ console.error(`SFK cannot be found for Contact ${key}. The contact will not be reachable from the patient side`);
65
65
  }
66
66
  return Promise.all([
67
67
  this.crypto.initObjectDelegations(contact, patient, dataOwnerId, key),
@@ -76,7 +76,7 @@ class IccContactXApi extends icc_api_1.IccContactApi {
76
76
  encryptionKeys: eks.encryptionKeys,
77
77
  });
78
78
  let promise = Promise.resolve(contact);
79
- (user.autoDelegations ? (user.autoDelegations.all || []).concat(user.autoDelegations.medicalInformation || []) : []).forEach((delegateId) => (promise = promise.then((contact) => this.crypto.addDelegationsAndEncryptionKeys(patient, contact, dataOwnerId, delegateId, dels.secretId, eks.secretId).catch((e) => {
79
+ _.uniq(delegates.concat(user.autoDelegations ? (user.autoDelegations.all || []).concat(user.autoDelegations.medicalInformation || []) : [])).forEach((delegateId) => (promise = promise.then((contact) => this.crypto.addDelegationsAndEncryptionKeys(patient, contact, dataOwnerId, delegateId, dels.secretId, eks.secretId).catch((e) => {
80
80
  console.log(e);
81
81
  return contact;
82
82
  }))));