@icure/cardinal-sdk 2.8.1 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,54 @@
1
+ import { BaseFilterOptions, BaseSortableFilterOptions } from '../cardinal-sdk-ts.mjs';
2
+ import { Insurance } from '../model/Insurance.mjs';
3
+ import { Identifier } from '../model/base/Identifier.mjs';
4
+ interface InsuranceFiltersFactory {
5
+ /**
6
+ *
7
+ * Filter options to match all insurances.
8
+ * These options are not sortable.
9
+ */
10
+ all(): BaseFilterOptions<Insurance>;
11
+ /**
12
+ *
13
+ * Options for insurance filtering which match all the insurances that have at least
14
+ * an identifier that has the same exact [Identifier.system] and [Identifier.value] as one of the provided
15
+ * [identifiers]. Other properties of the provided identifiers are ignored.
16
+ *
17
+ * These options are sortable. When sorting using these options the insurances will be in the same order as
18
+ * the input identifiers. In case an entity has multiple identifiers only the first matching identifier is considered
19
+ * for the sorting.
20
+ *
21
+ * @param identifiers a list of identifiers
22
+ */
23
+ byIdentifiers(identifiers: Array<Identifier>): BaseFilterOptions<Insurance>;
24
+ /**
25
+ *
26
+ * Options for insurance filtering which match all insurances shared directly (i.e. ignoring hierarchies) ƒthat have a certain code.
27
+ * If you specify only the [codeType] you will get all entities that have at least a code of that type.
28
+ *
29
+ * These options are sortable. When sorting using these options the insurances will be sorted by [codeCode]
30
+ *
31
+ * @param codeType a code type
32
+ * @param codeCode a code for the provided code type, or null if you want the filter to accept any entity
33
+ * with a code of the provided type.
34
+ */
35
+ byCode(codeType: string, options?: {
36
+ codeCode?: string | undefined;
37
+ }): BaseSortableFilterOptions<Insurance>;
38
+ /**
39
+ *
40
+ * Options for insurance filtering which match all insurances shared directly (i.e. ignoring hierarchies) that have a certain tag.
41
+ * If you specify only the [tagType] you will get all entities that have at least a tag of that type.
42
+ *
43
+ * These options are sortable. When sorting using these options the insurances will be sorted by [tagCode]
44
+ *
45
+ * @param tagType a tag type
46
+ * @param tagCode a code for the provided tag type, or null if you want the filter to accept any entity
47
+ * with a tag of the provided type.
48
+ */
49
+ byTag(tagType: string, options?: {
50
+ tagCode?: string | undefined;
51
+ }): BaseSortableFilterOptions<Insurance>;
52
+ }
53
+ export declare const InsuranceFilters: InsuranceFiltersFactory;
54
+ export {};
@@ -0,0 +1,8 @@
1
+ // auto-generated file
2
+ import { InternalInsuranceFiltersObj } from '../cardinal-sdk-ts.mjs';
3
+ export const InsuranceFilters = {
4
+ all: () => InternalInsuranceFiltersObj.getInstance().all(),
5
+ byIdentifiers: (identifiers) => InternalInsuranceFiltersObj.getInstance().byIdentifiers(identifiers),
6
+ byCode: (codeType, options) => InternalInsuranceFiltersObj.getInstance().byCode(codeType, options),
7
+ byTag: (tagType, options) => InternalInsuranceFiltersObj.getInstance().byTag(tagType, options)
8
+ };
package/filters.d.mts CHANGED
@@ -18,3 +18,4 @@ export * from './filters/HealthcarePartyFilters.mjs';
18
18
  export * from './filters/ContactFilters.mjs';
19
19
  export * from './filters/MaintenanceTaskFilters.mjs';
20
20
  export * from './filters/CalendarItemFilters.mjs';
21
+ export * from './filters/InsuranceFilters.mjs';
package/filters.mjs CHANGED
@@ -18,3 +18,4 @@ export * from './filters/HealthcarePartyFilters.mjs';
18
18
  export * from './filters/ContactFilters.mjs';
19
19
  export * from './filters/MaintenanceTaskFilters.mjs';
20
20
  export * from './filters/CalendarItemFilters.mjs';
21
+ export * from './filters/InsuranceFilters.mjs';
@@ -235,11 +235,6 @@ initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, V
235
235
  initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
236
236
  initMetadataForCoroutine($receiveCOROUTINE$, CoroutineImpl);
237
237
  initMetadataForCoroutine($receiveCatchingCOROUTINE$, CoroutineImpl);
238
- function close$default(cause, $super) {
239
- cause = cause === VOID ? null : cause;
240
- return $super === VOID ? this.s1d(cause) : $super.s1d.call(this, cause);
241
- }
242
- initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
243
238
  function cancel$default_0(cause, $super) {
244
239
  cause = cause === VOID ? null : cause;
245
240
  var tmp;
@@ -252,7 +247,12 @@ function cancel$default_0(cause, $super) {
252
247
  return tmp;
253
248
  }
254
249
  initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
255
- initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 4, 0, 3]);
250
+ function close$default(cause, $super) {
251
+ cause = cause === VOID ? null : cause;
252
+ return $super === VOID ? this.s1d(cause) : $super.s1d.call(this, cause);
253
+ }
254
+ initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
255
+ initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
256
256
  initMetadataForClass(WaiterEB, 'WaiterEB');
257
257
  initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
258
258
  initMetadataForObject(Factory, 'Factory');
@@ -262,7 +262,7 @@ initMetadataForCompanion(Companion);
262
262
  initMetadataForClass(ChannelResult, 'ChannelResult');
263
263
  initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
264
264
  initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
265
- initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [SendChannel, ReceiveChannel], [1, 0]);
265
+ initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [ReceiveChannel, SendChannel], [1, 0]);
266
266
  initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
267
267
  initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
268
268
  initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ProducerScope], [1, 0]);
@@ -294,7 +294,7 @@ initMetadataForClass(ContextScope, 'ContextScope', VOID, VOID, [CoroutineScope])
294
294
  initMetadataForClass(Symbol, 'Symbol');
295
295
  initMetadataForInterface(SelectInstance, 'SelectInstance');
296
296
  initMetadataForClass(ClauseData, 'ClauseData', VOID, VOID, VOID, [1]);
297
- initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, SelectInstance, Waiter], [0, 2]);
297
+ initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
298
298
  initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
299
299
  initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
300
300
  initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [0]);
@@ -1,6 +1,7 @@
1
1
  import { CodeStub } from './base/CodeStub.mjs';
2
2
  import { HasEncryptionMetadata } from './base/HasEncryptionMetadata.mjs';
3
3
  import { HasEndOfLife } from './base/HasEndOfLife.mjs';
4
+ import { HasIdentifier } from './base/HasIdentifier.mjs';
4
5
  import { ICureDocument } from './base/ICureDocument.mjs';
5
6
  import { Identifier } from './base/Identifier.mjs';
6
7
  import { StoredDocument } from './base/StoredDocument.mjs';
@@ -34,12 +35,7 @@ import { Base64String } from './specializations/Base64String.mjs';
34
35
  * absence of a patient.
35
36
  * /
36
37
  */
37
- export interface Contact extends StoredDocument, ICureDocument<string>, HasEncryptionMetadata, Encryptable, HasEndOfLife {
38
- /**
39
- *
40
- * The identifiers of the Contact.
41
- */
42
- identifier: Array<Identifier>;
38
+ export interface Contact extends StoredDocument, ICureDocument<string>, HasEncryptionMetadata, Encryptable, HasEndOfLife, HasIdentifier {
43
39
  /**
44
40
  *
45
41
  * Separate contacts can be merged in one logical contact if they share the same groupId. When a
@@ -3,6 +3,7 @@ import { CodeStub } from './base/CodeStub.mjs';
3
3
  import { CryptoActor } from './base/CryptoActor.mjs';
4
4
  import { DataOwner } from './base/DataOwner.mjs';
5
5
  import { HasCodes } from './base/HasCodes.mjs';
6
+ import { HasIdentifier } from './base/HasIdentifier.mjs';
6
7
  import { HasTags } from './base/HasTags.mjs';
7
8
  import { Identifier } from './base/Identifier.mjs';
8
9
  import { Named } from './base/Named.mjs';
@@ -23,7 +24,7 @@ import { SpkiHexString } from './specializations/SpkiHexString.mjs';
23
24
  * icure-healthdata CouchDB database.
24
25
  * /
25
26
  */
26
- export declare class HealthcareParty implements StoredDocument, Named, Person, CryptoActor, DataOwner, HasCodes, HasTags {
27
+ export declare class HealthcareParty implements StoredDocument, Named, Person, CryptoActor, DataOwner, HasCodes, HasTags, HasIdentifier {
27
28
  /**
28
29
  *
29
30
  * The Id of the healthcare party. We encourage using either a v4 UUID or a HL7 Id.
@@ -1,12 +1,17 @@
1
+ import { CodeStub } from './base/CodeStub.mjs';
2
+ import { HasCodes } from './base/HasCodes.mjs';
3
+ import { HasIdentifier } from './base/HasIdentifier.mjs';
4
+ import { HasTags } from './base/HasTags.mjs';
5
+ import { Identifier } from './base/Identifier.mjs';
1
6
  import { StoredDocument } from './base/StoredDocument.mjs';
2
7
  import { DecryptedAddress } from './embed/Address.mjs';
3
8
  /**
4
9
  *
5
- * Represents an insurance entity. An insurance can be a mutual fund, a private insurance company,
6
- * or any other type of insurance organization that covers healthcare costs.
7
- * /
10
+ *
11
+ * Represents an insurance entity. An insurance can be a mutual fund, a private insurance company,
12
+ * or any other type of insurance organization that covers healthcare costs.
8
13
  */
9
- export declare class Insurance implements StoredDocument {
14
+ export declare class Insurance implements StoredDocument, HasTags, HasCodes, HasIdentifier {
10
15
  /**
11
16
  *
12
17
  * The unique identifier of the insurance.
@@ -32,19 +37,19 @@ export declare class Insurance implements StoredDocument {
32
37
  };
33
38
  /**
34
39
  *
35
- * Whether this is a private insurance.
40
+ * The identifiers of the insurance.
36
41
  */
37
- privateInsurance: boolean;
42
+ identifier: Array<Identifier>;
38
43
  /**
39
44
  *
40
- * Whether this insurance covers hospitalisation.
45
+ * Tags that qualify the insurance as being member of a certain class.
41
46
  */
42
- hospitalisationInsurance: boolean;
47
+ tags: Array<CodeStub>;
43
48
  /**
44
49
  *
45
- * Whether this insurance covers ambulatory care.
50
+ * Codes that identify or qualify this particular insurance.
46
51
  */
47
- ambulatoryInsurance: boolean;
52
+ codes: Array<CodeStub>;
48
53
  /**
49
54
  *
50
55
  * The insurance code.
@@ -1,12 +1,14 @@
1
1
  // auto-generated file
2
- import { expectBoolean, expectMap, expectNumber, expectObject, expectString, extractEntry } from '../internal/JsonDecodeUtils.mjs';
2
+ import { expectArray, expectMap, expectNumber, expectObject, expectString, extractEntry } from '../internal/JsonDecodeUtils.mjs';
3
3
  import { randomUuid } from '../utils/Id.mjs';
4
+ import { CodeStub } from './base/CodeStub.mjs';
5
+ import { Identifier } from './base/Identifier.mjs';
4
6
  import { DecryptedAddress } from './embed/Address.mjs';
5
7
  /**
6
8
  *
7
- * Represents an insurance entity. An insurance can be a mutual fund, a private insurance company,
8
- * or any other type of insurance organization that covers healthcare costs.
9
- * /
9
+ *
10
+ * Represents an insurance entity. An insurance can be a mutual fund, a private insurance company,
11
+ * or any other type of insurance organization that covers healthcare costs.
10
12
  */
11
13
  export class Insurance {
12
14
  constructor(partial) {
@@ -29,19 +31,19 @@ export class Insurance {
29
31
  this.name = {};
30
32
  /**
31
33
  *
32
- * Whether this is a private insurance.
34
+ * The identifiers of the insurance.
33
35
  */
34
- this.privateInsurance = false;
36
+ this.identifier = [];
35
37
  /**
36
38
  *
37
- * Whether this insurance covers hospitalisation.
39
+ * Tags that qualify the insurance as being member of a certain class.
38
40
  */
39
- this.hospitalisationInsurance = false;
41
+ this.tags = [];
40
42
  /**
41
43
  *
42
- * Whether this insurance covers ambulatory care.
44
+ * Codes that identify or qualify this particular insurance.
43
45
  */
44
- this.ambulatoryInsurance = false;
46
+ this.codes = [];
45
47
  /**
46
48
  *
47
49
  * The insurance code.
@@ -64,12 +66,12 @@ export class Insurance {
64
66
  this.deletionDate = partial.deletionDate;
65
67
  if ('name' in partial && partial.name !== undefined)
66
68
  this.name = partial.name;
67
- if ('privateInsurance' in partial && partial.privateInsurance !== undefined)
68
- this.privateInsurance = partial.privateInsurance;
69
- if ('hospitalisationInsurance' in partial && partial.hospitalisationInsurance !== undefined)
70
- this.hospitalisationInsurance = partial.hospitalisationInsurance;
71
- if ('ambulatoryInsurance' in partial && partial.ambulatoryInsurance !== undefined)
72
- this.ambulatoryInsurance = partial.ambulatoryInsurance;
69
+ if ('identifier' in partial && partial.identifier !== undefined)
70
+ this.identifier = partial.identifier;
71
+ if ('tags' in partial && partial.tags !== undefined)
72
+ this.tags = partial.tags;
73
+ if ('codes' in partial && partial.codes !== undefined)
74
+ this.codes = partial.codes;
73
75
  if ('code' in partial)
74
76
  this.code = partial.code;
75
77
  if ('agreementNumber' in partial)
@@ -86,9 +88,9 @@ export class Insurance {
86
88
  if (this.deletionDate != undefined)
87
89
  res['deletionDate'] = this.deletionDate;
88
90
  res['name'] = Object.fromEntries(Object.entries(this.name).map(([k0, v0]) => [k0, v0]));
89
- res['privateInsurance'] = this.privateInsurance;
90
- res['hospitalisationInsurance'] = this.hospitalisationInsurance;
91
- res['ambulatoryInsurance'] = this.ambulatoryInsurance;
91
+ res['identifier'] = this.identifier.map((x0) => x0.toJSON());
92
+ res['tags'] = this.tags.map((x0) => x0.toJSON());
93
+ res['codes'] = this.codes.map((x0) => x0.toJSON());
92
94
  if (this.code != undefined)
93
95
  res['code'] = this.code;
94
96
  if (this.agreementNumber != undefined)
@@ -107,9 +109,9 @@ export class Insurance {
107
109
  rev: expectString(extractEntry(jCpy, 'rev', false, path), true, [...path, ".rev"]),
108
110
  deletionDate: expectNumber(extractEntry(jCpy, 'deletionDate', false, path), true, true, [...path, ".deletionDate"]),
109
111
  name: expectMap(extractEntry(jCpy, 'name', false, path), false, [...path, ".name"], (k0, p0) => expectString(k0, false, p0), (v0, p0) => expectString(v0, false, p0)),
110
- privateInsurance: expectBoolean(extractEntry(jCpy, 'privateInsurance', false, path), false, [...path, ".privateInsurance"]),
111
- hospitalisationInsurance: expectBoolean(extractEntry(jCpy, 'hospitalisationInsurance', false, path), false, [...path, ".hospitalisationInsurance"]),
112
- ambulatoryInsurance: expectBoolean(extractEntry(jCpy, 'ambulatoryInsurance', false, path), false, [...path, ".ambulatoryInsurance"]),
112
+ identifier: expectArray(extractEntry(jCpy, 'identifier', false, path), false, [...path, ".identifier"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, Identifier.fromJSON)),
113
+ tags: expectArray(extractEntry(jCpy, 'tags', false, path), false, [...path, ".tags"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, CodeStub.fromJSON)),
114
+ codes: expectArray(extractEntry(jCpy, 'codes', false, path), false, [...path, ".codes"], (x0, p0) => expectObject(x0, false, ignoreUnknownKeys, p0, CodeStub.fromJSON)),
113
115
  code: expectString(extractEntry(jCpy, 'code', false, path), true, [...path, ".code"]),
114
116
  agreementNumber: expectString(extractEntry(jCpy, 'agreementNumber', false, path), true, [...path, ".agreementNumber"]),
115
117
  parent: expectString(extractEntry(jCpy, 'parent', false, path), true, [...path, ".parent"]),
@@ -1,5 +1,6 @@
1
1
  import { CodeStub } from './base/CodeStub.mjs';
2
2
  import { HasEncryptionMetadata } from './base/HasEncryptionMetadata.mjs';
3
+ import { HasIdentifier } from './base/HasIdentifier.mjs';
3
4
  import { ICureDocument } from './base/ICureDocument.mjs';
4
5
  import { Identifier } from './base/Identifier.mjs';
5
6
  import { StoredDocument } from './base/StoredDocument.mjs';
@@ -18,12 +19,7 @@ import { Base64String } from './specializations/Base64String.mjs';
18
19
  * services rendered. It is serialized in JSON and saved in the underlying iCure CouchDB database.
19
20
  * /
20
21
  */
21
- export interface Invoice extends StoredDocument, ICureDocument<string>, HasEncryptionMetadata, Encryptable {
22
- /**
23
- *
24
- * The identifiers of the invoice.
25
- */
26
- identifier: Array<Identifier>;
22
+ export interface Invoice extends StoredDocument, ICureDocument<string>, HasEncryptionMetadata, Encryptable, HasIdentifier {
27
23
  /**
28
24
  *
29
25
  * The timestamp (unix epoch in ms) when the invoice was drafted.
@@ -2,6 +2,7 @@ import { DecryptedPropertyStub, EncryptedPropertyStub, PropertyStub } from './Pr
2
2
  import { CodeStub } from './base/CodeStub.mjs';
3
3
  import { HasEncryptionMetadata } from './base/HasEncryptionMetadata.mjs';
4
4
  import { HasEndOfLife } from './base/HasEndOfLife.mjs';
5
+ import { HasIdentifier } from './base/HasIdentifier.mjs';
5
6
  import { ICureDocument } from './base/ICureDocument.mjs';
6
7
  import { Identifier } from './base/Identifier.mjs';
7
8
  import { StoredDocument } from './base/StoredDocument.mjs';
@@ -18,12 +19,7 @@ import { Base64String } from './specializations/Base64String.mjs';
18
19
  * asynchronous processing.
19
20
  * /
20
21
  */
21
- export interface MaintenanceTask extends StoredDocument, ICureDocument<string>, HasEncryptionMetadata, Encryptable, HasEndOfLife {
22
- /**
23
- *
24
- * The identifiers of the maintenance task.
25
- */
26
- identifier: Array<Identifier>;
22
+ export interface MaintenanceTask extends StoredDocument, ICureDocument<string>, HasEncryptionMetadata, Encryptable, HasEndOfLife, HasIdentifier {
27
23
  /**
28
24
  *
29
25
  * The type of the maintenance task.
@@ -2,6 +2,7 @@ import { DecryptedPropertyStub, EncryptedPropertyStub, PropertyStub } from './Pr
2
2
  import { CodeStub } from './base/CodeStub.mjs';
3
3
  import { CryptoActor } from './base/CryptoActor.mjs';
4
4
  import { HasEncryptionMetadata } from './base/HasEncryptionMetadata.mjs';
5
+ import { HasIdentifier } from './base/HasIdentifier.mjs';
5
6
  import { ICureDocument } from './base/ICureDocument.mjs';
6
7
  import { Identifier } from './base/Identifier.mjs';
7
8
  import { Person } from './base/Person.mjs';
@@ -31,12 +32,7 @@ import { SpkiHexString } from './specializations/SpkiHexString.mjs';
31
32
  * end-to-end encryption of sensitive data.
32
33
  * /
33
34
  */
34
- export interface Patient extends StoredDocument, ICureDocument<string>, Person, HasEncryptionMetadata, Encryptable, CryptoActor {
35
- /**
36
- *
37
- * The patient's identifiers, used by the client to uniquely identify the patient.
38
- */
39
- identifier: Array<Identifier>;
35
+ export interface Patient extends StoredDocument, ICureDocument<string>, Person, HasEncryptionMetadata, Encryptable, HasIdentifier, CryptoActor {
40
36
  /**
41
37
  *
42
38
  * The birth sex of the patient.
package/model/User.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { DecryptedPropertyStub } from './PropertyStub.mjs';
2
+ import { HasIdentifier } from './base/HasIdentifier.mjs';
2
3
  import { Identifier } from './base/Identifier.mjs';
3
4
  import { StoredDocument } from './base/StoredDocument.mjs';
4
5
  import { DelegationTag } from './embed/DelegationTag.mjs';
@@ -13,7 +14,7 @@ import { Permission } from './security/Permission.mjs';
13
14
  * party,
14
15
  * a patient, or a device, and holds authentication credentials, roles, and permissions.
15
16
  */
16
- export declare class User implements StoredDocument {
17
+ export declare class User implements StoredDocument, HasIdentifier {
17
18
  /**
18
19
  *
19
20
  * The Id of the user. We encourage using either a v4 UUID or a HL7 Id.
@@ -0,0 +1,10 @@
1
+ import { Identifier } from './Identifier.mjs';
2
+ /**
3
+ *
4
+ *
5
+ * Interface for entities that can be identified uniquely and unambiguously by a set of
6
+ * identifiers.
7
+ */
8
+ export interface HasIdentifier {
9
+ identifier: Array<Identifier>;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
1
  import { CodeStub } from '../base/CodeStub.mjs';
2
2
  import { HasCodes } from '../base/HasCodes.mjs';
3
+ import { HasIdentifier } from '../base/HasIdentifier.mjs';
3
4
  import { HasTags } from '../base/HasTags.mjs';
4
5
  import { Identifier } from '../base/Identifier.mjs';
5
6
  import { Base64String } from '../specializations/Base64String.mjs';
@@ -7,8 +8,7 @@ import { AddressType } from './AddressType.mjs';
7
8
  import { Annotation } from './Annotation.mjs';
8
9
  import { Encryptable } from './Encryptable.mjs';
9
10
  import { DecryptedTelecom, EncryptedTelecom, Telecom } from './Telecom.mjs';
10
- export interface Address extends Encryptable, HasTags, HasCodes {
11
- identifier: Array<Identifier>;
11
+ export interface Address extends Encryptable, HasTags, HasCodes, HasIdentifier {
12
12
  addressType: AddressType | undefined;
13
13
  descr: string | undefined;
14
14
  street: string | undefined;
@@ -17,22 +17,107 @@ export declare class Medication {
17
17
  * The expiration date of the medication. Format: yyyyMMdd
18
18
  */
19
19
  expirationDate: number | undefined;
20
+ /**
21
+ *
22
+ * The expiration date of the medication. Format: yyyyMMdd
23
+ * /
24
+ */
20
25
  instructionForPatient: string | undefined;
26
+ /**
27
+ *
28
+ * The expiration date of the medication. Format: yyyyMMdd
29
+ * /
30
+ */
21
31
  instructionForReimbursement: string | undefined;
32
+ /**
33
+ *
34
+ * The expiration date of the medication. Format: yyyyMMdd
35
+ * /
36
+ */
22
37
  commentForDelivery: string | undefined;
38
+ /**
39
+ *
40
+ * The expiration date of the medication. Format: yyyyMMdd
41
+ * /
42
+ */
23
43
  drugRoute: string | undefined;
44
+ /**
45
+ *
46
+ * The expiration date of the medication. Format: yyyyMMdd
47
+ * /
48
+ */
24
49
  temporality: string | undefined;
50
+ /**
51
+ *
52
+ * The expiration date of the medication. Format: yyyyMMdd
53
+ * /
54
+ */
25
55
  frequency: CodeStub | undefined;
56
+ /**
57
+ *
58
+ * The expiration date of the medication. Format: yyyyMMdd
59
+ * /
60
+ */
26
61
  reimbursementReason: CodeStub | undefined;
62
+ /**
63
+ *
64
+ * The expiration date of the medication. Format: yyyyMMdd
65
+ * /
66
+ */
27
67
  substitutionAllowed: boolean | undefined;
68
+ /**
69
+ *
70
+ * The expiration date of the medication. Format: yyyyMMdd
71
+ * /
72
+ */
28
73
  beginMoment: number | undefined;
74
+ /**
75
+ *
76
+ * The expiration date of the medication. Format: yyyyMMdd
77
+ * /
78
+ */
29
79
  endMoment: number | undefined;
80
+ /**
81
+ *
82
+ * The expiration date of the medication. Format: yyyyMMdd
83
+ * /
84
+ */
30
85
  deliveryMoment: number | undefined;
86
+ /**
87
+ *
88
+ * The expiration date of the medication. Format: yyyyMMdd
89
+ * /
90
+ */
31
91
  endExecutionMoment: number | undefined;
92
+ /**
93
+ *
94
+ * The expiration date of the medication. Format: yyyyMMdd
95
+ * /
96
+ */
32
97
  duration: Duration | undefined;
98
+ /**
99
+ *
100
+ * The expiration date of the medication. Format: yyyyMMdd
101
+ * /
102
+ */
33
103
  renewal: Renewal | undefined;
104
+ /**
105
+ *
106
+ * The expiration date of the medication. Format: yyyyMMdd
107
+ * /
108
+ */
34
109
  knownUsage: boolean | undefined;
110
+ /**
111
+ *
112
+ * The expiration date of the medication. Format: yyyyMMdd
113
+ * /
114
+ */
35
115
  regimen: Array<RegimenItem> | undefined;
116
+ /**
117
+ *
118
+ * The expiration date of the medication. Format: yyyyMMdd
119
+ * /
120
+ */
36
121
  posology: string | undefined;
37
122
  stockLocation: DecryptedAddress | undefined;
38
123
  constructor(partial: Partial<Medication>);
@@ -20,22 +20,107 @@ export class Medication {
20
20
  * The expiration date of the medication. Format: yyyyMMdd
21
21
  */
22
22
  this.expirationDate = undefined;
23
+ /**
24
+ *
25
+ * The expiration date of the medication. Format: yyyyMMdd
26
+ * /
27
+ */
23
28
  this.instructionForPatient = undefined;
29
+ /**
30
+ *
31
+ * The expiration date of the medication. Format: yyyyMMdd
32
+ * /
33
+ */
24
34
  this.instructionForReimbursement = undefined;
35
+ /**
36
+ *
37
+ * The expiration date of the medication. Format: yyyyMMdd
38
+ * /
39
+ */
25
40
  this.commentForDelivery = undefined;
41
+ /**
42
+ *
43
+ * The expiration date of the medication. Format: yyyyMMdd
44
+ * /
45
+ */
26
46
  this.drugRoute = undefined;
47
+ /**
48
+ *
49
+ * The expiration date of the medication. Format: yyyyMMdd
50
+ * /
51
+ */
27
52
  this.temporality = undefined;
53
+ /**
54
+ *
55
+ * The expiration date of the medication. Format: yyyyMMdd
56
+ * /
57
+ */
28
58
  this.frequency = undefined;
59
+ /**
60
+ *
61
+ * The expiration date of the medication. Format: yyyyMMdd
62
+ * /
63
+ */
29
64
  this.reimbursementReason = undefined;
65
+ /**
66
+ *
67
+ * The expiration date of the medication. Format: yyyyMMdd
68
+ * /
69
+ */
30
70
  this.substitutionAllowed = undefined;
71
+ /**
72
+ *
73
+ * The expiration date of the medication. Format: yyyyMMdd
74
+ * /
75
+ */
31
76
  this.beginMoment = undefined;
77
+ /**
78
+ *
79
+ * The expiration date of the medication. Format: yyyyMMdd
80
+ * /
81
+ */
32
82
  this.endMoment = undefined;
83
+ /**
84
+ *
85
+ * The expiration date of the medication. Format: yyyyMMdd
86
+ * /
87
+ */
33
88
  this.deliveryMoment = undefined;
89
+ /**
90
+ *
91
+ * The expiration date of the medication. Format: yyyyMMdd
92
+ * /
93
+ */
34
94
  this.endExecutionMoment = undefined;
95
+ /**
96
+ *
97
+ * The expiration date of the medication. Format: yyyyMMdd
98
+ * /
99
+ */
35
100
  this.duration = undefined;
101
+ /**
102
+ *
103
+ * The expiration date of the medication. Format: yyyyMMdd
104
+ * /
105
+ */
36
106
  this.renewal = undefined;
107
+ /**
108
+ *
109
+ * The expiration date of the medication. Format: yyyyMMdd
110
+ * /
111
+ */
37
112
  this.knownUsage = undefined;
113
+ /**
114
+ *
115
+ * The expiration date of the medication. Format: yyyyMMdd
116
+ * /
117
+ */
38
118
  this.regimen = undefined;
119
+ /**
120
+ *
121
+ * The expiration date of the medication. Format: yyyyMMdd
122
+ * /
123
+ */
39
124
  this.posology = undefined;
40
125
  this.stockLocation = undefined;
41
126
  if ('compoundPrescription' in partial)
@@ -1,5 +1,6 @@
1
1
  import { CodeStub } from '../base/CodeStub.mjs';
2
2
  import { HasEndOfLife } from '../base/HasEndOfLife.mjs';
3
+ import { HasIdentifier } from '../base/HasIdentifier.mjs';
3
4
  import { ICureDocument } from '../base/ICureDocument.mjs';
4
5
  import { Identifier } from '../base/Identifier.mjs';
5
6
  import { LinkQualification } from '../base/LinkQualification.mjs';
@@ -9,19 +10,13 @@ import { Content, DecryptedContent, EncryptedContent } from './Content.mjs';
9
10
  import { Delegation } from './Delegation.mjs';
10
11
  import { Encryptable } from './Encryptable.mjs';
11
12
  import { SecurityMetadata } from './SecurityMetadata.mjs';
12
- export interface Service extends Encryptable, ICureDocument<string>, HasEndOfLife {
13
+ export interface Service extends Encryptable, ICureDocument<string>, HasEndOfLife, HasIdentifier {
13
14
  /**
14
15
  *
15
16
  * The transactionId is used when a single service had to be split into parts for technical
16
17
  * reasons. Several services with the same non null transaction id form one single service
17
18
  */
18
19
  transactionId: string | undefined;
19
- /**
20
- *
21
- * The transactionId is used when a single service had to be split into parts for technical
22
- * reasons. Several services with the same non null transaction id form one single service
23
- */
24
- identifier: Array<Identifier>;
25
20
  /**
26
21
  *
27
22
  * Id of the contact during which the service is provided. Only used when the Service is emitted