@icure/cardinal-sdk 2.3.0 → 2.3.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/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/api/ContactApi.d.mts +12 -0
- package/api/ContactInGroupApi.d.mts +5 -0
- package/cardinal-sdk-ts.mjs +39018 -38866
- package/cardinal-sdk.mjs +61115 -61053
- package/kotlin-kotlin-stdlib.mjs +10 -10
- package/kotlinx-coroutines-core.mjs +9 -8
- package/model/Patient.d.mts +0 -15
- package/model/Patient.mjs +0 -20
- package/package.json +1 -1
|
@@ -367,7 +367,7 @@ function addFormatStructureForDate(structure) {
|
|
|
367
367
|
function addFormatStructureForTime(structure) {
|
|
368
368
|
this.o3z(structure);
|
|
369
369
|
}
|
|
370
|
-
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder,
|
|
370
|
+
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
|
|
371
371
|
initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder]);
|
|
372
372
|
initMetadataForClass(LocalDateTimeFormat, 'LocalDateTimeFormat', VOID, AbstractDateTimeFormat);
|
|
373
373
|
function set_fractionOfSecond(value) {
|
package/api/ContactApi.d.mts
CHANGED
|
@@ -119,6 +119,18 @@ export interface ContactApi {
|
|
|
119
119
|
* of the contact.
|
|
120
120
|
*/
|
|
121
121
|
decryptPatientIdOf(contact: Contact): Promise<Array<EntityReferenceInGroup>>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* Attempts to extract the patient id linked to a service.
|
|
125
|
+
* Note: services usually should be linked with only one patient, but this method returns a set for compatibility
|
|
126
|
+
* with older versions of iCure
|
|
127
|
+
* It is to be noted that only services returned by getServices, or filterServices method will have the metadata necessary
|
|
128
|
+
* to deduce the patient id. In the case of services obtained directly from the Contact, you should use decryptPatientIdOf(Contact) instead.
|
|
129
|
+
* @param service a service returned by getServices, or filterServices method.
|
|
130
|
+
* @return the id of the patient linked to the service, or empty if the current user can't access any patient id
|
|
131
|
+
* of the service.
|
|
132
|
+
*/
|
|
133
|
+
decryptPatientIdOfService(service: Service): Promise<Array<EntityReferenceInGroup>>;
|
|
122
134
|
/**
|
|
123
135
|
*
|
|
124
136
|
* Create metadata to allow other users to identify the anonymous delegates of a contact.
|
|
@@ -43,6 +43,11 @@ export interface ContactInGroupApi {
|
|
|
43
43
|
* In-group version of [ContactApi.decryptPatientIdOf]
|
|
44
44
|
*/
|
|
45
45
|
decryptPatientIdOf(contact: GroupScoped<Contact>): Promise<Array<EntityReferenceInGroup>>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* In-group version of [ContactApi.decryptPatientIdOfService]
|
|
49
|
+
*/
|
|
50
|
+
decryptPatientIdOfService(service: GroupScoped<Service>): Promise<Array<EntityReferenceInGroup>>;
|
|
46
51
|
/**
|
|
47
52
|
*
|
|
48
53
|
* In-group version of [ContactApi.createDelegationDeAnonymizationMetadata]
|