gdc-common-utils-ts 2.0.18 → 2.1.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.
- package/README.md +0 -1
- package/dist/examples/bundle-didcomm-payload.d.ts +11 -0
- package/dist/examples/bundle-didcomm-payload.js +13 -0
- package/dist/examples/communication-attached-bundle-session.js +2 -1
- package/dist/examples/communication-didcomm-payload.d.ts +35 -0
- package/dist/examples/communication-didcomm-payload.js +38 -0
- package/dist/examples/index.d.ts +4 -0
- package/dist/examples/index.js +4 -0
- package/dist/examples/profile-manager-mem.d.ts +45 -0
- package/dist/examples/profile-manager-mem.js +29 -0
- package/dist/examples/shared.d.ts +1 -0
- package/dist/examples/shared.js +1 -0
- package/dist/examples/wallet-mem.d.ts +38 -0
- package/dist/examples/wallet-mem.js +40 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/interfaces/IProfileOutboxRepository.d.ts +36 -0
- package/dist/interfaces/IProfileOutboxRepository.js +2 -0
- package/dist/interfaces/IWallet.d.ts +74 -0
- package/dist/interfaces/IWallet.js +2 -0
- package/dist/interfaces/IWalletQueue.d.ts +30 -0
- package/dist/interfaces/IWalletQueue.js +2 -0
- package/dist/interfaces/index.d.ts +8 -0
- package/dist/interfaces/index.js +8 -0
- package/dist/models/communication-attached-bundle-session.d.ts +193 -0
- package/dist/models/communication-attached-bundle-session.js +34 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/interoperable-claims/diagnostic-report-claims.d.ts +1 -2
- package/dist/models/interoperable-claims/diagnostic-report-claims.js +1 -2
- package/dist/models/profile-manager.d.ts +85 -0
- package/dist/models/profile-manager.js +2 -0
- package/dist/models/wallet.d.ts +59 -0
- package/dist/models/wallet.js +22 -0
- package/dist/utils/backend-message-manager-mem.d.ts +67 -0
- package/dist/utils/backend-message-manager-mem.js +227 -0
- package/dist/utils/bundle-didcomm-payload.d.ts +29 -0
- package/dist/utils/bundle-didcomm-payload.js +48 -0
- package/dist/utils/communication-attached-bundle-session-helpers.d.ts +54 -0
- package/dist/utils/communication-attached-bundle-session-helpers.js +517 -0
- package/dist/utils/communication-attached-bundle-session.d.ts +59 -302
- package/dist/utils/communication-attached-bundle-session.js +114 -839
- package/dist/utils/communication-consent-access-editor.d.ts +85 -0
- package/dist/utils/communication-consent-access-editor.js +244 -0
- package/dist/utils/communication-didcomm-payload.d.ts +33 -0
- package/dist/utils/communication-didcomm-payload.js +75 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/profile-manager-mem.d.ts +69 -0
- package/dist/utils/profile-manager-mem.js +79 -0
- package/dist/utils/profile-outbox-memory-repository.d.ts +34 -0
- package/dist/utils/profile-outbox-memory-repository.js +57 -0
- package/dist/utils/wallet-mem.d.ts +93 -0
- package/dist/utils/wallet-mem.js +277 -0
- package/dist/utils/wallet-memory-queue.d.ts +32 -0
- package/dist/utils/wallet-memory-queue.js +82 -0
- package/package.json +1 -1
|
@@ -1,123 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type
|
|
3
|
-
import { BundleEntry, BundleJsonApi, BundleRequest } from '../models/bundle';
|
|
1
|
+
import { BundleEntry, BundleJsonApi } from '../models/bundle';
|
|
2
|
+
import { type ActiveEntrySelection, type AddContainedDocumentToActiveEntryInput, type CommunicationAttachedBundleSessionOptions, type UpsertClaimsResourceEntryInput, type UpsertEntryInput } from '../models/communication-attached-bundle-session';
|
|
4
3
|
import { type BundleResourceIdFilters } from './bundle-query';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
export type CommunicationAttachedBundleSessionMode
|
|
8
|
-
export type CommunicationAttachedBundleSessionOptions = Readonly<{
|
|
9
|
-
communicationClaims?: Record<string, unknown>;
|
|
10
|
-
initialBundle?: BundleJsonApi<BundleEntry>;
|
|
11
|
-
mode?: CommunicationAttachedBundleSessionMode;
|
|
12
|
-
}>;
|
|
13
|
-
export type ActiveEntrySelection = Readonly<{
|
|
14
|
-
index?: number;
|
|
15
|
-
fullUrl?: string;
|
|
16
|
-
}>;
|
|
17
|
-
export type UpsertEntryInput = Readonly<{
|
|
18
|
-
resourceType: string;
|
|
19
|
-
claims: Record<string, unknown>;
|
|
20
|
-
type?: string;
|
|
21
|
-
fullUrl?: string;
|
|
22
|
-
request?: BundleRequest;
|
|
23
|
-
}>;
|
|
24
|
-
export type AddContainedDocumentToActiveEntryInput = Readonly<{
|
|
25
|
-
identifier?: string;
|
|
26
|
-
fullUrl?: string;
|
|
27
|
-
claims?: Record<string, unknown>;
|
|
28
|
-
attachmentContentType?: string;
|
|
29
|
-
attachmentDataBase64?: string;
|
|
30
|
-
attachmentUrl?: string;
|
|
31
|
-
description?: string;
|
|
32
|
-
date?: string;
|
|
33
|
-
language?: string;
|
|
34
|
-
}>;
|
|
35
|
-
export declare const ConsentEditorTargetKinds: Readonly<{
|
|
36
|
-
readonly Section: "section";
|
|
37
|
-
readonly ResourceType: "resource-type";
|
|
38
|
-
}>;
|
|
39
|
-
export type ConsentEditorTargetKind = typeof ConsentEditorTargetKinds[keyof typeof ConsentEditorTargetKinds];
|
|
40
|
-
export declare const ConsentEditorScopeCodes: Readonly<{
|
|
41
|
-
readonly Search: "s";
|
|
42
|
-
readonly Read: "r";
|
|
43
|
-
readonly Create: "c";
|
|
44
|
-
readonly Update: "u";
|
|
45
|
-
readonly Delete: "d";
|
|
46
|
-
}>;
|
|
47
|
-
export type ConsentEditorScopeCode = typeof ConsentEditorScopeCodes[keyof typeof ConsentEditorScopeCodes];
|
|
48
|
-
export type ConsentEditorClassifiedScope = Readonly<{
|
|
49
|
-
code: ConsentEditorScopeCode;
|
|
50
|
-
display?: string;
|
|
51
|
-
}>;
|
|
52
|
-
export type ConsentEditorClassifiedTarget = Readonly<{
|
|
53
|
-
target: Readonly<{
|
|
54
|
-
kind: ConsentEditorTargetKind;
|
|
55
|
-
code: string;
|
|
56
|
-
display?: string;
|
|
57
|
-
sectionFamily?: HealthcareCanonicalSectionFamily;
|
|
58
|
-
}>;
|
|
59
|
-
scopes: readonly ConsentEditorClassifiedScope[];
|
|
60
|
-
}>;
|
|
61
|
-
export type ConsentEditorClassifiedActorRole = Readonly<{
|
|
62
|
-
codingSystem: string;
|
|
63
|
-
code: string;
|
|
64
|
-
display?: string;
|
|
65
|
-
}>;
|
|
66
|
-
export type ConsentEditorClassifiedRole = Readonly<{
|
|
67
|
-
family?: HealthcareRoleFamily;
|
|
68
|
-
codingSystem: string;
|
|
69
|
-
code: string;
|
|
70
|
-
display?: string;
|
|
71
|
-
definition?: string;
|
|
72
|
-
}>;
|
|
73
|
-
export type ConsentEditorClassifiedRoles = Readonly<{
|
|
74
|
-
professional: readonly ConsentEditorClassifiedRole[];
|
|
75
|
-
relationship: readonly ConsentEditorClassifiedRole[];
|
|
76
|
-
legalRepresentative: readonly ConsentEditorClassifiedRole[];
|
|
77
|
-
other: readonly ConsentEditorClassifiedRole[];
|
|
78
|
-
}>;
|
|
79
|
-
export type ConsentEditorClassifiedDepartment = Readonly<{
|
|
80
|
-
code: string;
|
|
81
|
-
display?: string;
|
|
82
|
-
}>;
|
|
83
|
-
export type ConsentEditorClassifiedLocation = Readonly<{
|
|
84
|
-
code: string;
|
|
85
|
-
display?: string;
|
|
86
|
-
}>;
|
|
87
|
-
export type ConsentEditorClassifiedOrganization = Readonly<{
|
|
88
|
-
domain: string;
|
|
89
|
-
display?: string;
|
|
90
|
-
departments: readonly ConsentEditorClassifiedDepartment[];
|
|
91
|
-
locations: readonly ConsentEditorClassifiedLocation[];
|
|
92
|
-
}>;
|
|
93
|
-
export type ConsentEditorClassifiedJurisdiction = Readonly<{
|
|
94
|
-
code: string;
|
|
95
|
-
display?: string;
|
|
96
|
-
}>;
|
|
97
|
-
export type ConsentEditorClassifiedUser = Readonly<{
|
|
98
|
-
email?: string;
|
|
99
|
-
phone?: string;
|
|
100
|
-
role?: ConsentEditorClassifiedActorRole;
|
|
101
|
-
}>;
|
|
102
|
-
export type ConsentEditorClassifiedActors = Readonly<{
|
|
103
|
-
jurisdictions: readonly ConsentEditorClassifiedJurisdiction[];
|
|
104
|
-
organizations: readonly ConsentEditorClassifiedOrganization[];
|
|
105
|
-
users: readonly ConsentEditorClassifiedUser[];
|
|
106
|
-
}>;
|
|
107
|
-
export type ConsentEditorClassifiedPurpose = Readonly<{
|
|
108
|
-
code: string;
|
|
109
|
-
display?: string;
|
|
110
|
-
}>;
|
|
111
|
-
export type ConsentViewModel = Readonly<{
|
|
112
|
-
fullUrl?: string;
|
|
113
|
-
identifier: string;
|
|
114
|
-
subject: string;
|
|
115
|
-
decision: string;
|
|
116
|
-
classifiedActors: ConsentEditorClassifiedActors;
|
|
117
|
-
classifiedRoles: ConsentEditorClassifiedRoles;
|
|
118
|
-
classifiedPurposes: readonly ConsentEditorClassifiedPurpose[];
|
|
119
|
-
classifiedTargets: readonly ConsentEditorClassifiedTarget[];
|
|
120
|
-
}>;
|
|
4
|
+
import type { MedicationStatementClaimsFlat } from '../models/interoperable-claims/medication-statement-claims';
|
|
5
|
+
export { BundleEntryClaimsContext, CommunicationAttachmentClaimsContext, ConsentEditorScopeCodes, ConsentEditorTargetKinds, } from '../models/communication-attached-bundle-session';
|
|
6
|
+
export type { ActiveEntrySelection, AddContainedDocumentToActiveEntryInput, CommunicationAttachedBundleSessionMode, CommunicationAttachedBundleSessionOptions, ConsentEditorClassifiedActors, ConsentEditorClassifiedPurpose, ConsentEditorClassifiedRole, ConsentEditorClassifiedRoles, ConsentEditorClassifiedTarget, ConsentEditorScopeCode, ConsentEditorTargetKind, ConsentViewModel, UpsertClaimsResourceEntryInput, UpsertEntryInput, } from '../models/communication-attached-bundle-session';
|
|
121
7
|
/**
|
|
122
8
|
* Communication editing session with bundle-in-memory as source of truth.
|
|
123
9
|
*
|
|
@@ -142,8 +28,12 @@ export declare class CommunicationAttachedBundleSession {
|
|
|
142
28
|
getBundleInMemory(): BundleJsonApi<BundleEntry>;
|
|
143
29
|
/** Returns the active entry index, or null when no entry is selected. */
|
|
144
30
|
getActiveEntryIndex(): number | null;
|
|
31
|
+
/** Returns the active entry position, or null when no entry is selected. */
|
|
32
|
+
getActiveEntryPosition(): number | null;
|
|
145
33
|
/** Alias of `getActiveEntryIndex()` with entry-selection wording. */
|
|
146
34
|
getSelectedEntryIndex(): number | null;
|
|
35
|
+
/** Alias of `getActiveEntryPosition()` with entry-selection wording. */
|
|
36
|
+
getSelectedEntryPosition(): number | null;
|
|
147
37
|
/** Returns a deep copy of the active entry when selected. */
|
|
148
38
|
getActiveEntry(): BundleEntry | null;
|
|
149
39
|
/** Alias of `getActiveEntry()` with entry-selection wording. */
|
|
@@ -164,7 +54,7 @@ export declare class CommunicationAttachedBundleSession {
|
|
|
164
54
|
addActiveEntryClaim(key: string, value: unknown): this;
|
|
165
55
|
/** Removes one claim from the currently selected active entry and syncs the bundle attachment. */
|
|
166
56
|
removeActiveEntryClaim(key: string): this;
|
|
167
|
-
/** Selects an active entry by
|
|
57
|
+
/** Selects an active entry by position or fullUrl. */
|
|
168
58
|
selectActiveEntry(selection: ActiveEntrySelection): this;
|
|
169
59
|
/** Alias of `selectActiveEntry()` with entry-selection wording. */
|
|
170
60
|
selectEntry(selection: ActiveEntrySelection): this;
|
|
@@ -175,88 +65,84 @@ export declare class CommunicationAttachedBundleSession {
|
|
|
175
65
|
* Matching priority: `fullUrl` if present, then resource claim identifier.
|
|
176
66
|
*/
|
|
177
67
|
upsertActiveEntry(input: UpsertEntryInput): this;
|
|
68
|
+
/**
|
|
69
|
+
* Reusable resource-typed wrapper around `upsertActiveEntry(...)`.
|
|
70
|
+
*
|
|
71
|
+
* Resource-specific helpers should delegate here instead of re-embedding the
|
|
72
|
+
* same `resourceType/fullUrl/type/request/claims` plumbing.
|
|
73
|
+
*/
|
|
74
|
+
private upsertActiveClaimsResourceEntry;
|
|
178
75
|
/**
|
|
179
76
|
* Consent-first helper for developer onboarding.
|
|
180
77
|
*
|
|
181
78
|
* Expected keys should come from `ClaimConsent` in caller code.
|
|
182
79
|
*/
|
|
183
|
-
upsertActiveConsentEntry(input:
|
|
184
|
-
claims: Record<string, unknown>;
|
|
185
|
-
fullUrl?: string;
|
|
186
|
-
type?: string;
|
|
187
|
-
request?: BundleRequest;
|
|
188
|
-
}>): this;
|
|
80
|
+
upsertActiveConsentEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
189
81
|
/**
|
|
190
82
|
* MedicationStatement helper for IPS-in-Communication use cases.
|
|
191
83
|
*
|
|
192
84
|
* Expected keys should come from MedicationStatement claims constants.
|
|
193
85
|
*/
|
|
194
|
-
upsertActiveMedicationStatementEntry(input:
|
|
195
|
-
claims: MedicationStatementClaimsFlat | Record<string, unknown>;
|
|
196
|
-
fullUrl?: string;
|
|
197
|
-
type?: string;
|
|
198
|
-
request?: BundleRequest;
|
|
199
|
-
}>): this;
|
|
86
|
+
upsertActiveMedicationStatementEntry(input: UpsertClaimsResourceEntryInput<MedicationStatementClaimsFlat | Record<string, unknown>>): this;
|
|
200
87
|
/**
|
|
201
88
|
* DocumentReference helper for bundle-contained attachments linked from
|
|
202
89
|
* other clinical resources through `*.contained-documents`.
|
|
203
90
|
*/
|
|
204
|
-
upsertActiveDocumentReferenceEntry(input:
|
|
205
|
-
claims: Record<string, unknown>;
|
|
206
|
-
fullUrl?: string;
|
|
207
|
-
type?: string;
|
|
208
|
-
request?: BundleRequest;
|
|
209
|
-
}>): this;
|
|
91
|
+
upsertActiveDocumentReferenceEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
210
92
|
/**
|
|
211
93
|
* Condition helper for IPS-in-Communication use cases.
|
|
212
94
|
*
|
|
213
95
|
* Expected keys should come from Condition claims constants.
|
|
214
96
|
*/
|
|
215
|
-
upsertActiveConditionEntry(input:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
97
|
+
upsertActiveConditionEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
98
|
+
/**
|
|
99
|
+
* Appointment helper for schedule/event flows carried inside Communication.
|
|
100
|
+
*
|
|
101
|
+
* Expected keys should come from Appointment claims constants.
|
|
102
|
+
*/
|
|
103
|
+
upsertActiveAppointmentEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
221
104
|
/**
|
|
222
105
|
* Observation helper for IPS-style and sectioned bundle authoring.
|
|
223
106
|
*
|
|
224
107
|
* Expected keys should come from Observation claims constants.
|
|
225
108
|
*/
|
|
226
|
-
upsertActiveObservationEntry(input:
|
|
227
|
-
claims: Record<string, unknown>;
|
|
228
|
-
fullUrl?: string;
|
|
229
|
-
type?: string;
|
|
230
|
-
request?: BundleRequest;
|
|
231
|
-
}>): this;
|
|
109
|
+
upsertActiveObservationEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
232
110
|
/**
|
|
233
111
|
* AllergyIntolerance helper for IPS-in-Communication use cases.
|
|
234
112
|
*
|
|
235
113
|
* Expected keys should come from AllergyIntolerance claims constants.
|
|
236
114
|
*/
|
|
237
|
-
upsertActiveAllergyIntoleranceEntry(input:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
115
|
+
upsertActiveAllergyIntoleranceEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
116
|
+
/** DiagnosticReport helper for report-in-Communication use cases. */
|
|
117
|
+
upsertActiveDiagnosticReportEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
118
|
+
/** CarePlan helper for plan-in-Communication use cases. */
|
|
119
|
+
upsertActiveCarePlanEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
120
|
+
/** Procedure helper for procedure-in-Communication use cases. */
|
|
121
|
+
upsertActiveProcedureEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
122
|
+
/** Immunization helper for immunization-in-Communication use cases. */
|
|
123
|
+
upsertActiveImmunizationEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
124
|
+
/** Encounter helper for visit/event flows carried inside Communication. */
|
|
125
|
+
upsertActiveEncounterEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
126
|
+
/** Device helper for device catalog or implant/device context flows. */
|
|
127
|
+
upsertActiveDeviceEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
128
|
+
/** DeviceUseStatement helper for device usage flows carried inside Communication. */
|
|
129
|
+
upsertActiveDeviceUseStatementEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
130
|
+
/** Flag helper for alert/banner flows carried inside Communication. */
|
|
131
|
+
upsertActiveFlagEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
132
|
+
/** ClinicalImpression helper for assessment flows carried inside Communication. */
|
|
133
|
+
upsertActiveClinicalImpressionEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
134
|
+
/** Coverage helper for entitlement/insurance flows carried inside Communication. */
|
|
135
|
+
upsertActiveCoverageEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
136
|
+
/** AppointmentResponse helper for schedule-response flows carried inside Communication. */
|
|
137
|
+
upsertActiveAppointmentResponseEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
138
|
+
/** Composition helper for document-structure flows carried inside Communication. */
|
|
139
|
+
upsertActiveCompositionEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
140
|
+
/** Location helper for schedule/place flows carried inside Communication. */
|
|
141
|
+
upsertActiveLocationEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
142
|
+
/** Organization helper for provider/payer/department flows carried inside Communication. */
|
|
143
|
+
upsertActiveOrganizationEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
144
|
+
/** RelatedPerson helper for relationship/member flows carried inside Communication. */
|
|
145
|
+
upsertActiveRelatedPersonEntry(input: UpsertClaimsResourceEntryInput<Record<string, unknown>>): this;
|
|
260
146
|
/**
|
|
261
147
|
* Creates or updates a linked `DocumentReference` entry and stores its
|
|
262
148
|
* identifier under the active resource `*.contained-documents` claim.
|
|
@@ -299,132 +185,3 @@ export declare class CommunicationAttachedBundleSession {
|
|
|
299
185
|
private resolveEntryCanonicalIdValue;
|
|
300
186
|
private assertEntryIndex;
|
|
301
187
|
}
|
|
302
|
-
/**
|
|
303
|
-
* High-level consent-access editor alias for onboarding and app-facing code.
|
|
304
|
-
*
|
|
305
|
-
* This keeps the business intent explicit for developers who are editing
|
|
306
|
-
* Consent access rules inside a Communication-carried bundle and should not
|
|
307
|
-
* need to start from the lower-level generic session name.
|
|
308
|
-
*/
|
|
309
|
-
export declare class ConsentAccessEditor extends CommunicationAttachedBundleSession {
|
|
310
|
-
/** Returns duplicate atomic consent-rule conflicts across the current bundle. */
|
|
311
|
-
getConsentRuleDuplicateConflicts(): ConsentDuplicateRuleConflict[];
|
|
312
|
-
/** Returns duplicate atomic consent-rule conflicts affecting the active Consent entry. */
|
|
313
|
-
getActiveConsentRuleDuplicateConflicts(): ConsentDuplicateRuleConflict[];
|
|
314
|
-
/** Returns one frontend-facing editable view model for the active Consent entry. */
|
|
315
|
-
getConsentViewModel(): ConsentViewModel;
|
|
316
|
-
/** Applies one frontend-facing editable view model back into the active Consent entry. */
|
|
317
|
-
applyConsentViewModel(viewModel: ConsentViewModel): this;
|
|
318
|
-
/** Returns the canonical permit/deny decision from the active Consent entry. */
|
|
319
|
-
getDecision(): string;
|
|
320
|
-
/**
|
|
321
|
-
* @deprecated Use `getDecision()`.
|
|
322
|
-
* Kept as a compatibility alias for the previous helper name.
|
|
323
|
-
*/
|
|
324
|
-
getPermit(): string;
|
|
325
|
-
/**
|
|
326
|
-
* Returns target classification derived from the current consent claim
|
|
327
|
-
* contract without altering or extending the persisted claim keys.
|
|
328
|
-
*/
|
|
329
|
-
getTargetsClassified(): ConsentEditorClassifiedTarget[];
|
|
330
|
-
/** Returns the catalog of core-section targets available for picker UIs. */
|
|
331
|
-
getCoreSectionOptions(): readonly ConsentEditorClassifiedTarget[];
|
|
332
|
-
/** Returns the core-section catalog keyed by LOINC code. */
|
|
333
|
-
getCoreSectionCatalog(): Readonly<Record<string, HealthcareSectionDescriptor>>;
|
|
334
|
-
/** Returns the catalog of kind-of-document targets available for picker UIs. */
|
|
335
|
-
getKindOfDocumentOptions(): readonly ConsentEditorClassifiedTarget[];
|
|
336
|
-
/** Returns the kind-of-document catalog keyed by LOINC code. */
|
|
337
|
-
getKindOfDocumentCatalog(): Readonly<Record<string, HealthcareSectionDescriptor>>;
|
|
338
|
-
/** Returns the catalog of type-of-service targets available for picker UIs. */
|
|
339
|
-
getTypeOfServiceOptions(): readonly ConsentEditorClassifiedTarget[];
|
|
340
|
-
/** Returns the type-of-service catalog keyed by LOINC code. */
|
|
341
|
-
getTypeOfServiceCatalog(): Readonly<Record<string, HealthcareSectionDescriptor>>;
|
|
342
|
-
/** Returns the catalog of subject-matter-domain targets available for picker UIs. */
|
|
343
|
-
getSubjectMatterDomainOptions(): readonly ConsentEditorClassifiedTarget[];
|
|
344
|
-
/** Returns the subject-matter-domain catalog keyed by LOINC code. */
|
|
345
|
-
getSubjectMatterDomainCatalog(): Readonly<Record<string, HealthcareSectionDescriptor>>;
|
|
346
|
-
/** Returns resource-type targets currently known in the active consent entry. */
|
|
347
|
-
getResourceTypeOptions(): readonly ConsentEditorClassifiedTarget[];
|
|
348
|
-
/** Returns the supported resource-type catalog. */
|
|
349
|
-
getResourceTypeCatalog(): readonly string[];
|
|
350
|
-
/** Returns the available professional roles for one sector. */
|
|
351
|
-
getAvailableProfessionalRolesBySector(sector: DataspaceSector): Readonly<Record<string, HealthcareActorRoleDescriptor>>;
|
|
352
|
-
/** Returns the available HL7 relationship roles. */
|
|
353
|
-
getAvailableRelationshipRoles(): Readonly<Record<string, HealthcareActorRoleDescriptor>>;
|
|
354
|
-
/** Returns selected core-section claim values. */
|
|
355
|
-
getSelectedCoreSections(): string[];
|
|
356
|
-
/** Returns selected kind-of-document claim values. */
|
|
357
|
-
getSelectedKindOfDocuments(): string[];
|
|
358
|
-
/** Returns selected type-of-service claim values. */
|
|
359
|
-
getSelectedTypeOfServices(): string[];
|
|
360
|
-
/** Returns selected subject-matter-domain claim values. */
|
|
361
|
-
getSelectedSubjectMatterDomains(): string[];
|
|
362
|
-
/** Returns selected resource-type claim values. */
|
|
363
|
-
getSelectedResourceTypes(): string[];
|
|
364
|
-
/** Replaces selected core-section claim values while preserving other families. */
|
|
365
|
-
setSelectedCoreSections(codes: readonly string[]): this;
|
|
366
|
-
/** Replaces selected kind-of-document claim values. */
|
|
367
|
-
setSelectedKindOfDocuments(codes: readonly string[]): this;
|
|
368
|
-
/** Replaces selected type-of-service claim values while preserving other families. */
|
|
369
|
-
setSelectedTypeOfServices(codes: readonly string[]): this;
|
|
370
|
-
/** Replaces selected subject-matter-domain claim values while preserving other families. */
|
|
371
|
-
setSelectedSubjectMatterDomains(codes: readonly string[]): this;
|
|
372
|
-
/** Replaces selected resource-type claim values. */
|
|
373
|
-
setSelectedResourceTypes(codes: readonly string[]): this;
|
|
374
|
-
/** Adds core-section claim values without removing other selected targets. */
|
|
375
|
-
addCoreSections(codes: readonly string[]): this;
|
|
376
|
-
/** Removes selected core-section claim values. */
|
|
377
|
-
removeCoreSections(codes: readonly string[]): this;
|
|
378
|
-
/** Adds kind-of-document claim values. */
|
|
379
|
-
addKindOfDocuments(codes: readonly string[]): this;
|
|
380
|
-
/** Removes kind-of-document claim values. */
|
|
381
|
-
removeKindOfDocuments(codes: readonly string[]): this;
|
|
382
|
-
/** Adds type-of-service claim values without removing other selected targets. */
|
|
383
|
-
addTypeOfServices(codes: readonly string[]): this;
|
|
384
|
-
/** Removes selected type-of-service claim values. */
|
|
385
|
-
removeTypeOfServices(codes: readonly string[]): this;
|
|
386
|
-
/** Adds subject-matter-domain claim values without removing other selected targets. */
|
|
387
|
-
addSubjectMatterDomains(codes: readonly string[]): this;
|
|
388
|
-
/** Removes selected subject-matter-domain claim values. */
|
|
389
|
-
removeSubjectMatterDomains(codes: readonly string[]): this;
|
|
390
|
-
/** Adds resource-type claim values. */
|
|
391
|
-
addResourceTypes(codes: readonly string[]): this;
|
|
392
|
-
/** Removes resource-type claim values. */
|
|
393
|
-
removeResourceTypes(codes: readonly string[]): this;
|
|
394
|
-
/** Returns purposes as explicit classified items. */
|
|
395
|
-
getPurposesClassified(): ConsentEditorClassifiedPurpose[];
|
|
396
|
-
/** Returns selected purpose claim values. */
|
|
397
|
-
getSelectedPurposes(): string[];
|
|
398
|
-
/** Replaces selected purpose claim values. */
|
|
399
|
-
setSelectedPurposes(codes: readonly string[]): this;
|
|
400
|
-
/** Adds purpose claim values. */
|
|
401
|
-
addPurposes(codes: readonly string[]): this;
|
|
402
|
-
/** Removes purpose claim values. */
|
|
403
|
-
removePurposes(codes: readonly string[]): this;
|
|
404
|
-
/** Returns selected actor roles as explicit classified items. */
|
|
405
|
-
getRolesClassified(): ConsentEditorClassifiedRoles;
|
|
406
|
-
/** Returns selected actor-role claim values. */
|
|
407
|
-
getSelectedRoles(): string[];
|
|
408
|
-
/** Replaces selected actor-role claim values. */
|
|
409
|
-
setSelectedRoles(codes: readonly string[]): this;
|
|
410
|
-
/** Adds actor-role claim values. */
|
|
411
|
-
addRoles(codes: readonly string[]): this;
|
|
412
|
-
/** Removes actor-role claim values. */
|
|
413
|
-
removeRoles(codes: readonly string[]): this;
|
|
414
|
-
/** Returns consent actors grouped by jurisdiction, organization, and user. */
|
|
415
|
-
getActorsClassified(): ConsentEditorClassifiedActors;
|
|
416
|
-
private getSelectedSectionCodesByFamily;
|
|
417
|
-
private setSelectedSectionCodesByFamily;
|
|
418
|
-
private addSectionCodesByFamily;
|
|
419
|
-
private removeSectionCodesByFamily;
|
|
420
|
-
private setActiveEntryClaimList;
|
|
421
|
-
private addActiveEntryClaimList;
|
|
422
|
-
private removeActiveEntryClaimList;
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* High-level factory for consent-access editing.
|
|
426
|
-
*
|
|
427
|
-
* Prefer this name in onboarding docs when the developer intent is:
|
|
428
|
-
* "edit a Consent access bundle carried by a Communication".
|
|
429
|
-
*/
|
|
430
|
-
export declare function createConsentAccessEditor(options?: CommunicationAttachedBundleSessionOptions): ConsentAccessEditor;
|