gdc-sdk-front-ts 2.2.1 → 2.3.1
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/ProfileManager.js +6 -3
- package/dist/front-clinical-runtime-client.d.ts +69 -0
- package/dist/front-clinical-runtime-client.js +214 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/orchestration/client-port.d.ts +21 -3
- package/dist/orchestration/individual-member-sdk.d.ts +11 -1
- package/dist/orchestration/individual-member-sdk.js +12 -0
- package/dist/orchestration/professional-sdk.d.ts +7 -1
- package/dist/orchestration/professional-sdk.js +6 -0
- package/package.json +3 -3
- package/dist/discovery/HttpDataspaceDiscoveryClient.d.ts +0 -34
- package/dist/discovery/HttpDataspaceDiscoveryClient.js +0 -47
- package/dist/gdc-common-utils-ts/src/AesManager.d.ts +0 -27
- package/dist/gdc-common-utils-ts/src/AesManager.js +0 -64
- package/dist/gdc-common-utils-ts/src/CryptographyService.d.ts +0 -76
- package/dist/gdc-common-utils-ts/src/CryptographyService.js +0 -401
- package/dist/gdc-common-utils-ts/src/constants/actor-session.d.ts +0 -40
- package/dist/gdc-common-utils-ts/src/constants/actor-session.js +0 -40
- package/dist/gdc-common-utils-ts/src/constants/communication.d.ts +0 -28
- package/dist/gdc-common-utils-ts/src/constants/communication.js +0 -14
- package/dist/gdc-common-utils-ts/src/constants/cryptography.d.ts +0 -58
- package/dist/gdc-common-utils-ts/src/constants/cryptography.js +0 -49
- package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.d.ts +0 -11
- package/dist/gdc-common-utils-ts/src/constants/dataspace-discovery.js +0 -11
- package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.d.ts +0 -27
- package/dist/gdc-common-utils-ts/src/constants/dataspace-protocol.js +0 -27
- package/dist/gdc-common-utils-ts/src/constants/device.d.ts +0 -16
- package/dist/gdc-common-utils-ts/src/constants/device.js +0 -15
- package/dist/gdc-common-utils-ts/src/constants/did-services.d.ts +0 -42
- package/dist/gdc-common-utils-ts/src/constants/did-services.js +0 -40
- package/dist/gdc-common-utils-ts/src/constants/eu-countries.d.ts +0 -36
- package/dist/gdc-common-utils-ts/src/constants/eu-countries.js +0 -69
- package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.d.ts +0 -12
- package/dist/gdc-common-utils-ts/src/constants/fhir-code-systems.js +0 -12
- package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.d.ts +0 -52
- package/dist/gdc-common-utils-ts/src/constants/fhir-resource-types.js +0 -33
- package/dist/gdc-common-utils-ts/src/constants/fhir-versions.d.ts +0 -10
- package/dist/gdc-common-utils-ts/src/constants/fhir-versions.js +0 -10
- package/dist/gdc-common-utils-ts/src/constants/healthcare.d.ts +0 -496
- package/dist/gdc-common-utils-ts/src/constants/healthcare.js +0 -274
- package/dist/gdc-common-utils-ts/src/constants/hl7-roles.d.ts +0 -44
- package/dist/gdc-common-utils-ts/src/constants/hl7-roles.js +0 -208
- package/dist/gdc-common-utils-ts/src/constants/index.d.ts +0 -21
- package/dist/gdc-common-utils-ts/src/constants/index.js +0 -21
- package/dist/gdc-common-utils-ts/src/constants/network.d.ts +0 -25
- package/dist/gdc-common-utils-ts/src/constants/network.js +0 -17
- package/dist/gdc-common-utils-ts/src/constants/schemaorg.d.ts +0 -175
- package/dist/gdc-common-utils-ts/src/constants/schemaorg.js +0 -261
- package/dist/gdc-common-utils-ts/src/constants/sectors.d.ts +0 -24
- package/dist/gdc-common-utils-ts/src/constants/sectors.js +0 -24
- package/dist/gdc-common-utils-ts/src/constants/service-capabilities.d.ts +0 -82
- package/dist/gdc-common-utils-ts/src/constants/service-capabilities.js +0 -105
- package/dist/gdc-common-utils-ts/src/constants/smart.d.ts +0 -12
- package/dist/gdc-common-utils-ts/src/constants/smart.js +0 -12
- package/dist/gdc-common-utils-ts/src/constants/urn.d.ts +0 -11
- package/dist/gdc-common-utils-ts/src/constants/urn.js +0 -11
- package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.d.ts +0 -34
- package/dist/gdc-common-utils-ts/src/constants/verifiable-credentials.js +0 -42
- package/dist/gdc-common-utils-ts/src/constants/vital-signs.d.ts +0 -75
- package/dist/gdc-common-utils-ts/src/constants/vital-signs.js +0 -33
- package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.d.ts +0 -15
- package/dist/gdc-common-utils-ts/src/examples/api-flow-examples.js +0 -16
- package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.d.ts +0 -22
- package/dist/gdc-common-utils-ts/src/examples/communication-bundle-session.js +0 -81
- package/dist/gdc-common-utils-ts/src/examples/consent-access.d.ts +0 -30
- package/dist/gdc-common-utils-ts/src/examples/consent-access.js +0 -121
- package/dist/gdc-common-utils-ts/src/examples/contract-examples.d.ts +0 -15
- package/dist/gdc-common-utils-ts/src/examples/contract-examples.js +0 -16
- package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.d.ts +0 -98
- package/dist/gdc-common-utils-ts/src/examples/dataspace-discovery.js +0 -141
- package/dist/gdc-common-utils-ts/src/examples/frontend-session.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/examples/frontend-session.js +0 -24
- package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.d.ts +0 -64
- package/dist/gdc-common-utils-ts/src/examples/ica-activation-proof.js +0 -77
- package/dist/gdc-common-utils-ts/src/examples/index.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/examples/index.js +0 -14
- package/dist/gdc-common-utils-ts/src/examples/individual-controller.d.ts +0 -100
- package/dist/gdc-common-utils-ts/src/examples/individual-controller.js +0 -71
- package/dist/gdc-common-utils-ts/src/examples/lifecycle.d.ts +0 -505
- package/dist/gdc-common-utils-ts/src/examples/lifecycle.js +0 -291
- package/dist/gdc-common-utils-ts/src/examples/organization-controller.d.ts +0 -163
- package/dist/gdc-common-utils-ts/src/examples/organization-controller.js +0 -93
- package/dist/gdc-common-utils-ts/src/examples/professional.d.ts +0 -228
- package/dist/gdc-common-utils-ts/src/examples/professional.js +0 -324
- package/dist/gdc-common-utils-ts/src/examples/related-person.d.ts +0 -10
- package/dist/gdc-common-utils-ts/src/examples/related-person.js +0 -13
- package/dist/gdc-common-utils-ts/src/examples/relationship-access.d.ts +0 -11
- package/dist/gdc-common-utils-ts/src/examples/relationship-access.js +0 -96
- package/dist/gdc-common-utils-ts/src/examples/shared.d.ts +0 -220
- package/dist/gdc-common-utils-ts/src/examples/shared.js +0 -191
- package/dist/gdc-common-utils-ts/src/hmac.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/hmac.js +0 -24
- package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.d.ts +0 -6
- package/dist/gdc-common-utils-ts/src/i18n/clinical-sections.i18n.js +0 -15
- package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.d.ts +0 -4
- package/dist/gdc-common-utils-ts/src/i18n/role-codes.i18n.js +0 -13
- package/dist/gdc-common-utils-ts/src/index.d.ts +0 -10
- package/dist/gdc-common-utils-ts/src/index.js +0 -10
- package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.d.ts +0 -139
- package/dist/gdc-common-utils-ts/src/interfaces/Cryptography.types.js +0 -8
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.d.ts +0 -28
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptoHelper.js +0 -3
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.d.ts +0 -154
- package/dist/gdc-common-utils-ts/src/interfaces/ICryptography.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/actor-session.d.ts +0 -9
- package/dist/gdc-common-utils-ts/src/models/actor-session.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/aes.d.ts +0 -85
- package/dist/gdc-common-utils-ts/src/models/aes.js +0 -10
- package/dist/gdc-common-utils-ts/src/models/auth.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/models/auth.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/bundle.d.ts +0 -153
- package/dist/gdc-common-utils-ts/src/models/bundle.js +0 -25
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.d.ts +0 -36
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.d.ts +0 -150
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.en.js +0 -104
- package/dist/gdc-common-utils-ts/src/models/clinical-sections.js +0 -32
- package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.d.ts +0 -126
- package/dist/gdc-common-utils-ts/src/models/clinical-workbook-summary.js +0 -67
- package/dist/gdc-common-utils-ts/src/models/comm.d.ts +0 -56
- package/dist/gdc-common-utils-ts/src/models/comm.js +0 -4
- package/dist/gdc-common-utils-ts/src/models/confidential-job.d.ts +0 -78
- package/dist/gdc-common-utils-ts/src/models/confidential-job.js +0 -20
- package/dist/gdc-common-utils-ts/src/models/confidential-message.d.ts +0 -97
- package/dist/gdc-common-utils-ts/src/models/confidential-message.js +0 -4
- package/dist/gdc-common-utils-ts/src/models/confidential-storage.d.ts +0 -134
- package/dist/gdc-common-utils-ts/src/models/confidential-storage.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/consent-access.d.ts +0 -79
- package/dist/gdc-common-utils-ts/src/models/consent-access.js +0 -2
- package/dist/gdc-common-utils-ts/src/models/consent-rule.d.ts +0 -122
- package/dist/gdc-common-utils-ts/src/models/consent-rule.js +0 -22
- package/dist/gdc-common-utils-ts/src/models/crypto.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/models/crypto.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.d.ts +0 -79
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery-defaults.js +0 -2
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.d.ts +0 -68
- package/dist/gdc-common-utils-ts/src/models/dataspace-discovery.js +0 -9
- package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/models/dataspace-protocol.js +0 -2
- package/dist/gdc-common-utils-ts/src/models/device-license.d.ts +0 -134
- package/dist/gdc-common-utils-ts/src/models/device-license.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/did.d.ts +0 -108
- package/dist/gdc-common-utils-ts/src/models/did.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/fhir-documents.d.ts +0 -101
- package/dist/gdc-common-utils-ts/src/models/fhir-documents.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.d.ts +0 -104
- package/dist/gdc-common-utils-ts/src/models/identity-bootstrap.js +0 -2
- package/dist/gdc-common-utils-ts/src/models/index.d.ts +0 -42
- package/dist/gdc-common-utils-ts/src/models/index.js +0 -42
- package/dist/gdc-common-utils-ts/src/models/indexing.d.ts +0 -11
- package/dist/gdc-common-utils-ts/src/models/indexing.js +0 -18
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.d.ts +0 -24
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/allergy-intolerance-claims.js +0 -36
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.d.ts +0 -53
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/communication-claims.js +0 -55
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/condition-claims.js +0 -25
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/device-use-statement-claims.js +0 -23
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.d.ts +0 -36
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/document-reference-claims.js +0 -89
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.d.ts +0 -341
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/medication-statement-claims.js +0 -204
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.d.ts +0 -9
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims/types.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims.d.ts +0 -5
- package/dist/gdc-common-utils-ts/src/models/interoperable-claims.js +0 -7
- package/dist/gdc-common-utils-ts/src/models/issue.d.ts +0 -57
- package/dist/gdc-common-utils-ts/src/models/issue.js +0 -75
- package/dist/gdc-common-utils-ts/src/models/jsonapi.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/models/jsonapi.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/jwe.d.ts +0 -120
- package/dist/gdc-common-utils-ts/src/models/jwe.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/jwk.d.ts +0 -39
- package/dist/gdc-common-utils-ts/src/models/jwk.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/jws.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/models/jws.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/jwt.d.ts +0 -9
- package/dist/gdc-common-utils-ts/src/models/jwt.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.d.ts +0 -55
- package/dist/gdc-common-utils-ts/src/models/loinc-document-ontology.js +0 -58
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.d.ts +0 -33
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.common.model.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.d.ts +0 -50
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.document.model.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.d.ts +0 -67
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.electronicRecord.model.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.d.ts +0 -51
- package/dist/gdc-common-utils-ts/src/models/oidc4ida.evidence.model.js +0 -5
- package/dist/gdc-common-utils-ts/src/models/openid-device.d.ts +0 -119
- package/dist/gdc-common-utils-ts/src/models/openid-device.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/operation-outcome.d.ts +0 -26
- package/dist/gdc-common-utils-ts/src/models/operation-outcome.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/params.d.ts +0 -133
- package/dist/gdc-common-utils-ts/src/models/params.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/relationship-access.d.ts +0 -160
- package/dist/gdc-common-utils-ts/src/models/relationship-access.js +0 -21
- package/dist/gdc-common-utils-ts/src/models/resource-document.d.ts +0 -14
- package/dist/gdc-common-utils-ts/src/models/resource-document.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/response.d.ts +0 -1
- package/dist/gdc-common-utils-ts/src/models/response.js +0 -3
- package/dist/gdc-common-utils-ts/src/models/urlPath.d.ts +0 -58
- package/dist/gdc-common-utils-ts/src/models/urlPath.js +0 -76
- package/dist/gdc-common-utils-ts/src/models/verifiable-credential.d.ts +0 -45
- package/dist/gdc-common-utils-ts/src/models/verifiable-credential.js +0 -8
- package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.d.ts +0 -53
- package/dist/gdc-common-utils-ts/src/storage/IVaultRepository.js +0 -25
- package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.d.ts +0 -30
- package/dist/gdc-common-utils-ts/src/storage/VaultMemRepository.js +0 -81
- package/dist/gdc-common-utils-ts/src/storage/index.d.ts +0 -3
- package/dist/gdc-common-utils-ts/src/storage/index.js +0 -4
- package/dist/gdc-common-utils-ts/src/utils/activation-policy.d.ts +0 -86
- package/dist/gdc-common-utils-ts/src/utils/activation-policy.js +0 -218
- package/dist/gdc-common-utils-ts/src/utils/activation-request.d.ts +0 -81
- package/dist/gdc-common-utils-ts/src/utils/activation-request.js +0 -99
- package/dist/gdc-common-utils-ts/src/utils/actor.d.ts +0 -18
- package/dist/gdc-common-utils-ts/src/utils/actor.js +0 -36
- package/dist/gdc-common-utils-ts/src/utils/base-convert.d.ts +0 -60
- package/dist/gdc-common-utils-ts/src/utils/base-convert.js +0 -104
- package/dist/gdc-common-utils-ts/src/utils/baseN.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/utils/baseN.js +0 -174
- package/dist/gdc-common-utils-ts/src/utils/bundle-query.d.ts +0 -35
- package/dist/gdc-common-utils-ts/src/utils/bundle-query.js +0 -177
- package/dist/gdc-common-utils-ts/src/utils/bundle.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/utils/bundle.js +0 -39
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.d.ts +0 -64
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-converters.js +0 -279
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.d.ts +0 -55
- package/dist/gdc-common-utils-ts/src/utils/clinical-resource-view.js +0 -291
- package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.d.ts +0 -110
- package/dist/gdc-common-utils-ts/src/utils/communication-bundle-session.js +0 -326
- package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.d.ts +0 -41
- package/dist/gdc-common-utils-ts/src/utils/communication-document-reference.js +0 -170
- package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.d.ts +0 -41
- package/dist/gdc-common-utils-ts/src/utils/communication-fhir-r4.js +0 -215
- package/dist/gdc-common-utils-ts/src/utils/communication-identity.d.ts +0 -152
- package/dist/gdc-common-utils-ts/src/utils/communication-identity.js +0 -121
- package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.d.ts +0 -79
- package/dist/gdc-common-utils-ts/src/utils/consent-claim-helpers.js +0 -213
- package/dist/gdc-common-utils-ts/src/utils/consent.d.ts +0 -218
- package/dist/gdc-common-utils-ts/src/utils/consent.js +0 -679
- package/dist/gdc-common-utils-ts/src/utils/content.d.ts +0 -55
- package/dist/gdc-common-utils-ts/src/utils/content.js +0 -60
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.d.ts +0 -130
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery-defaults.js +0 -307
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.d.ts +0 -235
- package/dist/gdc-common-utils-ts/src/utils/dataspace-discovery.js +0 -482
- package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.d.ts +0 -66
- package/dist/gdc-common-utils-ts/src/utils/dataspace-protocol.js +0 -109
- package/dist/gdc-common-utils-ts/src/utils/did-resolution.d.ts +0 -60
- package/dist/gdc-common-utils-ts/src/utils/did-resolution.js +0 -173
- package/dist/gdc-common-utils-ts/src/utils/did.d.ts +0 -124
- package/dist/gdc-common-utils-ts/src/utils/did.js +0 -204
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.d.ts +0 -10
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit-policy.js +0 -15
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.d.ts +0 -48
- package/dist/gdc-common-utils-ts/src/utils/didcomm-submit.js +0 -81
- package/dist/gdc-common-utils-ts/src/utils/didcomm.d.ts +0 -60
- package/dist/gdc-common-utils-ts/src/utils/didcomm.js +0 -78
- package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.d.ts +0 -28
- package/dist/gdc-common-utils-ts/src/utils/discovery-normalization.js +0 -64
- package/dist/gdc-common-utils-ts/src/utils/fhir-cid.d.ts +0 -60
- package/dist/gdc-common-utils-ts/src/utils/fhir-cid.js +0 -152
- package/dist/gdc-common-utils-ts/src/utils/fhir-validator.d.ts +0 -61
- package/dist/gdc-common-utils-ts/src/utils/fhir-validator.js +0 -91
- package/dist/gdc-common-utils-ts/src/utils/format-converter.d.ts +0 -21
- package/dist/gdc-common-utils-ts/src/utils/format-converter.js +0 -109
- package/dist/gdc-common-utils-ts/src/utils/index.d.ts +0 -39
- package/dist/gdc-common-utils-ts/src/utils/index.js +0 -39
- package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.d.ts +0 -55
- package/dist/gdc-common-utils-ts/src/utils/individual-form-pdf.js +0 -191
- package/dist/gdc-common-utils-ts/src/utils/jwt.d.ts +0 -53
- package/dist/gdc-common-utils-ts/src/utils/jwt.js +0 -154
- package/dist/gdc-common-utils-ts/src/utils/manager-error.d.ts +0 -15
- package/dist/gdc-common-utils-ts/src/utils/manager-error.js +0 -21
- package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.d.ts +0 -56
- package/dist/gdc-common-utils-ts/src/utils/medication-claim-helpers.js +0 -127
- package/dist/gdc-common-utils-ts/src/utils/multibase58.d.ts +0 -13
- package/dist/gdc-common-utils-ts/src/utils/multibase58.js +0 -40
- package/dist/gdc-common-utils-ts/src/utils/multibasehash.d.ts +0 -8
- package/dist/gdc-common-utils-ts/src/utils/multibasehash.js +0 -23
- package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.d.ts +0 -1
- package/dist/gdc-common-utils-ts/src/utils/normalize-uuid.js +0 -35
- package/dist/gdc-common-utils-ts/src/utils/normalize.d.ts +0 -16
- package/dist/gdc-common-utils-ts/src/utils/normalize.js +0 -40
- package/dist/gdc-common-utils-ts/src/utils/object-convert.d.ts +0 -20
- package/dist/gdc-common-utils-ts/src/utils/object-convert.js +0 -51
- package/dist/gdc-common-utils-ts/src/utils/smart-scope.d.ts +0 -28
- package/dist/gdc-common-utils-ts/src/utils/smart-scope.js +0 -29
- package/dist/gdc-common-utils-ts/src/utils/string-convert.d.ts +0 -24
- package/dist/gdc-common-utils-ts/src/utils/string-convert.js +0 -62
- package/dist/gdc-common-utils-ts/src/utils/string-utils.d.ts +0 -25
- package/dist/gdc-common-utils-ts/src/utils/string-utils.js +0 -66
- package/dist/gdc-common-utils-ts/src/utils/url.d.ts +0 -26
- package/dist/gdc-common-utils-ts/src/utils/url.js +0 -44
- package/dist/gdc-common-utils-ts/src/utils/vp-token.d.ts +0 -139
- package/dist/gdc-common-utils-ts/src/utils/vp-token.js +0 -256
- package/dist/gdc-sdk-core-ts/src/actor-model.d.ts +0 -56
- package/dist/gdc-sdk-core-ts/src/actor-model.js +0 -112
- package/dist/gdc-sdk-core-ts/src/app-identity.d.ts +0 -80
- package/dist/gdc-sdk-core-ts/src/app-identity.js +0 -147
- package/dist/gdc-sdk-core-ts/src/bootstrap-facade.d.ts +0 -165
- package/dist/gdc-sdk-core-ts/src/bootstrap-facade.js +0 -191
- package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.d.ts +0 -112
- package/dist/gdc-sdk-core-ts/src/communication-bundle-contracts.js +0 -185
- package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.d.ts +0 -32
- package/dist/gdc-sdk-core-ts/src/communication-bundle-resources.js +0 -215
- package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.d.ts +0 -55
- package/dist/gdc-sdk-core-ts/src/communication-consent-mutation-contract.js +0 -190
- package/dist/gdc-sdk-core-ts/src/communication-document-facade.d.ts +0 -55
- package/dist/gdc-sdk-core-ts/src/communication-document-facade.js +0 -194
- package/dist/gdc-sdk-core-ts/src/communication-draft.d.ts +0 -104
- package/dist/gdc-sdk-core-ts/src/communication-draft.js +0 -143
- package/dist/gdc-sdk-core-ts/src/communication-outbox.d.ts +0 -49
- package/dist/gdc-sdk-core-ts/src/communication-outbox.js +0 -62
- package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.d.ts +0 -180
- package/dist/gdc-sdk-core-ts/src/communication-resource-helpers.js +0 -455
- package/dist/gdc-sdk-core-ts/src/consent-access.d.ts +0 -73
- package/dist/gdc-sdk-core-ts/src/consent-access.js +0 -109
- package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.d.ts +0 -5
- package/dist/gdc-sdk-core-ts/src/consent-claim-helpers.js +0 -6
- package/dist/gdc-sdk-core-ts/src/consent-communication-operations.d.ts +0 -82
- package/dist/gdc-sdk-core-ts/src/consent-communication-operations.js +0 -135
- package/dist/gdc-sdk-core-ts/src/did-resolution-session.d.ts +0 -33
- package/dist/gdc-sdk-core-ts/src/did-resolution-session.js +0 -56
- package/dist/gdc-sdk-core-ts/src/discovery-facade.d.ts +0 -84
- package/dist/gdc-sdk-core-ts/src/discovery-facade.js +0 -24
- package/dist/gdc-sdk-core-ts/src/identity-model.d.ts +0 -46
- package/dist/gdc-sdk-core-ts/src/identity-model.js +0 -2
- package/dist/gdc-sdk-core-ts/src/identity-store.d.ts +0 -83
- package/dist/gdc-sdk-core-ts/src/identity-store.js +0 -51
- package/dist/gdc-sdk-core-ts/src/index.d.ts +0 -23
- package/dist/gdc-sdk-core-ts/src/index.js +0 -24
- package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.d.ts +0 -5
- package/dist/gdc-sdk-core-ts/src/medication-claim-helpers.js +0 -6
- package/dist/gdc-sdk-core-ts/src/polling-model.d.ts +0 -35
- package/dist/gdc-sdk-core-ts/src/polling-model.js +0 -24
- package/dist/gdc-sdk-core-ts/src/relationship-access.d.ts +0 -40
- package/dist/gdc-sdk-core-ts/src/relationship-access.js +0 -150
- package/dist/gdc-sdk-core-ts/src/session-model.d.ts +0 -134
- package/dist/gdc-sdk-core-ts/src/session-model.js +0 -2
- package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.d.ts +0 -19
- package/dist/gdc-sdk-core-ts/src/smart-endpoint-resolver.js +0 -19
- package/dist/gdc-sdk-core-ts/src/vital-signs.d.ts +0 -38
- package/dist/gdc-sdk-core-ts/src/vital-signs.js +0 -155
- package/dist/gdc-sdk-front-ts/src/ClientSDK.d.ts +0 -99
- package/dist/gdc-sdk-front-ts/src/ClientSDK.js +0 -177
- package/dist/gdc-sdk-front-ts/src/ProfileManager.d.ts +0 -140
- package/dist/gdc-sdk-front-ts/src/ProfileManager.js +0 -76
- package/dist/gdc-sdk-front-ts/src/ProfileRegistry.d.ts +0 -11
- package/dist/gdc-sdk-front-ts/src/ProfileRegistry.js +0 -26
- package/dist/gdc-sdk-front-ts/src/VerifierService.d.ts +0 -6
- package/dist/gdc-sdk-front-ts/src/VerifierService.js +0 -10
- package/dist/gdc-sdk-front-ts/src/actor-session.d.ts +0 -2
- package/dist/gdc-sdk-front-ts/src/actor-session.js +0 -2
- package/dist/gdc-sdk-front-ts/src/capabilityMapper.d.ts +0 -8
- package/dist/gdc-sdk-front-ts/src/capabilityMapper.js +0 -28
- package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.d.ts +0 -4
- package/dist/gdc-sdk-front-ts/src/consent-claim-helpers.js +0 -5
- package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.d.ts +0 -54
- package/dist/gdc-sdk-front-ts/src/discovery/DataspaceDiscoveryClient.js +0 -85
- package/dist/gdc-sdk-front-ts/src/discovery/index.d.ts +0 -3
- package/dist/gdc-sdk-front-ts/src/discovery/index.js +0 -4
- package/dist/gdc-sdk-front-ts/src/discovery/mappers.d.ts +0 -29
- package/dist/gdc-sdk-front-ts/src/discovery/mappers.js +0 -60
- package/dist/gdc-sdk-front-ts/src/discovery/types.d.ts +0 -83
- package/dist/gdc-sdk-front-ts/src/discovery/types.js +0 -2
- package/dist/gdc-sdk-front-ts/src/index.d.ts +0 -15
- package/dist/gdc-sdk-front-ts/src/index.js +0 -16
- package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.d.ts +0 -4
- package/dist/gdc-sdk-front-ts/src/medication-claim-helpers.js +0 -5
- package/dist/gdc-sdk-front-ts/src/roleRegistry.d.ts +0 -19
- package/dist/gdc-sdk-front-ts/src/roleRegistry.js +0 -2
- package/dist/gdc-sdk-front-ts/src/runtime-contracts.d.ts +0 -22
- package/dist/gdc-sdk-front-ts/src/runtime-contracts.js +0 -7
- package/dist/gdc-sdk-front-ts/src/services.d.ts +0 -167
- package/dist/gdc-sdk-front-ts/src/services.js +0 -78
- package/dist/gdc-sdk-front-ts/src/session-descriptor.d.ts +0 -11
- package/dist/gdc-sdk-front-ts/src/session-descriptor.js +0 -8
- package/dist/gdc-sdk-front-ts/src/types.d.ts +0 -11
- package/dist/gdc-sdk-front-ts/src/types.js +0 -1
- package/dist/lifecycle-examples.d.ts +0 -6
- package/dist/lifecycle-examples.js +0 -7
- package/dist/medication-claim-helpers.d.ts +0 -4
- package/dist/medication-claim-helpers.js +0 -5
- package/dist/orchestration/facades.d.ts +0 -65
- package/dist/orchestration/facades.js +0 -142
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
export declare const EXAMPLE_TOKEN_EXCHANGE_SMART_INPUT: {
|
|
2
|
-
readonly idToken: "employee-id-token-001";
|
|
3
|
-
readonly scopes: readonly [string];
|
|
4
|
-
readonly timeoutSeconds: 5;
|
|
5
|
-
readonly intervalSeconds: 1;
|
|
6
|
-
};
|
|
7
|
-
export declare const EXAMPLE_OPENID_SMART_TOKEN_INPUT: {
|
|
8
|
-
readonly idToken: "employee-id-token-001";
|
|
9
|
-
readonly vpToken: "<vp-jws-or-jsonld>";
|
|
10
|
-
readonly scopes: readonly [string];
|
|
11
|
-
readonly smartTokenKind: "openid-smart";
|
|
12
|
-
readonly clientId: "device-1";
|
|
13
|
-
readonly subjectDid: "did:web:api.acme.org:individual:123";
|
|
14
|
-
};
|
|
15
|
-
export declare const EXAMPLE_SMART_PRESENTATION_SUBMISSION: {
|
|
16
|
-
readonly id: "ps-001";
|
|
17
|
-
readonly definition_id: "pd-001";
|
|
18
|
-
readonly descriptor_map: readonly [{
|
|
19
|
-
readonly id: "vp-credential";
|
|
20
|
-
readonly format: "jwt_vp";
|
|
21
|
-
readonly path: "$.vp_token";
|
|
22
|
-
}];
|
|
23
|
-
};
|
|
24
|
-
export declare const EXAMPLE_SMART_TOKEN_RESPONSE: {
|
|
25
|
-
readonly submit: {
|
|
26
|
-
readonly status: 202;
|
|
27
|
-
readonly body: {};
|
|
28
|
-
};
|
|
29
|
-
readonly poll: {
|
|
30
|
-
readonly status: 200;
|
|
31
|
-
readonly body: {
|
|
32
|
-
readonly access_token: "smart-token-openid-001";
|
|
33
|
-
readonly token_type: "Bearer";
|
|
34
|
-
readonly scope: string;
|
|
35
|
-
readonly expires_in: 3600;
|
|
36
|
-
};
|
|
37
|
-
readonly attempts: 1;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export declare const EXAMPLE_TOKEN_EXCHANGE_RESPONSE: {
|
|
41
|
-
readonly submit: {
|
|
42
|
-
readonly status: 202;
|
|
43
|
-
readonly body: {};
|
|
44
|
-
};
|
|
45
|
-
readonly poll: {
|
|
46
|
-
readonly status: 200;
|
|
47
|
-
readonly body: {
|
|
48
|
-
readonly access_token: "smart-token-ctx-001";
|
|
49
|
-
readonly token_type: "Bearer";
|
|
50
|
-
readonly scope: string;
|
|
51
|
-
readonly expires_in: 3600;
|
|
52
|
-
};
|
|
53
|
-
readonly attempts: 1;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export declare const EXAMPLE_SEND_COMMUNICATION_INPUT: {
|
|
57
|
-
readonly subject: "did:web:patient.example";
|
|
58
|
-
readonly text: "Message body";
|
|
59
|
-
};
|
|
60
|
-
export declare const EXAMPLE_SEARCH_CLINICAL_BUNDLE_INPUT: {
|
|
61
|
-
readonly subject: "did:web:patient.example";
|
|
62
|
-
readonly includedTypes: readonly ["Communication", "DocumentReference"];
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Reusable role/permission examples for clinical access over an individual.
|
|
66
|
-
*
|
|
67
|
-
* These are intended as copy-paste fixtures for docs/tests when explaining:
|
|
68
|
-
*
|
|
69
|
-
* - which professional is acting
|
|
70
|
-
* - what consent purpose/action was granted
|
|
71
|
-
* - what SMART scope is being requested
|
|
72
|
-
* - which FHIR resource types are expected to be relevant after access
|
|
73
|
-
*
|
|
74
|
-
* Teaching rule:
|
|
75
|
-
*
|
|
76
|
-
* - use `EXAMPLE_TOKEN_EXCHANGE_SMART_INPUT` or `EXAMPLE_OPENID_SMART_TOKEN_INPUT`
|
|
77
|
-
* for the first read-only examples
|
|
78
|
-
* - use the scenarios below when you explicitly want the composition read scope
|
|
79
|
-
* plus `organization/Consent.cruds`
|
|
80
|
-
*/
|
|
81
|
-
export declare const EXAMPLE_PROFESSIONAL_ACCESS_SCENARIOS: Readonly<{
|
|
82
|
-
readonly physicianAllergiesRead: {
|
|
83
|
-
readonly actorRole: "ISCO-08|2211";
|
|
84
|
-
readonly purpose: "TREAT";
|
|
85
|
-
readonly consentActions: readonly [string];
|
|
86
|
-
readonly smartScopes: readonly [string, "organization/Consent.cruds"];
|
|
87
|
-
readonly includedTypes: readonly ["Composition", "AllergyIntolerance", "DocumentReference"];
|
|
88
|
-
};
|
|
89
|
-
readonly nursingMedicationRead: {
|
|
90
|
-
readonly actorRole: "ISCO-08|2221";
|
|
91
|
-
readonly purpose: "TREAT";
|
|
92
|
-
readonly consentActions: readonly [string];
|
|
93
|
-
readonly smartScopes: readonly [string, "organization/Consent.cruds"];
|
|
94
|
-
readonly includedTypes: readonly ["Composition", "MedicationStatement", "DocumentReference"];
|
|
95
|
-
};
|
|
96
|
-
readonly paramedicEmergencySummaryRead: {
|
|
97
|
-
readonly actorRole: "ISCO-08|2240";
|
|
98
|
-
readonly purpose: "ETREAT";
|
|
99
|
-
readonly consentActions: readonly [string];
|
|
100
|
-
readonly smartScopes: readonly [string, "organization/Consent.cruds"];
|
|
101
|
-
readonly includedTypes: readonly ["Composition", "DocumentReference", "Observation"];
|
|
102
|
-
};
|
|
103
|
-
readonly physicianResultsAndProblemsRead: {
|
|
104
|
-
readonly actorRole: "ISCO-08|2211";
|
|
105
|
-
readonly purpose: "TREAT";
|
|
106
|
-
readonly consentActions: readonly [string, string];
|
|
107
|
-
readonly smartScopes: readonly [string, "organization/Consent.cruds"];
|
|
108
|
-
readonly includedTypes: readonly ["Composition", "Condition", "DiagnosticReport", "DocumentReference"];
|
|
109
|
-
};
|
|
110
|
-
}>;
|
|
111
|
-
/**
|
|
112
|
-
* Reusable consent-vs-SMART examples that model:
|
|
113
|
-
*
|
|
114
|
-
* - who receives the consent (`actorId`)
|
|
115
|
-
* - under which role
|
|
116
|
-
* - for which purpose
|
|
117
|
-
* - over which sections/actions
|
|
118
|
-
* - and whether a later SMART request should be accepted or denied
|
|
119
|
-
*
|
|
120
|
-
* This is the right level for testing the live rule:
|
|
121
|
-
* consent state + actor target + role + purpose + requested scope.
|
|
122
|
-
*/
|
|
123
|
-
export declare const EXAMPLE_PROFESSIONAL_CONSENT_SCENARIOS: Readonly<{
|
|
124
|
-
readonly physicianByEmailContinuousCareAllergiesAllowed: Readonly<{
|
|
125
|
-
actorId: string | {
|
|
126
|
-
email?: string;
|
|
127
|
-
organizationUrl?: string;
|
|
128
|
-
};
|
|
129
|
-
actorRole: string;
|
|
130
|
-
purpose: string;
|
|
131
|
-
consentActions: string[];
|
|
132
|
-
smartScopes: string[];
|
|
133
|
-
includedTypes: string[];
|
|
134
|
-
expectedSmartTokenDecision: "allowed" | "denied";
|
|
135
|
-
reason: string;
|
|
136
|
-
}>;
|
|
137
|
-
readonly physicianByEmailEmergencySummaryAllowed: Readonly<{
|
|
138
|
-
actorId: string | {
|
|
139
|
-
email?: string;
|
|
140
|
-
organizationUrl?: string;
|
|
141
|
-
};
|
|
142
|
-
actorRole: string;
|
|
143
|
-
purpose: string;
|
|
144
|
-
consentActions: string[];
|
|
145
|
-
smartScopes: string[];
|
|
146
|
-
includedTypes: string[];
|
|
147
|
-
expectedSmartTokenDecision: "allowed" | "denied";
|
|
148
|
-
reason: string;
|
|
149
|
-
}>;
|
|
150
|
-
readonly physicianByOrganizationResultsAllowed: Readonly<{
|
|
151
|
-
actorId: string | {
|
|
152
|
-
email?: string;
|
|
153
|
-
organizationUrl?: string;
|
|
154
|
-
};
|
|
155
|
-
actorRole: string;
|
|
156
|
-
purpose: string;
|
|
157
|
-
consentActions: string[];
|
|
158
|
-
smartScopes: string[];
|
|
159
|
-
includedTypes: string[];
|
|
160
|
-
expectedSmartTokenDecision: "allowed" | "denied";
|
|
161
|
-
reason: string;
|
|
162
|
-
}>;
|
|
163
|
-
readonly physicianByJurisdictionEmergencySummaryAllowed: Readonly<{
|
|
164
|
-
actorId: string | {
|
|
165
|
-
email?: string;
|
|
166
|
-
organizationUrl?: string;
|
|
167
|
-
};
|
|
168
|
-
actorRole: string;
|
|
169
|
-
purpose: string;
|
|
170
|
-
consentActions: string[];
|
|
171
|
-
smartScopes: string[];
|
|
172
|
-
includedTypes: string[];
|
|
173
|
-
expectedSmartTokenDecision: "allowed" | "denied";
|
|
174
|
-
reason: string;
|
|
175
|
-
}>;
|
|
176
|
-
readonly nursingByOrganizationMedicationHistoryAllowed: Readonly<{
|
|
177
|
-
actorId: string | {
|
|
178
|
-
email?: string;
|
|
179
|
-
organizationUrl?: string;
|
|
180
|
-
};
|
|
181
|
-
actorRole: string;
|
|
182
|
-
purpose: string;
|
|
183
|
-
consentActions: string[];
|
|
184
|
-
smartScopes: string[];
|
|
185
|
-
includedTypes: string[];
|
|
186
|
-
expectedSmartTokenDecision: "allowed" | "denied";
|
|
187
|
-
reason: string;
|
|
188
|
-
}>;
|
|
189
|
-
readonly paramedicByJurisdictionEmergencySummaryAllowed: Readonly<{
|
|
190
|
-
actorId: string | {
|
|
191
|
-
email?: string;
|
|
192
|
-
organizationUrl?: string;
|
|
193
|
-
};
|
|
194
|
-
actorRole: string;
|
|
195
|
-
purpose: string;
|
|
196
|
-
consentActions: string[];
|
|
197
|
-
smartScopes: string[];
|
|
198
|
-
includedTypes: string[];
|
|
199
|
-
expectedSmartTokenDecision: "allowed" | "denied";
|
|
200
|
-
reason: string;
|
|
201
|
-
}>;
|
|
202
|
-
readonly physicianObstetricianDeniedWhenOnlyAllergiesConsent: Readonly<{
|
|
203
|
-
actorId: string | {
|
|
204
|
-
email?: string;
|
|
205
|
-
organizationUrl?: string;
|
|
206
|
-
};
|
|
207
|
-
actorRole: string;
|
|
208
|
-
purpose: string;
|
|
209
|
-
consentActions: string[];
|
|
210
|
-
smartScopes: string[];
|
|
211
|
-
includedTypes: string[];
|
|
212
|
-
expectedSmartTokenDecision: "allowed" | "denied";
|
|
213
|
-
reason: string;
|
|
214
|
-
}>;
|
|
215
|
-
readonly physicianByEmailDeniedWhenConsentRevokedAndNoOrgNorJurisdictionConsentIsActive: Readonly<{
|
|
216
|
-
actorId: string | {
|
|
217
|
-
email?: string;
|
|
218
|
-
organizationUrl?: string;
|
|
219
|
-
};
|
|
220
|
-
actorRole: string;
|
|
221
|
-
purpose: string;
|
|
222
|
-
consentActions: string[];
|
|
223
|
-
smartScopes: string[];
|
|
224
|
-
includedTypes: string[];
|
|
225
|
-
expectedSmartTokenDecision: "allowed" | "denied";
|
|
226
|
-
reason: string;
|
|
227
|
-
}>;
|
|
228
|
-
}>;
|
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
import { HealthcareActorRoles, HealthcareBasicSections, HealthcareConsentPurposes, } from '../constants/healthcare';
|
|
3
|
-
import { ResourceTypesFhirR4 } from '../constants/fhir-resource-types';
|
|
4
|
-
import { SmartGatewayScopesFhirR4 } from '../constants/smart';
|
|
5
|
-
import { buildSmartCompositionReadScope } from '../utils/smart-scope';
|
|
6
|
-
import { EXAMPLE_CLINICAL_SECTION_ALLERGIES, EXAMPLE_EMAIL_PROFESSIONAL, EXAMPLE_HEALTHCARE_JURISDICTION, EXAMPLE_PATIENT_DID, EXAMPLE_PROVIDER_ORGANIZATION_URL, EXAMPLE_SUBJECT_DID, } from './shared';
|
|
7
|
-
/**
|
|
8
|
-
* Examples for professional runtime access flows.
|
|
9
|
-
*
|
|
10
|
-
* These examples intentionally separate:
|
|
11
|
-
*
|
|
12
|
-
* - the actor role of the professional (`Physician`, `NursingProfessional`, ...)
|
|
13
|
-
* - the consented action/section over an individual subject
|
|
14
|
-
* - the SMART scope ultimately requested against GW CORE
|
|
15
|
-
* - the difference between a minimal read scope and an elevated consent-management scope
|
|
16
|
-
*
|
|
17
|
-
* This differs from organization-controller and individual-owner bootstrap
|
|
18
|
-
* examples, where the main concern is identity/bootstrap rather than
|
|
19
|
-
* professional clinical access permissions.
|
|
20
|
-
*/
|
|
21
|
-
const EXAMPLE_SMART_SUBJECT_DID = EXAMPLE_SUBJECT_DID;
|
|
22
|
-
const EXAMPLE_PHYSICIAN_EMAIL = EXAMPLE_EMAIL_PROFESSIONAL;
|
|
23
|
-
const EXAMPLE_PROVIDER_ORG_URL = EXAMPLE_PROVIDER_ORGANIZATION_URL;
|
|
24
|
-
const EXAMPLE_JURISDICTION = EXAMPLE_HEALTHCARE_JURISDICTION;
|
|
25
|
-
const EXAMPLE_CANONICAL_SMART_READ_SCOPES = [
|
|
26
|
-
buildSmartCompositionReadScope({
|
|
27
|
-
subjectDid: EXAMPLE_SMART_SUBJECT_DID,
|
|
28
|
-
sections: EXAMPLE_CLINICAL_SECTION_ALLERGIES,
|
|
29
|
-
}),
|
|
30
|
-
];
|
|
31
|
-
const EXAMPLE_CANONICAL_SMART_SCOPES = [
|
|
32
|
-
...EXAMPLE_CANONICAL_SMART_READ_SCOPES,
|
|
33
|
-
SmartGatewayScopesFhirR4.ConsentCruds,
|
|
34
|
-
];
|
|
35
|
-
export const EXAMPLE_TOKEN_EXCHANGE_SMART_INPUT = {
|
|
36
|
-
idToken: 'employee-id-token-001',
|
|
37
|
-
scopes: [...EXAMPLE_CANONICAL_SMART_READ_SCOPES],
|
|
38
|
-
timeoutSeconds: 5,
|
|
39
|
-
intervalSeconds: 1,
|
|
40
|
-
};
|
|
41
|
-
export const EXAMPLE_OPENID_SMART_TOKEN_INPUT = {
|
|
42
|
-
idToken: 'employee-id-token-001',
|
|
43
|
-
vpToken: '<vp-jws-or-jsonld>',
|
|
44
|
-
scopes: [...EXAMPLE_CANONICAL_SMART_READ_SCOPES],
|
|
45
|
-
smartTokenKind: 'openid-smart',
|
|
46
|
-
clientId: 'device-1',
|
|
47
|
-
subjectDid: EXAMPLE_SMART_SUBJECT_DID,
|
|
48
|
-
};
|
|
49
|
-
export const EXAMPLE_SMART_PRESENTATION_SUBMISSION = {
|
|
50
|
-
id: 'ps-001',
|
|
51
|
-
definition_id: 'pd-001',
|
|
52
|
-
descriptor_map: [{ id: 'vp-credential', format: 'jwt_vp', path: '$.vp_token' }],
|
|
53
|
-
};
|
|
54
|
-
export const EXAMPLE_SMART_TOKEN_RESPONSE = {
|
|
55
|
-
submit: { status: 202, body: {} },
|
|
56
|
-
poll: {
|
|
57
|
-
status: 200,
|
|
58
|
-
body: {
|
|
59
|
-
access_token: 'smart-token-openid-001',
|
|
60
|
-
token_type: 'Bearer',
|
|
61
|
-
scope: EXAMPLE_CANONICAL_SMART_READ_SCOPES.join(' '),
|
|
62
|
-
expires_in: 3600,
|
|
63
|
-
},
|
|
64
|
-
attempts: 1,
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
export const EXAMPLE_TOKEN_EXCHANGE_RESPONSE = {
|
|
68
|
-
submit: { status: 202, body: {} },
|
|
69
|
-
poll: {
|
|
70
|
-
status: 200,
|
|
71
|
-
body: {
|
|
72
|
-
access_token: 'smart-token-ctx-001',
|
|
73
|
-
token_type: 'Bearer',
|
|
74
|
-
scope: EXAMPLE_CANONICAL_SMART_READ_SCOPES.join(' '),
|
|
75
|
-
expires_in: 3600,
|
|
76
|
-
},
|
|
77
|
-
attempts: 1,
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
export const EXAMPLE_SEND_COMMUNICATION_INPUT = {
|
|
81
|
-
subject: EXAMPLE_PATIENT_DID,
|
|
82
|
-
text: 'Message body',
|
|
83
|
-
};
|
|
84
|
-
export const EXAMPLE_SEARCH_CLINICAL_BUNDLE_INPUT = {
|
|
85
|
-
subject: EXAMPLE_PATIENT_DID,
|
|
86
|
-
includedTypes: ['Communication', 'DocumentReference'],
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Reusable role/permission examples for clinical access over an individual.
|
|
90
|
-
*
|
|
91
|
-
* These are intended as copy-paste fixtures for docs/tests when explaining:
|
|
92
|
-
*
|
|
93
|
-
* - which professional is acting
|
|
94
|
-
* - what consent purpose/action was granted
|
|
95
|
-
* - what SMART scope is being requested
|
|
96
|
-
* - which FHIR resource types are expected to be relevant after access
|
|
97
|
-
*
|
|
98
|
-
* Teaching rule:
|
|
99
|
-
*
|
|
100
|
-
* - use `EXAMPLE_TOKEN_EXCHANGE_SMART_INPUT` or `EXAMPLE_OPENID_SMART_TOKEN_INPUT`
|
|
101
|
-
* for the first read-only examples
|
|
102
|
-
* - use the scenarios below when you explicitly want the composition read scope
|
|
103
|
-
* plus `organization/Consent.cruds`
|
|
104
|
-
*/
|
|
105
|
-
export const EXAMPLE_PROFESSIONAL_ACCESS_SCENARIOS = Object.freeze({
|
|
106
|
-
physicianAllergiesRead: {
|
|
107
|
-
actorRole: HealthcareActorRoles.Physician,
|
|
108
|
-
purpose: HealthcareConsentPurposes.Treatment,
|
|
109
|
-
consentActions: [HealthcareBasicSections.AllergiesAndIntolerances.claim],
|
|
110
|
-
smartScopes: [
|
|
111
|
-
buildSmartCompositionReadScope({
|
|
112
|
-
subjectDid: EXAMPLE_SMART_SUBJECT_DID,
|
|
113
|
-
sections: HealthcareBasicSections.AllergiesAndIntolerances.claim,
|
|
114
|
-
}),
|
|
115
|
-
SmartGatewayScopesFhirR4.ConsentCruds,
|
|
116
|
-
],
|
|
117
|
-
includedTypes: [
|
|
118
|
-
ResourceTypesFhirR4.Composition,
|
|
119
|
-
ResourceTypesFhirR4.AllergyIntolerance,
|
|
120
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
121
|
-
],
|
|
122
|
-
},
|
|
123
|
-
nursingMedicationRead: {
|
|
124
|
-
actorRole: HealthcareActorRoles.NursingProfessional,
|
|
125
|
-
purpose: HealthcareConsentPurposes.Treatment,
|
|
126
|
-
consentActions: [HealthcareBasicSections.HistoryOfMedicationUse.claim],
|
|
127
|
-
smartScopes: [
|
|
128
|
-
buildSmartCompositionReadScope({
|
|
129
|
-
subjectDid: EXAMPLE_SMART_SUBJECT_DID,
|
|
130
|
-
sections: HealthcareBasicSections.HistoryOfMedicationUse.claim,
|
|
131
|
-
}),
|
|
132
|
-
SmartGatewayScopesFhirR4.ConsentCruds,
|
|
133
|
-
],
|
|
134
|
-
includedTypes: [
|
|
135
|
-
ResourceTypesFhirR4.Composition,
|
|
136
|
-
ResourceTypesFhirR4.MedicationStatement,
|
|
137
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
138
|
-
],
|
|
139
|
-
},
|
|
140
|
-
paramedicEmergencySummaryRead: {
|
|
141
|
-
actorRole: HealthcareActorRoles.Paramedic,
|
|
142
|
-
purpose: HealthcareConsentPurposes.EmergencyTreatment,
|
|
143
|
-
consentActions: [HealthcareBasicSections.PatientSummaryDocument.claim],
|
|
144
|
-
smartScopes: [
|
|
145
|
-
buildSmartCompositionReadScope({
|
|
146
|
-
subjectDid: EXAMPLE_SMART_SUBJECT_DID,
|
|
147
|
-
sections: HealthcareBasicSections.PatientSummaryDocument.claim,
|
|
148
|
-
}),
|
|
149
|
-
SmartGatewayScopesFhirR4.ConsentCruds,
|
|
150
|
-
],
|
|
151
|
-
includedTypes: [
|
|
152
|
-
ResourceTypesFhirR4.Composition,
|
|
153
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
154
|
-
ResourceTypesFhirR4.Observation,
|
|
155
|
-
],
|
|
156
|
-
},
|
|
157
|
-
physicianResultsAndProblemsRead: {
|
|
158
|
-
actorRole: HealthcareActorRoles.Physician,
|
|
159
|
-
purpose: HealthcareConsentPurposes.Treatment,
|
|
160
|
-
consentActions: [
|
|
161
|
-
HealthcareBasicSections.Results.claim,
|
|
162
|
-
HealthcareBasicSections.ProblemList.claim,
|
|
163
|
-
],
|
|
164
|
-
smartScopes: [
|
|
165
|
-
buildSmartCompositionReadScope({
|
|
166
|
-
subjectDid: EXAMPLE_SMART_SUBJECT_DID,
|
|
167
|
-
sections: [
|
|
168
|
-
HealthcareBasicSections.Results.claim,
|
|
169
|
-
HealthcareBasicSections.ProblemList.claim,
|
|
170
|
-
],
|
|
171
|
-
}),
|
|
172
|
-
SmartGatewayScopesFhirR4.ConsentCruds,
|
|
173
|
-
],
|
|
174
|
-
includedTypes: [
|
|
175
|
-
ResourceTypesFhirR4.Composition,
|
|
176
|
-
ResourceTypesFhirR4.Condition,
|
|
177
|
-
ResourceTypesFhirR4.DiagnosticReport,
|
|
178
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
179
|
-
],
|
|
180
|
-
},
|
|
181
|
-
});
|
|
182
|
-
function buildConsentDecisionScenario(params) {
|
|
183
|
-
return Object.freeze({
|
|
184
|
-
actorId: params.actorId,
|
|
185
|
-
actorRole: params.actorRole,
|
|
186
|
-
purpose: params.purpose,
|
|
187
|
-
consentActions: [...params.consentActions],
|
|
188
|
-
smartScopes: [
|
|
189
|
-
buildSmartCompositionReadScope({
|
|
190
|
-
subjectDid: EXAMPLE_SMART_SUBJECT_DID,
|
|
191
|
-
sections: params.requestedSections,
|
|
192
|
-
}),
|
|
193
|
-
SmartGatewayScopesFhirR4.ConsentCruds,
|
|
194
|
-
],
|
|
195
|
-
includedTypes: [...params.includedTypes],
|
|
196
|
-
expectedSmartTokenDecision: params.expectedSmartTokenDecision,
|
|
197
|
-
reason: params.reason,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Reusable consent-vs-SMART examples that model:
|
|
202
|
-
*
|
|
203
|
-
* - who receives the consent (`actorId`)
|
|
204
|
-
* - under which role
|
|
205
|
-
* - for which purpose
|
|
206
|
-
* - over which sections/actions
|
|
207
|
-
* - and whether a later SMART request should be accepted or denied
|
|
208
|
-
*
|
|
209
|
-
* This is the right level for testing the live rule:
|
|
210
|
-
* consent state + actor target + role + purpose + requested scope.
|
|
211
|
-
*/
|
|
212
|
-
export const EXAMPLE_PROFESSIONAL_CONSENT_SCENARIOS = Object.freeze({
|
|
213
|
-
physicianByEmailContinuousCareAllergiesAllowed: buildConsentDecisionScenario({
|
|
214
|
-
actorId: EXAMPLE_PHYSICIAN_EMAIL,
|
|
215
|
-
actorRole: HealthcareActorRoles.Physician,
|
|
216
|
-
purpose: HealthcareConsentPurposes.Treatment,
|
|
217
|
-
consentActions: [HealthcareBasicSections.AllergiesAndIntolerances.claim],
|
|
218
|
-
requestedSections: HealthcareBasicSections.AllergiesAndIntolerances.claim,
|
|
219
|
-
includedTypes: [
|
|
220
|
-
ResourceTypesFhirR4.Composition,
|
|
221
|
-
ResourceTypesFhirR4.AllergyIntolerance,
|
|
222
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
223
|
-
],
|
|
224
|
-
expectedSmartTokenDecision: 'allowed',
|
|
225
|
-
reason: 'physician is targeted directly by email and role for continuous care over allergies section',
|
|
226
|
-
}),
|
|
227
|
-
physicianByEmailEmergencySummaryAllowed: buildConsentDecisionScenario({
|
|
228
|
-
actorId: EXAMPLE_PHYSICIAN_EMAIL,
|
|
229
|
-
actorRole: HealthcareActorRoles.Physician,
|
|
230
|
-
purpose: HealthcareConsentPurposes.EmergencyTreatment,
|
|
231
|
-
consentActions: [HealthcareBasicSections.PatientSummaryDocument.claim],
|
|
232
|
-
requestedSections: HealthcareBasicSections.PatientSummaryDocument.claim,
|
|
233
|
-
includedTypes: [
|
|
234
|
-
ResourceTypesFhirR4.Composition,
|
|
235
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
236
|
-
ResourceTypesFhirR4.Observation,
|
|
237
|
-
],
|
|
238
|
-
expectedSmartTokenDecision: 'allowed',
|
|
239
|
-
reason: 'physician is targeted directly by email and role for emergency summary access',
|
|
240
|
-
}),
|
|
241
|
-
physicianByOrganizationResultsAllowed: buildConsentDecisionScenario({
|
|
242
|
-
actorId: { organizationUrl: EXAMPLE_PROVIDER_ORG_URL },
|
|
243
|
-
actorRole: HealthcareActorRoles.Physician,
|
|
244
|
-
purpose: HealthcareConsentPurposes.Treatment,
|
|
245
|
-
consentActions: [HealthcareBasicSections.Results.claim],
|
|
246
|
-
requestedSections: HealthcareBasicSections.Results.claim,
|
|
247
|
-
includedTypes: [
|
|
248
|
-
ResourceTypesFhirR4.Composition,
|
|
249
|
-
ResourceTypesFhirR4.DiagnosticReport,
|
|
250
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
251
|
-
],
|
|
252
|
-
expectedSmartTokenDecision: 'allowed',
|
|
253
|
-
reason: 'consent is granted to a physician role within a given organization for continuous care results access',
|
|
254
|
-
}),
|
|
255
|
-
physicianByJurisdictionEmergencySummaryAllowed: buildConsentDecisionScenario({
|
|
256
|
-
actorId: EXAMPLE_JURISDICTION,
|
|
257
|
-
actorRole: HealthcareActorRoles.Physician,
|
|
258
|
-
purpose: HealthcareConsentPurposes.EmergencyTreatment,
|
|
259
|
-
consentActions: [HealthcareBasicSections.PatientSummaryDocument.claim],
|
|
260
|
-
requestedSections: HealthcareBasicSections.PatientSummaryDocument.claim,
|
|
261
|
-
includedTypes: [
|
|
262
|
-
ResourceTypesFhirR4.Composition,
|
|
263
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
264
|
-
ResourceTypesFhirR4.Observation,
|
|
265
|
-
],
|
|
266
|
-
expectedSmartTokenDecision: 'allowed',
|
|
267
|
-
reason: 'consent is granted at jurisdiction level for physician emergency access',
|
|
268
|
-
}),
|
|
269
|
-
nursingByOrganizationMedicationHistoryAllowed: buildConsentDecisionScenario({
|
|
270
|
-
actorId: { organizationUrl: EXAMPLE_PROVIDER_ORG_URL },
|
|
271
|
-
actorRole: HealthcareActorRoles.NursingProfessional,
|
|
272
|
-
purpose: HealthcareConsentPurposes.Treatment,
|
|
273
|
-
consentActions: [HealthcareBasicSections.HistoryOfMedicationUse.claim],
|
|
274
|
-
requestedSections: HealthcareBasicSections.HistoryOfMedicationUse.claim,
|
|
275
|
-
includedTypes: [
|
|
276
|
-
ResourceTypesFhirR4.Composition,
|
|
277
|
-
ResourceTypesFhirR4.MedicationStatement,
|
|
278
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
279
|
-
],
|
|
280
|
-
expectedSmartTokenDecision: 'allowed',
|
|
281
|
-
reason: 'nursing professional is allowed to read medication history for treatment through organization-scoped consent',
|
|
282
|
-
}),
|
|
283
|
-
paramedicByJurisdictionEmergencySummaryAllowed: buildConsentDecisionScenario({
|
|
284
|
-
actorId: EXAMPLE_JURISDICTION,
|
|
285
|
-
actorRole: HealthcareActorRoles.Paramedic,
|
|
286
|
-
purpose: HealthcareConsentPurposes.EmergencyTreatment,
|
|
287
|
-
consentActions: [HealthcareBasicSections.PatientSummaryDocument.claim],
|
|
288
|
-
requestedSections: HealthcareBasicSections.PatientSummaryDocument.claim,
|
|
289
|
-
includedTypes: [
|
|
290
|
-
ResourceTypesFhirR4.Composition,
|
|
291
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
292
|
-
ResourceTypesFhirR4.Observation,
|
|
293
|
-
],
|
|
294
|
-
expectedSmartTokenDecision: 'allowed',
|
|
295
|
-
reason: 'paramedic receives emergency-only jurisdiction-scoped access to patient summary',
|
|
296
|
-
}),
|
|
297
|
-
physicianObstetricianDeniedWhenOnlyAllergiesConsent: buildConsentDecisionScenario({
|
|
298
|
-
actorId: EXAMPLE_PHYSICIAN_EMAIL,
|
|
299
|
-
actorRole: `${HealthcareActorRoles.Physician}:obstetrician`,
|
|
300
|
-
purpose: HealthcareConsentPurposes.Treatment,
|
|
301
|
-
consentActions: [HealthcareBasicSections.AllergiesAndIntolerances.claim],
|
|
302
|
-
requestedSections: HealthcareBasicSections.Results.claim,
|
|
303
|
-
includedTypes: [
|
|
304
|
-
ResourceTypesFhirR4.Composition,
|
|
305
|
-
ResourceTypesFhirR4.DiagnosticReport,
|
|
306
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
307
|
-
],
|
|
308
|
-
expectedSmartTokenDecision: 'denied',
|
|
309
|
-
reason: 'requested SMART scope targets results but active consent only covers allergies section',
|
|
310
|
-
}),
|
|
311
|
-
physicianByEmailDeniedWhenConsentRevokedAndNoOrgNorJurisdictionConsentIsActive: buildConsentDecisionScenario({
|
|
312
|
-
actorId: EXAMPLE_PHYSICIAN_EMAIL,
|
|
313
|
-
actorRole: HealthcareActorRoles.Physician,
|
|
314
|
-
purpose: HealthcareConsentPurposes.EmergencyTreatment,
|
|
315
|
-
consentActions: [HealthcareBasicSections.PatientSummaryDocument.claim],
|
|
316
|
-
requestedSections: HealthcareBasicSections.PatientSummaryDocument.claim,
|
|
317
|
-
includedTypes: [
|
|
318
|
-
ResourceTypesFhirR4.Composition,
|
|
319
|
-
ResourceTypesFhirR4.DocumentReference,
|
|
320
|
-
],
|
|
321
|
-
expectedSmartTokenDecision: 'denied',
|
|
322
|
-
reason: 'matching consent rule existed before but is no longer active after controller deactivation/revocation',
|
|
323
|
-
}),
|
|
324
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
/**
|
|
3
|
-
* Examples for related-person / family-member flows.
|
|
4
|
-
*/
|
|
5
|
-
export const EXAMPLE_RELATED_PERSON_PAYLOAD = {
|
|
6
|
-
body: {
|
|
7
|
-
data: [
|
|
8
|
-
{
|
|
9
|
-
type: 'RelatedPerson',
|
|
10
|
-
},
|
|
11
|
-
],
|
|
12
|
-
},
|
|
13
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { RelationshipChannelInvitationInput, RelationshipChannelInvitationSummary, RelationshipChannelOtpChallengeSummary, RelationshipChannelOtpConfirmInput, RelationshipChannelOtpStartInput, RelationshipLocalKeyEnvelope, RelationshipPinPolicy, RelationshipPinSetInput, RelationshipPinVerifyInput } from '../models/relationship-access';
|
|
2
|
-
export declare const EXAMPLE_RELATIONSHIP_CHANNEL_INVITATION_INPUT: RelationshipChannelInvitationInput;
|
|
3
|
-
export declare const EXAMPLE_RELATIONSHIP_CHANNEL_INVITATION_SUMMARY: RelationshipChannelInvitationSummary;
|
|
4
|
-
export declare const EXAMPLE_RELATIONSHIP_PROFESSIONAL_INVITATION_INPUT: RelationshipChannelInvitationInput;
|
|
5
|
-
export declare const EXAMPLE_RELATIONSHIP_CHANNEL_OTP_START_INPUT: RelationshipChannelOtpStartInput;
|
|
6
|
-
export declare const EXAMPLE_RELATIONSHIP_CHANNEL_OTP_CONFIRM_INPUT: RelationshipChannelOtpConfirmInput;
|
|
7
|
-
export declare const EXAMPLE_RELATIONSHIP_CHANNEL_OTP_CHALLENGE_SUMMARY: RelationshipChannelOtpChallengeSummary;
|
|
8
|
-
export declare const EXAMPLE_RELATIONSHIP_PIN_POLICY: RelationshipPinPolicy;
|
|
9
|
-
export declare const EXAMPLE_RELATIONSHIP_PIN_SET_INPUT: RelationshipPinSetInput;
|
|
10
|
-
export declare const EXAMPLE_RELATIONSHIP_PIN_VERIFY_INPUT: RelationshipPinVerifyInput;
|
|
11
|
-
export declare const EXAMPLE_RELATIONSHIP_LOCAL_KEY_ENVELOPE: RelationshipLocalKeyEnvelope;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
// Copyright 2026 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
-
import { HealthcareConsentPurposes } from '../constants/healthcare';
|
|
3
|
-
import { EXAMPLE_HEALTHCARE_ACTOR_ROLE_PHYSICIAN, EXAMPLE_JURISDICTION, EXAMPLE_SECTOR, } from './shared';
|
|
4
|
-
import { EXAMPLE_EMAIL_PROFESSIONAL, EXAMPLE_EMAIL_RELATED_PERSON, EXAMPLE_INDIVIDUAL_DID_WEB, } from './consent-access';
|
|
5
|
-
export const EXAMPLE_RELATIONSHIP_CHANNEL_INVITATION_INPUT = {
|
|
6
|
-
tenantId: 'acme-id',
|
|
7
|
-
jurisdiction: EXAMPLE_JURISDICTION,
|
|
8
|
-
sector: EXAMPLE_SECTOR,
|
|
9
|
-
subjectId: EXAMPLE_INDIVIDUAL_DID_WEB,
|
|
10
|
-
subjectKind: 'person',
|
|
11
|
-
actorKind: 'related-person',
|
|
12
|
-
actorIdentifier: EXAMPLE_EMAIL_RELATED_PERSON,
|
|
13
|
-
deliveryChannel: 'email',
|
|
14
|
-
deliveryTarget: EXAMPLE_EMAIL_RELATED_PERSON,
|
|
15
|
-
purpose: HealthcareConsentPurposes.CareManagement,
|
|
16
|
-
relationshipLabel: 'family caregiver',
|
|
17
|
-
phonePinOptional: false,
|
|
18
|
-
};
|
|
19
|
-
export const EXAMPLE_RELATIONSHIP_CHANNEL_INVITATION_SUMMARY = {
|
|
20
|
-
invitationId: 'inv-rel-001',
|
|
21
|
-
tenantId: 'acme-id',
|
|
22
|
-
subjectId: EXAMPLE_INDIVIDUAL_DID_WEB,
|
|
23
|
-
subjectKind: 'person',
|
|
24
|
-
actorKind: 'related-person',
|
|
25
|
-
actorIdentifier: EXAMPLE_EMAIL_RELATED_PERSON,
|
|
26
|
-
deliveryChannel: 'email',
|
|
27
|
-
deliveryTargetMasked: 'p***@example.org',
|
|
28
|
-
status: 'otp_pending',
|
|
29
|
-
purpose: HealthcareConsentPurposes.CareManagement,
|
|
30
|
-
relationshipLabel: 'family caregiver',
|
|
31
|
-
phonePinOptional: false,
|
|
32
|
-
};
|
|
33
|
-
export const EXAMPLE_RELATIONSHIP_PROFESSIONAL_INVITATION_INPUT = {
|
|
34
|
-
tenantId: 'acme-id',
|
|
35
|
-
jurisdiction: EXAMPLE_JURISDICTION,
|
|
36
|
-
sector: EXAMPLE_SECTOR,
|
|
37
|
-
subjectId: EXAMPLE_INDIVIDUAL_DID_WEB,
|
|
38
|
-
subjectKind: 'person',
|
|
39
|
-
actorKind: 'professional',
|
|
40
|
-
actorIdentifier: EXAMPLE_EMAIL_PROFESSIONAL,
|
|
41
|
-
actorRole: EXAMPLE_HEALTHCARE_ACTOR_ROLE_PHYSICIAN,
|
|
42
|
-
deliveryChannel: 'email',
|
|
43
|
-
deliveryTarget: EXAMPLE_EMAIL_PROFESSIONAL,
|
|
44
|
-
purpose: HealthcareConsentPurposes.Treatment,
|
|
45
|
-
relationshipLabel: 'attending physician',
|
|
46
|
-
phonePinOptional: false,
|
|
47
|
-
};
|
|
48
|
-
export const EXAMPLE_RELATIONSHIP_CHANNEL_OTP_START_INPUT = {
|
|
49
|
-
invitationId: 'inv-rel-001',
|
|
50
|
-
deliveryChannel: 'email',
|
|
51
|
-
locale: 'en',
|
|
52
|
-
};
|
|
53
|
-
export const EXAMPLE_RELATIONSHIP_CHANNEL_OTP_CONFIRM_INPUT = {
|
|
54
|
-
invitationId: 'inv-rel-001',
|
|
55
|
-
challengeId: 'challenge-rel-001',
|
|
56
|
-
code: '123456',
|
|
57
|
-
};
|
|
58
|
-
export const EXAMPLE_RELATIONSHIP_CHANNEL_OTP_CHALLENGE_SUMMARY = {
|
|
59
|
-
invitationId: 'inv-rel-001',
|
|
60
|
-
challengeId: 'challenge-rel-001',
|
|
61
|
-
deliveryChannel: 'email',
|
|
62
|
-
status: 'pending',
|
|
63
|
-
attemptsRemaining: 3,
|
|
64
|
-
};
|
|
65
|
-
export const EXAMPLE_RELATIONSHIP_PIN_POLICY = {
|
|
66
|
-
minLength: 6,
|
|
67
|
-
maxLength: 10,
|
|
68
|
-
maxAttempts: 5,
|
|
69
|
-
lockMinutes: 15,
|
|
70
|
-
numericOnly: true,
|
|
71
|
-
optional: false,
|
|
72
|
-
};
|
|
73
|
-
export const EXAMPLE_RELATIONSHIP_PIN_SET_INPUT = {
|
|
74
|
-
invitationId: 'inv-rel-001',
|
|
75
|
-
challengeId: 'challenge-rel-001',
|
|
76
|
-
channel: 'phone',
|
|
77
|
-
pin: '483920',
|
|
78
|
-
pinConfirmation: '483920',
|
|
79
|
-
policy: EXAMPLE_RELATIONSHIP_PIN_POLICY,
|
|
80
|
-
};
|
|
81
|
-
export const EXAMPLE_RELATIONSHIP_PIN_VERIFY_INPUT = {
|
|
82
|
-
relationshipId: 'rel-001',
|
|
83
|
-
channel: 'phone',
|
|
84
|
-
pin: '483920',
|
|
85
|
-
};
|
|
86
|
-
export const EXAMPLE_RELATIONSHIP_LOCAL_KEY_ENVELOPE = {
|
|
87
|
-
relationshipId: 'rel-001',
|
|
88
|
-
actorIdentifier: EXAMPLE_EMAIL_PROFESSIONAL,
|
|
89
|
-
subjectId: EXAMPLE_INDIVIDUAL_DID_WEB,
|
|
90
|
-
subjectKind: 'person',
|
|
91
|
-
channel: 'app',
|
|
92
|
-
wrappedLocalAccessKey: 'base64url-wrapped-local-access-key',
|
|
93
|
-
kdfSalt: 'base64url-kdf-salt',
|
|
94
|
-
kdf: 'argon2id',
|
|
95
|
-
scope: 'relationship-local-cache',
|
|
96
|
-
};
|