gdc-sdk-front-ts 0.6.2 → 0.6.6
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 +36 -8
- package/dist/ProfileManager.d.ts +22 -0
- package/dist/ProfileManager.js +155 -0
- package/dist/gdc-common-utils-ts/src/AesManager.d.ts +27 -0
- package/dist/gdc-common-utils-ts/src/AesManager.js +64 -0
- package/dist/gdc-common-utils-ts/src/CryptographyService.d.ts +76 -0
- package/dist/gdc-common-utils-ts/src/CryptographyService.js +401 -0
- package/dist/gdc-common-utils-ts/src/constants/actor-session.d.ts +40 -0
- package/dist/gdc-common-utils-ts/src/constants/actor-session.js +40 -0
- package/dist/gdc-common-utils-ts/src/constants/communication.d.ts +28 -0
- package/dist/gdc-common-utils-ts/src/constants/communication.js +14 -0
- package/dist/gdc-common-utils-ts/src/constants/cryptography.d.ts +58 -0
- package/dist/gdc-common-utils-ts/src/constants/cryptography.js +49 -0
- package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.d.ts +11 -0
- package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.js +11 -0
- package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.d.ts +27 -0
- package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.js +27 -0
- package/dist/gdc-common-utils-ts/src/constants/device.d.ts +16 -0
- package/dist/gdc-common-utils-ts/src/constants/device.js +15 -0
- package/dist/gdc-common-utils-ts/src/constants/did-services.d.ts +42 -0
- package/dist/gdc-common-utils-ts/src/constants/did-services.js +40 -0
- package/dist/gdc-common-utils-ts/src/constants/eu-countries.d.ts +36 -0
- package/dist/gdc-common-utils-ts/src/constants/eu-countries.js +69 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.d.ts +12 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.js +12 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.d.ts +52 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.js +33 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-versions.d.ts +10 -0
- package/dist/gdc-common-utils-ts/src/constants/fhir-versions.js +10 -0
- package/dist/gdc-common-utils-ts/src/constants/healthcare.d.ts +496 -0
- package/dist/gdc-common-utils-ts/src/constants/healthcare.js +274 -0
- package/dist/gdc-common-utils-ts/src/constants/hl7-roles.d.ts +44 -0
- package/dist/gdc-common-utils-ts/src/constants/hl7-roles.js +208 -0
- package/dist/gdc-common-utils-ts/src/constants/index.d.ts +21 -0
- package/dist/gdc-common-utils-ts/src/constants/index.js +21 -0
- package/dist/gdc-common-utils-ts/src/constants/network.d.ts +25 -0
- package/dist/gdc-common-utils-ts/src/constants/network.js +17 -0
- package/dist/gdc-common-utils-ts/src/constants/schemaorg.d.ts +175 -0
- package/dist/gdc-common-utils-ts/src/constants/schemaorg.js +261 -0
- package/dist/gdc-common-utils-ts/src/constants/sectors.d.ts +24 -0
- package/dist/gdc-common-utils-ts/src/constants/sectors.js +24 -0
- package/dist/gdc-common-utils-ts/src/constants/service-capabilities.d.ts +82 -0
- package/dist/gdc-common-utils-ts/src/constants/service-capabilities.js +105 -0
- package/dist/gdc-common-utils-ts/src/constants/smart.d.ts +12 -0
- package/dist/gdc-common-utils-ts/src/constants/smart.js +12 -0
- package/dist/gdc-common-utils-ts/src/constants/urn.d.ts +11 -0
- package/dist/gdc-common-utils-ts/src/constants/urn.js +11 -0
- package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.d.ts +34 -0
- package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.js +42 -0
- package/dist/gdc-common-utils-ts/src/constants/vital-signs.d.ts +75 -0
- package/dist/gdc-common-utils-ts/src/constants/vital-signs.js +33 -0
- package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.d.ts +15 -0
- package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.js +16 -0
- package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.d.ts +22 -0
- package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.js +81 -0
- package/dist/gdc-common-utils-ts/src/examples/consent-access.d.ts +30 -0
- package/dist/gdc-common-utils-ts/src/examples/consent-access.js +121 -0
- package/dist/gdc-common-utils-ts/src/examples/contract-examples.d.ts +15 -0
- package/dist/gdc-common-utils-ts/src/examples/contract-examples.js +16 -0
- package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.d.ts +98 -0
- package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.js +141 -0
- package/dist/gdc-common-utils-ts/src/examples/frontend-session.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/examples/frontend-session.js +24 -0
- package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.d.ts +64 -0
- package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.js +77 -0
- package/dist/gdc-common-utils-ts/src/examples/index.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/examples/index.js +14 -0
- package/dist/gdc-common-utils-ts/src/examples/individual-controller.d.ts +100 -0
- package/dist/gdc-common-utils-ts/src/examples/individual-controller.js +71 -0
- package/dist/gdc-common-utils-ts/src/examples/lifecycle.d.ts +505 -0
- package/dist/gdc-common-utils-ts/src/examples/lifecycle.js +291 -0
- package/dist/gdc-common-utils-ts/src/examples/organization-controller.d.ts +163 -0
- package/dist/gdc-common-utils-ts/src/examples/organization-controller.js +93 -0
- package/dist/gdc-common-utils-ts/src/examples/professional.d.ts +228 -0
- package/dist/gdc-common-utils-ts/src/examples/professional.js +324 -0
- package/dist/gdc-common-utils-ts/src/examples/related-person.d.ts +10 -0
- package/dist/gdc-common-utils-ts/src/examples/related-person.js +13 -0
- package/dist/gdc-common-utils-ts/src/examples/relationship-access.d.ts +11 -0
- package/dist/gdc-common-utils-ts/src/examples/relationship-access.js +96 -0
- package/dist/gdc-common-utils-ts/src/examples/shared.d.ts +220 -0
- package/dist/gdc-common-utils-ts/src/examples/shared.js +191 -0
- package/dist/gdc-common-utils-ts/src/hmac.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/hmac.js +24 -0
- package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.d.ts +6 -0
- package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.js +15 -0
- package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.d.ts +4 -0
- package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.js +13 -0
- package/dist/gdc-common-utils-ts/src/index.d.ts +10 -0
- package/dist/gdc-common-utils-ts/src/index.js +10 -0
- package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.d.ts +139 -0
- package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.js +8 -0
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.d.ts +28 -0
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.js +3 -0
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.d.ts +154 -0
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/actor-session.d.ts +9 -0
- package/dist/gdc-common-utils-ts/src/models/actor-session.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/aes.d.ts +85 -0
- package/dist/gdc-common-utils-ts/src/models/aes.js +10 -0
- package/dist/gdc-common-utils-ts/src/models/auth.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/models/auth.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/bundle.d.ts +153 -0
- package/dist/gdc-common-utils-ts/src/models/bundle.js +25 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.d.ts +36 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.d.ts +150 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.js +104 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.js +32 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.d.ts +126 -0
- package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.js +67 -0
- package/dist/gdc-common-utils-ts/src/models/comm.d.ts +56 -0
- package/dist/gdc-common-utils-ts/src/models/comm.js +4 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-job.d.ts +78 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-job.js +20 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-message.d.ts +97 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-message.js +4 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-storage.d.ts +134 -0
- package/dist/gdc-common-utils-ts/src/models/confidential-storage.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/consent-access.d.ts +79 -0
- package/dist/gdc-common-utils-ts/src/models/consent-access.js +2 -0
- package/dist/gdc-common-utils-ts/src/models/consent-rule.d.ts +122 -0
- package/dist/gdc-common-utils-ts/src/models/consent-rule.js +22 -0
- package/dist/gdc-common-utils-ts/src/models/crypto.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/models/crypto.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.d.ts +79 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.js +2 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.d.ts +68 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.js +9 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.js +2 -0
- package/dist/gdc-common-utils-ts/src/models/device-license.d.ts +134 -0
- package/dist/gdc-common-utils-ts/src/models/device-license.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/did.d.ts +108 -0
- package/dist/gdc-common-utils-ts/src/models/did.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/fhir-documents.d.ts +101 -0
- package/dist/gdc-common-utils-ts/src/models/fhir-documents.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.d.ts +104 -0
- package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.js +2 -0
- package/dist/gdc-common-utils-ts/src/models/index.d.ts +42 -0
- package/dist/gdc-common-utils-ts/src/models/index.js +42 -0
- package/dist/gdc-common-utils-ts/src/models/indexing.d.ts +11 -0
- package/dist/gdc-common-utils-ts/src/models/indexing.js +18 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.d.ts +24 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.js +36 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.d.ts +53 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.js +55 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.js +25 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.js +23 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.d.ts +36 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.js +89 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.d.ts +341 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.js +204 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.d.ts +9 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims.d.ts +5 -0
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims.js +7 -0
- package/dist/gdc-common-utils-ts/src/models/issue.d.ts +57 -0
- package/dist/gdc-common-utils-ts/src/models/issue.js +75 -0
- package/dist/gdc-common-utils-ts/src/models/jsonapi.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/models/jsonapi.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/jwe.d.ts +120 -0
- package/dist/gdc-common-utils-ts/src/models/jwe.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/jwk.d.ts +39 -0
- package/dist/gdc-common-utils-ts/src/models/jwk.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/jws.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/models/jws.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/jwt.d.ts +9 -0
- package/dist/gdc-common-utils-ts/src/models/jwt.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.d.ts +55 -0
- package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.js +58 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.d.ts +33 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.d.ts +50 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.d.ts +67 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.d.ts +51 -0
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.js +5 -0
- package/dist/gdc-common-utils-ts/src/models/openid-device.d.ts +119 -0
- package/dist/gdc-common-utils-ts/src/models/openid-device.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/operation-outcome.d.ts +26 -0
- package/dist/gdc-common-utils-ts/src/models/operation-outcome.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/params.d.ts +133 -0
- package/dist/gdc-common-utils-ts/src/models/params.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/relationship-access.d.ts +160 -0
- package/dist/gdc-common-utils-ts/src/models/relationship-access.js +21 -0
- package/dist/gdc-common-utils-ts/src/models/resource-document.d.ts +14 -0
- package/dist/gdc-common-utils-ts/src/models/resource-document.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/response.d.ts +1 -0
- package/dist/gdc-common-utils-ts/src/models/response.js +3 -0
- package/dist/gdc-common-utils-ts/src/models/urlPath.d.ts +58 -0
- package/dist/gdc-common-utils-ts/src/models/urlPath.js +76 -0
- package/dist/gdc-common-utils-ts/src/models/verifiable-credential.d.ts +45 -0
- package/dist/gdc-common-utils-ts/src/models/verifiable-credential.js +8 -0
- package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.d.ts +53 -0
- package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.js +25 -0
- package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.d.ts +30 -0
- package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.js +81 -0
- package/dist/gdc-common-utils-ts/src/storage/index.d.ts +3 -0
- package/dist/gdc-common-utils-ts/src/storage/index.js +4 -0
- package/dist/gdc-common-utils-ts/src/utils/activation-policy.d.ts +86 -0
- package/dist/gdc-common-utils-ts/src/utils/activation-policy.js +218 -0
- package/dist/gdc-common-utils-ts/src/utils/activation-request.d.ts +81 -0
- package/dist/gdc-common-utils-ts/src/utils/activation-request.js +99 -0
- package/dist/gdc-common-utils-ts/src/utils/actor.d.ts +18 -0
- package/dist/gdc-common-utils-ts/src/utils/actor.js +36 -0
- package/dist/gdc-common-utils-ts/src/utils/base-convert.d.ts +60 -0
- package/dist/gdc-common-utils-ts/src/utils/base-convert.js +104 -0
- package/dist/gdc-common-utils-ts/src/utils/baseN.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/utils/baseN.js +174 -0
- package/dist/gdc-common-utils-ts/src/utils/bundle-query.d.ts +35 -0
- package/dist/gdc-common-utils-ts/src/utils/bundle-query.js +177 -0
- package/dist/gdc-common-utils-ts/src/utils/bundle.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/utils/bundle.js +39 -0
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.d.ts +64 -0
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.js +279 -0
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.d.ts +55 -0
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.js +291 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.d.ts +110 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.js +326 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.d.ts +41 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.js +170 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.d.ts +41 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.js +215 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-identity.d.ts +152 -0
- package/dist/gdc-common-utils-ts/src/utils/communication-identity.js +121 -0
- package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.d.ts +79 -0
- package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.js +213 -0
- package/dist/gdc-common-utils-ts/src/utils/consent.d.ts +218 -0
- package/dist/gdc-common-utils-ts/src/utils/consent.js +679 -0
- package/dist/gdc-common-utils-ts/src/utils/content.d.ts +55 -0
- package/dist/gdc-common-utils-ts/src/utils/content.js +60 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.d.ts +130 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.js +307 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.d.ts +235 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.js +482 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.d.ts +66 -0
- package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.js +109 -0
- package/dist/gdc-common-utils-ts/src/utils/did-resolution.d.ts +60 -0
- package/dist/gdc-common-utils-ts/src/utils/did-resolution.js +173 -0
- package/dist/gdc-common-utils-ts/src/utils/did.d.ts +124 -0
- package/dist/gdc-common-utils-ts/src/utils/did.js +204 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.d.ts +10 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.js +15 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.d.ts +48 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.js +81 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm.d.ts +60 -0
- package/dist/gdc-common-utils-ts/src/utils/didcomm.js +78 -0
- package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.d.ts +28 -0
- package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.js +64 -0
- package/dist/gdc-common-utils-ts/src/utils/fhir-cid.d.ts +60 -0
- package/dist/gdc-common-utils-ts/src/utils/fhir-cid.js +152 -0
- package/dist/gdc-common-utils-ts/src/utils/fhir-validator.d.ts +61 -0
- package/dist/gdc-common-utils-ts/src/utils/fhir-validator.js +91 -0
- package/dist/gdc-common-utils-ts/src/utils/format-converter.d.ts +21 -0
- package/dist/gdc-common-utils-ts/src/utils/format-converter.js +109 -0
- package/dist/gdc-common-utils-ts/src/utils/index.d.ts +39 -0
- package/dist/gdc-common-utils-ts/src/utils/index.js +39 -0
- package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.d.ts +55 -0
- package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.js +191 -0
- package/dist/gdc-common-utils-ts/src/utils/jwt.d.ts +53 -0
- package/dist/gdc-common-utils-ts/src/utils/jwt.js +154 -0
- package/dist/gdc-common-utils-ts/src/utils/manager-error.d.ts +15 -0
- package/dist/gdc-common-utils-ts/src/utils/manager-error.js +21 -0
- package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.d.ts +56 -0
- package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.js +127 -0
- package/dist/gdc-common-utils-ts/src/utils/multibase58.d.ts +13 -0
- package/dist/gdc-common-utils-ts/src/utils/multibase58.js +40 -0
- package/dist/gdc-common-utils-ts/src/utils/multibasehash.d.ts +8 -0
- package/dist/gdc-common-utils-ts/src/utils/multibasehash.js +23 -0
- package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.d.ts +1 -0
- package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.js +35 -0
- package/dist/gdc-common-utils-ts/src/utils/normalize.d.ts +16 -0
- package/dist/gdc-common-utils-ts/src/utils/normalize.js +40 -0
- package/dist/gdc-common-utils-ts/src/utils/object-convert.d.ts +20 -0
- package/dist/gdc-common-utils-ts/src/utils/object-convert.js +51 -0
- package/dist/gdc-common-utils-ts/src/utils/smart-scope.d.ts +28 -0
- package/dist/gdc-common-utils-ts/src/utils/smart-scope.js +29 -0
- package/dist/gdc-common-utils-ts/src/utils/string-convert.d.ts +24 -0
- package/dist/gdc-common-utils-ts/src/utils/string-convert.js +62 -0
- package/dist/gdc-common-utils-ts/src/utils/string-utils.d.ts +25 -0
- package/dist/gdc-common-utils-ts/src/utils/string-utils.js +66 -0
- package/dist/gdc-common-utils-ts/src/utils/url.d.ts +26 -0
- package/dist/gdc-common-utils-ts/src/utils/url.js +44 -0
- package/dist/gdc-common-utils-ts/src/utils/vp-token.d.ts +139 -0
- package/dist/gdc-common-utils-ts/src/utils/vp-token.js +256 -0
- package/dist/gdc-sdk-core-ts/src/actor-model.d.ts +56 -0
- package/dist/gdc-sdk-core-ts/src/actor-model.js +112 -0
- package/dist/gdc-sdk-core-ts/src/app-identity.d.ts +80 -0
- package/dist/gdc-sdk-core-ts/src/app-identity.js +147 -0
- package/dist/gdc-sdk-core-ts/src/bootstrap-facade.d.ts +165 -0
- package/dist/gdc-sdk-core-ts/src/bootstrap-facade.js +191 -0
- package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.d.ts +112 -0
- package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.js +185 -0
- package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.d.ts +32 -0
- package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.js +215 -0
- package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.d.ts +55 -0
- package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.js +190 -0
- package/dist/gdc-sdk-core-ts/src/communication-document-facade.d.ts +55 -0
- package/dist/gdc-sdk-core-ts/src/communication-document-facade.js +194 -0
- package/dist/gdc-sdk-core-ts/src/communication-draft.d.ts +104 -0
- package/dist/gdc-sdk-core-ts/src/communication-draft.js +143 -0
- package/dist/gdc-sdk-core-ts/src/communication-outbox.d.ts +49 -0
- package/dist/gdc-sdk-core-ts/src/communication-outbox.js +62 -0
- package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.d.ts +180 -0
- package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.js +455 -0
- package/dist/gdc-sdk-core-ts/src/consent-access.d.ts +73 -0
- package/dist/gdc-sdk-core-ts/src/consent-access.js +109 -0
- package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.d.ts +5 -0
- package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.js +6 -0
- package/dist/gdc-sdk-core-ts/src/consent-communication-operations.d.ts +82 -0
- package/dist/gdc-sdk-core-ts/src/consent-communication-operations.js +135 -0
- package/dist/gdc-sdk-core-ts/src/did-resolution-session.d.ts +33 -0
- package/dist/gdc-sdk-core-ts/src/did-resolution-session.js +56 -0
- package/dist/gdc-sdk-core-ts/src/discovery-facade.d.ts +84 -0
- package/dist/gdc-sdk-core-ts/src/discovery-facade.js +24 -0
- package/dist/gdc-sdk-core-ts/src/identity-model.d.ts +46 -0
- package/dist/gdc-sdk-core-ts/src/identity-model.js +2 -0
- package/dist/gdc-sdk-core-ts/src/identity-store.d.ts +83 -0
- package/dist/gdc-sdk-core-ts/src/identity-store.js +51 -0
- package/dist/gdc-sdk-core-ts/src/index.d.ts +23 -0
- package/dist/gdc-sdk-core-ts/src/index.js +24 -0
- package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.d.ts +5 -0
- package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.js +6 -0
- package/dist/gdc-sdk-core-ts/src/polling-model.d.ts +35 -0
- package/dist/gdc-sdk-core-ts/src/polling-model.js +24 -0
- package/dist/gdc-sdk-core-ts/src/relationship-access.d.ts +40 -0
- package/dist/gdc-sdk-core-ts/src/relationship-access.js +150 -0
- package/dist/gdc-sdk-core-ts/src/session-model.d.ts +134 -0
- package/dist/gdc-sdk-core-ts/src/session-model.js +2 -0
- package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.d.ts +19 -0
- package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.js +19 -0
- package/dist/gdc-sdk-core-ts/src/vital-signs.d.ts +38 -0
- package/dist/gdc-sdk-core-ts/src/vital-signs.js +155 -0
- package/dist/gdc-sdk-front-ts/src/ClientSDK.d.ts +99 -0
- package/dist/gdc-sdk-front-ts/src/ClientSDK.js +177 -0
- package/dist/gdc-sdk-front-ts/src/ProfileManager.d.ts +140 -0
- package/dist/gdc-sdk-front-ts/src/ProfileManager.js +76 -0
- package/dist/gdc-sdk-front-ts/src/ProfileRegistry.d.ts +11 -0
- package/dist/gdc-sdk-front-ts/src/ProfileRegistry.js +26 -0
- package/dist/gdc-sdk-front-ts/src/VerifierService.d.ts +6 -0
- package/dist/gdc-sdk-front-ts/src/VerifierService.js +10 -0
- package/dist/gdc-sdk-front-ts/src/actor-session.d.ts +2 -0
- package/dist/gdc-sdk-front-ts/src/actor-session.js +2 -0
- package/dist/gdc-sdk-front-ts/src/capabilityMapper.d.ts +8 -0
- package/dist/gdc-sdk-front-ts/src/capabilityMapper.js +28 -0
- package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.d.ts +4 -0
- package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.js +5 -0
- package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.d.ts +54 -0
- package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.js +85 -0
- package/dist/gdc-sdk-front-ts/src/discovery/index.d.ts +3 -0
- package/dist/gdc-sdk-front-ts/src/discovery/index.js +4 -0
- package/dist/gdc-sdk-front-ts/src/discovery/mappers.d.ts +29 -0
- package/dist/gdc-sdk-front-ts/src/discovery/mappers.js +60 -0
- package/dist/gdc-sdk-front-ts/src/discovery/types.d.ts +83 -0
- package/dist/gdc-sdk-front-ts/src/discovery/types.js +2 -0
- package/dist/gdc-sdk-front-ts/src/index.d.ts +15 -0
- package/dist/gdc-sdk-front-ts/src/index.js +16 -0
- package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.d.ts +4 -0
- package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.js +5 -0
- package/dist/gdc-sdk-front-ts/src/roleRegistry.d.ts +19 -0
- package/dist/gdc-sdk-front-ts/src/roleRegistry.js +2 -0
- package/dist/gdc-sdk-front-ts/src/runtime-contracts.d.ts +22 -0
- package/dist/gdc-sdk-front-ts/src/runtime-contracts.js +7 -0
- package/dist/gdc-sdk-front-ts/src/services.d.ts +167 -0
- package/dist/gdc-sdk-front-ts/src/services.js +78 -0
- package/dist/gdc-sdk-front-ts/src/session-descriptor.d.ts +11 -0
- package/dist/gdc-sdk-front-ts/src/session-descriptor.js +8 -0
- package/dist/gdc-sdk-front-ts/src/types.d.ts +11 -0
- package/dist/gdc-sdk-front-ts/src/types.js +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/medication-claim-helpers.d.ts +4 -0
- package/dist/medication-claim-helpers.js +5 -0
- package/dist/orchestration/client-port.d.ts +161 -0
- package/dist/orchestration/client-port.js +26 -0
- package/dist/orchestration/facades.d.ts +65 -0
- package/dist/orchestration/facades.js +142 -0
- package/dist/orchestration/host-onboarding-sdk.d.ts +9 -0
- package/dist/orchestration/host-onboarding-sdk.js +16 -0
- package/dist/orchestration/individual-controller-sdk.d.ts +18 -0
- package/dist/orchestration/individual-controller-sdk.js +43 -0
- package/dist/orchestration/individual-member-sdk.d.ts +8 -0
- package/dist/orchestration/individual-member-sdk.js +13 -0
- package/dist/orchestration/organization-controller-sdk.d.ts +11 -0
- package/dist/orchestration/organization-controller-sdk.js +22 -0
- package/dist/orchestration/organization-employee-sdk.d.ts +8 -0
- package/dist/orchestration/organization-employee-sdk.js +13 -0
- package/dist/orchestration/personal-sdk.d.ts +13 -0
- package/dist/orchestration/personal-sdk.js +28 -0
- package/dist/orchestration/professional-sdk.d.ts +10 -0
- package/dist/orchestration/professional-sdk.js +19 -0
- package/dist/services.d.ts +58 -10
- package/dist/services.js +88 -5
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical Dataspace Protocol version identifiers used by the current GW/SDK
|
|
3
|
+
* discovery flows.
|
|
4
|
+
*/
|
|
5
|
+
export declare const DataspaceProtocolVersions: Readonly<{
|
|
6
|
+
readonly Current: "2025-1";
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Canonical well-known paths used by Dataspace Protocol discovery.
|
|
10
|
+
*/
|
|
11
|
+
export declare const DataspaceWellKnownPaths: Readonly<{
|
|
12
|
+
readonly VersionMetadata: "/.well-known/dspace-version";
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Project-local GW CORE DSP binding paths.
|
|
16
|
+
*
|
|
17
|
+
* These preserve the current internal API structure while still ending in the
|
|
18
|
+
* DSP catalog route shapes.
|
|
19
|
+
*/
|
|
20
|
+
export declare const GwDataspaceBindingPaths: Readonly<{
|
|
21
|
+
readonly Base: "/dsp";
|
|
22
|
+
readonly CatalogCollectionSuffix: "/catalog";
|
|
23
|
+
readonly CatalogRequestSuffix: "/catalog/request";
|
|
24
|
+
readonly CatalogArtifactSuffix: "/catalog/dcat.json";
|
|
25
|
+
readonly CatalogDatasetsPrefix: "/catalog/datasets";
|
|
26
|
+
}>;
|
|
27
|
+
export type DataspaceProtocolVersionValue = typeof DataspaceProtocolVersions[keyof typeof DataspaceProtocolVersions];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* Canonical Dataspace Protocol version identifiers used by the current GW/SDK
|
|
4
|
+
* discovery flows.
|
|
5
|
+
*/
|
|
6
|
+
export const DataspaceProtocolVersions = Object.freeze({
|
|
7
|
+
Current: '2025-1',
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* Canonical well-known paths used by Dataspace Protocol discovery.
|
|
11
|
+
*/
|
|
12
|
+
export const DataspaceWellKnownPaths = Object.freeze({
|
|
13
|
+
VersionMetadata: '/.well-known/dspace-version',
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Project-local GW CORE DSP binding paths.
|
|
17
|
+
*
|
|
18
|
+
* These preserve the current internal API structure while still ending in the
|
|
19
|
+
* DSP catalog route shapes.
|
|
20
|
+
*/
|
|
21
|
+
export const GwDataspaceBindingPaths = Object.freeze({
|
|
22
|
+
Base: '/dsp',
|
|
23
|
+
CatalogCollectionSuffix: '/catalog',
|
|
24
|
+
CatalogRequestSuffix: '/catalog/request',
|
|
25
|
+
CatalogArtifactSuffix: '/catalog/dcat.json',
|
|
26
|
+
CatalogDatasetsPrefix: '/catalog/datasets',
|
|
27
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical user classes used by device licenses and frontend/backend SDK flows.
|
|
3
|
+
*/
|
|
4
|
+
export declare const DeviceUserClasses: Readonly<{
|
|
5
|
+
readonly Employee: "employee";
|
|
6
|
+
readonly Individual: "individual";
|
|
7
|
+
}>;
|
|
8
|
+
export type DeviceUserClass = typeof DeviceUserClasses[keyof typeof DeviceUserClasses];
|
|
9
|
+
/**
|
|
10
|
+
* Canonical device/app form factors used by licensing and activation flows.
|
|
11
|
+
*/
|
|
12
|
+
export declare const DeviceAppTypes: Readonly<{
|
|
13
|
+
readonly Mobile: "mobile";
|
|
14
|
+
readonly Web: "web";
|
|
15
|
+
}>;
|
|
16
|
+
export type DeviceAppType = typeof DeviceAppTypes[keyof typeof DeviceAppTypes];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* Canonical user classes used by device licenses and frontend/backend SDK flows.
|
|
4
|
+
*/
|
|
5
|
+
export const DeviceUserClasses = Object.freeze({
|
|
6
|
+
Employee: 'employee',
|
|
7
|
+
Individual: 'individual',
|
|
8
|
+
});
|
|
9
|
+
/**
|
|
10
|
+
* Canonical device/app form factors used by licensing and activation flows.
|
|
11
|
+
*/
|
|
12
|
+
export const DeviceAppTypes = Object.freeze({
|
|
13
|
+
Mobile: 'mobile',
|
|
14
|
+
Web: 'web',
|
|
15
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical DID service fragments published by GW/SDK discovery surfaces.
|
|
3
|
+
*/
|
|
4
|
+
export declare const DidServiceIds: Readonly<{
|
|
5
|
+
readonly DidDocument: "#did-document";
|
|
6
|
+
readonly Jwks: "#jwks";
|
|
7
|
+
readonly OpenIdConfiguration: "#openid-configuration";
|
|
8
|
+
readonly SmartConfiguration: "#smart-configuration";
|
|
9
|
+
readonly SmartToken: "#identity:openid:smart:token";
|
|
10
|
+
readonly CredentialIssuer: "#openid-credential-issuer";
|
|
11
|
+
readonly CapabilityStatement: "#fhir:capabilitystatement";
|
|
12
|
+
readonly Catalog: "#catalog";
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Canonical DID service types published by GW/SDK discovery surfaces.
|
|
16
|
+
*/
|
|
17
|
+
export declare const DidServiceTypes: Readonly<{
|
|
18
|
+
readonly LinkedDomains: "LinkedDomains";
|
|
19
|
+
readonly JsonWebKeyService2020: "JsonWebKeyService2020";
|
|
20
|
+
readonly OpenIdProvider: "OpenIdProvider";
|
|
21
|
+
readonly SmartOnFhirConfiguration: "SmartOnFhirConfiguration";
|
|
22
|
+
readonly ApiService: "ApiService";
|
|
23
|
+
readonly CredentialIssuer: "OpenIdCredentialIssuer";
|
|
24
|
+
readonly FhirCapabilityStatement: "CapabilityStatement";
|
|
25
|
+
readonly CatalogService: "CatalogService";
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Canonical discovery capabilities used when selecting endpoints from a DID Document.
|
|
29
|
+
*/
|
|
30
|
+
export declare const DiscoveryCapabilities: Readonly<{
|
|
31
|
+
readonly DidDocument: "did-document";
|
|
32
|
+
readonly Jwks: "jwks";
|
|
33
|
+
readonly OpenIdConfiguration: "openid-configuration";
|
|
34
|
+
readonly SmartConfiguration: "smart-configuration";
|
|
35
|
+
readonly SmartToken: "smart-token";
|
|
36
|
+
readonly CredentialIssuer: "credential-issuer";
|
|
37
|
+
readonly CapabilityStatement: "capability-statement";
|
|
38
|
+
readonly Catalog: "catalog";
|
|
39
|
+
}>;
|
|
40
|
+
export type DidServiceId = typeof DidServiceIds[keyof typeof DidServiceIds];
|
|
41
|
+
export type DidServiceType = typeof DidServiceTypes[keyof typeof DidServiceTypes];
|
|
42
|
+
export type DiscoveryCapability = typeof DiscoveryCapabilities[keyof typeof DiscoveryCapabilities];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* Canonical DID service fragments published by GW/SDK discovery surfaces.
|
|
4
|
+
*/
|
|
5
|
+
export const DidServiceIds = Object.freeze({
|
|
6
|
+
DidDocument: '#did-document',
|
|
7
|
+
Jwks: '#jwks',
|
|
8
|
+
OpenIdConfiguration: '#openid-configuration',
|
|
9
|
+
SmartConfiguration: '#smart-configuration',
|
|
10
|
+
SmartToken: '#identity:openid:smart:token',
|
|
11
|
+
CredentialIssuer: '#openid-credential-issuer',
|
|
12
|
+
CapabilityStatement: '#fhir:capabilitystatement',
|
|
13
|
+
Catalog: '#catalog',
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Canonical DID service types published by GW/SDK discovery surfaces.
|
|
17
|
+
*/
|
|
18
|
+
export const DidServiceTypes = Object.freeze({
|
|
19
|
+
LinkedDomains: 'LinkedDomains',
|
|
20
|
+
JsonWebKeyService2020: 'JsonWebKeyService2020',
|
|
21
|
+
OpenIdProvider: 'OpenIdProvider',
|
|
22
|
+
SmartOnFhirConfiguration: 'SmartOnFhirConfiguration',
|
|
23
|
+
ApiService: 'ApiService',
|
|
24
|
+
CredentialIssuer: 'OpenIdCredentialIssuer',
|
|
25
|
+
FhirCapabilityStatement: 'CapabilityStatement',
|
|
26
|
+
CatalogService: 'CatalogService',
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* Canonical discovery capabilities used when selecting endpoints from a DID Document.
|
|
30
|
+
*/
|
|
31
|
+
export const DiscoveryCapabilities = Object.freeze({
|
|
32
|
+
DidDocument: 'did-document',
|
|
33
|
+
Jwks: 'jwks',
|
|
34
|
+
OpenIdConfiguration: 'openid-configuration',
|
|
35
|
+
SmartConfiguration: 'smart-configuration',
|
|
36
|
+
SmartToken: 'smart-token',
|
|
37
|
+
CredentialIssuer: 'credential-issuer',
|
|
38
|
+
CapabilityStatement: 'capability-statement',
|
|
39
|
+
Catalog: 'catalog',
|
|
40
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ISO 3166-1 alpha-2 country codes that currently belong to the European Union.
|
|
3
|
+
*
|
|
4
|
+
* This list is intentionally kept in a runtime-neutral shared package because
|
|
5
|
+
* dataspace discovery may need to infer a broader coverage scope such as `EU`
|
|
6
|
+
* from the semantic country carried in a VC `credentialSubject`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const EU_COUNTRY_CODES: readonly ["AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "DE", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PL", "PT", "RO", "SK", "SI", "ES", "SE"];
|
|
9
|
+
export type EuCountryCode = typeof EU_COUNTRY_CODES[number];
|
|
10
|
+
/**
|
|
11
|
+
* Normalizes a country code into canonical uppercase ISO-2 form.
|
|
12
|
+
*
|
|
13
|
+
* @param countryCode Country code from `credentialSubject.address.addressCountry`
|
|
14
|
+
* or the flattened operational projection.
|
|
15
|
+
* @returns Uppercase ISO-2 form or an empty string when the input is blank.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* normalizeCountryCode('es');
|
|
20
|
+
* // 'ES'
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function normalizeCountryCode(countryCode: string | undefined | null): string;
|
|
24
|
+
/**
|
|
25
|
+
* Checks whether the supplied country code belongs to the current EU member set.
|
|
26
|
+
*
|
|
27
|
+
* @param countryCode ISO-2 country code to evaluate.
|
|
28
|
+
* @returns `true` when the normalized code belongs to `EU_COUNTRY_CODES`.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* isEuCountryCode('ES');
|
|
33
|
+
* // true
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare function isEuCountryCode(countryCode: string | undefined | null): boolean;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* ISO 3166-1 alpha-2 country codes that currently belong to the European Union.
|
|
4
|
+
*
|
|
5
|
+
* This list is intentionally kept in a runtime-neutral shared package because
|
|
6
|
+
* dataspace discovery may need to infer a broader coverage scope such as `EU`
|
|
7
|
+
* from the semantic country carried in a VC `credentialSubject`.
|
|
8
|
+
*/
|
|
9
|
+
export const EU_COUNTRY_CODES = Object.freeze([
|
|
10
|
+
'AT',
|
|
11
|
+
'BE',
|
|
12
|
+
'BG',
|
|
13
|
+
'HR',
|
|
14
|
+
'CY',
|
|
15
|
+
'CZ',
|
|
16
|
+
'DK',
|
|
17
|
+
'EE',
|
|
18
|
+
'FI',
|
|
19
|
+
'FR',
|
|
20
|
+
'DE',
|
|
21
|
+
'GR',
|
|
22
|
+
'HU',
|
|
23
|
+
'IE',
|
|
24
|
+
'IT',
|
|
25
|
+
'LV',
|
|
26
|
+
'LT',
|
|
27
|
+
'LU',
|
|
28
|
+
'MT',
|
|
29
|
+
'NL',
|
|
30
|
+
'PL',
|
|
31
|
+
'PT',
|
|
32
|
+
'RO',
|
|
33
|
+
'SK',
|
|
34
|
+
'SI',
|
|
35
|
+
'ES',
|
|
36
|
+
'SE',
|
|
37
|
+
]);
|
|
38
|
+
/**
|
|
39
|
+
* Normalizes a country code into canonical uppercase ISO-2 form.
|
|
40
|
+
*
|
|
41
|
+
* @param countryCode Country code from `credentialSubject.address.addressCountry`
|
|
42
|
+
* or the flattened operational projection.
|
|
43
|
+
* @returns Uppercase ISO-2 form or an empty string when the input is blank.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* normalizeCountryCode('es');
|
|
48
|
+
* // 'ES'
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export function normalizeCountryCode(countryCode) {
|
|
52
|
+
return String(countryCode || '').trim().toUpperCase();
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Checks whether the supplied country code belongs to the current EU member set.
|
|
56
|
+
*
|
|
57
|
+
* @param countryCode ISO-2 country code to evaluate.
|
|
58
|
+
* @returns `true` when the normalized code belongs to `EU_COUNTRY_CODES`.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* isEuCountryCode('ES');
|
|
63
|
+
* // true
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export function isEuCountryCode(countryCode) {
|
|
67
|
+
const normalized = normalizeCountryCode(countryCode);
|
|
68
|
+
return normalized ? EU_COUNTRY_CODES.includes(normalized) : false;
|
|
69
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical FHIR/HL7 code system URLs shared across GW and SDK packages.
|
|
3
|
+
*
|
|
4
|
+
* Use these constants instead of inline system strings when building
|
|
5
|
+
* FHIR codings, filters, or test fixtures.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FhirCodeSystems: Readonly<{
|
|
8
|
+
readonly Loinc: "http://loinc.org";
|
|
9
|
+
readonly Ucum: "http://unitsofmeasure.org";
|
|
10
|
+
readonly CommunicationCategory: "http://terminology.hl7.org/CodeSystem/communication-category";
|
|
11
|
+
readonly ObservationCategory: "http://terminology.hl7.org/CodeSystem/observation-category";
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical FHIR/HL7 code system URLs shared across GW and SDK packages.
|
|
3
|
+
*
|
|
4
|
+
* Use these constants instead of inline system strings when building
|
|
5
|
+
* FHIR codings, filters, or test fixtures.
|
|
6
|
+
*/
|
|
7
|
+
export const FhirCodeSystems = Object.freeze({
|
|
8
|
+
Loinc: 'http://loinc.org',
|
|
9
|
+
Ucum: 'http://unitsofmeasure.org',
|
|
10
|
+
CommunicationCategory: 'http://terminology.hl7.org/CodeSystem/communication-category',
|
|
11
|
+
ObservationCategory: 'http://terminology.hl7.org/CodeSystem/observation-category',
|
|
12
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical FHIR R4 `resourceType` names shared across GW and SDK packages.
|
|
3
|
+
*
|
|
4
|
+
* Use these constants instead of inline strings such as `"Observation"`
|
|
5
|
+
* or `"DocumentReference"` when building bundles, filters, or SDK facades.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ResourceTypesFhirR4: Readonly<{
|
|
8
|
+
readonly AdverseEvent: "AdverseEvent";
|
|
9
|
+
readonly AllergyIntolerance: "AllergyIntolerance";
|
|
10
|
+
readonly Appointment: "Appointment";
|
|
11
|
+
readonly Bundle: "Bundle";
|
|
12
|
+
readonly CarePlan: "CarePlan";
|
|
13
|
+
readonly Communication: "Communication";
|
|
14
|
+
readonly Composition: "Composition";
|
|
15
|
+
readonly Condition: "Condition";
|
|
16
|
+
readonly Consent: "Consent";
|
|
17
|
+
readonly DiagnosticReport: "DiagnosticReport";
|
|
18
|
+
readonly DocumentReference: "DocumentReference";
|
|
19
|
+
readonly Encounter: "Encounter";
|
|
20
|
+
readonly ImagingStudy: "ImagingStudy";
|
|
21
|
+
readonly Immunization: "Immunization";
|
|
22
|
+
readonly MedicationStatement: "MedicationStatement";
|
|
23
|
+
readonly Observation: "Observation";
|
|
24
|
+
readonly Procedure: "Procedure";
|
|
25
|
+
readonly RelatedPerson: "RelatedPerson";
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Backwards-compatible alias for the former generic name.
|
|
29
|
+
*
|
|
30
|
+
* Prefer `ResourceTypesFhirR4` in new code so later R5/R6 catalogs can coexist
|
|
31
|
+
* without ambiguity.
|
|
32
|
+
*/
|
|
33
|
+
export declare const FhirResourceTypes: Readonly<{
|
|
34
|
+
readonly AdverseEvent: "AdverseEvent";
|
|
35
|
+
readonly AllergyIntolerance: "AllergyIntolerance";
|
|
36
|
+
readonly Appointment: "Appointment";
|
|
37
|
+
readonly Bundle: "Bundle";
|
|
38
|
+
readonly CarePlan: "CarePlan";
|
|
39
|
+
readonly Communication: "Communication";
|
|
40
|
+
readonly Composition: "Composition";
|
|
41
|
+
readonly Condition: "Condition";
|
|
42
|
+
readonly Consent: "Consent";
|
|
43
|
+
readonly DiagnosticReport: "DiagnosticReport";
|
|
44
|
+
readonly DocumentReference: "DocumentReference";
|
|
45
|
+
readonly Encounter: "Encounter";
|
|
46
|
+
readonly ImagingStudy: "ImagingStudy";
|
|
47
|
+
readonly Immunization: "Immunization";
|
|
48
|
+
readonly MedicationStatement: "MedicationStatement";
|
|
49
|
+
readonly Observation: "Observation";
|
|
50
|
+
readonly Procedure: "Procedure";
|
|
51
|
+
readonly RelatedPerson: "RelatedPerson";
|
|
52
|
+
}>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical FHIR R4 `resourceType` names shared across GW and SDK packages.
|
|
3
|
+
*
|
|
4
|
+
* Use these constants instead of inline strings such as `"Observation"`
|
|
5
|
+
* or `"DocumentReference"` when building bundles, filters, or SDK facades.
|
|
6
|
+
*/
|
|
7
|
+
export const ResourceTypesFhirR4 = Object.freeze({
|
|
8
|
+
AdverseEvent: 'AdverseEvent',
|
|
9
|
+
AllergyIntolerance: 'AllergyIntolerance',
|
|
10
|
+
Appointment: 'Appointment',
|
|
11
|
+
Bundle: 'Bundle',
|
|
12
|
+
CarePlan: 'CarePlan',
|
|
13
|
+
Communication: 'Communication',
|
|
14
|
+
Composition: 'Composition',
|
|
15
|
+
Condition: 'Condition',
|
|
16
|
+
Consent: 'Consent',
|
|
17
|
+
DiagnosticReport: 'DiagnosticReport',
|
|
18
|
+
DocumentReference: 'DocumentReference',
|
|
19
|
+
Encounter: 'Encounter',
|
|
20
|
+
ImagingStudy: 'ImagingStudy',
|
|
21
|
+
Immunization: 'Immunization',
|
|
22
|
+
MedicationStatement: 'MedicationStatement',
|
|
23
|
+
Observation: 'Observation',
|
|
24
|
+
Procedure: 'Procedure',
|
|
25
|
+
RelatedPerson: 'RelatedPerson',
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Backwards-compatible alias for the former generic name.
|
|
29
|
+
*
|
|
30
|
+
* Prefer `ResourceTypesFhirR4` in new code so later R5/R6 catalogs can coexist
|
|
31
|
+
* without ambiguity.
|
|
32
|
+
*/
|
|
33
|
+
export const FhirResourceTypes = ResourceTypesFhirR4;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical FHIR version labels shared across GW and SDK packages.
|
|
3
|
+
*
|
|
4
|
+
* Use these constants instead of inline strings such as `"4.0"` or `"5.0"`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FhirVersions: Readonly<{
|
|
7
|
+
readonly R4: "4.0";
|
|
8
|
+
readonly R401: "4.0.1";
|
|
9
|
+
readonly R5: "5.0";
|
|
10
|
+
}>;
|