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,274 @@
|
|
|
1
|
+
import { LOINC_SYSTEM_URL, loincI18nKey } from '../models/clinical-sections';
|
|
2
|
+
import { clinicalDocTypes, clinicalSectionAdditional, clinicalSectionsBase, } from '../models/clinical-sections.en';
|
|
3
|
+
import { HL7_CODING_SYSTEM_PERSONAL_RELATIONSHIP, HL7_CODING_SYSTEM_V3_ROLE_CODE, HL7_PERSONAL_RELATIONSHIP_ROLES, HL7_V3_ROLE_CODE_LEGAL_REPRESENTATIVE, } from './hl7-roles';
|
|
4
|
+
import { DataspaceSectors } from './sectors';
|
|
5
|
+
export const ISCO08_CODING_SYSTEM = 'org.ilo.isco';
|
|
6
|
+
export const ISCO08_I18N_NAMESPACE = 'org.ilo.isco-08';
|
|
7
|
+
export const HealthcareRoleFamilies = Object.freeze({
|
|
8
|
+
ProfessionalOccupationIsco08: 'professionalOccupationIsco08',
|
|
9
|
+
PersonalRelationshipHl7: 'personalRelationshipHl7',
|
|
10
|
+
LegalRepresentativeHl7: 'legalRepresentativeHl7',
|
|
11
|
+
});
|
|
12
|
+
function defineSection(code, titleEn) {
|
|
13
|
+
return Object.freeze({
|
|
14
|
+
system: LOINC_SYSTEM_URL,
|
|
15
|
+
code,
|
|
16
|
+
claim: `LOINC|${code}`,
|
|
17
|
+
i18nKey: loincI18nKey(code),
|
|
18
|
+
titleEn,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export const HealthcareSectionFamilies = Object.freeze({
|
|
22
|
+
Summary: 'summary',
|
|
23
|
+
Management: 'management',
|
|
24
|
+
SubjectMatterDomain: 'subjectMatterDomain',
|
|
25
|
+
});
|
|
26
|
+
function buildSectionCatalogByCode(source) {
|
|
27
|
+
return Object.freeze(Object.fromEntries(Object.entries(source).map(([code, titleEn]) => [code, defineSection(code, titleEn)])));
|
|
28
|
+
}
|
|
29
|
+
export const HealthcareBasicSections = Object.freeze({
|
|
30
|
+
PatientSummaryDocument: defineSection('60591-5'),
|
|
31
|
+
AllergiesAndIntolerances: defineSection('48765-2'),
|
|
32
|
+
HistoryOfMedicationUse: defineSection('10160-0'),
|
|
33
|
+
ProblemList: defineSection('11450-4'),
|
|
34
|
+
Results: defineSection('30954-2'),
|
|
35
|
+
Procedures: defineSection('47519-4'),
|
|
36
|
+
Immunizations: defineSection('11369-6'),
|
|
37
|
+
MedicalDevices: defineSection('46264-8'),
|
|
38
|
+
FunctionalStatus: defineSection('47420-5'),
|
|
39
|
+
PlanOfCare: defineSection('18776-5'),
|
|
40
|
+
SocialHistory: defineSection('29762-2'),
|
|
41
|
+
VitalSigns: defineSection('8716-3'),
|
|
42
|
+
});
|
|
43
|
+
export const HealthcareAdditionalSections = Object.freeze({
|
|
44
|
+
AdvanceDirectives: defineSection('42348-3'),
|
|
45
|
+
DiagnosticImaging: defineSection('18726-0'),
|
|
46
|
+
HistoryOfPastIllness: defineSection('11348-0'),
|
|
47
|
+
ReasonForReferral: defineSection('42349-1'),
|
|
48
|
+
ChiefComplaint: defineSection('10154-3'),
|
|
49
|
+
HealthcareGeneral: defineSection('56796-6'),
|
|
50
|
+
});
|
|
51
|
+
export const HealthcareAllSections = Object.freeze({
|
|
52
|
+
...HealthcareBasicSections,
|
|
53
|
+
...HealthcareAdditionalSections,
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Full section families sourced from the existing section catalogs in
|
|
57
|
+
* `models/clinical-sections.en.ts`.
|
|
58
|
+
*
|
|
59
|
+
* Family mapping used by SDK/business layers:
|
|
60
|
+
* - `summary`: IPS/base summary sections.
|
|
61
|
+
* - `management`: kind-of-document and type-of-service oriented sections.
|
|
62
|
+
* - `subjectMatterDomain`: additional service-domain sections.
|
|
63
|
+
*/
|
|
64
|
+
export const HealthcareSectionsByFamily = Object.freeze({
|
|
65
|
+
[HealthcareSectionFamilies.Summary]: buildSectionCatalogByCode(clinicalSectionsBase),
|
|
66
|
+
[HealthcareSectionFamilies.Management]: buildSectionCatalogByCode(clinicalDocTypes),
|
|
67
|
+
[HealthcareSectionFamilies.SubjectMatterDomain]: buildSectionCatalogByCode(clinicalSectionAdditional),
|
|
68
|
+
});
|
|
69
|
+
export const HealthcareAllSectionsByCode = Object.freeze({
|
|
70
|
+
...HealthcareSectionsByFamily[HealthcareSectionFamilies.Summary],
|
|
71
|
+
...HealthcareSectionsByFamily[HealthcareSectionFamilies.Management],
|
|
72
|
+
...HealthcareSectionsByFamily[HealthcareSectionFamilies.SubjectMatterDomain],
|
|
73
|
+
});
|
|
74
|
+
export function getHealthcareSectionByCode(code) {
|
|
75
|
+
return HealthcareAllSectionsByCode[String(code || '').trim()];
|
|
76
|
+
}
|
|
77
|
+
export function getHealthcareSectionsByFamily(family) {
|
|
78
|
+
return HealthcareSectionsByFamily[family];
|
|
79
|
+
}
|
|
80
|
+
export const HealthcareConsentPurposes = Object.freeze({
|
|
81
|
+
Treatment: 'TREAT',
|
|
82
|
+
EmergencyTreatment: 'ETREAT',
|
|
83
|
+
CareManagement: 'CAREMGT',
|
|
84
|
+
Operations: 'HOPERAT',
|
|
85
|
+
PatientAdministration: 'PATADMIN',
|
|
86
|
+
RecordsManagement: 'RECORDMGT',
|
|
87
|
+
});
|
|
88
|
+
export const HealthcareActorRoles = Object.freeze({
|
|
89
|
+
Controller: 'ISCO-08|1120',
|
|
90
|
+
Physician: 'ISCO-08|2211',
|
|
91
|
+
NursingProfessional: 'ISCO-08|2221',
|
|
92
|
+
Paramedic: 'ISCO-08|2240',
|
|
93
|
+
Veterinarian: 'ISCO-08|2250',
|
|
94
|
+
});
|
|
95
|
+
export const HealthcareActorRoleCodes = Object.freeze({
|
|
96
|
+
Controller: '1120',
|
|
97
|
+
Physician: '2211',
|
|
98
|
+
PhysicianBroad: '221',
|
|
99
|
+
NursingProfessional: '2221',
|
|
100
|
+
Paramedic: '2240',
|
|
101
|
+
Veterinarian: '2250',
|
|
102
|
+
});
|
|
103
|
+
function buildProfessionalIscoRoles() {
|
|
104
|
+
const entries = [
|
|
105
|
+
[
|
|
106
|
+
HealthcareActorRoleCodes.Controller,
|
|
107
|
+
Object.freeze({
|
|
108
|
+
family: HealthcareRoleFamilies.ProfessionalOccupationIsco08,
|
|
109
|
+
codingSystem: ISCO08_CODING_SYSTEM,
|
|
110
|
+
code: HealthcareActorRoleCodes.Controller,
|
|
111
|
+
claim: HealthcareActorRoles.Controller,
|
|
112
|
+
i18nKey: `${ISCO08_I18N_NAMESPACE}.${HealthcareActorRoleCodes.Controller}`,
|
|
113
|
+
titleEn: 'Controller',
|
|
114
|
+
}),
|
|
115
|
+
],
|
|
116
|
+
[
|
|
117
|
+
HealthcareActorRoleCodes.Physician,
|
|
118
|
+
Object.freeze({
|
|
119
|
+
family: HealthcareRoleFamilies.ProfessionalOccupationIsco08,
|
|
120
|
+
codingSystem: ISCO08_CODING_SYSTEM,
|
|
121
|
+
code: HealthcareActorRoleCodes.Physician,
|
|
122
|
+
claim: HealthcareActorRoles.Physician,
|
|
123
|
+
i18nKey: `${ISCO08_I18N_NAMESPACE}.${HealthcareActorRoleCodes.Physician}`,
|
|
124
|
+
titleEn: 'Physician',
|
|
125
|
+
}),
|
|
126
|
+
],
|
|
127
|
+
[
|
|
128
|
+
HealthcareActorRoleCodes.NursingProfessional,
|
|
129
|
+
Object.freeze({
|
|
130
|
+
family: HealthcareRoleFamilies.ProfessionalOccupationIsco08,
|
|
131
|
+
codingSystem: ISCO08_CODING_SYSTEM,
|
|
132
|
+
code: HealthcareActorRoleCodes.NursingProfessional,
|
|
133
|
+
claim: HealthcareActorRoles.NursingProfessional,
|
|
134
|
+
i18nKey: `${ISCO08_I18N_NAMESPACE}.${HealthcareActorRoleCodes.NursingProfessional}`,
|
|
135
|
+
titleEn: 'Nursing professional',
|
|
136
|
+
}),
|
|
137
|
+
],
|
|
138
|
+
[
|
|
139
|
+
HealthcareActorRoleCodes.Paramedic,
|
|
140
|
+
Object.freeze({
|
|
141
|
+
family: HealthcareRoleFamilies.ProfessionalOccupationIsco08,
|
|
142
|
+
codingSystem: ISCO08_CODING_SYSTEM,
|
|
143
|
+
code: HealthcareActorRoleCodes.Paramedic,
|
|
144
|
+
claim: HealthcareActorRoles.Paramedic,
|
|
145
|
+
i18nKey: `${ISCO08_I18N_NAMESPACE}.${HealthcareActorRoleCodes.Paramedic}`,
|
|
146
|
+
titleEn: 'Paramedic',
|
|
147
|
+
}),
|
|
148
|
+
],
|
|
149
|
+
[
|
|
150
|
+
HealthcareActorRoleCodes.Veterinarian,
|
|
151
|
+
Object.freeze({
|
|
152
|
+
family: HealthcareRoleFamilies.ProfessionalOccupationIsco08,
|
|
153
|
+
codingSystem: ISCO08_CODING_SYSTEM,
|
|
154
|
+
code: HealthcareActorRoleCodes.Veterinarian,
|
|
155
|
+
claim: HealthcareActorRoles.Veterinarian,
|
|
156
|
+
i18nKey: `${ISCO08_I18N_NAMESPACE}.${HealthcareActorRoleCodes.Veterinarian}`,
|
|
157
|
+
titleEn: 'Veterinarian',
|
|
158
|
+
}),
|
|
159
|
+
],
|
|
160
|
+
];
|
|
161
|
+
return Object.freeze(Object.fromEntries(entries));
|
|
162
|
+
}
|
|
163
|
+
function buildPersonalRelationshipRoles() {
|
|
164
|
+
return Object.freeze(Object.fromEntries(HL7_PERSONAL_RELATIONSHIP_ROLES.map((item) => [
|
|
165
|
+
item.code,
|
|
166
|
+
Object.freeze({
|
|
167
|
+
family: HealthcareRoleFamilies.PersonalRelationshipHl7,
|
|
168
|
+
codingSystem: HL7_CODING_SYSTEM_PERSONAL_RELATIONSHIP,
|
|
169
|
+
code: item.code,
|
|
170
|
+
claim: `v3-PersonalRelationshipRoleType|${item.code}`,
|
|
171
|
+
i18nKey: `org.hl7.v3.personalRelationship.${item.code}`,
|
|
172
|
+
titleEn: item.display,
|
|
173
|
+
definition: item.definition,
|
|
174
|
+
}),
|
|
175
|
+
])));
|
|
176
|
+
}
|
|
177
|
+
function buildLegalRepresentativeRoles() {
|
|
178
|
+
return Object.freeze(Object.fromEntries(HL7_V3_ROLE_CODE_LEGAL_REPRESENTATIVE.map((item) => [
|
|
179
|
+
item.code,
|
|
180
|
+
Object.freeze({
|
|
181
|
+
family: HealthcareRoleFamilies.LegalRepresentativeHl7,
|
|
182
|
+
codingSystem: HL7_CODING_SYSTEM_V3_ROLE_CODE,
|
|
183
|
+
code: item.code,
|
|
184
|
+
claim: `v3-RoleCode|${item.code}`,
|
|
185
|
+
i18nKey: `org.hl7.v3.roleCode.${item.code}`,
|
|
186
|
+
titleEn: item.display,
|
|
187
|
+
definition: item.definition,
|
|
188
|
+
}),
|
|
189
|
+
])));
|
|
190
|
+
}
|
|
191
|
+
export const HealthcareRolesByFamily = Object.freeze({
|
|
192
|
+
[HealthcareRoleFamilies.ProfessionalOccupationIsco08]: buildProfessionalIscoRoles(),
|
|
193
|
+
[HealthcareRoleFamilies.PersonalRelationshipHl7]: buildPersonalRelationshipRoles(),
|
|
194
|
+
[HealthcareRoleFamilies.LegalRepresentativeHl7]: buildLegalRepresentativeRoles(),
|
|
195
|
+
});
|
|
196
|
+
export const HealthcareAllRolesByClaim = Object.freeze(Object.fromEntries(Object.values(HealthcareRolesByFamily)
|
|
197
|
+
.flatMap((catalog) => Object.values(catalog))
|
|
198
|
+
.map((descriptor) => [descriptor.claim, descriptor])));
|
|
199
|
+
function pickRoleCatalogByCodes(catalog, codes) {
|
|
200
|
+
return Object.freeze(Object.fromEntries(codes
|
|
201
|
+
.map((code) => [code, catalog[code]])
|
|
202
|
+
.filter((entry) => Boolean(entry[1]))));
|
|
203
|
+
}
|
|
204
|
+
export const HealthcareProfessionalRoleCodesBySector = Object.freeze({
|
|
205
|
+
[DataspaceSectors.HealthCare]: Object.freeze([
|
|
206
|
+
HealthcareActorRoleCodes.Controller,
|
|
207
|
+
HealthcareActorRoleCodes.Physician,
|
|
208
|
+
HealthcareActorRoleCodes.NursingProfessional,
|
|
209
|
+
HealthcareActorRoleCodes.Paramedic,
|
|
210
|
+
]),
|
|
211
|
+
[DataspaceSectors.HealthResearch]: Object.freeze([
|
|
212
|
+
HealthcareActorRoleCodes.Controller,
|
|
213
|
+
HealthcareActorRoleCodes.Physician,
|
|
214
|
+
]),
|
|
215
|
+
[DataspaceSectors.HealthTech]: Object.freeze([HealthcareActorRoleCodes.Controller]),
|
|
216
|
+
[DataspaceSectors.HealthInsurance]: Object.freeze([HealthcareActorRoleCodes.Controller]),
|
|
217
|
+
[DataspaceSectors.AnimalCare]: Object.freeze([
|
|
218
|
+
HealthcareActorRoleCodes.Controller,
|
|
219
|
+
HealthcareActorRoleCodes.Veterinarian,
|
|
220
|
+
]),
|
|
221
|
+
[DataspaceSectors.AnimalResearch]: Object.freeze([
|
|
222
|
+
HealthcareActorRoleCodes.Controller,
|
|
223
|
+
HealthcareActorRoleCodes.Veterinarian,
|
|
224
|
+
]),
|
|
225
|
+
[DataspaceSectors.AnimalInsurance]: Object.freeze([HealthcareActorRoleCodes.Controller]),
|
|
226
|
+
[DataspaceSectors.AnimalTech]: Object.freeze([HealthcareActorRoleCodes.Controller]),
|
|
227
|
+
[DataspaceSectors.OneHealthResearch]: Object.freeze([
|
|
228
|
+
HealthcareActorRoleCodes.Controller,
|
|
229
|
+
HealthcareActorRoleCodes.Physician,
|
|
230
|
+
HealthcareActorRoleCodes.Veterinarian,
|
|
231
|
+
]),
|
|
232
|
+
[DataspaceSectors.OneHealthTech]: Object.freeze([HealthcareActorRoleCodes.Controller]),
|
|
233
|
+
});
|
|
234
|
+
export const HealthcareProfessionalRolesBySector = Object.freeze({
|
|
235
|
+
[DataspaceSectors.HealthCare]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.HealthCare]),
|
|
236
|
+
[DataspaceSectors.HealthResearch]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.HealthResearch]),
|
|
237
|
+
[DataspaceSectors.HealthTech]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.HealthTech]),
|
|
238
|
+
[DataspaceSectors.HealthInsurance]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.HealthInsurance]),
|
|
239
|
+
[DataspaceSectors.AnimalCare]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.AnimalCare]),
|
|
240
|
+
[DataspaceSectors.AnimalResearch]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.AnimalResearch]),
|
|
241
|
+
[DataspaceSectors.AnimalInsurance]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.AnimalInsurance]),
|
|
242
|
+
[DataspaceSectors.AnimalTech]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.AnimalTech]),
|
|
243
|
+
[DataspaceSectors.OneHealthResearch]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.OneHealthResearch]),
|
|
244
|
+
[DataspaceSectors.OneHealthTech]: pickRoleCatalogByCodes(HealthcareRolesByFamily[HealthcareRoleFamilies.ProfessionalOccupationIsco08], HealthcareProfessionalRoleCodesBySector[DataspaceSectors.OneHealthTech]),
|
|
245
|
+
});
|
|
246
|
+
export const HealthcareRolesBySector = Object.freeze(Object.fromEntries(Object.values(DataspaceSectors).map((sector) => [
|
|
247
|
+
sector,
|
|
248
|
+
Object.freeze({
|
|
249
|
+
[HealthcareRoleFamilies.ProfessionalOccupationIsco08]: HealthcareProfessionalRolesBySector[sector] || {},
|
|
250
|
+
[HealthcareRoleFamilies.PersonalRelationshipHl7]: HealthcareRolesByFamily[HealthcareRoleFamilies.PersonalRelationshipHl7],
|
|
251
|
+
[HealthcareRoleFamilies.LegalRepresentativeHl7]: HealthcareRolesByFamily[HealthcareRoleFamilies.LegalRepresentativeHl7],
|
|
252
|
+
}),
|
|
253
|
+
])));
|
|
254
|
+
export function getHealthcareRolesByFamily(family) {
|
|
255
|
+
return HealthcareRolesByFamily[family];
|
|
256
|
+
}
|
|
257
|
+
export function getHealthcareRoleByClaim(claim) {
|
|
258
|
+
return HealthcareAllRolesByClaim[String(claim || '').trim()];
|
|
259
|
+
}
|
|
260
|
+
export function getHealthcareProfessionalRolesBySector(sector) {
|
|
261
|
+
return HealthcareProfessionalRolesBySector[sector] || {};
|
|
262
|
+
}
|
|
263
|
+
export function getHealthcareRolesBySector(sector, family) {
|
|
264
|
+
return HealthcareRolesBySector[sector]?.[family] || {};
|
|
265
|
+
}
|
|
266
|
+
export const HealthcareConsentActions = Object.freeze({
|
|
267
|
+
PatientSummaryDocument: HealthcareBasicSections.PatientSummaryDocument.claim,
|
|
268
|
+
AllergiesAndIntolerances: HealthcareBasicSections.AllergiesAndIntolerances.claim,
|
|
269
|
+
HistoryOfMedicationUse: HealthcareBasicSections.HistoryOfMedicationUse.claim,
|
|
270
|
+
ProblemList: HealthcareBasicSections.ProblemList.claim,
|
|
271
|
+
Results: HealthcareBasicSections.Results.claim,
|
|
272
|
+
Procedures: HealthcareBasicSections.Procedures.claim,
|
|
273
|
+
Immunizations: HealthcareBasicSections.Immunizations.claim,
|
|
274
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HL7 role constants shared across GDC projects.
|
|
3
|
+
*
|
|
4
|
+
* Two distinct value sets are provided:
|
|
5
|
+
*
|
|
6
|
+
* 1. v3-PersonalRelationshipRoleType
|
|
7
|
+
* "Who are you in relation to the subject?" (family / social relationship)
|
|
8
|
+
* Source: http://terminology.hl7.org/ValueSet/v3-PersonalRelationshipRoleType
|
|
9
|
+
*
|
|
10
|
+
* 2. v3-RoleCode — legal / functional representative subset
|
|
11
|
+
* "What legal role do you exercise over the subject?" (guardian, attorney…)
|
|
12
|
+
* Source: http://terminology.hl7.org/ValueSet/v3-RoleCode
|
|
13
|
+
* Used as default for non-human subjects (e.g. animal-care sector).
|
|
14
|
+
* Default for animal-care: RESPRSN (Responsible party).
|
|
15
|
+
*/
|
|
16
|
+
export type Hl7RoleEntry = {
|
|
17
|
+
code: string;
|
|
18
|
+
display: string;
|
|
19
|
+
definition: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const HL7_CODING_SYSTEM_PERSONAL_RELATIONSHIP = "http://terminology.hl7.org/CodeSystem/v3-PersonalRelationshipRoleType";
|
|
22
|
+
/** Canonical OID alias used in GDC claims (org.hl7.v3.RoleCode covers both sets). */
|
|
23
|
+
export declare const HL7_CLAIMS_CODING_SYSTEM = "org.hl7.v3.RoleCode";
|
|
24
|
+
/**
|
|
25
|
+
* Full ordered list of HL7 v3-PersonalRelationshipRoleType entries.
|
|
26
|
+
* Suitable for relationship pickers in health-sector family registration.
|
|
27
|
+
* Default role: `ONESELF` (patient represents themselves).
|
|
28
|
+
*/
|
|
29
|
+
export declare const HL7_PERSONAL_RELATIONSHIP_ROLES: Hl7RoleEntry[];
|
|
30
|
+
export declare const HL7_CODING_SYSTEM_V3_ROLE_CODE = "http://terminology.hl7.org/CodeSystem/v3-RoleCode";
|
|
31
|
+
/**
|
|
32
|
+
* Legal representative / guardian roles from HL7 v3-RoleCode.
|
|
33
|
+
*
|
|
34
|
+
* Used when the owner of an individual record exercises a legal function
|
|
35
|
+
* rather than a personal relationship (e.g. animal-care sector, minors
|
|
36
|
+
* with court-appointed guardian, power of attorney).
|
|
37
|
+
*
|
|
38
|
+
* Default for animal-care sector: `RESPRSN` (Responsible party).
|
|
39
|
+
*/
|
|
40
|
+
export declare const HL7_V3_ROLE_CODE_LEGAL_REPRESENTATIVE: Hl7RoleEntry[];
|
|
41
|
+
/** Default role code for animal-care and non-human subjects. */
|
|
42
|
+
export declare const HL7_DEFAULT_ROLE_ANIMAL_CARE = "RESPRSN";
|
|
43
|
+
/** Default role code for health sector (patient self-represents). */
|
|
44
|
+
export declare const HL7_DEFAULT_ROLE_HEALTH = "ONESELF";
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HL7 role constants shared across GDC projects.
|
|
3
|
+
*
|
|
4
|
+
* Two distinct value sets are provided:
|
|
5
|
+
*
|
|
6
|
+
* 1. v3-PersonalRelationshipRoleType
|
|
7
|
+
* "Who are you in relation to the subject?" (family / social relationship)
|
|
8
|
+
* Source: http://terminology.hl7.org/ValueSet/v3-PersonalRelationshipRoleType
|
|
9
|
+
*
|
|
10
|
+
* 2. v3-RoleCode — legal / functional representative subset
|
|
11
|
+
* "What legal role do you exercise over the subject?" (guardian, attorney…)
|
|
12
|
+
* Source: http://terminology.hl7.org/ValueSet/v3-RoleCode
|
|
13
|
+
* Used as default for non-human subjects (e.g. animal-care sector).
|
|
14
|
+
* Default for animal-care: RESPRSN (Responsible party).
|
|
15
|
+
*/
|
|
16
|
+
// ---------------------------------------------------------------------------
|
|
17
|
+
// 1. v3-PersonalRelationshipRoleType
|
|
18
|
+
// ---------------------------------------------------------------------------
|
|
19
|
+
export const HL7_CODING_SYSTEM_PERSONAL_RELATIONSHIP = 'http://terminology.hl7.org/CodeSystem/v3-PersonalRelationshipRoleType';
|
|
20
|
+
/** Canonical OID alias used in GDC claims (org.hl7.v3.RoleCode covers both sets). */
|
|
21
|
+
export const HL7_CLAIMS_CODING_SYSTEM = 'org.hl7.v3.RoleCode';
|
|
22
|
+
const PERSONAL_RELATIONSHIP_LIST = [
|
|
23
|
+
{ code: 'ONESELF', display: 'self', definition: 'The relationship that a person has with himself or herself.' },
|
|
24
|
+
{ code: 'CHILD', display: 'child', definition: 'The player of the role is a child of the scoping entity.' },
|
|
25
|
+
{ code: 'CHLDADOPT', display: 'adopted child', definition: 'The player of the role is a child taken into a family through legal means and raised by the scoping person as his or her own child.' },
|
|
26
|
+
{ code: 'DAUADOPT', display: 'adopted daughter', definition: 'The player of the role is a female child taken into a family through legal means and raised by the scoping person as his or her own child.' },
|
|
27
|
+
{ code: 'SONADOPT', display: 'adopted son', definition: 'The player of the role is a male child taken into a family through legal means and raised by the scoping person as his or her own child.' },
|
|
28
|
+
{ code: 'CHLDFOST', display: 'foster child', definition: 'The player of the role is a child receiving parental care and nurture from the scoping person but not related through legal or blood ties.' },
|
|
29
|
+
{ code: 'DAUFOST', display: 'foster daughter', definition: 'The player of the role is a female child receiving parental care and nurture from the scoping person but not related through legal or blood ties.' },
|
|
30
|
+
{ code: 'SONFOST', display: 'foster son', definition: 'The player of the role is a male child receiving parental care and nurture from the scoping person but not related through legal or blood ties.' },
|
|
31
|
+
{ code: 'DAUC', display: 'daughter', definition: 'The player of the role is a female child (of any type) of the scoping entity.' },
|
|
32
|
+
{ code: 'DAU', display: 'natural daughter', definition: 'The player of the role is a female offspring of the scoping entity.' },
|
|
33
|
+
{ code: 'STPDAU', display: 'stepdaughter', definition: "The player of the role is a daughter of the scoping person's spouse by a previous union." },
|
|
34
|
+
{ code: 'NCHILD', display: 'natural child', definition: 'The player of the role is an offspring of the scoping entity as determined by birth.' },
|
|
35
|
+
{ code: 'SON', display: 'natural son', definition: 'The player of the role is a male offspring of the scoping entity.' },
|
|
36
|
+
{ code: 'SONC', display: 'son', definition: 'The player of the role is a male child (of any type) of the scoping entity.' },
|
|
37
|
+
{ code: 'STPSON', display: 'stepson', definition: "The player of the role is a son of the scoping person's spouse by a previous union." },
|
|
38
|
+
{ code: 'STPCHLD', display: 'step child', definition: "The player of the role is a child of the scoping person's spouse by a previous union." },
|
|
39
|
+
{ code: 'AUNT', display: 'aunt', definition: "The player of the role is a sister of the scoping person's mother or father." },
|
|
40
|
+
{ code: 'MAUNT', display: 'maternal aunt', definition: "The player of the role is a biological sister of the scoping person's biological mother." },
|
|
41
|
+
{ code: 'PAUNT', display: 'paternal aunt', definition: "The player of the role is a biological sister of the scoping person's biological father." },
|
|
42
|
+
{ code: 'COUSN', display: 'cousin', definition: 'The player of the role is a relative of the scoping person descended from a common ancestor, such as a grandparent, by two or more steps in a diverging line.' },
|
|
43
|
+
{ code: 'MCOUSN', display: 'maternal cousin', definition: "The player of the role is a biological relative of the scoping person descended from a common ancestor on the player's mother's side." },
|
|
44
|
+
{ code: 'PCOUSN', display: 'paternal cousin', definition: "The player of the role is a biological relative of the scoping person descended from a common ancestor on the player's father's side." },
|
|
45
|
+
{ code: 'GGRPRN', display: 'great grandparent', definition: "The player of the role is a parent of the scoping person's grandparent." },
|
|
46
|
+
{ code: 'GGRFTH', display: 'great grandfather', definition: "The player of the role is the father of the scoping person's grandparent." },
|
|
47
|
+
{ code: 'MGGRFTH', display: 'maternal great-grandfather', definition: "The player of the role is the biological father of the scoping person's biological mother's parent." },
|
|
48
|
+
{ code: 'PGGRFTH', display: 'paternal great-grandfather', definition: "The player of the role is the biological father of the scoping person's biological father's parent." },
|
|
49
|
+
{ code: 'GGRMTH', display: 'great grandmother', definition: "The player of the role is the mother of the scoping person's grandparent." },
|
|
50
|
+
{ code: 'MGGRMTH', display: 'maternal great-grandmother', definition: "The player of the role is the biological mother of the scoping person's biological mother's parent." },
|
|
51
|
+
{ code: 'PGGRMTH', display: 'paternal great-grandmother', definition: "The player of the role is the biological mother of the scoping person's biological father's parent." },
|
|
52
|
+
{ code: 'MGGRPRN', display: 'maternal great-grandparent', definition: "The player of the role is a biological parent of the scoping person's biological mother's parent." },
|
|
53
|
+
{ code: 'PGGRPRN', display: 'paternal great-grandparent', definition: "The player of the role is a biological parent of the scoping person's biological father's parent." },
|
|
54
|
+
{ code: 'GRNDCHILD', display: 'grandchild', definition: "The player of the role is a child of the scoping person's son or daughter." },
|
|
55
|
+
{ code: 'GRNDDAU', display: 'granddaughter', definition: "The player of the role is a daughter of the scoping person's son or daughter." },
|
|
56
|
+
{ code: 'GRNDSON', display: 'grandson', definition: "The player of the role is a son of the scoping person's son or daughter." },
|
|
57
|
+
{ code: 'GRPRN', display: 'grandparent', definition: "The player of the role is a parent of the scoping person's mother or father." },
|
|
58
|
+
{ code: 'GRFTH', display: 'grandfather', definition: "The player of the role is the father of the scoping person's mother or father." },
|
|
59
|
+
{ code: 'MGRFTH', display: 'maternal grandfather', definition: "The player of the role is the biological father of the scoping person's biological mother." },
|
|
60
|
+
{ code: 'PGRFTH', display: 'paternal grandfather', definition: "The player of the role is the biological father of the scoping person's biological father." },
|
|
61
|
+
{ code: 'GRMTH', display: 'grandmother', definition: "The player of the role is the mother of the scoping person's mother or father." },
|
|
62
|
+
{ code: 'MGRMTH', display: 'maternal grandmother', definition: "The player of the role is the biological mother of the scoping person's biological mother." },
|
|
63
|
+
{ code: 'PGRMTH', display: 'paternal grandmother', definition: "The player of the role is the biological mother of the scoping person's biological father." },
|
|
64
|
+
{ code: 'MGRPRN', display: 'maternal grandparent', definition: "The player of the role is the biological parent of the scoping person's biological mother." },
|
|
65
|
+
{ code: 'PGRPRN', display: 'paternal grandparent', definition: "The player of the role is the biological parent of the scoping person's biological father." },
|
|
66
|
+
{ code: 'CHLDINLAW', display: 'child-in-law', definition: "The player of the role is the spouse of the scoping person's child." },
|
|
67
|
+
{ code: 'DAUINLAW', display: 'daughter in-law', definition: "The player of the role is the wife of the scoping person's son." },
|
|
68
|
+
{ code: 'SONINLAW', display: 'son in-law', definition: "The player of the role is the husband of the scoping person's daughter." },
|
|
69
|
+
{ code: 'PRNINLAW', display: 'parent in-law', definition: "The player of the role is the parent of the scoping person's husband or wife." },
|
|
70
|
+
{ code: 'FTHINLAW', display: 'father-in-law', definition: "The player of the role is the father of the scoping person's husband or wife." },
|
|
71
|
+
{ code: 'MTHINLAW', display: 'mother-in-law', definition: "The player of the role is the mother of the scoping person's husband or wife." },
|
|
72
|
+
{ code: 'SIBINLAW', display: 'sibling in-law', definition: "The player of the role is a sibling of the scoping person's spouse, or the spouse of the scoping person's sibling, or the spouse of a sibling of the scoping person's spouse." },
|
|
73
|
+
{ code: 'BROINLAW', display: 'brother-in-law', definition: "The player of the role is a brother of the scoping person's spouse, or the husband of the scoping person's sister, or the husband of a sister of the scoping person's spouse." },
|
|
74
|
+
{ code: 'SISINLAW', display: 'sister-in-law', definition: "The player of the role is a sister of the scoping person's spouse, or the wife of the scoping person's brother, or the wife of a brother of the scoping person's spouse." },
|
|
75
|
+
{ code: 'NIENEPH', display: 'niece/nephew', definition: "The player of the role is a child of the scoping person's brother or sister or of the brother or sister of the scoping person's spouse." },
|
|
76
|
+
{ code: 'NEPHEW', display: 'nephew', definition: "The player of the role is a son of the scoping person's brother or sister or of the brother or sister of the scoping person's spouse." },
|
|
77
|
+
{ code: 'NIECE', display: 'niece', definition: "The player of the role is a daughter of the scoping person's brother or sister or of the brother or sister of the scoping person's spouse." },
|
|
78
|
+
{ code: 'UNCLE', display: 'uncle', definition: "The player of the role is a brother of the scoping person's mother or father." },
|
|
79
|
+
{ code: 'MUNCLE', display: 'maternal uncle', definition: "The player of the role is a biological brother of the scoping person's biological mother." },
|
|
80
|
+
{ code: 'PUNCLE', display: 'paternal uncle', definition: "The player of the role is a biological brother of the scoping person's biological father." },
|
|
81
|
+
{ code: 'PRN', display: 'parent', definition: 'The player of the role is one who begets, gives birth to, or nurtures and raises the scoping entity.' },
|
|
82
|
+
{ code: 'ADOPTP', display: 'adoptive parent', definition: 'The player of the role has taken the scoper into their family through legal means and raises them as their own child.' },
|
|
83
|
+
{ code: 'ADOPTF', display: 'adoptive father', definition: 'The player of the role is a male who has taken the scoper into their family through legal means and raises them as his own child.' },
|
|
84
|
+
{ code: 'ADOPTM', display: 'adoptive mother', definition: 'The player of the role is a female who has taken the scoper into their family through legal means and raises them as her own child.' },
|
|
85
|
+
{ code: 'FTH', display: 'father', definition: 'The player of the role is a male who begets or raises or nurtures the scoping entity.' },
|
|
86
|
+
{ code: 'FTHFOST', display: 'foster father', definition: 'The player of the role is a male state-certified caregiver responsible for the child placed in their care.' },
|
|
87
|
+
{ code: 'NFTH', display: 'natural father', definition: 'The player of the role is a male who begets the scoping entity.' },
|
|
88
|
+
{ code: 'NFTHF', display: 'natural father of fetus', definition: 'Indicates the biologic male parent of a fetus.' },
|
|
89
|
+
{ code: 'STPFTH', display: 'stepfather', definition: "The player of the role is the husband of the scoping person's mother and not the scoping person's natural father." },
|
|
90
|
+
{ code: 'MTH', display: 'mother', definition: 'The player of the role is a female who conceives, gives birth to, or raises and nurtures the scoping entity.' },
|
|
91
|
+
{ code: 'GESTM', display: 'gestational mother', definition: 'The player is a female whose womb carries the fetus of the scoper.' },
|
|
92
|
+
{ code: 'MTHFOST', display: 'foster mother', definition: 'The player of the role is a female state-certified caregiver responsible for the child placed in their care.' },
|
|
93
|
+
{ code: 'NMTH', display: 'natural mother', definition: 'The player of the role is a female who conceives or gives birth to the scoping entity.' },
|
|
94
|
+
{ code: 'NMTHF', display: 'natural mother of fetus', definition: 'The player is the biologic female parent of the scoping fetus.' },
|
|
95
|
+
{ code: 'STPMTH', display: 'stepmother', definition: "The player of the role is the wife of the scoping person's father and not the scoping person's natural mother." },
|
|
96
|
+
{ code: 'NPRN', display: 'natural parent', definition: 'The player of the role is a natural parent.' },
|
|
97
|
+
{ code: 'PRNFOST', display: 'foster parent', definition: 'The player of the role is a state-certified caregiver responsible for the child placed in their care.' },
|
|
98
|
+
{ code: 'STPPRN', display: 'step parent', definition: "The player of the role is the spouse of the scoping person's parent and not the scoping person's natural parent." },
|
|
99
|
+
{ code: 'SIB', display: 'sibling', definition: 'The player of the role shares one or both parents in common with the scoping entity.' },
|
|
100
|
+
{ code: 'BRO', display: 'brother', definition: 'The player of the role is a male sharing one or both parents in common with the scoping entity.' },
|
|
101
|
+
{ code: 'HBRO', display: 'half-brother', definition: 'The player of the role is a male related to the scoping entity by sharing only one biological parent.' },
|
|
102
|
+
{ code: 'NBRO', display: 'natural brother', definition: 'The player of the role is a male having the same biological parents as the scoping entity.' },
|
|
103
|
+
{ code: 'TWINBRO', display: 'twin brother', definition: 'The scoper was carried in the same womb as the male player and shares common biological parents.' },
|
|
104
|
+
{ code: 'FTWINBRO', display: 'fraternal twin brother', definition: 'The scoper was carried in the same womb as the male player and shares common biological parents but is the product of distinct egg/sperm pairs.' },
|
|
105
|
+
{ code: 'ITWINBRO', display: 'identical twin brother', definition: 'The male scoper is an offspring of the same egg-sperm pair as the male player.' },
|
|
106
|
+
{ code: 'STPBRO', display: 'stepbrother', definition: "The player of the role is a son of the scoping person's stepparent." },
|
|
107
|
+
{ code: 'HSIB', display: 'half-sibling', definition: 'The player of the role is related to the scoping entity by sharing only one biological parent.' },
|
|
108
|
+
{ code: 'HSIS', display: 'half-sister', definition: 'The player of the role is a female related to the scoping entity by sharing only one biological parent.' },
|
|
109
|
+
{ code: 'NSIB', display: 'natural sibling', definition: 'The player of the role has both biological parents in common with the scoping entity.' },
|
|
110
|
+
{ code: 'NSIS', display: 'natural sister', definition: 'The player of the role is a female having the same biological parents as the scoping entity.' },
|
|
111
|
+
{ code: 'TWINSIS', display: 'twin sister', definition: 'The scoper was carried in the same womb as the female player and shares common biological parents.' },
|
|
112
|
+
{ code: 'FTWINSIS', display: 'fraternal twin sister', definition: 'The scoper was carried in the same womb as the female player and shares common biological parents but is the product of distinct egg/sperm pairs.' },
|
|
113
|
+
{ code: 'ITWINSIS', display: 'identical twin sister', definition: 'The female scoper is an offspring of the same egg-sperm pair as the female player.' },
|
|
114
|
+
{ code: 'TWIN', display: 'twin', definition: 'The scoper and player were carried in the same womb and shared common biological parents.' },
|
|
115
|
+
{ code: 'FTWIN', display: 'fraternal twin', definition: 'The scoper and player were carried in the same womb and share common biological parents but are the product of distinct egg/sperm pairs.' },
|
|
116
|
+
{ code: 'ITWIN', display: 'identical twin', definition: 'The scoper and player are offspring of the same egg-sperm pair.' },
|
|
117
|
+
{ code: 'SIS', display: 'sister', definition: 'The player of the role is a female sharing one or both parents in common with the scoping entity.' },
|
|
118
|
+
{ code: 'STPSIS', display: 'stepsister', definition: "The player of the role is a daughter of the scoping person's stepparent." },
|
|
119
|
+
{ code: 'STPSIB', display: 'step sibling', definition: "The player of the role is a child of the scoping person's stepparent." },
|
|
120
|
+
{ code: 'SIGOTHR', display: 'significant other', definition: "A person who is important to one's well being; especially a spouse or one in a similar relationship." },
|
|
121
|
+
{ code: 'DOMPART', display: 'domestic partner', definition: "The player of the role cohabits with the scoping person but is not the scoping person's spouse." },
|
|
122
|
+
{ code: 'FMRSPS', display: 'former spouse', definition: 'Player of the role was previously joined to the scoping person in marriage and this marriage is now dissolved and inactive.' },
|
|
123
|
+
{ code: 'SPS', display: 'spouse', definition: 'The player of the role is a marriage partner of the scoping person.' },
|
|
124
|
+
{ code: 'HUSB', display: 'husband', definition: 'The player of the role is a man joined to a woman in marriage.' },
|
|
125
|
+
{ code: 'WIFE', display: 'wife', definition: 'The player of the role is a woman joined to a man in marriage.' },
|
|
126
|
+
{ code: 'FRND', display: 'unrelated friend', definition: 'The player of the role is a person who is known, liked, and trusted by the scoping person.' },
|
|
127
|
+
{ code: 'NBOR', display: 'neighbor', definition: 'The player of the role lives near or next to the scoping person.' },
|
|
128
|
+
{ code: 'ROOM', display: 'roommate', definition: 'One who shares living quarters with the subject.' },
|
|
129
|
+
];
|
|
130
|
+
const PERSONAL_PREFERRED_ORDER = [
|
|
131
|
+
'ONESELF', 'SPS', 'HUSB', 'WIFE', 'SIGOTHR', 'DOMPART', 'FMRSPS', 'ROOM',
|
|
132
|
+
'CHILD', 'SON', 'DAU', 'SONC', 'DAUC', 'NCHILD',
|
|
133
|
+
'CHLDADOPT', 'SONADOPT', 'DAUADOPT', 'CHLDFOST', 'SONFOST', 'DAUFOST',
|
|
134
|
+
'STPCHLD', 'STPSON', 'STPDAU',
|
|
135
|
+
'PRN', 'FTH', 'MTH', 'NFTH', 'NMTH',
|
|
136
|
+
'ADOPTP', 'ADOPTF', 'ADOPTM', 'FTHFOST', 'MTHFOST', 'PRNFOST',
|
|
137
|
+
'STPFTH', 'STPMTH', 'STPPRN', 'NPRN',
|
|
138
|
+
'SIB', 'BRO', 'SIS', 'NBRO', 'NSIS', 'NSIB', 'HBRO', 'HSIS', 'HSIB',
|
|
139
|
+
'TWIN', 'TWINBRO', 'TWINSIS', 'FTWIN', 'FTWINBRO', 'FTWINSIS',
|
|
140
|
+
'ITWIN', 'ITWINBRO', 'ITWINSIS',
|
|
141
|
+
'GRPRN', 'GRFTH', 'GRMTH', 'MGRPRN', 'PGRPRN', 'MGRFTH', 'PGRFTH', 'MGRMTH', 'PGRMTH',
|
|
142
|
+
'GGRPRN', 'GGRFTH', 'GGRMTH', 'MGGRPRN', 'PGGRPRN', 'MGGRFTH', 'PGGRFTH', 'MGGRMTH', 'PGGRMTH',
|
|
143
|
+
'GRNDCHILD', 'GRNDSON', 'GRNDDAU',
|
|
144
|
+
'CHLDINLAW', 'SONINLAW', 'DAUINLAW', 'PRNINLAW', 'FTHINLAW', 'MTHINLAW',
|
|
145
|
+
'SIBINLAW', 'BROINLAW', 'SISINLAW',
|
|
146
|
+
'UNCLE', 'AUNT', 'MUNCLE', 'PAUNT',
|
|
147
|
+
'NIENEPH', 'NEPHEW', 'NIECE',
|
|
148
|
+
'COUSN', 'MCOUSN', 'PCOUSN',
|
|
149
|
+
'FRND', 'NBOR',
|
|
150
|
+
];
|
|
151
|
+
const _personalByCode = new Map(PERSONAL_RELATIONSHIP_LIST.map((r) => [r.code, r]));
|
|
152
|
+
const _personalPreferred = PERSONAL_PREFERRED_ORDER
|
|
153
|
+
.map((code) => _personalByCode.get(code))
|
|
154
|
+
.filter(Boolean);
|
|
155
|
+
const _personalRemaining = PERSONAL_RELATIONSHIP_LIST.filter((r) => !PERSONAL_PREFERRED_ORDER.includes(r.code));
|
|
156
|
+
/**
|
|
157
|
+
* Full ordered list of HL7 v3-PersonalRelationshipRoleType entries.
|
|
158
|
+
* Suitable for relationship pickers in health-sector family registration.
|
|
159
|
+
* Default role: `ONESELF` (patient represents themselves).
|
|
160
|
+
*/
|
|
161
|
+
export const HL7_PERSONAL_RELATIONSHIP_ROLES = [
|
|
162
|
+
..._personalPreferred,
|
|
163
|
+
..._personalRemaining,
|
|
164
|
+
];
|
|
165
|
+
// ---------------------------------------------------------------------------
|
|
166
|
+
// 2. v3-RoleCode — legal / functional representative subset
|
|
167
|
+
// ---------------------------------------------------------------------------
|
|
168
|
+
export const HL7_CODING_SYSTEM_V3_ROLE_CODE = 'http://terminology.hl7.org/CodeSystem/v3-RoleCode';
|
|
169
|
+
/**
|
|
170
|
+
* Legal representative / guardian roles from HL7 v3-RoleCode.
|
|
171
|
+
*
|
|
172
|
+
* Used when the owner of an individual record exercises a legal function
|
|
173
|
+
* rather than a personal relationship (e.g. animal-care sector, minors
|
|
174
|
+
* with court-appointed guardian, power of attorney).
|
|
175
|
+
*
|
|
176
|
+
* Default for animal-care sector: `RESPRSN` (Responsible party).
|
|
177
|
+
*/
|
|
178
|
+
export const HL7_V3_ROLE_CODE_LEGAL_REPRESENTATIVE = [
|
|
179
|
+
{
|
|
180
|
+
code: 'RESPRSN',
|
|
181
|
+
display: 'Responsible party',
|
|
182
|
+
definition: 'The role played by a party who has legal responsibility for another party.',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
code: 'GUARD',
|
|
186
|
+
display: 'Guardian',
|
|
187
|
+
definition: 'The role played by a person or institution legally empowered with responsibility for the care of a ward.',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
code: 'GUADLTM',
|
|
191
|
+
display: 'Guardian ad lidem',
|
|
192
|
+
definition: 'The role played by a person appointed by the court to represent the best interests of a child or incompetent in a legal proceeding.',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
code: 'POWATT',
|
|
196
|
+
display: 'Power of attorney',
|
|
197
|
+
definition: 'A relationship between two people in which one person acts on behalf of another in legal or financial matters.',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
code: 'DPOWATT',
|
|
201
|
+
display: 'Durable power of attorney',
|
|
202
|
+
definition: 'A relationship between two people in which one person acts on behalf of another even if the grantor becomes incapacitated.',
|
|
203
|
+
},
|
|
204
|
+
];
|
|
205
|
+
/** Default role code for animal-care and non-human subjects. */
|
|
206
|
+
export const HL7_DEFAULT_ROLE_ANIMAL_CARE = 'RESPRSN';
|
|
207
|
+
/** Default role code for health sector (patient self-represents). */
|
|
208
|
+
export const HL7_DEFAULT_ROLE_HEALTH = 'ONESELF';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './actor-session';
|
|
2
|
+
export * from './communication';
|
|
3
|
+
export * from './cryptography';
|
|
4
|
+
export * from './dataspace-discovery';
|
|
5
|
+
export * from './dataspace-protocol';
|
|
6
|
+
export * from './device';
|
|
7
|
+
export * from './did-services';
|
|
8
|
+
export * from './eu-countries';
|
|
9
|
+
export * from './fhir-code-systems';
|
|
10
|
+
export * from './fhir-resource-types';
|
|
11
|
+
export * from './fhir-versions';
|
|
12
|
+
export * from './schemaorg';
|
|
13
|
+
export * from './hl7-roles';
|
|
14
|
+
export * from './healthcare';
|
|
15
|
+
export * from './vital-signs';
|
|
16
|
+
export * from './network';
|
|
17
|
+
export * from './sectors';
|
|
18
|
+
export * from './smart';
|
|
19
|
+
export * from './service-capabilities';
|
|
20
|
+
export * from './urn';
|
|
21
|
+
export * from './verifiable-credentials';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './actor-session';
|
|
2
|
+
export * from './communication';
|
|
3
|
+
export * from './cryptography';
|
|
4
|
+
export * from './dataspace-discovery';
|
|
5
|
+
export * from './dataspace-protocol';
|
|
6
|
+
export * from './device';
|
|
7
|
+
export * from './did-services';
|
|
8
|
+
export * from './eu-countries';
|
|
9
|
+
export * from './fhir-code-systems';
|
|
10
|
+
export * from './fhir-resource-types';
|
|
11
|
+
export * from './fhir-versions';
|
|
12
|
+
export * from './schemaorg';
|
|
13
|
+
export * from './hl7-roles';
|
|
14
|
+
export * from './healthcare';
|
|
15
|
+
export * from './vital-signs';
|
|
16
|
+
export * from './network';
|
|
17
|
+
export * from './sectors';
|
|
18
|
+
export * from './smart';
|
|
19
|
+
export * from './service-capabilities';
|
|
20
|
+
export * from './urn';
|
|
21
|
+
export * from './verifiable-credentials';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical network/environment labels used to identify host networks during
|
|
3
|
+
* discovery/bootstrap flows.
|
|
4
|
+
*
|
|
5
|
+
* These labels do not replace the business route `sector`. They describe the
|
|
6
|
+
* host environment itself.
|
|
7
|
+
*/
|
|
8
|
+
export declare const HostNetworkTypes: Readonly<{
|
|
9
|
+
readonly Test: "test";
|
|
10
|
+
readonly TestNetwork: "test-network";
|
|
11
|
+
readonly Network: "network";
|
|
12
|
+
}>;
|
|
13
|
+
export type HostNetworkType = typeof HostNetworkTypes[keyof typeof HostNetworkTypes];
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `HostNetworkTypes`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const NodeOperatorNetworkTypes: Readonly<{
|
|
18
|
+
readonly Test: "test";
|
|
19
|
+
readonly TestNetwork: "test-network";
|
|
20
|
+
readonly Network: "network";
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `HostNetworkType`.
|
|
24
|
+
*/
|
|
25
|
+
export type NodeOperatorNetworkType = HostNetworkType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2025 Antifraud Services Inc. under the Apache License, Version 2.0.
|
|
2
|
+
/**
|
|
3
|
+
* Canonical network/environment labels used to identify host networks during
|
|
4
|
+
* discovery/bootstrap flows.
|
|
5
|
+
*
|
|
6
|
+
* These labels do not replace the business route `sector`. They describe the
|
|
7
|
+
* host environment itself.
|
|
8
|
+
*/
|
|
9
|
+
export const HostNetworkTypes = Object.freeze({
|
|
10
|
+
Test: 'test',
|
|
11
|
+
TestNetwork: 'test-network',
|
|
12
|
+
Network: 'network',
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `HostNetworkTypes`.
|
|
16
|
+
*/
|
|
17
|
+
export const NodeOperatorNetworkTypes = HostNetworkTypes;
|