gdc-common-utils-ts 2.9.13 → 2.9.15
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/dist/AesManager.d.ts +1 -1
- package/dist/CryptographyService.d.ts +6 -6
- package/dist/claims/index.d.ts +24 -24
- package/dist/constants/cryptography.d.ts +1 -1
- package/dist/constants/healthcare.d.ts +3 -3
- package/dist/constants/identity-identifiers.d.ts +3 -1
- package/dist/constants/identity-identifiers.js +3 -1
- package/dist/constants/index.d.ts +40 -40
- package/dist/constants/individual-sections.d.ts +12 -12
- package/dist/constants/kyc-gender.d.ts +1 -1
- package/dist/constants/schemaorg.d.ts +1 -1
- package/dist/constants/vital-signs.d.ts +2 -2
- package/dist/convert/convert-allergy-intolerance.d.ts +1 -1
- package/dist/convert/convert-appointment-response.d.ts +1 -1
- package/dist/convert/convert-appointment.d.ts +1 -1
- package/dist/convert/convert-care-plan.d.ts +1 -1
- package/dist/convert/convert-clinical-impression.d.ts +1 -1
- package/dist/convert/convert-composition.d.ts +1 -1
- package/dist/convert/convert-condition.d.ts +1 -1
- package/dist/convert/convert-consent.d.ts +1 -1
- package/dist/convert/convert-coverage.d.ts +1 -1
- package/dist/convert/convert-device-use-statement.d.ts +1 -1
- package/dist/convert/convert-device.d.ts +1 -1
- package/dist/convert/convert-diagnostic-report.d.ts +1 -1
- package/dist/convert/convert-document-reference.d.ts +1 -1
- package/dist/convert/convert-encounter.d.ts +1 -1
- package/dist/convert/convert-flag.d.ts +1 -1
- package/dist/convert/convert-immunization.d.ts +1 -1
- package/dist/convert/convert-location.d.ts +1 -1
- package/dist/convert/convert-medication-statement.d.ts +1 -1
- package/dist/convert/convert-observation.d.ts +1 -1
- package/dist/convert/convert-organization.d.ts +1 -1
- package/dist/convert/convert-practitioner-role.d.ts +1 -1
- package/dist/convert/convert-procedure.d.ts +1 -1
- package/dist/convert/convert-related-person.d.ts +1 -1
- package/dist/convert/convert-shared.js +1 -1
- package/dist/convert/index.d.ts +25 -25
- package/dist/convert/schemaorg-to-gaia-x.d.ts +3 -3
- package/dist/examples/api-flow-examples.d.ts +8 -8
- package/dist/examples/communication-attached-bundle-session.d.ts +2 -2
- package/dist/examples/communication-bundle-document-request.d.ts +1 -1
- package/dist/examples/communication-didcomm-payload.d.ts +1 -1
- package/dist/examples/consent-access.d.ts +2 -2
- package/dist/examples/contract-examples.d.ts +9 -9
- package/dist/examples/dataspace-discovery.d.ts +1 -1
- package/dist/examples/didcomm-identity.d.ts +1 -1
- package/dist/examples/ica-verify-response.d.ts +1 -1
- package/dist/examples/index.d.ts +35 -35
- package/dist/examples/individual-controller.d.ts +1 -1
- package/dist/examples/inter-tenant-access-contract.d.ts +1 -1
- package/dist/examples/invoice.d.ts +2 -2
- package/dist/examples/ips-bundle.d.ts +2 -2
- package/dist/examples/legal-organization-verification-transaction.d.ts +1 -1
- package/dist/examples/lifecycle.d.ts +4 -4
- package/dist/examples/organization-did-binding.d.ts +1 -1
- package/dist/examples/organization-role-license.d.ts +3 -3
- package/dist/examples/related-person.d.ts +6 -6
- package/dist/examples/relationship-access.d.ts +1 -1
- package/dist/examples/shared.d.ts +4 -2
- package/dist/examples/shared.js +3 -1
- package/dist/examples/subject-identity-binding.d.ts +1 -1
- package/dist/examples/vital-signs.d.ts +2 -2
- package/dist/index.d.ts +13 -13
- package/dist/interfaces/ICryptography.d.ts +4 -4
- package/dist/interfaces/IProfileOutboxRepository.d.ts +1 -1
- package/dist/interfaces/IWallet.d.ts +2 -2
- package/dist/interfaces/IWalletQueue.d.ts +1 -1
- package/dist/interfaces/index.d.ts +8 -8
- package/dist/models/actor-session.d.ts +1 -1
- package/dist/models/bundle-editor-types.d.ts +22 -22
- package/dist/models/bundle.d.ts +1 -1
- package/dist/models/clinical-sections.d.ts +1 -1
- package/dist/models/comm.d.ts +1 -1
- package/dist/models/communication-attached-bundle-session.d.ts +2 -2
- package/dist/models/confidential-job.d.ts +3 -3
- package/dist/models/confidential-message.d.ts +3 -3
- package/dist/models/confidential-storage.d.ts +1 -1
- package/dist/models/crypto.d.ts +1 -1
- package/dist/models/dataspace-discovery-defaults.d.ts +2 -2
- package/dist/models/device-license.d.ts +1 -1
- package/dist/models/did.d.ts +5 -5
- package/dist/models/gaia-x.d.ts +2 -2
- package/dist/models/identity-bootstrap.d.ts +4 -4
- package/dist/models/index.d.ts +62 -62
- package/dist/models/indexing.d.ts +2 -2
- package/dist/models/individual-onboarding.d.ts +5 -5
- package/dist/models/interoperable-claims/allergy-intolerance-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/care-plan-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/clinical-impression-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/condition-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/coverage-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/device-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/device-use-statement-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/diagnostic-report-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/document-reference-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/encounter-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/flag-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/immunization-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/index.d.ts +27 -27
- package/dist/models/interoperable-claims/invoice-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/location-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/medication-statement-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/observation-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/organization-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/practitioner-role-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/procedure-claims.d.ts +1 -1
- package/dist/models/interoperable-claims/related-person-claims.d.ts +1 -1
- package/dist/models/interoperable-claims.d.ts +1 -1
- package/dist/models/jsonapi.d.ts +1 -1
- package/dist/models/jwe.d.ts +1 -1
- package/dist/models/jws.d.ts +1 -1
- package/dist/models/jwt.d.ts +1 -1
- package/dist/models/oidc4ida.document.model.d.ts +2 -2
- package/dist/models/oidc4ida.electronicRecord.model.d.ts +1 -1
- package/dist/models/oidc4ida.evidence.model.d.ts +2 -2
- package/dist/models/openid-device.d.ts +1 -1
- package/dist/models/operation-outcome.d.ts +1 -1
- package/dist/models/organization-employee-lifecycle.d.ts +2 -2
- package/dist/models/organization-role-license.d.ts +1 -1
- package/dist/models/profile-manager.d.ts +1 -1
- package/dist/models/response.d.ts +1 -1
- package/dist/models/subject-identity.d.ts +1 -1
- package/dist/models/verifiable-credential.d.ts +1 -1
- package/dist/models/wallet.d.ts +1 -1
- package/dist/storage/IVaultRepository.d.ts +1 -1
- package/dist/storage/VaultMemRepository.d.ts +2 -2
- package/dist/storage/index.d.ts +3 -3
- package/dist/utils/activation-request.d.ts +2 -2
- package/dist/utils/allergy-intolerance-entry-editor.d.ts +8 -3
- package/dist/utils/allergy-intolerance-entry-editor.js +7 -4
- package/dist/utils/authority-resolution.d.ts +1 -1
- package/dist/utils/backend-message-manager-mem.d.ts +4 -4
- package/dist/utils/bundle-didcomm-payload.d.ts +1 -1
- package/dist/utils/bundle-document-builder.d.ts +1 -1
- package/dist/utils/bundle-editor-core.d.ts +5 -5
- package/dist/utils/bundle-editor-helpers.d.ts +2 -2
- package/dist/utils/bundle-editor-registry.d.ts +2 -2
- package/dist/utils/bundle-editor.d.ts +23 -23
- package/dist/utils/bundle-entry-editor.d.ts +34 -22
- package/dist/utils/bundle-entry-editor.js +57 -0
- package/dist/utils/bundle-reader.d.ts +2 -2
- package/dist/utils/bundle-reader.js +7 -1
- package/dist/utils/care-plan-entry-editor.d.ts +22 -1
- package/dist/utils/care-plan-entry-editor.js +20 -3
- package/dist/utils/clinical-impression-entry-editor.d.ts +8 -1
- package/dist/utils/clinical-impression-entry-editor.js +6 -0
- package/dist/utils/clinical-resource-converters.d.ts +49 -49
- package/dist/utils/clinical-resource-entry-editor.d.ts +2 -2
- package/dist/utils/communication-attached-bundle-session-helpers.d.ts +3 -3
- package/dist/utils/communication-attached-bundle-session.d.ts +6 -6
- package/dist/utils/communication-bundle-document-request.d.ts +3 -3
- package/dist/utils/communication-consent-access-editor.d.ts +5 -5
- package/dist/utils/communication-didcomm-payload.d.ts +1 -1
- package/dist/utils/communication-document-reference.d.ts +1 -1
- package/dist/utils/communication-editor.d.ts +6 -6
- package/dist/utils/communication-fhir-r4.d.ts +1 -1
- package/dist/utils/communication-identity.d.ts +5 -5
- package/dist/utils/communication-participant-search-test-data.d.ts +1 -1
- package/dist/utils/condition-entry-editor.d.ts +18 -1
- package/dist/utils/condition-entry-editor.js +24 -6
- package/dist/utils/confidential-storage-persistence.d.ts +1 -1
- package/dist/utils/confidential-storage-test-data.d.ts +1 -1
- package/dist/utils/connected-device-fhir-r4.d.ts +1 -1
- package/dist/utils/consent-entry-editor.d.ts +2 -2
- package/dist/utils/content.d.ts +4 -4
- package/dist/utils/coverage-entry-editor.d.ts +13 -1
- package/dist/utils/coverage-entry-editor.js +14 -6
- package/dist/utils/dataspace-discovery-defaults.d.ts +2 -2
- package/dist/utils/dataspace-discovery.d.ts +1 -1
- package/dist/utils/dataspace-protocol.d.ts +2 -2
- package/dist/utils/deterministic-jwk.d.ts +1 -1
- package/dist/utils/device-entry-editor.d.ts +7 -1
- package/dist/utils/device-entry-editor.js +7 -3
- package/dist/utils/device-use-statement-entry-editor.d.ts +6 -1
- package/dist/utils/device-use-statement-entry-editor.js +6 -3
- package/dist/utils/diagnostic-report-entry-editor.d.ts +12 -1
- package/dist/utils/diagnostic-report-entry-editor.js +15 -8
- package/dist/utils/did-resolution.d.ts +2 -2
- package/dist/utils/did-resolution.js +5 -3
- package/dist/utils/did.d.ts +5 -5
- package/dist/utils/did.js +4 -4
- package/dist/utils/didcomm-submit.d.ts +1 -1
- package/dist/utils/didcomm.d.ts +2 -2
- package/dist/utils/discovery-normalization.d.ts +1 -1
- package/dist/utils/document-reference-entry-editor.d.ts +13 -1
- package/dist/utils/document-reference-entry-editor.js +14 -6
- package/dist/utils/employee-entry-editor.d.ts +1 -1
- package/dist/utils/employee.d.ts +1 -1
- package/dist/utils/encounter-entry-editor.d.ts +18 -1
- package/dist/utils/encounter-entry-editor.js +20 -9
- package/dist/utils/fhir-search.d.ts +1 -1
- package/dist/utils/fhir-validator.d.ts +1 -1
- package/dist/utils/flag-entry-editor.d.ts +14 -3
- package/dist/utils/flag-entry-editor.js +14 -7
- package/dist/utils/gw-core-commercial-contract.d.ts +1 -1
- package/dist/utils/gw-core-path.d.ts +1 -1
- package/dist/utils/immunization-entry-editor.d.ts +45 -3
- package/dist/utils/immunization-entry-editor.js +57 -17
- package/dist/utils/index.d.ts +125 -125
- package/dist/utils/individual-bundle-vault.d.ts +4 -4
- package/dist/utils/individual-form-pdf.d.ts +1 -1
- package/dist/utils/individual-onboarding-acceptance-credential.d.ts +1 -1
- package/dist/utils/individual-onboarding-document-reference.d.ts +1 -1
- package/dist/utils/individual-onboarding-editor.d.ts +1 -1
- package/dist/utils/individual-organization-claims.d.ts +1 -1
- package/dist/utils/individual-organization-kyc.d.ts +2 -2
- package/dist/utils/inter-tenant-access-contract.d.ts +2 -2
- package/dist/utils/interoperable-resource-operation.d.ts +2 -2
- package/dist/utils/invoice-bundle.d.ts +1 -1
- package/dist/utils/jwk-thumbprint.d.ts +1 -1
- package/dist/utils/jwt-signer.d.ts +3 -3
- package/dist/utils/jwt.d.ts +1 -1
- package/dist/utils/legal-organization-onboarding-editor.d.ts +2 -2
- package/dist/utils/legal-organization-onboarding.d.ts +2 -2
- package/dist/utils/legal-organization-verification-transaction.d.ts +3 -3
- package/dist/utils/license-commercial-search.d.ts +2 -2
- package/dist/utils/license-list-search.d.ts +1 -1
- package/dist/utils/license-offer-order.d.ts +1 -1
- package/dist/utils/license.d.ts +2 -2
- package/dist/utils/lifecycle-result-reader.d.ts +1 -1
- package/dist/utils/manager-error.d.ts +1 -1
- package/dist/utils/medication-claim-helpers.d.ts +1 -1
- package/dist/utils/medication-statement-entry-editor.d.ts +30 -7
- package/dist/utils/medication-statement-entry-editor.js +28 -12
- package/dist/utils/observation-component-entry-editor.d.ts +19 -2
- package/dist/utils/observation-component-entry-editor.js +42 -15
- package/dist/utils/observation-entry-editor.d.ts +9 -1
- package/dist/utils/observation-entry-editor.js +7 -0
- package/dist/utils/organization-authorization-urn.d.ts +1 -1
- package/dist/utils/organization-did-binding.d.ts +1 -1
- package/dist/utils/organization-employee-lifecycle.d.ts +1 -1
- package/dist/utils/organization-role-license.d.ts +1 -1
- package/dist/utils/organization-test-network-credential.d.ts +1 -1
- package/dist/utils/procedure-entry-editor.d.ts +23 -5
- package/dist/utils/procedure-entry-editor.js +21 -8
- package/dist/utils/profile-manager-mem.d.ts +5 -5
- package/dist/utils/profile-outbox-memory-repository.d.ts +2 -2
- package/dist/utils/related-person-entry-editor.d.ts +7 -1
- package/dist/utils/related-person-entry-editor.js +7 -2
- package/dist/utils/smart-authorization-profile.d.ts +1 -1
- package/dist/utils/smart-scope.d.ts +2 -2
- package/dist/utils/subject-identity-binding.d.ts +2 -2
- package/dist/utils/subject-identity.d.ts +3 -3
- package/dist/utils/test-network-organization-credentials.d.ts +1 -1
- package/dist/utils/vital-sign-day-batch.d.ts +1 -1
- package/dist/utils/vital-sign-entry-editor.d.ts +8 -2
- package/dist/utils/vital-sign-entry-editor.js +10 -5
- package/dist/utils/vp-token.d.ts +1 -1
- package/dist/utils/wallet-mem.d.ts +6 -6
- package/dist/utils/wallet-memory-queue.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { IWallet } from '../interfaces/IWallet';
|
|
2
|
-
import type { IProfileOutboxRepository } from '../interfaces/IProfileOutboxRepository';
|
|
3
|
-
import type { BackendMessageResponseRecord, BackendMessageTransport, ProfileOutboxMessageRecord, ProfileManagerMemProfile, QueueProfileMessageInput } from '../models/profile-manager';
|
|
4
|
-
import type { WalletQueuedMessage } from '../models/wallet';
|
|
5
|
-
import { BackendMessageManagerMem } from './backend-message-manager-mem';
|
|
1
|
+
import type { IWallet } from '../interfaces/IWallet.js';
|
|
2
|
+
import type { IProfileOutboxRepository } from '../interfaces/IProfileOutboxRepository.js';
|
|
3
|
+
import type { BackendMessageResponseRecord, BackendMessageTransport, ProfileOutboxMessageRecord, ProfileManagerMemProfile, QueueProfileMessageInput } from '../models/profile-manager.js';
|
|
4
|
+
import type { WalletQueuedMessage } from '../models/wallet.js';
|
|
5
|
+
import { BackendMessageManagerMem } from './backend-message-manager-mem.js';
|
|
6
6
|
export type ProfileManagerMemOptions = Readonly<{
|
|
7
7
|
profile: ProfileManagerMemProfile;
|
|
8
8
|
wallet: IWallet;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IProfileOutboxRepository } from '../interfaces/IProfileOutboxRepository';
|
|
2
|
-
import type { BackendMessageResponseRecord, ProfileOutboxMessageRecord } from '../models/profile-manager';
|
|
1
|
+
import type { IProfileOutboxRepository } from '../interfaces/IProfileOutboxRepository.js';
|
|
2
|
+
import type { BackendMessageResponseRecord, ProfileOutboxMessageRecord } from '../models/profile-manager.js';
|
|
3
3
|
/**
|
|
4
4
|
* In-memory profile outbox repository used by low-level tests and as the
|
|
5
5
|
* default history/response store for `ProfileManagerMem`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BundleEntryEditor } from './bundle-entry-editor';
|
|
1
|
+
import { BundleEntryEditor } from './bundle-entry-editor.js';
|
|
2
2
|
/**
|
|
3
3
|
* Typed editor for one RelatedPerson/contact staged inside a Bundle.
|
|
4
4
|
*
|
|
@@ -14,7 +14,13 @@ export declare class RelatedPersonEntryEditor extends BundleEntryEditor {
|
|
|
14
14
|
setSubject(value?: string | null): this;
|
|
15
15
|
getSubject(): string | undefined;
|
|
16
16
|
setRelationship(value?: string | null): this;
|
|
17
|
+
setRelationship(codeSystem: string, codeValue: string): this;
|
|
17
18
|
getRelationship(): string | undefined;
|
|
19
|
+
getRelationshipCode(): string | undefined;
|
|
20
|
+
setRelationshipCodeSystem(system?: string | null): this;
|
|
21
|
+
getRelationshipCodeSystem(): string | undefined;
|
|
22
|
+
setRelationshipSystemAndCode(system?: string | null, code?: string | null): this;
|
|
23
|
+
getRelationshipSystemAndCode(): string | undefined;
|
|
18
24
|
setRoleList(values: readonly string[]): this;
|
|
19
25
|
getRoleList(): string[];
|
|
20
26
|
setName(value?: string | null): this;
|
|
@@ -66,8 +66,13 @@ export class RelatedPersonEntryEditor extends BundleEntryEditor {
|
|
|
66
66
|
}
|
|
67
67
|
setSubject(value) { return this.setOptionalText(RelatedPersonClaim.Patient, value); }
|
|
68
68
|
getSubject() { return this.getOptionalText(RelatedPersonClaim.Patient); }
|
|
69
|
-
setRelationship(
|
|
70
|
-
getRelationship() { return this.
|
|
69
|
+
setRelationship(valueOrSystem, codeValue) { return this.setCodingTokenCode(RelatedPersonClaim.Relationship, valueOrSystem, codeValue); }
|
|
70
|
+
getRelationship() { return this.getCodingTokenSystemAndCode(RelatedPersonClaim.Relationship); }
|
|
71
|
+
getRelationshipCode() { return this.getCodingTokenCode(RelatedPersonClaim.Relationship); }
|
|
72
|
+
setRelationshipCodeSystem(system) { return this.setCodingTokenSystem(RelatedPersonClaim.Relationship, system); }
|
|
73
|
+
getRelationshipCodeSystem() { return this.getCodingTokenSystem(RelatedPersonClaim.Relationship); }
|
|
74
|
+
setRelationshipSystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(RelatedPersonClaim.Relationship, system, code); }
|
|
75
|
+
getRelationshipSystemAndCode() { return this.getCodingTokenSystemAndCode(RelatedPersonClaim.Relationship); }
|
|
71
76
|
setRoleList(values) { return this.setList(RelatedPersonClaim.Role, values); }
|
|
72
77
|
getRoleList() { return this.getList(RelatedPersonClaim.Role); }
|
|
73
78
|
setName(value) { return this.setOptionalText(RelatedPersonClaim.Name, value); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommunicationTopicCodes } from '../constants/communication';
|
|
1
|
+
import { CommunicationTopicCodes } from '../constants/communication.js';
|
|
2
2
|
/** Extension members carried inside an RFC 7662/9701 introspection result. */
|
|
3
3
|
export declare const SmartIntrospectionExtensionFields: Readonly<{
|
|
4
4
|
/** OpenID4VP presentation transport member; its value retains its native format. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConsentActorDescriptor, EffectiveAccessEvaluation } from '../models/consent-access';
|
|
2
|
-
import type { ConsentRule } from '../models/consent-rule';
|
|
1
|
+
import type { ConsentActorDescriptor, EffectiveAccessEvaluation } from '../models/consent-access.js';
|
|
2
|
+
import type { ConsentRule } from '../models/consent-rule.js';
|
|
3
3
|
export type SmartCompositionReadScopeOptions = {
|
|
4
4
|
/**
|
|
5
5
|
* Subject DID pinned by the current CORE GW root scope contract.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SubjectIdentityBindingMatchCriteria, type SubjectIdentityBindingSummary } from '../models/subject-identity-binding';
|
|
2
|
-
import type { VerifiableCredentialV2 } from '../models/verifiable-credential';
|
|
1
|
+
import { type SubjectIdentityBindingMatchCriteria, type SubjectIdentityBindingSummary } from '../models/subject-identity-binding.js';
|
|
2
|
+
import type { VerifiableCredentialV2 } from '../models/verifiable-credential.js';
|
|
3
3
|
/**
|
|
4
4
|
* Builds the unsigned JSON form of a subject identity binding VC.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BundleEntry } from '../models/bundle';
|
|
2
|
-
import type { SubjectIdentityAssociation, SubjectIdentityBundleEntry, SubjectIdentityInput } from '../models/subject-identity';
|
|
3
|
-
import type { SubjectIdentifierLedgerPayload } from '../models/subject-identifier-ledger';
|
|
1
|
+
import type { BundleEntry } from '../models/bundle.js';
|
|
2
|
+
import type { SubjectIdentityAssociation, SubjectIdentityBundleEntry, SubjectIdentityInput } from '../models/subject-identity.js';
|
|
3
|
+
import type { SubjectIdentifierLedgerPayload } from '../models/subject-identifier-ledger.js';
|
|
4
4
|
/**
|
|
5
5
|
* Builds the exact UTF-8 token used by the distributed Subject lookup.
|
|
6
6
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VerifiableCredentialV2 } from '../models/verifiable-credential';
|
|
1
|
+
import type { VerifiableCredentialV2 } from '../models/verifiable-credential.js';
|
|
2
2
|
export declare const TestNetworkOrganizationCredentialTypes: readonly ["OrganizationCredential", "LegalRepresentativeCredential", "ServiceControllerCredential"];
|
|
3
3
|
export type TestNetworkOrganizationCredentialSet = readonly [
|
|
4
4
|
VerifiableCredentialV2,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BundleEntry, BundleJsonApi } from '../models/bundle';
|
|
1
|
+
import type { BundleEntry, BundleJsonApi } from '../models/bundle.js';
|
|
2
2
|
export declare const VitalSignDayBatchClaim: Readonly<{
|
|
3
3
|
readonly Identifier: "VitalSignDayBatch.identifier";
|
|
4
4
|
readonly Subject: "VitalSignDayBatch.subject";
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* - Keep this file focused on one typed editor surface.
|
|
6
6
|
* - Move shared helpers to reusable helper/base modules instead of duplicating logic here.
|
|
7
7
|
*/
|
|
8
|
-
import { type CodingDescriptor } from '../constants/vital-signs';
|
|
9
|
-
import { ObservationComponentEntryEditor } from './observation-component-entry-editor';
|
|
8
|
+
import { type CodingDescriptor } from '../constants/vital-signs.js';
|
|
9
|
+
import { ObservationComponentEntryEditor } from './observation-component-entry-editor.js';
|
|
10
10
|
/**
|
|
11
11
|
* Typed editor for one staged VitalSign resource entry.
|
|
12
12
|
*
|
|
@@ -30,8 +30,14 @@ export declare class VitalSignEntryEditor extends ObservationComponentEntryEdito
|
|
|
30
30
|
getStatus(): string | undefined;
|
|
31
31
|
/** Sets the observation category, usually one of the shared vital-sign category descriptors. */
|
|
32
32
|
setCategory(category: CodingDescriptor | string): this;
|
|
33
|
+
setCategory(codeSystem: string, codeValue: string): this;
|
|
33
34
|
/** Returns the observation category token. */
|
|
34
35
|
getCategory(): string | undefined;
|
|
36
|
+
getCategoryCode(): string | undefined;
|
|
37
|
+
setCategoryCodeSystem(system?: string | null): this;
|
|
38
|
+
getCategoryCodeSystem(): string | undefined;
|
|
39
|
+
setCategorySystemAndCode(system?: string | null, code?: string | null): this;
|
|
40
|
+
getCategorySystemAndCode(): string | undefined;
|
|
35
41
|
/** Sets the observation date/effective time. */
|
|
36
42
|
setDate(date: string): this;
|
|
37
43
|
/** Returns the observation date/effective time. */
|
|
@@ -67,15 +67,20 @@ export class VitalSignEntryEditor extends ObservationComponentEntryEditor {
|
|
|
67
67
|
getStatus() {
|
|
68
68
|
return normalizeOptionalIdentifier(this.getClaim(ObservationClaim.Status));
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
setCategory(categoryOrSystem, codeValue) {
|
|
71
|
+
return typeof categoryOrSystem === 'string'
|
|
72
|
+
? this.setCodingTokenCode(ObservationClaim.Category, categoryOrSystem, codeValue)
|
|
73
|
+
: this.setCodingTokenSystemAndCode(ObservationClaim.Category, categoryOrSystem.system, categoryOrSystem.code);
|
|
74
74
|
}
|
|
75
75
|
/** Returns the observation category token. */
|
|
76
76
|
getCategory() {
|
|
77
|
-
return
|
|
77
|
+
return this.getCodingTokenSystemAndCode(ObservationClaim.Category);
|
|
78
78
|
}
|
|
79
|
+
getCategoryCode() { return this.getCodingTokenCode(ObservationClaim.Category); }
|
|
80
|
+
setCategoryCodeSystem(system) { return this.setCodingTokenSystem(ObservationClaim.Category, system); }
|
|
81
|
+
getCategoryCodeSystem() { return this.getCodingTokenSystem(ObservationClaim.Category); }
|
|
82
|
+
setCategorySystemAndCode(system, code) { return this.setCodingTokenSystemAndCode(ObservationClaim.Category, system, code); }
|
|
83
|
+
getCategorySystemAndCode() { return this.getCodingTokenSystemAndCode(ObservationClaim.Category); }
|
|
79
84
|
/** Sets the observation date/effective time. */
|
|
80
85
|
setDate(date) {
|
|
81
86
|
const normalized = String(date).trim();
|
package/dist/utils/vp-token.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CryptographyService } from '../CryptographyService';
|
|
2
|
-
import type { ICryptoHelper } from '../interfaces/ICryptoHelper';
|
|
3
|
-
import type { IWallet } from '../interfaces/IWallet';
|
|
4
|
-
import type { IWalletQueue } from '../interfaces/IWalletQueue';
|
|
5
|
-
import type { JWK, JwkSet } from '../models/jwk';
|
|
6
|
-
import { type WalletEnqueueMessageInput, type WalletManagedEntityDescriptor, type WalletQueuedMessage } from '../models/wallet';
|
|
1
|
+
import { CryptographyService } from '../CryptographyService.js';
|
|
2
|
+
import type { ICryptoHelper } from '../interfaces/ICryptoHelper.js';
|
|
3
|
+
import type { IWallet } from '../interfaces/IWallet.js';
|
|
4
|
+
import type { IWalletQueue } from '../interfaces/IWalletQueue.js';
|
|
5
|
+
import type { JWK, JwkSet } from '../models/jwk.js';
|
|
6
|
+
import { type WalletEnqueueMessageInput, type WalletManagedEntityDescriptor, type WalletQueuedMessage } from '../models/wallet.js';
|
|
7
7
|
export type WalletMemOptions = Readonly<{
|
|
8
8
|
cryptoHelper: ICryptoHelper;
|
|
9
9
|
cryptography?: CryptographyService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ICryptoHelper } from '../interfaces/ICryptoHelper';
|
|
2
|
-
import type { IWalletQueue } from '../interfaces/IWalletQueue';
|
|
3
|
-
import { type WalletEnqueueMessageInput, type WalletQueuedMessage } from '../models/wallet';
|
|
1
|
+
import type { ICryptoHelper } from '../interfaces/ICryptoHelper.js';
|
|
2
|
+
import type { IWalletQueue } from '../interfaces/IWalletQueue.js';
|
|
3
|
+
import { type WalletEnqueueMessageInput, type WalletQueuedMessage } from '../models/wallet.js';
|
|
4
4
|
/**
|
|
5
5
|
* Default in-memory queue/outbox implementation for `WalletMem`.
|
|
6
6
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdc-common-utils-ts",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"verify:dist": "node scripts/verify-dist-syntax.mjs",
|
|
25
25
|
"check:product-neutrality": "node scripts/check-product-neutrality.mjs",
|
|
26
26
|
"prepack": "npm run verify:dist",
|
|
27
|
-
"prepublishOnly": "npm run check:product-neutrality && npm run typecheck && npm test -- --watchman=false
|
|
27
|
+
"prepublishOnly": "npm run check:product-neutrality && npm run typecheck && npm run build && npm test -- --watchman=false",
|
|
28
28
|
"prepare": "npm run build"
|
|
29
29
|
},
|
|
30
30
|
"main": "./dist/index.js",
|