@icure/cardinal-sdk 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/CalendarItemApi.d.mts +36 -0
- package/api/CalendarItemInGroupApi.d.mts +16 -0
- package/cardinal-sdk-ts.mjs +39815 -39345
- package/cardinal-sdk.mjs +64698 -64411
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlinx-coroutines-core.mjs +8 -8
- package/model/embed/Medication.d.mts +0 -85
- package/model/embed/Medication.mjs +0 -85
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../
|
|
|
2
2
|
import { CalendarItemShareOptions } from '../crypto/entities/CalendarItemShareOptions.mjs';
|
|
3
3
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
4
4
|
import { CalendarItem, DecryptedCalendarItem, EncryptedCalendarItem } from '../model/CalendarItem.mjs';
|
|
5
|
+
import { CalendarItemOccupancy } from '../model/CalendarItemOccupancy.mjs';
|
|
5
6
|
import { EntityReferenceInGroup } from '../model/EntityReferenceInGroup.mjs';
|
|
6
7
|
import { Patient } from '../model/Patient.mjs';
|
|
7
8
|
import { StoredDocumentIdentifier } from '../model/StoredDocumentIdentifier.mjs';
|
|
@@ -153,6 +154,41 @@ export interface CalendarItemApi {
|
|
|
153
154
|
* @return a list of calendarItem ids
|
|
154
155
|
*/
|
|
155
156
|
matchCalendarItemsBySorted(filter: SortableFilterOptions<CalendarItem>): Promise<Array<string>>;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* Computes the concurrent-occupancy histogram of the calendar items for the current data owner over the
|
|
160
|
+
* period [startDate]..[endDate] (fuzzy date-times, either bound may be null = open).
|
|
161
|
+
*
|
|
162
|
+
* Only calendar items whose whole interval fits within the search range are considered. By default, the
|
|
163
|
+
* range is exactly [startDate]..[endDate], so items starting before [startDate] or ending after [endDate]
|
|
164
|
+
* are ignored. Pass [extensionInDays] to widen the range by that many days on each side, which lets items
|
|
165
|
+
* that start shortly before [startDate] (contributing to the occupancy baseline) or end shortly after
|
|
166
|
+
* [endDate] be taken into account. Items reaching beyond the extended range are still ignored.
|
|
167
|
+
*/
|
|
168
|
+
getCalendarItemsOccupancyByPeriodForSelf(startDate: number, endDate: number, extensionInDays: number | undefined): Promise<Array<CalendarItemOccupancy>>;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* Computes the concurrent-occupancy histogram of the calendar items of [hcPartyId] over the
|
|
172
|
+
* period [startDate]..[endDate] (fuzzy date-times, either bound may be null = open).
|
|
173
|
+
*
|
|
174
|
+
* Only calendar items whose whole interval fits within the search range are considered. By default, the
|
|
175
|
+
* range is exactly [startDate]..[endDate], so items starting before [startDate] or ending after [endDate]
|
|
176
|
+
* are ignored. Pass [extensionInDays] to widen the range by that many days on each side, which lets items
|
|
177
|
+
* that start shortly before [startDate] (contributing to the occupancy baseline) or end shortly after
|
|
178
|
+
* [endDate] be taken into account. Items reaching beyond the extended range are still ignored.
|
|
179
|
+
*/
|
|
180
|
+
getCalendarItemsOccupancyByPeriodForHealthcareParty(startDate: number, endDate: number, hcPartyId: string, extensionInDays: number | undefined): Promise<Array<CalendarItemOccupancy>>;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* Computes the concurrent-occupancy histogram of the calendar items of the agenda [agendaId] over the
|
|
184
|
+
* period [startDate]..[endDate] (fuzzy date-times, either bound may be null = open).
|
|
185
|
+
*
|
|
186
|
+
* Only calendar items whose whole interval fits within the search range are considered. By default, the range
|
|
187
|
+
* is exactly [startDate]..[endDate], you can pass a non-null [extensionInDays] to widen it by that many days on each side (e.g.
|
|
188
|
+
* to include items that start before [startDate] but are still open during the period). Items reaching beyond
|
|
189
|
+
* the extended range are ignored.
|
|
190
|
+
*/
|
|
191
|
+
getCalendarItemsOccupancyByPeriodAndAgendaId(startDate: number, endDate: number, agendaId: string, extensionInDays: number | undefined): Promise<Array<CalendarItemOccupancy>>;
|
|
156
192
|
/**
|
|
157
193
|
*
|
|
158
194
|
* Deletes a calendarItem. If you don't have write access to the calendarItem the method will fail.
|
|
@@ -2,6 +2,7 @@ import { FilterOptions, PaginatedListIterator, SortableFilterOptions } from '../
|
|
|
2
2
|
import { CalendarItemShareOptions } from '../crypto/entities/CalendarItemShareOptions.mjs';
|
|
3
3
|
import { SecretIdUseOption } from '../crypto/entities/SecretIdUseOption.mjs';
|
|
4
4
|
import { CalendarItem, DecryptedCalendarItem, EncryptedCalendarItem } from '../model/CalendarItem.mjs';
|
|
5
|
+
import { CalendarItemOccupancy } from '../model/CalendarItemOccupancy.mjs';
|
|
5
6
|
import { EntityReferenceInGroup } from '../model/EntityReferenceInGroup.mjs';
|
|
6
7
|
import { GroupScoped } from '../model/GroupScoped.mjs';
|
|
7
8
|
import { Patient } from '../model/Patient.mjs';
|
|
@@ -72,6 +73,21 @@ export interface CalendarItemInGroupApi {
|
|
|
72
73
|
* In-group version of [CalendarItemApi.matchCalendarItemsBySorted]
|
|
73
74
|
*/
|
|
74
75
|
matchCalendarItemsBySorted(groupId: string, filter: SortableFilterOptions<CalendarItem>): Promise<Array<string>>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* In-group version of [CalendarItemApi.getCalendarItemsOccupancyByPeriodForSelf].
|
|
79
|
+
*/
|
|
80
|
+
getCalendarItemsOccupancyByPeriodForSelf(groupId: string, startDate: number, endDate: number, extensionInDays: number | undefined): Promise<Array<CalendarItemOccupancy>>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* In-group version of [CalendarItemApi.getCalendarItemsOccupancyByPeriodForHealthcareParty].
|
|
84
|
+
*/
|
|
85
|
+
getCalendarItemsOccupancyByPeriodForHealthcareParty(groupId: string, startDate: number, endDate: number, hcPartyId: string, extensionInDays: number | undefined): Promise<Array<CalendarItemOccupancy>>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* In-group version of [CalendarItemApi.getCalendarItemsOccupancyByPeriodAndAgendaId].
|
|
89
|
+
*/
|
|
90
|
+
getCalendarItemsOccupancyByPeriodAndAgendaId(groupId: string, startDate: number, endDate: number, agendaId: string, extensionInDays: number | undefined): Promise<Array<CalendarItemOccupancy>>;
|
|
75
91
|
/**
|
|
76
92
|
*
|
|
77
93
|
* In-group version of [CalendarItemBasicFlavourlessApi.deleteCalendarItemById]
|