gdc-common-utils-ts 2.0.18 → 2.2.2
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 +18 -1
- package/dist/claims/claims-helpers-allergy-intolerance.d.ts +8 -0
- package/dist/claims/claims-helpers-allergy-intolerance.js +30 -12
- package/dist/claims/claims-helpers-condition.d.ts +8 -0
- package/dist/claims/claims-helpers-condition.js +30 -12
- package/dist/claims/claims-helpers-consent.d.ts +4 -0
- package/dist/claims/claims-helpers-consent.js +15 -1
- package/dist/claims/claims-helpers-diagnostic-report.d.ts +4 -0
- package/dist/claims/claims-helpers-diagnostic-report.js +17 -2
- package/dist/claims/claims-helpers-medication-statement.d.ts +10 -2
- package/dist/claims/claims-helpers-medication-statement.js +32 -14
- package/dist/constants/didcomm.d.ts +22 -0
- package/dist/constants/didcomm.js +22 -0
- package/dist/constants/fhir-resource-types.d.ts +2 -0
- package/dist/constants/fhir-resource-types.js +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +1 -0
- package/dist/constants/lifecycle.d.ts +2 -0
- package/dist/constants/lifecycle.js +2 -0
- package/dist/constants/verifiable-credentials.d.ts +9 -0
- package/dist/constants/verifiable-credentials.js +9 -0
- package/dist/examples/bundle-didcomm-payload.d.ts +11 -0
- package/dist/examples/bundle-didcomm-payload.js +15 -0
- package/dist/examples/communication-attached-bundle-session.js +28 -27
- package/dist/examples/communication-didcomm-payload.d.ts +39 -0
- package/dist/examples/communication-didcomm-payload.js +44 -0
- package/dist/examples/consent-access.js +2 -1
- package/dist/examples/employee.d.ts +21 -0
- package/dist/examples/employee.js +21 -0
- package/dist/examples/index.d.ts +4 -0
- package/dist/examples/index.js +4 -0
- package/dist/examples/individual-controller.d.ts +27 -0
- package/dist/examples/individual-controller.js +28 -1
- package/dist/examples/inter-tenant-access-contract.js +3 -2
- package/dist/examples/ips-bundle.js +17 -16
- package/dist/examples/lifecycle.js +13 -11
- package/dist/examples/profile-manager-mem.d.ts +45 -0
- package/dist/examples/profile-manager-mem.js +30 -0
- package/dist/examples/related-person.d.ts +14 -0
- package/dist/examples/related-person.js +18 -4
- package/dist/examples/shared.d.ts +13 -3
- package/dist/examples/shared.js +14 -4
- package/dist/examples/vital-signs.js +1 -1
- package/dist/examples/wallet-mem.d.ts +38 -0
- package/dist/examples/wallet-mem.js +42 -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/authority-resolution.d.ts +56 -0
- package/dist/models/authority-resolution.js +2 -0
- package/dist/models/bundle-editor-types.d.ts +89 -0
- package/dist/models/bundle-editor-types.js +45 -0
- package/dist/models/bundle.d.ts +5 -0
- package/dist/models/communication-attached-bundle-session.d.ts +195 -0
- package/dist/models/communication-attached-bundle-session.js +36 -0
- package/dist/models/confidential-storage.d.ts +2 -1
- package/dist/models/consent-rule.d.ts +11 -1
- package/dist/models/consent-rule.js +9 -1
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/individual-onboarding.d.ts +18 -0
- package/dist/models/interoperable-claims/allergy-intolerance-claims.d.ts +12 -1
- package/dist/models/interoperable-claims/allergy-intolerance-claims.js +12 -1
- package/dist/models/interoperable-claims/condition-claims.d.ts +12 -1
- package/dist/models/interoperable-claims/condition-claims.js +12 -1
- package/dist/models/interoperable-claims/diagnostic-report-claims.d.ts +14 -4
- package/dist/models/interoperable-claims/diagnostic-report-claims.js +13 -3
- package/dist/models/interoperable-claims/document-reference-claims.d.ts +1 -0
- package/dist/models/interoperable-claims/document-reference-claims.js +3 -0
- package/dist/models/interoperable-claims/medication-statement-claims.d.ts +17 -0
- package/dist/models/interoperable-claims/medication-statement-claims.js +17 -0
- 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/allergy-intolerance-entry-editor.d.ts +51 -0
- package/dist/utils/allergy-intolerance-entry-editor.js +55 -0
- package/dist/utils/authority-resolution.d.ts +37 -0
- package/dist/utils/authority-resolution.js +112 -0
- package/dist/utils/backend-message-manager-mem.d.ts +78 -0
- package/dist/utils/backend-message-manager-mem.js +238 -0
- package/dist/utils/bundle-didcomm-payload.d.ts +29 -0
- package/dist/utils/bundle-didcomm-payload.js +49 -0
- package/dist/utils/bundle-document-builder.d.ts +1 -0
- package/dist/utils/bundle-document-builder.js +134 -14
- package/dist/utils/bundle-editor-core.d.ts +181 -0
- package/dist/utils/bundle-editor-core.js +467 -0
- package/dist/utils/bundle-editor-helpers.d.ts +53 -0
- package/dist/utils/bundle-editor-helpers.js +146 -0
- package/dist/utils/bundle-editor-registry.d.ts +6 -0
- package/dist/utils/bundle-editor-registry.js +14 -0
- package/dist/utils/bundle-editor.d.ts +21 -722
- package/dist/utils/bundle-editor.js +21 -1601
- package/dist/utils/bundle-entry-editor.d.ts +96 -0
- package/dist/utils/bundle-entry-editor.js +305 -0
- package/dist/utils/bundle-query.d.ts +1 -0
- package/dist/utils/bundle-query.js +12 -3
- package/dist/utils/bundle-reader.d.ts +48 -0
- package/dist/utils/bundle-reader.js +175 -1
- package/dist/utils/care-plan-entry-editor.d.ts +43 -0
- package/dist/utils/care-plan-entry-editor.js +47 -0
- package/dist/utils/client-assertion.d.ts +38 -0
- package/dist/utils/client-assertion.js +113 -0
- package/dist/utils/clinical-impression-entry-editor.d.ts +43 -0
- package/dist/utils/clinical-impression-entry-editor.js +47 -0
- package/dist/utils/clinical-resource-entry-editor.d.ts +123 -0
- package/dist/utils/clinical-resource-entry-editor.js +296 -0
- package/dist/utils/communication-attached-bundle-session-helpers.d.ts +54 -0
- package/dist/utils/communication-attached-bundle-session-helpers.js +519 -0
- package/dist/utils/communication-attached-bundle-session.d.ts +87 -304
- package/dist/utils/communication-attached-bundle-session.js +175 -841
- 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 +38 -0
- package/dist/utils/communication-didcomm-payload.js +85 -0
- package/dist/utils/communication-document-reference.d.ts +23 -0
- package/dist/utils/communication-document-reference.js +89 -0
- package/dist/utils/communication-editor.d.ts +53 -0
- package/dist/utils/communication-editor.js +97 -0
- package/dist/utils/condition-entry-editor.d.ts +30 -0
- package/dist/utils/condition-entry-editor.js +34 -0
- package/dist/utils/consent-claim-helpers.d.ts +4 -0
- package/dist/utils/consent-claim-helpers.js +15 -1
- package/dist/utils/coverage-entry-editor.d.ts +51 -0
- package/dist/utils/coverage-entry-editor.js +55 -0
- package/dist/utils/device-entry-editor.d.ts +59 -0
- package/dist/utils/device-entry-editor.js +63 -0
- package/dist/utils/device-use-statement-entry-editor.d.ts +43 -0
- package/dist/utils/device-use-statement-entry-editor.js +47 -0
- package/dist/utils/diagnostic-report-entry-editor.d.ts +74 -0
- package/dist/utils/diagnostic-report-entry-editor.js +136 -0
- package/dist/utils/did.d.ts +8 -0
- package/dist/utils/did.js +22 -0
- package/dist/utils/document-reference-entry-editor.d.ts +62 -0
- package/dist/utils/document-reference-entry-editor.js +66 -0
- package/dist/utils/employee-entry-editor.d.ts +36 -0
- package/dist/utils/employee-entry-editor.js +88 -0
- package/dist/utils/employee.d.ts +1 -0
- package/dist/utils/employee.js +2 -1
- package/dist/utils/encounter-entry-editor.d.ts +51 -0
- package/dist/utils/encounter-entry-editor.js +55 -0
- package/dist/utils/flag-entry-editor.d.ts +47 -0
- package/dist/utils/flag-entry-editor.js +51 -0
- package/dist/utils/immunization-entry-editor.d.ts +87 -0
- package/dist/utils/immunization-entry-editor.js +169 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.js +15 -0
- package/dist/utils/individual-onboarding-acceptance-credential.d.ts +35 -0
- package/dist/utils/individual-onboarding-acceptance-credential.js +55 -0
- package/dist/utils/individual-smart.d.ts +59 -0
- package/dist/utils/individual-smart.js +135 -0
- package/dist/utils/medication-statement-entry-editor.d.ts +90 -0
- package/dist/utils/medication-statement-entry-editor.js +94 -0
- package/dist/utils/observation-component-entry-editor.d.ts +57 -0
- package/dist/utils/observation-component-entry-editor.js +105 -0
- package/dist/utils/observation-entry-editor.d.ts +29 -0
- package/dist/utils/observation-entry-editor.js +68 -0
- package/dist/utils/procedure-entry-editor.d.ts +71 -0
- package/dist/utils/procedure-entry-editor.js +75 -0
- package/dist/utils/professional-smart.d.ts +87 -0
- package/dist/utils/professional-smart.js +118 -4
- 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/same-as.d.ts +40 -0
- package/dist/utils/same-as.js +72 -0
- package/dist/utils/unified-health-id.d.ts +51 -0
- package/dist/utils/unified-health-id.js +92 -0
- package/dist/utils/vital-sign-day-batch.d.ts +25 -0
- package/dist/utils/vital-sign-day-batch.js +115 -0
- package/dist/utils/vital-sign-entry-editor.d.ts +61 -0
- package/dist/utils/vital-sign-entry-editor.js +152 -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 +2 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './ICryptoHelper';
|
|
2
|
+
export * from './ICryptography';
|
|
3
|
+
export * from './IWallet';
|
|
4
|
+
export * from './IProfileOutboxRepository';
|
|
5
|
+
export * from './IWalletQueue';
|
|
6
|
+
export * from './MlDsa';
|
|
7
|
+
export * from './MlKem';
|
|
8
|
+
export * from './Cryptography.types';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './ICryptoHelper.js';
|
|
2
|
+
export * from './ICryptography.js';
|
|
3
|
+
export * from './IWallet.js';
|
|
4
|
+
export * from './IProfileOutboxRepository.js';
|
|
5
|
+
export * from './IWalletQueue.js';
|
|
6
|
+
export * from './MlDsa.js';
|
|
7
|
+
export * from './MlKem.js';
|
|
8
|
+
export * from './Cryptography.types.js';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type AuthorityResolutionSource = 'catalog' | 'metadata' | 'cache' | 'legacy';
|
|
2
|
+
export type AuthorityResolutionMatch = 'tenant-context' | 'subject-did' | 'subject-same-as' | 'authority-did' | 'authority-base-url';
|
|
3
|
+
/**
|
|
4
|
+
* Runtime-neutral request shape used to resolve which authority/host is
|
|
5
|
+
* responsible for one tenant or subject identifier.
|
|
6
|
+
*
|
|
7
|
+
* Design rule:
|
|
8
|
+
* - business callers should prefer `tenantId + jurisdiction + sector`
|
|
9
|
+
* - callers may additionally provide `subjectDid` or `subjectSameAs` when that
|
|
10
|
+
* is the only identifier already known
|
|
11
|
+
* - `authorityDidWeb` and `authorityBaseUrl` are optional technical hints, not
|
|
12
|
+
* the preferred business inputs
|
|
13
|
+
*/
|
|
14
|
+
export type AuthorityResolutionInput = Readonly<{
|
|
15
|
+
tenantId?: string;
|
|
16
|
+
jurisdiction?: string;
|
|
17
|
+
sector?: string;
|
|
18
|
+
version?: string;
|
|
19
|
+
subjectDid?: string;
|
|
20
|
+
subjectSameAs?: string;
|
|
21
|
+
authorityDidWeb?: string;
|
|
22
|
+
authorityBaseUrl?: string;
|
|
23
|
+
metadataUrl?: string;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* One published or preloaded authority catalog entry.
|
|
27
|
+
*
|
|
28
|
+
* The current minimal contract is intentionally small:
|
|
29
|
+
* - enough to route to one host/ICA quickly
|
|
30
|
+
* - enough to derive the hosted tenant DID when tenant context is known
|
|
31
|
+
* - enough to match by public subject alias prefixes in future registries
|
|
32
|
+
*/
|
|
33
|
+
export type AuthorityCatalogRecord = Readonly<{
|
|
34
|
+
authorityDidWeb: string;
|
|
35
|
+
authorityBaseUrl?: string;
|
|
36
|
+
tenantDidWeb?: string;
|
|
37
|
+
tenantId?: string;
|
|
38
|
+
jurisdiction?: string;
|
|
39
|
+
version?: string;
|
|
40
|
+
sector?: string;
|
|
41
|
+
metadataUrl?: string;
|
|
42
|
+
subjectDidPrefixes?: readonly string[];
|
|
43
|
+
subjectSameAsPrefixes?: readonly string[];
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Normalized authority resolution output returned by shared discovery helpers.
|
|
47
|
+
*/
|
|
48
|
+
export type AuthorityResolution = Readonly<{
|
|
49
|
+
authorityDidWeb: string;
|
|
50
|
+
authorityBaseUrl?: string;
|
|
51
|
+
tenantDidWeb?: string;
|
|
52
|
+
metadataUrl?: string;
|
|
53
|
+
source: AuthorityResolutionSource;
|
|
54
|
+
matchedBy: AuthorityResolutionMatch;
|
|
55
|
+
record?: AuthorityCatalogRecord;
|
|
56
|
+
}>;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { type BundleEntry, type BundleJsonApi, type BundleRequest } from './bundle';
|
|
2
|
+
import { EmployeeBundleOperations, type EmployeeClaims } from '../utils/employee';
|
|
3
|
+
import type { BundleEntryEditor } from '../utils/bundle-entry-editor';
|
|
4
|
+
import type { EmployeeEntryEditor } from '../utils/employee-entry-editor';
|
|
5
|
+
import type { VitalSignEntryEditor } from '../utils/vital-sign-entry-editor';
|
|
6
|
+
import type { ObservationEntryEditor } from '../utils/observation-entry-editor';
|
|
7
|
+
import type { AllergyIntoleranceEntryEditor } from '../utils/allergy-intolerance-entry-editor';
|
|
8
|
+
import type { ConditionEntryEditor } from '../utils/condition-entry-editor';
|
|
9
|
+
import type { MedicationStatementEntryEditor } from '../utils/medication-statement-entry-editor';
|
|
10
|
+
import type { DocumentReferenceEntryEditor } from '../utils/document-reference-entry-editor';
|
|
11
|
+
import type { CarePlanEntryEditor } from '../utils/care-plan-entry-editor';
|
|
12
|
+
import type { FlagEntryEditor } from '../utils/flag-entry-editor';
|
|
13
|
+
import type { ClinicalImpressionEntryEditor } from '../utils/clinical-impression-entry-editor';
|
|
14
|
+
import type { DeviceEntryEditor } from '../utils/device-entry-editor';
|
|
15
|
+
import type { DeviceUseStatementEntryEditor } from '../utils/device-use-statement-entry-editor';
|
|
16
|
+
import type { EncounterEntryEditor } from '../utils/encounter-entry-editor';
|
|
17
|
+
import type { CoverageEntryEditor } from '../utils/coverage-entry-editor';
|
|
18
|
+
import type { ImmunizationEntryEditor } from '../utils/immunization-entry-editor';
|
|
19
|
+
import type { ProcedureEntryEditor } from '../utils/procedure-entry-editor';
|
|
20
|
+
import type { DiagnosticReportEntryEditor } from '../utils/diagnostic-report-entry-editor';
|
|
21
|
+
export type BundleOperation = (typeof EmployeeBundleOperations)[keyof typeof EmployeeBundleOperations];
|
|
22
|
+
/** Resource types that the shared bundle editors currently know how to open as typed entry editors. */
|
|
23
|
+
export declare const BundleEditableResourceTypes: Readonly<{
|
|
24
|
+
readonly employee: "Employee";
|
|
25
|
+
readonly consent: "Consent";
|
|
26
|
+
readonly observation: "Observation";
|
|
27
|
+
readonly vitalSign: "Observation";
|
|
28
|
+
readonly allergyIntolerance: "AllergyIntolerance";
|
|
29
|
+
readonly condition: "Condition";
|
|
30
|
+
readonly medicationStatement: "MedicationStatement";
|
|
31
|
+
readonly documentReference: "DocumentReference";
|
|
32
|
+
readonly carePlan: "CarePlan";
|
|
33
|
+
readonly flag: "Flag";
|
|
34
|
+
readonly clinicalImpression: "ClinicalImpression";
|
|
35
|
+
readonly device: "Device";
|
|
36
|
+
readonly deviceUseStatement: "DeviceUseStatement";
|
|
37
|
+
readonly encounter: "Encounter";
|
|
38
|
+
readonly coverage: "Coverage";
|
|
39
|
+
readonly immunization: "Immunization";
|
|
40
|
+
readonly procedure: "Procedure";
|
|
41
|
+
readonly diagnosticReport: "DiagnosticReport";
|
|
42
|
+
}>;
|
|
43
|
+
export type AllowedResourceType = string;
|
|
44
|
+
/** Mutable staged entry shape kept inside `BundleEditor` before final materialization. */
|
|
45
|
+
export type BuiltBundleEntry = {
|
|
46
|
+
type: string;
|
|
47
|
+
request: {
|
|
48
|
+
method: BundleRequest['method'];
|
|
49
|
+
url?: string;
|
|
50
|
+
};
|
|
51
|
+
resource: {
|
|
52
|
+
resourceType: string;
|
|
53
|
+
id?: string;
|
|
54
|
+
meta: {
|
|
55
|
+
claims: EmployeeClaims;
|
|
56
|
+
};
|
|
57
|
+
[key: string]: unknown;
|
|
58
|
+
};
|
|
59
|
+
fullUrl?: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const BundleTypes: Readonly<{
|
|
62
|
+
readonly batch: "batch";
|
|
63
|
+
readonly document: "document";
|
|
64
|
+
readonly collection: "collection";
|
|
65
|
+
readonly transaction: "transaction";
|
|
66
|
+
}>;
|
|
67
|
+
export type BundleType = (typeof BundleTypes)[keyof typeof BundleTypes];
|
|
68
|
+
/** Canonical validation issues returned by `BundleEditor.validateDocumentAuthoring()`. */
|
|
69
|
+
export declare const BundleEditorValidationIssues: Readonly<{
|
|
70
|
+
readonly DocumentModeRequired: "BundleEditor must be in document mode before document validation.";
|
|
71
|
+
readonly CompositionSubjectRequired: "Composition.subject is required before document transport.";
|
|
72
|
+
readonly CompositionTypeRequired: "Composition.type is required before document transport.";
|
|
73
|
+
readonly CompositionTitleRequired: "Composition.title is required before document transport.";
|
|
74
|
+
readonly CompositionDateRequired: "Composition.date is required before document transport.";
|
|
75
|
+
readonly CompositionAuthorRequired: "Composition.author is required before document transport.";
|
|
76
|
+
readonly DocumentEntryRequired: "Bundle.document requires at least one staged resource entry.";
|
|
77
|
+
}>;
|
|
78
|
+
export type BundleEditorValidationIssue = typeof BundleEditorValidationIssues[keyof typeof BundleEditorValidationIssues];
|
|
79
|
+
/** Convenience alias for the in-memory JSON-API-like bundle shape returned by `buildJsonApi()`. */
|
|
80
|
+
export type BundleJsonApiShape = BundleJsonApi<BundleEntry>;
|
|
81
|
+
/**
|
|
82
|
+
* Type-level mapping from `BundleEditableResourceTypes.*` to the concrete
|
|
83
|
+
* editor class returned by `newEntryAs(...)` / `newContainedResourceAs(...)`.
|
|
84
|
+
*
|
|
85
|
+
* This exists so callers get the correct chainable editor surface from the
|
|
86
|
+
* resource type they requested, instead of falling back to the generic
|
|
87
|
+
* `BundleEntryEditor` API.
|
|
88
|
+
*/
|
|
89
|
+
export type ResourceTypeEntryEditor<T extends AllowedResourceType> = T extends typeof BundleEditableResourceTypes.employee ? EmployeeEntryEditor : T extends typeof BundleEditableResourceTypes.vitalSign ? VitalSignEntryEditor : T extends typeof BundleEditableResourceTypes.observation ? ObservationEntryEditor : T extends typeof BundleEditableResourceTypes.allergyIntolerance ? AllergyIntoleranceEntryEditor : T extends typeof BundleEditableResourceTypes.condition ? ConditionEntryEditor : T extends typeof BundleEditableResourceTypes.medicationStatement ? MedicationStatementEntryEditor : T extends typeof BundleEditableResourceTypes.documentReference ? DocumentReferenceEntryEditor : T extends typeof BundleEditableResourceTypes.carePlan ? CarePlanEntryEditor : T extends typeof BundleEditableResourceTypes.flag ? FlagEntryEditor : T extends typeof BundleEditableResourceTypes.clinicalImpression ? ClinicalImpressionEntryEditor : T extends typeof BundleEditableResourceTypes.device ? DeviceEntryEditor : T extends typeof BundleEditableResourceTypes.deviceUseStatement ? DeviceUseStatementEntryEditor : T extends typeof BundleEditableResourceTypes.encounter ? EncounterEntryEditor : T extends typeof BundleEditableResourceTypes.coverage ? CoverageEntryEditor : T extends typeof BundleEditableResourceTypes.immunization ? ImmunizationEntryEditor : T extends typeof BundleEditableResourceTypes.procedure ? ProcedureEntryEditor : T extends typeof BundleEditableResourceTypes.diagnosticReport ? DiagnosticReportEntryEditor : BundleEntryEditor;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File discipline note:
|
|
3
|
+
* - Read `ARCHITECTURE.md` and `CONTRIBUTING.md` before changing this module.
|
|
4
|
+
* - This file owns only exported bundle-editor types and constants.
|
|
5
|
+
* - Do not move helper implementations or class logic here.
|
|
6
|
+
*/
|
|
7
|
+
import { ResourceTypesFhirR4 } from '../constants/fhir-resource-types.js';
|
|
8
|
+
import { EmployeeResourceTypes, } from '../utils/employee.js';
|
|
9
|
+
/** Resource types that the shared bundle editors currently know how to open as typed entry editors. */
|
|
10
|
+
export const BundleEditableResourceTypes = Object.freeze({
|
|
11
|
+
employee: EmployeeResourceTypes.employee,
|
|
12
|
+
consent: ResourceTypesFhirR4.Consent,
|
|
13
|
+
observation: ResourceTypesFhirR4.Observation,
|
|
14
|
+
vitalSign: ResourceTypesFhirR4.Observation,
|
|
15
|
+
allergyIntolerance: ResourceTypesFhirR4.AllergyIntolerance,
|
|
16
|
+
condition: ResourceTypesFhirR4.Condition,
|
|
17
|
+
medicationStatement: ResourceTypesFhirR4.MedicationStatement,
|
|
18
|
+
documentReference: ResourceTypesFhirR4.DocumentReference,
|
|
19
|
+
carePlan: ResourceTypesFhirR4.CarePlan,
|
|
20
|
+
flag: ResourceTypesFhirR4.Flag,
|
|
21
|
+
clinicalImpression: ResourceTypesFhirR4.ClinicalImpression,
|
|
22
|
+
device: ResourceTypesFhirR4.Device,
|
|
23
|
+
deviceUseStatement: ResourceTypesFhirR4.DeviceUseStatement,
|
|
24
|
+
encounter: ResourceTypesFhirR4.Encounter,
|
|
25
|
+
coverage: ResourceTypesFhirR4.Coverage,
|
|
26
|
+
immunization: ResourceTypesFhirR4.Immunization,
|
|
27
|
+
procedure: ResourceTypesFhirR4.Procedure,
|
|
28
|
+
diagnosticReport: ResourceTypesFhirR4.DiagnosticReport,
|
|
29
|
+
});
|
|
30
|
+
export const BundleTypes = Object.freeze({
|
|
31
|
+
batch: 'batch',
|
|
32
|
+
document: 'document',
|
|
33
|
+
collection: 'collection',
|
|
34
|
+
transaction: 'transaction',
|
|
35
|
+
});
|
|
36
|
+
/** Canonical validation issues returned by `BundleEditor.validateDocumentAuthoring()`. */
|
|
37
|
+
export const BundleEditorValidationIssues = Object.freeze({
|
|
38
|
+
DocumentModeRequired: 'BundleEditor must be in document mode before document validation.',
|
|
39
|
+
CompositionSubjectRequired: 'Composition.subject is required before document transport.',
|
|
40
|
+
CompositionTypeRequired: 'Composition.type is required before document transport.',
|
|
41
|
+
CompositionTitleRequired: 'Composition.title is required before document transport.',
|
|
42
|
+
CompositionDateRequired: 'Composition.date is required before document transport.',
|
|
43
|
+
CompositionAuthorRequired: 'Composition.author is required before document transport.',
|
|
44
|
+
DocumentEntryRequired: 'Bundle.document requires at least one staged resource entry.',
|
|
45
|
+
});
|
package/dist/models/bundle.d.ts
CHANGED
|
@@ -176,6 +176,11 @@ export type BundleEntry = {
|
|
|
176
176
|
* const responseBundle: BundleJsonApi<BundleEntry | ErrorEntry> = { ... };
|
|
177
177
|
*/
|
|
178
178
|
export interface BundleJsonApi<T = BundleEntry | ErrorEntry> {
|
|
179
|
+
id?: string;
|
|
180
|
+
meta?: {
|
|
181
|
+
claims?: Record<string, any>;
|
|
182
|
+
[key: string]: any;
|
|
183
|
+
};
|
|
179
184
|
data: T[];
|
|
180
185
|
resourceType: 'Bundle';
|
|
181
186
|
total?: number;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import type { HealthcareCanonicalSectionFamily, HealthcareRoleFamily } from '../constants/healthcare';
|
|
2
|
+
import type { BundleEntry, BundleJsonApi, BundleRequest } from './bundle';
|
|
3
|
+
/**
|
|
4
|
+
* Runtime strictness used by `CommunicationAttachedBundleSession`.
|
|
5
|
+
*/
|
|
6
|
+
export type CommunicationAttachedBundleSessionMode = 'strict' | 'normalize';
|
|
7
|
+
/**
|
|
8
|
+
* Constructor options for `CommunicationAttachedBundleSession`.
|
|
9
|
+
*/
|
|
10
|
+
export type CommunicationAttachedBundleSessionOptions = Readonly<{
|
|
11
|
+
communicationClaims?: Record<string, unknown>;
|
|
12
|
+
initialBundle?: BundleJsonApi<BundleEntry>;
|
|
13
|
+
mode?: CommunicationAttachedBundleSessionMode;
|
|
14
|
+
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Canonical `@context` for outer `Communication` claim payloads.
|
|
17
|
+
*
|
|
18
|
+
* Rationale:
|
|
19
|
+
* - this value belongs to canonical claims, not to `resource.resourceType`
|
|
20
|
+
* - `resource.resourceType = Communication` may later be projected as FHIR R4
|
|
21
|
+
* - but `resource.meta.claims['@context']` should stay version-agnostic
|
|
22
|
+
*/
|
|
23
|
+
export declare const CommunicationClaimsContext: "org.hl7.fhir.api";
|
|
24
|
+
/** @deprecated Prefer `CommunicationClaimsContext`. */
|
|
25
|
+
export declare const CommunicationAttachmentClaimsContext: "org.hl7.fhir.api";
|
|
26
|
+
/**
|
|
27
|
+
* Canonical `@context` for bundle entry `resource.meta.claims`.
|
|
28
|
+
*
|
|
29
|
+
* These claims are intended to stay version-agnostic across FHIR releases.
|
|
30
|
+
*/
|
|
31
|
+
export declare const BundleEntryClaimsContext: "org.hl7.fhir.api";
|
|
32
|
+
/**
|
|
33
|
+
* Selector for reopening one active bundle entry.
|
|
34
|
+
*
|
|
35
|
+
* Prefer `position` for bundle-array addressing. `index` is kept only as a
|
|
36
|
+
* backward-compatible alias during migration.
|
|
37
|
+
*/
|
|
38
|
+
export type ActiveEntrySelection = Readonly<{
|
|
39
|
+
position?: number;
|
|
40
|
+
/** @deprecated Prefer `position`. */
|
|
41
|
+
index?: number;
|
|
42
|
+
fullUrl?: string;
|
|
43
|
+
}>;
|
|
44
|
+
/**
|
|
45
|
+
* Generic upsert contract for one bundle entry stored in memory.
|
|
46
|
+
*/
|
|
47
|
+
export type UpsertEntryInput = Readonly<{
|
|
48
|
+
resourceType: string;
|
|
49
|
+
claims: Record<string, unknown>;
|
|
50
|
+
type?: string;
|
|
51
|
+
fullUrl?: string;
|
|
52
|
+
request?: BundleRequest;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* Reusable resource-specific upsert contract used by typed session helpers.
|
|
56
|
+
*/
|
|
57
|
+
export type UpsertClaimsResourceEntryInput<TClaims extends object = Record<string, unknown>> = Readonly<{
|
|
58
|
+
claims: TClaims;
|
|
59
|
+
type?: string;
|
|
60
|
+
fullUrl?: string;
|
|
61
|
+
request?: BundleRequest;
|
|
62
|
+
}>;
|
|
63
|
+
/**
|
|
64
|
+
* Input for adding one linked `DocumentReference` to the current active entry.
|
|
65
|
+
*/
|
|
66
|
+
export type AddContainedDocumentToActiveEntryInput = Readonly<{
|
|
67
|
+
identifier?: string;
|
|
68
|
+
fullUrl?: string;
|
|
69
|
+
claims?: Record<string, unknown>;
|
|
70
|
+
attachmentContentType?: string;
|
|
71
|
+
attachmentDataBase64?: string;
|
|
72
|
+
attachmentUrl?: string;
|
|
73
|
+
description?: string;
|
|
74
|
+
date?: string;
|
|
75
|
+
language?: string;
|
|
76
|
+
}>;
|
|
77
|
+
/**
|
|
78
|
+
* Canonical target kinds for consent access editing.
|
|
79
|
+
*/
|
|
80
|
+
export declare const ConsentEditorTargetKinds: Readonly<{
|
|
81
|
+
readonly Section: "section";
|
|
82
|
+
readonly ResourceType: "resource-type";
|
|
83
|
+
}>;
|
|
84
|
+
export type ConsentEditorTargetKind = typeof ConsentEditorTargetKinds[keyof typeof ConsentEditorTargetKinds];
|
|
85
|
+
/**
|
|
86
|
+
* Canonical operation scope codes for consent access editing.
|
|
87
|
+
*/
|
|
88
|
+
export declare const ConsentEditorScopeCodes: Readonly<{
|
|
89
|
+
readonly Search: "s";
|
|
90
|
+
readonly Read: "r";
|
|
91
|
+
readonly Create: "c";
|
|
92
|
+
readonly Update: "u";
|
|
93
|
+
readonly Delete: "d";
|
|
94
|
+
}>;
|
|
95
|
+
export type ConsentEditorScopeCode = typeof ConsentEditorScopeCodes[keyof typeof ConsentEditorScopeCodes];
|
|
96
|
+
/**
|
|
97
|
+
* One classified scope attached to a consent target.
|
|
98
|
+
*/
|
|
99
|
+
export type ConsentEditorClassifiedScope = Readonly<{
|
|
100
|
+
code: ConsentEditorScopeCode;
|
|
101
|
+
display?: string;
|
|
102
|
+
}>;
|
|
103
|
+
/**
|
|
104
|
+
* One classified target entry shown to consent-editing callers.
|
|
105
|
+
*/
|
|
106
|
+
export type ConsentEditorClassifiedTarget = Readonly<{
|
|
107
|
+
target: Readonly<{
|
|
108
|
+
kind: ConsentEditorTargetKind;
|
|
109
|
+
code: string;
|
|
110
|
+
display?: string;
|
|
111
|
+
sectionFamily?: HealthcareCanonicalSectionFamily;
|
|
112
|
+
}>;
|
|
113
|
+
scopes: readonly ConsentEditorClassifiedScope[];
|
|
114
|
+
}>;
|
|
115
|
+
/**
|
|
116
|
+
* Classified actor role resolved from canonical healthcare role catalogs.
|
|
117
|
+
*/
|
|
118
|
+
export type ConsentEditorClassifiedActorRole = Readonly<{
|
|
119
|
+
codingSystem: string;
|
|
120
|
+
code: string;
|
|
121
|
+
display?: string;
|
|
122
|
+
}>;
|
|
123
|
+
/**
|
|
124
|
+
* Role kind used in consent role classification.
|
|
125
|
+
*
|
|
126
|
+
* The underlying catalog still comes from `HealthcareRoleFamily`, but this
|
|
127
|
+
* editor-level view intentionally names the field `kind` instead of `family`
|
|
128
|
+
* to avoid leaking `individual-organization` terminology into generic consent
|
|
129
|
+
* editing flows.
|
|
130
|
+
*/
|
|
131
|
+
export type ConsentEditorClassifiedRoleKind = HealthcareRoleFamily;
|
|
132
|
+
/**
|
|
133
|
+
* Classified role entry exposed by the consent editor.
|
|
134
|
+
*/
|
|
135
|
+
export type ConsentEditorClassifiedRole = Readonly<{
|
|
136
|
+
kind?: ConsentEditorClassifiedRoleKind;
|
|
137
|
+
codingSystem: string;
|
|
138
|
+
code: string;
|
|
139
|
+
display?: string;
|
|
140
|
+
definition?: string;
|
|
141
|
+
}>;
|
|
142
|
+
/**
|
|
143
|
+
* Role buckets exposed by the consent editor.
|
|
144
|
+
*/
|
|
145
|
+
export type ConsentEditorClassifiedRoles = Readonly<{
|
|
146
|
+
professional: readonly ConsentEditorClassifiedRole[];
|
|
147
|
+
relationship: readonly ConsentEditorClassifiedRole[];
|
|
148
|
+
legalRepresentative: readonly ConsentEditorClassifiedRole[];
|
|
149
|
+
other: readonly ConsentEditorClassifiedRole[];
|
|
150
|
+
}>;
|
|
151
|
+
export type ConsentEditorClassifiedDepartment = Readonly<{
|
|
152
|
+
code: string;
|
|
153
|
+
display?: string;
|
|
154
|
+
}>;
|
|
155
|
+
export type ConsentEditorClassifiedLocation = Readonly<{
|
|
156
|
+
code: string;
|
|
157
|
+
display?: string;
|
|
158
|
+
}>;
|
|
159
|
+
export type ConsentEditorClassifiedOrganization = Readonly<{
|
|
160
|
+
domain: string;
|
|
161
|
+
display?: string;
|
|
162
|
+
departments: readonly ConsentEditorClassifiedDepartment[];
|
|
163
|
+
locations: readonly ConsentEditorClassifiedLocation[];
|
|
164
|
+
}>;
|
|
165
|
+
export type ConsentEditorClassifiedJurisdiction = Readonly<{
|
|
166
|
+
code: string;
|
|
167
|
+
display?: string;
|
|
168
|
+
}>;
|
|
169
|
+
export type ConsentEditorClassifiedUser = Readonly<{
|
|
170
|
+
email?: string;
|
|
171
|
+
phone?: string;
|
|
172
|
+
role?: ConsentEditorClassifiedActorRole;
|
|
173
|
+
}>;
|
|
174
|
+
export type ConsentEditorClassifiedActors = Readonly<{
|
|
175
|
+
jurisdictions: readonly ConsentEditorClassifiedJurisdiction[];
|
|
176
|
+
organizations: readonly ConsentEditorClassifiedOrganization[];
|
|
177
|
+
users: readonly ConsentEditorClassifiedUser[];
|
|
178
|
+
}>;
|
|
179
|
+
export type ConsentEditorClassifiedPurpose = Readonly<{
|
|
180
|
+
code: string;
|
|
181
|
+
display?: string;
|
|
182
|
+
}>;
|
|
183
|
+
/**
|
|
184
|
+
* Normalized consent view model exposed by the editor.
|
|
185
|
+
*/
|
|
186
|
+
export type ConsentViewModel = Readonly<{
|
|
187
|
+
fullUrl?: string;
|
|
188
|
+
identifier: string;
|
|
189
|
+
subject: string;
|
|
190
|
+
decision: string;
|
|
191
|
+
classifiedActors: ConsentEditorClassifiedActors;
|
|
192
|
+
classifiedRoles: ConsentEditorClassifiedRoles;
|
|
193
|
+
classifiedPurposes: readonly ConsentEditorClassifiedPurpose[];
|
|
194
|
+
classifiedTargets: readonly ConsentEditorClassifiedTarget[];
|
|
195
|
+
}>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Copyright 2026 Conectate Soluciones y Aplicaciones SL under the Apache License, Version 2.0.
|
|
2
|
+
import { Format } from '../constants/Schemas.js';
|
|
3
|
+
/**
|
|
4
|
+
* Canonical `@context` for outer `Communication` claim payloads.
|
|
5
|
+
*
|
|
6
|
+
* Rationale:
|
|
7
|
+
* - this value belongs to canonical claims, not to `resource.resourceType`
|
|
8
|
+
* - `resource.resourceType = Communication` may later be projected as FHIR R4
|
|
9
|
+
* - but `resource.meta.claims['@context']` should stay version-agnostic
|
|
10
|
+
*/
|
|
11
|
+
export const CommunicationClaimsContext = Format.FHIR_API;
|
|
12
|
+
/** @deprecated Prefer `CommunicationClaimsContext`. */
|
|
13
|
+
export const CommunicationAttachmentClaimsContext = CommunicationClaimsContext;
|
|
14
|
+
/**
|
|
15
|
+
* Canonical `@context` for bundle entry `resource.meta.claims`.
|
|
16
|
+
*
|
|
17
|
+
* These claims are intended to stay version-agnostic across FHIR releases.
|
|
18
|
+
*/
|
|
19
|
+
export const BundleEntryClaimsContext = Format.FHIR_API;
|
|
20
|
+
/**
|
|
21
|
+
* Canonical target kinds for consent access editing.
|
|
22
|
+
*/
|
|
23
|
+
export const ConsentEditorTargetKinds = Object.freeze({
|
|
24
|
+
Section: 'section',
|
|
25
|
+
ResourceType: 'resource-type',
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Canonical operation scope codes for consent access editing.
|
|
29
|
+
*/
|
|
30
|
+
export const ConsentEditorScopeCodes = Object.freeze({
|
|
31
|
+
Search: 's',
|
|
32
|
+
Read: 'r',
|
|
33
|
+
Create: 'c',
|
|
34
|
+
Update: 'u',
|
|
35
|
+
Delete: 'd',
|
|
36
|
+
});
|
|
@@ -134,6 +134,7 @@ export interface ConfidentialBlobInfo {
|
|
|
134
134
|
contentType?: string;
|
|
135
135
|
}
|
|
136
136
|
export interface ConfidentialStorageDoc {
|
|
137
|
+
/** Vault primary key for the persisted confidential record. Keep this as an opaque technical id; HMAC is reserved for indexed attributes, not for the document key itself. */
|
|
137
138
|
id: string;
|
|
138
139
|
status: string;
|
|
139
140
|
/**
|
|
@@ -149,7 +150,7 @@ export interface ConfidentialStorageDoc {
|
|
|
149
150
|
chunks?: number;
|
|
150
151
|
/** A number that MUST be incremented each time the document is updated. */
|
|
151
152
|
sequence: number;
|
|
152
|
-
/** Contains an array of indexed attributes protected with HMAC for blind queries. */
|
|
153
|
+
/** Contains an array of indexed attributes protected with HMAC for blind queries. This is the place for blind-search protection, not `id`. */
|
|
153
154
|
indexed?: IndexedData;
|
|
154
155
|
/** The main, potentially encrypted, content of the document. */
|
|
155
156
|
content?: Record<string, any>;
|
|
@@ -16,9 +16,17 @@ export declare enum ClaimConsent {
|
|
|
16
16
|
'identifier' = "Consent.identifier",
|
|
17
17
|
'eventBasedOn' = "Consent.event-basedon",
|
|
18
18
|
'sourceReference' = "Consent.source-reference",
|
|
19
|
+
'containedReferenceList' = "Consent.contained-reference-list",
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `containedReferenceList`.
|
|
22
|
+
*/
|
|
23
|
+
'containedResourceList' = "Consent.contained-resource-list",
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `containedReferenceList`.
|
|
26
|
+
*/
|
|
19
27
|
'containedDocuments' = "Consent.contained-documents",
|
|
20
28
|
/**
|
|
21
|
-
* @deprecated Use `
|
|
29
|
+
* @deprecated Use `containedReferenceList`.
|
|
22
30
|
*/
|
|
23
31
|
'attachmentContentIds' = "Consent.attachment-content-ids",
|
|
24
32
|
'attachmentContentType' = "Consent.attachment-contenttype",
|
|
@@ -128,6 +136,8 @@ export interface ConsentRule {
|
|
|
128
136
|
* Derived from the `org.hl7.fhir.api.Consent.identifier` claim.
|
|
129
137
|
*/
|
|
130
138
|
'Consent.identifier': string;
|
|
139
|
+
'Consent.contained-reference-list'?: string;
|
|
140
|
+
'Consent.contained-resource-list'?: string;
|
|
131
141
|
'Consent.contained-documents'?: string;
|
|
132
142
|
'Consent.attachment-content-ids'?: string;
|
|
133
143
|
'Consent.attachment-contenttype'?: string;
|
|
@@ -18,9 +18,17 @@ export var ClaimConsent;
|
|
|
18
18
|
ClaimConsent["identifier"] = "Consent.identifier";
|
|
19
19
|
ClaimConsent["eventBasedOn"] = "Consent.event-basedon";
|
|
20
20
|
ClaimConsent["sourceReference"] = "Consent.source-reference";
|
|
21
|
+
ClaimConsent["containedReferenceList"] = "Consent.contained-reference-list";
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `containedReferenceList`.
|
|
24
|
+
*/
|
|
25
|
+
ClaimConsent["containedResourceList"] = "Consent.contained-resource-list";
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use `containedReferenceList`.
|
|
28
|
+
*/
|
|
21
29
|
ClaimConsent["containedDocuments"] = "Consent.contained-documents";
|
|
22
30
|
/**
|
|
23
|
-
* @deprecated Use `
|
|
31
|
+
* @deprecated Use `containedReferenceList`.
|
|
24
32
|
*/
|
|
25
33
|
ClaimConsent["attachmentContentIds"] = "Consent.attachment-content-ids";
|
|
26
34
|
ClaimConsent["attachmentContentType"] = "Consent.attachment-contenttype";
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from './actor-session';
|
|
2
2
|
export * from './aes';
|
|
3
3
|
export * from './auth';
|
|
4
|
+
export * from './authority-resolution';
|
|
4
5
|
export * from './bundle';
|
|
6
|
+
export * from './bundle-editor-types';
|
|
5
7
|
export * from './comm';
|
|
6
8
|
export * from './clinical-sections';
|
|
7
9
|
export * from './clinical-sections.en';
|
|
8
10
|
export * from './clinical-workbook-summary';
|
|
11
|
+
export * from './communication-attached-bundle-session';
|
|
9
12
|
export * from './confidential-job';
|
|
10
13
|
export * from './confidential-message';
|
|
11
14
|
export * from './confidential-storage';
|
|
@@ -36,6 +39,7 @@ export * from './oidc4ida.electronicRecord.model';
|
|
|
36
39
|
export * from './oidc4ida.evidence.model';
|
|
37
40
|
export * from './openid-device';
|
|
38
41
|
export * from './permission-templates';
|
|
42
|
+
export * from './profile-manager';
|
|
39
43
|
export * from './operation-outcome';
|
|
40
44
|
export * from './params';
|
|
41
45
|
export * from './permission-templates';
|
|
@@ -44,3 +48,4 @@ export * from './relationship-access';
|
|
|
44
48
|
export * from './response';
|
|
45
49
|
export * from './urlPath';
|
|
46
50
|
export * from './verifiable-credential';
|
|
51
|
+
export * from './wallet';
|
package/dist/models/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from './actor-session.js';
|
|
2
2
|
export * from './aes.js';
|
|
3
3
|
export * from './auth.js';
|
|
4
|
+
export * from './authority-resolution.js';
|
|
4
5
|
export * from './bundle.js';
|
|
6
|
+
export * from './bundle-editor-types.js';
|
|
5
7
|
export * from './comm.js';
|
|
6
8
|
export * from './clinical-sections.js';
|
|
7
9
|
export * from './clinical-sections.en.js';
|
|
8
10
|
export * from './clinical-workbook-summary.js';
|
|
11
|
+
export * from './communication-attached-bundle-session.js';
|
|
9
12
|
export * from './confidential-job.js';
|
|
10
13
|
export * from './confidential-message.js';
|
|
11
14
|
export * from './confidential-storage.js';
|
|
@@ -36,6 +39,7 @@ export * from './oidc4ida.electronicRecord.model.js';
|
|
|
36
39
|
export * from './oidc4ida.evidence.model.js';
|
|
37
40
|
export * from './openid-device.js';
|
|
38
41
|
export * from './permission-templates.js';
|
|
42
|
+
export * from './profile-manager.js';
|
|
39
43
|
export * from './operation-outcome.js';
|
|
40
44
|
export * from './params.js';
|
|
41
45
|
export * from './permission-templates.js';
|
|
@@ -44,3 +48,4 @@ export * from './relationship-access.js';
|
|
|
44
48
|
export * from './response.js';
|
|
45
49
|
export * from './urlPath.js';
|
|
46
50
|
export * from './verifiable-credential.js';
|
|
51
|
+
export * from './wallet.js';
|
|
@@ -73,9 +73,27 @@ export interface IndividualFormTemplateFields {
|
|
|
73
73
|
controllerSexAtBirth?: BirthSex | string;
|
|
74
74
|
controllerIsSubject?: boolean;
|
|
75
75
|
subjectAlternateName?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Birth date for the indexed subject.
|
|
78
|
+
*
|
|
79
|
+
* Canonical downstream target:
|
|
80
|
+
* - `org.schema.Organization.member.birthDate`
|
|
81
|
+
*
|
|
82
|
+
* When `controllerIsSubject=true`, controller date fields may also be used
|
|
83
|
+
* as the subject seed for self-registration flows.
|
|
84
|
+
*/
|
|
76
85
|
subjectDateOfBirth?: string;
|
|
77
86
|
subjectEmail?: string;
|
|
78
87
|
subjectFamilyName?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Gender for the indexed subject.
|
|
90
|
+
*
|
|
91
|
+
* Canonical downstream target:
|
|
92
|
+
* - `org.schema.Organization.member.gender`
|
|
93
|
+
*
|
|
94
|
+
* When `controllerIsSubject=true`, controller gender fields may also be used
|
|
95
|
+
* as the subject seed for self-registration flows.
|
|
96
|
+
*/
|
|
79
97
|
subjectGender?: GenderIdentity | string;
|
|
80
98
|
subjectGivenName?: string;
|
|
81
99
|
subjectIdType?: IdKindValue | string;
|
|
@@ -11,9 +11,20 @@ export declare const AllergyIntoleranceClaim: {
|
|
|
11
11
|
readonly ClinicalStatus: "AllergyIntolerance.clinical-status";
|
|
12
12
|
readonly VerificationStatus: "AllergyIntolerance.verification-status";
|
|
13
13
|
readonly Category: "AllergyIntolerance.category";
|
|
14
|
+
/**
|
|
15
|
+
* Canonical CSV/list of related contained resource references or identifiers.
|
|
16
|
+
*/
|
|
17
|
+
readonly ContainedReferenceList: "AllergyIntolerance.contained-reference-list";
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
20
|
+
*/
|
|
21
|
+
readonly ContainedResourceList: "AllergyIntolerance.contained-resource-list";
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
24
|
+
*/
|
|
14
25
|
readonly ContainedDocuments: "AllergyIntolerance.contained-documents";
|
|
15
26
|
/**
|
|
16
|
-
* @deprecated Use `
|
|
27
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
17
28
|
*/
|
|
18
29
|
readonly AttachmentContentIds: "AllergyIntolerance.attachment-content-ids";
|
|
19
30
|
readonly Criticality: "AllergyIntolerance.criticality";
|
|
@@ -13,9 +13,20 @@ export const AllergyIntoleranceClaim = {
|
|
|
13
13
|
ClinicalStatus: 'AllergyIntolerance.clinical-status',
|
|
14
14
|
VerificationStatus: 'AllergyIntolerance.verification-status',
|
|
15
15
|
Category: 'AllergyIntolerance.category',
|
|
16
|
+
/**
|
|
17
|
+
* Canonical CSV/list of related contained resource references or identifiers.
|
|
18
|
+
*/
|
|
19
|
+
ContainedReferenceList: 'AllergyIntolerance.contained-reference-list',
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
22
|
+
*/
|
|
23
|
+
ContainedResourceList: 'AllergyIntolerance.contained-resource-list',
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
26
|
+
*/
|
|
16
27
|
ContainedDocuments: 'AllergyIntolerance.contained-documents',
|
|
17
28
|
/**
|
|
18
|
-
* @deprecated Use `
|
|
29
|
+
* @deprecated Use `ContainedReferenceList`.
|
|
19
30
|
*/
|
|
20
31
|
AttachmentContentIds: 'AllergyIntolerance.attachment-content-ids',
|
|
21
32
|
Criticality: 'AllergyIntolerance.criticality',
|