@icanbwell/bwell-sdk-ts 1.54.0 → 1.55.0
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 +19 -3
- package/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/api-provider-factory.d.ts +1 -1
- package/dist/api/api-provider-factory.js +2 -1
- package/dist/api/base/activity/activity-manager.d.ts +18 -25
- package/dist/api/base/activity/get-tasks-request.d.ts +29 -49
- package/dist/api/base/activity/get-tasks-request.js +42 -15
- package/dist/api/base/activity/index.d.ts +2 -4
- package/dist/api/base/activity/index.js +0 -1
- package/dist/api/base/api-provider.d.ts +12 -14
- package/dist/api/base/connection/connection-manager.d.ts +68 -51
- package/dist/api/base/connection/connection-manager.js +3 -0
- package/dist/api/base/connection/connection-request.d.ts +15 -1
- package/dist/api/base/connection/connection-request.js +8 -0
- package/dist/api/base/connection/index.d.ts +1 -1
- package/dist/api/base/device/constants.d.ts +3 -0
- package/dist/api/base/device/constants.js +3 -0
- package/dist/api/base/device/device-manager.d.ts +34 -12
- package/dist/api/base/device/device-manager.js +1 -5
- package/dist/api/base/device/device-request.d.ts +35 -42
- package/dist/api/base/device/device-request.js +30 -42
- package/dist/api/base/device/index.d.ts +2 -2
- package/dist/api/base/device/index.js +2 -2
- package/dist/api/base/financial/coverage-request.d.ts +5 -6
- package/dist/api/base/financial/coverage-request.js +7 -7
- package/dist/api/base/financial/{explanation-of-benefit.d.ts → explanation-of-benefit-request.d.ts} +15 -9
- package/dist/api/base/financial/{explanation-of-benefit.js → explanation-of-benefit-request.js} +8 -18
- package/dist/api/base/financial/financial-manager.d.ts +46 -14
- package/dist/api/base/financial/index.d.ts +3 -2
- package/dist/api/base/financial/index.js +2 -2
- package/dist/api/base/health-data/health-data-request.d.ts +116 -8
- package/dist/api/base/health-data/health-data-request.js +83 -2
- package/dist/api/base/health-data/health-data-response-factory.d.ts +27 -0
- package/dist/api/base/health-data/health-manager.d.ts +293 -243
- package/dist/api/base/health-data/index.d.ts +2 -3
- package/dist/api/base/health-data/index.js +0 -2
- package/dist/api/base/health-data/lab-knowledge-request.d.ts +9 -0
- package/dist/api/base/health-data/lab-knowledge-request.js +3 -0
- package/dist/api/base/health-data/medication-knowledge-request.d.ts +9 -0
- package/dist/api/base/health-data/medication-knowledge-request.js +3 -0
- package/dist/api/base/health-space/appointments-request.d.ts +9 -0
- package/dist/api/base/health-space/appointments-request.js +3 -0
- package/dist/api/base/health-space/cancel-appointment-request.d.ts +8 -1
- package/dist/api/base/health-space/cancel-appointment-request.js +4 -0
- package/dist/api/base/health-space/cancellation-reasons-request.d.ts +28 -0
- package/dist/api/base/health-space/{cancelationReasons-request.js → cancellation-reasons-request.js} +10 -4
- package/dist/api/base/health-space/health-space-manager.d.ts +29 -116
- package/dist/api/base/health-space/index.d.ts +2 -7
- package/dist/api/base/health-space/index.js +1 -6
- package/dist/api/base/identity/identity-manager.d.ts +98 -11
- package/dist/api/base/index.d.ts +1 -3
- package/dist/api/base/index.js +2 -3
- package/dist/api/base/questionnaire/index.d.ts +1 -4
- package/dist/api/base/questionnaire/index.js +0 -3
- package/dist/api/base/questionnaire/next-question-request.d.ts +8 -2
- package/dist/api/base/questionnaire/next-question-request.js +4 -1
- package/dist/api/base/questionnaire/questionnaire-manager.d.ts +24 -42
- package/dist/api/base/requests/field-sort-order.d.ts +11 -0
- package/dist/api/base/requests/index.d.ts +2 -0
- package/dist/api/base/requests/search-date.d.ts +12 -0
- package/dist/api/base/requests/search-reference.d.ts +9 -1
- package/dist/api/base/requests/search-string.d.ts +6 -0
- package/dist/api/base/requests/search-token.d.ts +18 -0
- package/dist/api/base/requests/search-token.js +17 -17
- package/dist/api/base/search/index.d.ts +3 -5
- package/dist/api/base/search/index.js +1 -3
- package/dist/api/base/search/search-health-resources-request.d.ts +33 -36
- package/dist/api/base/search/search-health-resources-request.js +3 -0
- package/dist/api/base/search/search-manager.d.ts +39 -42
- package/dist/api/base/search/submit-provider-for-review-request.d.ts +33 -0
- package/dist/api/base/search/submit-provider-for-review-request.js +9 -0
- package/dist/api/base/user/create-consent-request.d.ts +13 -1
- package/dist/api/base/user/create-consent-request.js +10 -5
- package/dist/api/base/user/create-data-export-direct-download-url-request.d.ts +9 -0
- package/dist/api/base/user/create-data-export-direct-download-url-request.js +3 -0
- package/dist/api/base/user/create-verification-url-request.d.ts +12 -0
- package/dist/api/base/user/create-verification-url-request.js +6 -0
- package/dist/api/base/user/get-consents-request.d.ts +19 -1
- package/dist/api/base/user/get-consents-request.js +13 -1
- package/dist/api/base/user/index.d.ts +1 -2
- package/dist/api/base/user/update-profile-request.d.ts +11 -3
- package/dist/api/base/user/update-profile-request.js +5 -3
- package/dist/api/base/user/user-manager.d.ts +100 -49
- package/dist/api/base/user/validators.d.ts +5 -0
- package/dist/api/base/user/validators.js +13 -0
- package/dist/api/graphql-api/activity/{activity-request-factories.d.ts → get-tasks-request-factory.d.ts} +0 -7
- package/dist/api/graphql-api/activity/get-tasks-request-factory.js +56 -0
- package/dist/api/graphql-api/activity/graphql-activity-manager.d.ts +6 -8
- package/dist/api/graphql-api/activity/graphql-activity-manager.js +19 -30
- package/dist/api/graphql-api/activity/index.d.ts +1 -1
- package/dist/api/graphql-api/activity/index.js +1 -1
- package/dist/api/graphql-api/connection/connection-response-factory.d.ts +7 -0
- package/dist/api/graphql-api/connection/connection-response-factory.js +101 -0
- package/dist/api/graphql-api/connection/graphql-connection-manager.d.ts +9 -9
- package/dist/api/graphql-api/connection/graphql-connection-manager.js +7 -5
- package/dist/api/graphql-api/connection/index.d.ts +0 -1
- package/dist/api/graphql-api/connection/index.js +1 -1
- package/dist/api/graphql-api/device/graphql-device-manager.d.ts +2 -1
- package/dist/api/graphql-api/device/graphql-device-manager.js +4 -2
- package/dist/api/graphql-api/errors/errors.js +1 -1
- package/dist/api/graphql-api/financial/coverage-request-factory.d.ts +9 -0
- package/dist/api/graphql-api/financial/coverage-request-factory.js +19 -0
- package/dist/api/graphql-api/financial/{graphql-explanation-of-benefits-factory.d.ts → explanation-of-benefit-request-factory.d.ts} +3 -3
- package/dist/api/graphql-api/financial/explanation-of-benefit-request-factory.js +19 -0
- package/dist/api/graphql-api/financial/graphql-financial-manager.d.ts +4 -12
- package/dist/api/graphql-api/financial/graphql-financial-manager.js +32 -19
- package/dist/api/graphql-api/financial/index.d.ts +3 -1
- package/dist/api/graphql-api/financial/index.js +3 -1
- package/dist/api/graphql-api/graphql-api-provider.d.ts +6 -14
- package/dist/api/graphql-api/graphql-api-provider.js +6 -7
- package/dist/api/graphql-api/graphql-manager/graphql-manager.d.ts +1 -0
- package/dist/api/graphql-api/health-space/cancel-appointment-request-factory.js +1 -2
- package/dist/api/graphql-api/health-space/graphql-health-space-manager.d.ts +5 -62
- package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +9 -163
- package/dist/api/graphql-api/health-space/index.d.ts +0 -4
- package/dist/api/graphql-api/health-space/index.js +0 -4
- package/dist/api/graphql-api/healthdata/get-encounters-request-factory.d.ts +7 -0
- package/dist/api/graphql-api/healthdata/get-encounters-request-factory.js +76 -0
- package/dist/api/graphql-api/healthdata/get-medication-dispenses-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/healthdata/get-medication-dispenses-request-factory.js +25 -0
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +30 -41
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +311 -256
- package/dist/api/graphql-api/healthdata/health-data-request-factory.d.ts +18 -0
- package/dist/api/graphql-api/healthdata/health-data-request-factory.js +25 -0
- package/dist/api/graphql-api/healthdata/health-data-response-factory.d.ts +8 -0
- package/dist/api/graphql-api/healthdata/health-data-response-factory.js +58 -0
- package/dist/api/graphql-api/identity/graphql-identity-manager.d.ts +2 -1
- package/dist/api/graphql-api/identity/graphql-identity-manager.js +5 -3
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.d.ts +4 -22
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.js +4 -69
- package/dist/api/graphql-api/questionnaire/index.d.ts +0 -2
- package/dist/api/graphql-api/questionnaire/index.js +0 -2
- package/dist/api/graphql-api/search/graphql-search-manager.d.ts +4 -6
- package/dist/api/graphql-api/search/graphql-search-manager.js +9 -71
- package/dist/api/graphql-api/search/search-health-resources-request-factory.js +12 -10
- package/dist/api/graphql-api/search/submit-provider-for-review-request-factory.d.ts +6 -0
- package/dist/api/graphql-api/search/{request-connection-request-factory.js → submit-provider-for-review-request-factory.js} +1 -1
- package/dist/api/graphql-api/user/get-consent-request-factory.d.ts +1 -2
- package/dist/api/graphql-api/user/get-consent-request-factory.js +5 -1
- package/dist/api/graphql-api/user/graphql-user-manager.d.ts +10 -11
- package/dist/api/graphql-api/user/graphql-user-manager.js +11 -10
- package/dist/api/graphql-api/user/update-profile-request-factory.js +1 -2
- package/dist/api/identity-manager-factory.js +1 -1
- package/dist/auth/auth-code-strategy.d.ts +2 -1
- package/dist/auth/auth-strategy.d.ts +1 -1
- package/dist/auth/credentials.d.ts +1 -1
- package/dist/auth/credentials.js +2 -2
- package/dist/auth/oauth-strategy.d.ts +2 -1
- package/dist/auth/username-password-strategy.d.ts +2 -1
- package/dist/auth/username-password-strategy.js +2 -2
- package/dist/bwell-sdk/bwell-sdk.d.ts +319 -48
- package/dist/bwell-sdk/bwell-sdk.js +368 -53
- package/dist/config/bwell-config.d.ts +12 -12
- package/dist/config/bwell-config.js +2 -5
- package/dist/config/sdk-config.d.ts +2 -3
- package/dist/config/sdk-config.js +4 -6
- package/dist/errors/authentication-error.d.ts +7 -0
- package/dist/errors/authentication-error.js +7 -0
- package/dist/errors/bwell-error.d.ts +12 -2
- package/dist/errors/bwell-error.js +5 -2
- package/dist/errors/illegal-argument-error.d.ts +7 -0
- package/dist/errors/illegal-argument-error.js +7 -0
- package/dist/errors/illegal-state-error.d.ts +7 -0
- package/dist/errors/illegal-state-error.js +7 -0
- package/dist/errors/invalid-client-key-error.d.ts +7 -0
- package/dist/errors/invalid-client-key-error.js +7 -0
- package/dist/errors/invalid-credentials-type-error.d.ts +7 -0
- package/dist/errors/invalid-credentials-type-error.js +7 -0
- package/dist/errors/invalid-token-error.d.ts +4 -1
- package/dist/errors/invalid-token-error.js +4 -1
- package/dist/errors/network-error.d.ts +7 -0
- package/dist/errors/network-error.js +7 -0
- package/dist/errors/operation-outcome-error.d.ts +8 -1
- package/dist/errors/operation-outcome-error.js +7 -0
- package/dist/errors/unknown-error.d.ts +7 -0
- package/dist/errors/unknown-error.js +7 -0
- package/dist/errors/validation-error.d.ts +7 -0
- package/dist/errors/validation-error.js +7 -0
- package/dist/graphql/operations/index.d.ts +116 -283
- package/dist/graphql/operations/index.js +1767 -2095
- package/dist/graphql/operations/types.d.ts +16471 -18430
- package/dist/graphql/schema.d.ts +68323 -5995
- package/dist/graphql/schema.js +1 -484
- package/dist/index.d.ts +7 -5
- package/dist/index.js +5 -4
- package/dist/language/language-manager.d.ts +25 -10
- package/dist/language/language-manager.js +5 -0
- package/dist/models/activity/index.d.ts +1 -0
- package/dist/models/activity/task.d.ts +77 -0
- package/dist/models/common/address.d.ts +41 -0
- package/dist/models/common/annotation.d.ts +18 -0
- package/dist/models/common/annotation.js +1 -0
- package/dist/models/common/attachment.d.ts +18 -0
- package/dist/models/common/attachment.js +1 -0
- package/dist/models/common/bundle.d.ts +83 -0
- package/dist/models/common/bundle.js +1 -0
- package/dist/models/common/codeable-concept.d.ts +17 -0
- package/dist/models/common/codeable-concept.js +1 -0
- package/dist/models/common/coding.d.ts +18 -0
- package/dist/models/common/coding.js +1 -0
- package/dist/models/common/component.d.ts +23 -0
- package/dist/models/common/component.js +1 -0
- package/dist/models/common/contact-point.d.ts +32 -0
- package/dist/models/common/contact-point.js +1 -0
- package/dist/models/common/dispense-request.d.ts +67 -0
- package/dist/models/common/dispense-request.js +1 -0
- package/dist/models/common/dosage.d.ts +68 -0
- package/dist/models/common/dosage.js +1 -0
- package/dist/models/common/endpoint.d.ts +23 -0
- package/dist/models/common/endpoint.js +1 -0
- package/dist/models/common/expression.d.ts +20 -0
- package/dist/models/common/expression.js +1 -0
- package/dist/models/common/extension.d.ts +49 -0
- package/dist/models/common/extension.js +1 -0
- package/dist/models/common/fhir-error.d.ts +23 -0
- package/dist/models/common/fhir-error.js +1 -0
- package/dist/models/common/human-name.d.ts +20 -0
- package/dist/models/common/human-name.js +1 -0
- package/dist/models/common/identifier.d.ts +19 -0
- package/dist/models/common/identifier.js +1 -0
- package/dist/models/common/index.d.ts +38 -0
- package/dist/models/common/index.js +2 -0
- package/dist/models/common/location.d.ts +51 -0
- package/dist/models/common/location.js +1 -0
- package/dist/models/common/medication.d.ts +42 -0
- package/dist/models/common/medication.js +1 -0
- package/dist/models/common/meta.d.ts +21 -0
- package/dist/models/common/meta.js +1 -0
- package/dist/models/common/money.d.ts +15 -0
- package/dist/models/common/money.js +1 -0
- package/dist/models/common/narrative.d.ts +14 -0
- package/dist/models/common/narrative.js +1 -0
- package/dist/models/common/operation-outcome.d.ts +48 -0
- package/dist/models/common/operation-outcome.js +1 -0
- package/dist/models/common/organization.d.ts +46 -0
- package/dist/models/common/organization.js +1 -0
- package/dist/models/common/paging-info.d.ts +18 -0
- package/dist/models/common/paging-info.js +1 -0
- package/dist/models/common/patient.d.ts +13 -0
- package/dist/models/common/patient.js +1 -0
- package/dist/models/common/period.d.ts +14 -0
- package/dist/models/common/period.js +1 -0
- package/dist/models/common/practitioner-role.d.ts +42 -0
- package/dist/models/common/practitioner-role.js +1 -0
- package/dist/models/common/practitioner.d.ts +17 -0
- package/dist/models/common/practitioner.js +1 -0
- package/dist/models/common/quantity.d.ts +20 -0
- package/dist/models/common/quantity.js +1 -0
- package/dist/models/common/range.d.ts +15 -0
- package/dist/models/common/range.js +1 -0
- package/dist/models/common/ratio.d.ts +15 -0
- package/dist/models/common/ratio.js +1 -0
- package/dist/models/common/reference-range.d.ts +13 -0
- package/dist/models/common/reference-range.js +1 -0
- package/dist/models/common/reference.d.ts +27 -0
- package/dist/models/common/reference.js +1 -0
- package/dist/models/common/related-person.d.ts +34 -0
- package/dist/models/common/related-person.js +1 -0
- package/dist/models/common/score.d.ts +16 -0
- package/dist/models/common/score.js +1 -0
- package/dist/models/common/service-request.d.ts +21 -0
- package/dist/models/common/service-request.js +1 -0
- package/dist/models/common/specimen.d.ts +30 -0
- package/dist/models/common/specimen.js +7 -0
- package/dist/models/common/timing.d.ts +107 -0
- package/dist/models/common/timing.js +1 -0
- package/dist/models/common/value.d.ts +22 -0
- package/dist/models/common/value.js +1 -0
- package/dist/models/connection/base-connection.d.ts +27 -0
- package/dist/models/connection/base-connection.js +1 -0
- package/dist/models/connection/connection-status.d.ts +15 -0
- package/dist/models/connection/connection-status.js +1 -0
- package/dist/models/connection/connection.d.ts +32 -0
- package/dist/models/connection/connection.js +1 -0
- package/dist/models/connection/data-source.d.ts +27 -0
- package/dist/models/connection/data-source.js +1 -0
- package/dist/models/connection/index.d.ts +6 -0
- package/dist/models/connection/index.js +1 -0
- package/dist/models/connection/member-connection.d.ts +37 -0
- package/dist/models/connection/member-connection.js +1 -0
- package/dist/models/connection/oauth-url.d.ts +12 -0
- package/dist/models/connection/oauth-url.js +1 -0
- package/dist/models/device/device-registration-results.d.ts +12 -0
- package/dist/models/device/device-registration-results.js +1 -0
- package/dist/models/device/index.d.ts +1 -0
- package/dist/models/device/index.js +1 -0
- package/dist/models/enums/category-code.d.ts +11 -0
- package/dist/models/enums/category-code.js +13 -0
- package/dist/models/enums/connection-category.d.ts +9 -0
- package/dist/models/enums/connection-category.js +1 -0
- package/dist/models/enums/consent-provision-type.d.ts +11 -0
- package/dist/models/enums/consent-provision-type.js +2 -0
- package/dist/models/enums/consent-status.d.ts +11 -0
- package/dist/models/enums/consent-status.js +9 -0
- package/dist/models/enums/data-connection-status.d.ts +9 -0
- package/dist/models/enums/data-connection-status.js +1 -0
- package/dist/models/enums/data-connection-type.d.ts +9 -0
- package/dist/models/enums/data-connection-type.js +1 -0
- package/dist/models/enums/data-set.d.ts +10 -0
- package/dist/models/enums/data-set.js +1 -0
- package/dist/models/enums/device-platform.d.ts +11 -0
- package/dist/models/enums/device-platform.js +2 -0
- package/dist/models/enums/endpoint-status.d.ts +9 -0
- package/dist/models/enums/endpoint-status.js +1 -0
- package/dist/models/enums/filter-field.d.ts +9 -0
- package/dist/models/enums/filter-field.js +1 -0
- package/dist/models/enums/gender.d.ts +9 -0
- package/dist/models/enums/gender.js +1 -0
- package/dist/models/enums/index.d.ts +18 -0
- package/dist/models/enums/index.js +5 -0
- package/dist/models/enums/log-level.d.ts +8 -0
- package/dist/models/enums/log-level.js +1 -0
- package/dist/models/enums/person-gender.d.ts +11 -0
- package/dist/models/enums/person-gender.js +7 -0
- package/dist/models/enums/search-context.d.ts +10 -0
- package/dist/models/enums/search-context.js +1 -0
- package/dist/models/enums/search-result-type.d.ts +9 -0
- package/dist/models/enums/search-result-type.js +1 -0
- package/dist/models/enums/sort-field.d.ts +10 -0
- package/dist/models/enums/sort-field.js +1 -0
- package/dist/models/enums/sort-order.d.ts +9 -0
- package/dist/models/enums/sort-order.js +1 -0
- package/dist/models/enums/sync-status.d.ts +9 -0
- package/dist/models/enums/sync-status.js +1 -0
- package/dist/models/financial/coverage-bundle.d.ts +18 -0
- package/dist/models/financial/coverage-bundle.js +1 -0
- package/dist/models/financial/coverage.d.ts +65 -0
- package/dist/models/financial/coverage.js +1 -0
- package/dist/models/financial/explanation-of-benefit-bundle.d.ts +26 -0
- package/dist/models/financial/explanation-of-benefit-bundle.js +1 -0
- package/dist/models/financial/explanation-of-benefit.d.ts +274 -0
- package/dist/models/financial/explanation-of-benefit.js +1 -0
- package/dist/models/financial/index.d.ts +4 -0
- package/dist/models/financial/index.js +4 -0
- package/dist/models/health-data/allergy-intolerance-bundle.d.ts +11 -0
- package/dist/models/health-data/allergy-intolerance-bundle.js +1 -0
- package/dist/models/health-data/allergy-intolerance-group.d.ts +44 -0
- package/dist/models/health-data/allergy-intolerance-group.js +1 -0
- package/dist/models/health-data/allergy-intolerance-reaction.d.ts +23 -0
- package/dist/models/health-data/allergy-intolerance-reaction.js +1 -0
- package/dist/models/health-data/allergy-intolerance.d.ts +54 -0
- package/dist/models/health-data/allergy-intolerance.js +1 -0
- package/dist/models/health-data/care-plan-group.d.ts +42 -0
- package/dist/models/health-data/care-plan-group.js +1 -0
- package/dist/models/health-data/care-plan.d.ts +134 -0
- package/dist/models/health-data/care-plan.js +1 -0
- package/dist/models/health-data/care-team.d.ts +77 -0
- package/dist/models/health-data/care-team.js +1 -0
- package/dist/models/health-data/condition-group.d.ts +42 -0
- package/dist/models/health-data/condition-group.js +1 -0
- package/dist/models/health-data/condition.d.ts +104 -0
- package/dist/models/health-data/condition.js +1 -0
- package/dist/models/health-data/diagnostic-report-lab-group.d.ts +45 -0
- package/dist/models/health-data/diagnostic-report-lab-group.js +1 -0
- package/dist/models/health-data/diagnostic-report.d.ts +90 -0
- package/dist/models/health-data/diagnostic-report.js +1 -0
- package/dist/models/health-data/encounter-group.d.ts +48 -0
- package/dist/models/health-data/encounter-group.js +1 -0
- package/dist/models/health-data/encounter.d.ts +79 -0
- package/dist/models/health-data/encounter.js +1 -0
- package/dist/models/health-data/health-summary.d.ts +18 -0
- package/dist/models/health-data/health-summary.js +1 -0
- package/dist/models/health-data/immunization-group.d.ts +41 -0
- package/dist/models/health-data/immunization-group.js +1 -0
- package/dist/models/health-data/immunization.d.ts +150 -0
- package/dist/models/health-data/immunization.js +1 -0
- package/dist/models/health-data/index.d.ts +30 -0
- package/dist/models/health-data/index.js +1 -0
- package/dist/models/health-data/lab-bundle.d.ts +26 -0
- package/dist/models/health-data/lab-bundle.js +1 -0
- package/dist/models/health-data/lab-group.d.ts +51 -0
- package/dist/models/health-data/lab-group.js +1 -0
- package/dist/models/health-data/lab-knowledge.d.ts +28 -0
- package/dist/models/health-data/lab-knowledge.js +1 -0
- package/dist/models/health-data/medication-dispense.d.ts +108 -0
- package/dist/models/health-data/medication-dispense.js +1 -0
- package/dist/models/health-data/medication-group.d.ts +43 -0
- package/dist/models/health-data/medication-group.js +1 -0
- package/dist/models/health-data/medication-knowledge.d.ts +30 -0
- package/dist/models/health-data/medication-knowledge.js +1 -0
- package/dist/models/health-data/medication-pricing.d.ts +28 -0
- package/dist/models/health-data/medication-pricing.js +1 -0
- package/dist/models/health-data/medication-request.d.ts +107 -0
- package/dist/models/health-data/medication-request.js +1 -0
- package/dist/models/health-data/medication-statement.d.ts +68 -0
- package/dist/models/health-data/medication-statement.js +1 -0
- package/dist/models/health-data/observation.d.ts +102 -0
- package/dist/models/health-data/observation.js +1 -0
- package/dist/models/health-data/procedure-group.d.ts +43 -0
- package/dist/models/health-data/procedure-group.js +1 -0
- package/dist/models/health-data/procedure.d.ts +84 -0
- package/dist/models/health-data/procedure.js +1 -0
- package/dist/models/health-data/vital-sign-bundle.d.ts +18 -0
- package/dist/models/health-data/vital-sign-bundle.js +1 -0
- package/dist/models/health-data/vital-sign-group.d.ts +51 -0
- package/dist/models/health-data/vital-sign-group.js +1 -0
- package/dist/models/health-space/appointment-bundle.d.ts +11 -0
- package/dist/models/health-space/appointment-bundle.js +1 -0
- package/dist/models/health-space/appointment-participant.d.ts +17 -0
- package/dist/models/health-space/appointment-participant.js +1 -0
- package/dist/models/health-space/appointment-update.d.ts +14 -0
- package/dist/models/health-space/appointment-update.js +1 -0
- package/dist/models/health-space/appointment.d.ts +30 -0
- package/dist/models/health-space/appointment.js +1 -0
- package/dist/models/health-space/cancellation-reasons.d.ts +32 -0
- package/dist/models/health-space/cancellation-reasons.js +1 -0
- package/dist/models/health-space/index.d.ts +5 -0
- package/dist/models/health-space/index.js +1 -0
- package/dist/models/identity/auth-tokens.d.ts +25 -0
- package/dist/models/identity/auth-tokens.js +1 -0
- package/dist/models/identity/create-guest-access-token-results.d.ts +12 -0
- package/dist/models/identity/create-guest-access-token-results.js +1 -0
- package/dist/models/identity/index.d.ts +4 -0
- package/dist/models/identity/index.js +1 -0
- package/dist/models/identity/refresh-token-results.d.ts +8 -0
- package/dist/models/identity/refresh-token-results.js +1 -0
- package/dist/models/identity/sdk-configuration-result.d.ts +26 -0
- package/dist/models/identity/sdk-configuration-result.js +1 -0
- package/dist/models/index.d.ts +12 -4
- package/dist/models/index.js +12 -4
- package/dist/models/questionnaire/index.d.ts +5 -0
- package/dist/models/questionnaire/index.js +1 -0
- package/dist/models/questionnaire/questionnaire-item.d.ts +38 -0
- package/dist/models/questionnaire/questionnaire-item.js +1 -0
- package/dist/models/questionnaire/questionnaire-response-answer.d.ts +33 -0
- package/dist/models/questionnaire/questionnaire-response-answer.js +1 -0
- package/dist/models/questionnaire/questionnaire-response-item.d.ts +19 -0
- package/dist/models/questionnaire/questionnaire-response-item.js +1 -0
- package/dist/models/questionnaire/questionnaire-response.d.ts +29 -0
- package/dist/models/questionnaire/questionnaire-response.js +1 -0
- package/dist/models/questionnaire/questionnaire.d.ts +30 -0
- package/dist/models/questionnaire/questionnaire.js +1 -0
- package/dist/models/search/health-resources.d.ts +133 -0
- package/dist/models/search/health-resources.js +1 -0
- package/dist/models/search/index.d.ts +2 -0
- package/dist/models/search/index.js +1 -0
- package/dist/models/search/provider-review-result.d.ts +15 -0
- package/dist/models/search/provider-review-result.js +1 -0
- package/dist/models/user/consent.d.ts +100 -0
- package/dist/models/user/consent.js +1 -0
- package/dist/models/user/index.d.ts +4 -0
- package/dist/models/user/index.js +1 -0
- package/dist/models/user/person.d.ts +43 -0
- package/dist/models/user/person.js +1 -0
- package/dist/models/user/user.d.ts +12 -0
- package/dist/models/user/user.js +1 -0
- package/dist/models/user/verification-result.d.ts +30 -0
- package/dist/models/user/verification-result.js +1 -0
- package/dist/requests/paged-request.d.ts +35 -0
- package/dist/requests/paged-request.js +22 -0
- package/dist/requests/request.d.ts +16 -0
- package/dist/requests/request.js +8 -0
- package/dist/requests/validator.d.ts +15 -0
- package/dist/requests/validator.js +7 -0
- package/dist/results/bwell-query-result.d.ts +5 -0
- package/dist/results/bwell-query-result.js +5 -0
- package/dist/results/bwell-transaction-result.d.ts +17 -3
- package/dist/results/bwell-transaction-result.js +15 -1
- package/dist/results/index.d.ts +1 -0
- package/dist/results/index.js +1 -0
- package/dist/telemetry/open-telemetry-instrumentation.js +1 -4
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.js +2 -0
- package/dist/tokens/jwt-token-manager.d.ts +3 -7
- package/dist/tokens/jwt-token-manager.js +9 -8
- package/dist/tokens/load-auth-tokens.d.ts +6 -0
- package/dist/tokens/load-auth-tokens.js +43 -0
- package/dist/tokens/token-manager.d.ts +12 -0
- package/dist/tokens/token-manager.js +5 -0
- package/dist/tokens/token-storage.d.ts +20 -0
- package/dist/tokens/token-storage.js +19 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/parsing-utils.d.ts +11 -1
- package/dist/utils/parsing-utils.js +33 -1
- package/dist/utils/search-token-utils.d.ts +8 -0
- package/dist/utils/search-token-utils.js +23 -0
- package/package.json +24 -20
- package/dist/api/base/activity/types.d.ts +0 -3
- package/dist/api/base/activity/types.js +0 -5
- package/dist/api/base/activity/update-task-status-request.d.ts +0 -18
- package/dist/api/base/activity/update-task-status-request.js +0 -15
- package/dist/api/base/event/event-manager.d.ts +0 -16
- package/dist/api/base/event/event-request.d.ts +0 -35
- package/dist/api/base/event/event-request.js +0 -64
- package/dist/api/base/event/index.d.ts +0 -2
- package/dist/api/base/event/index.js +0 -1
- package/dist/api/base/health-data/medication-pricing-request.d.ts +0 -21
- package/dist/api/base/health-data/medication-pricing-request.js +0 -26
- package/dist/api/base/health-data/medication-statement-request.d.ts +0 -29
- package/dist/api/base/health-data/medication-statement-request.js +0 -35
- package/dist/api/base/health-space/add-care-team-member-request.d.ts +0 -33
- package/dist/api/base/health-space/add-care-team-member-request.js +0 -36
- package/dist/api/base/health-space/add-care-team-members-request.d.ts +0 -35
- package/dist/api/base/health-space/add-care-team-members-request.js +0 -61
- package/dist/api/base/health-space/cancelationReasons-request.d.ts +0 -16
- package/dist/api/base/health-space/care-team-members-request.d.ts +0 -31
- package/dist/api/base/health-space/care-team-members-request.js +0 -33
- package/dist/api/base/health-space/remove-care-team-member-request.d.ts +0 -34
- package/dist/api/base/health-space/remove-care-team-member-request.js +0 -36
- package/dist/api/base/health-space/update-care-team-member-request.d.ts +0 -55
- package/dist/api/base/health-space/update-care-team-member-request.js +0 -71
- package/dist/api/base/questionnaire/questionnaire-responses-request.d.ts +0 -30
- package/dist/api/base/questionnaire/questionnaire-responses-request.js +0 -49
- package/dist/api/base/questionnaire/questionnaires-request.d.ts +0 -18
- package/dist/api/base/questionnaire/questionnaires-request.js +0 -42
- package/dist/api/base/questionnaire/save-questionnaire-response-request.d.ts +0 -22
- package/dist/api/base/questionnaire/save-questionnaire-response-request.js +0 -33
- package/dist/api/base/search/request-connection-request.d.ts +0 -24
- package/dist/api/base/search/request-connection-request.js +0 -3
- package/dist/api/base/search/search-request.d.ts +0 -84
- package/dist/api/base/search/search-request.js +0 -78
- package/dist/api/base/support/create-support-request-request.d.ts +0 -22
- package/dist/api/base/support/create-support-request-request.js +0 -20
- package/dist/api/base/support/delete-support-attachment-request.d.ts +0 -11
- package/dist/api/base/support/delete-support-attachment-request.js +0 -14
- package/dist/api/base/support/get-support-requests-request.d.ts +0 -16
- package/dist/api/base/support/get-support-requests-request.js +0 -14
- package/dist/api/base/support/index.d.ts +0 -5
- package/dist/api/base/support/index.js +0 -5
- package/dist/api/base/support/support-manager.d.ts +0 -46
- package/dist/api/base/support/upload-support-attachment-request.d.ts +0 -25
- package/dist/api/base/support/upload-support-attachment-request.js +0 -27
- package/dist/api/base/user/types.d.ts +0 -9
- package/dist/api/base/user/types.js +0 -17
- package/dist/api/graphql-api/activity/activity-request-factories.js +0 -70
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.d.ts +0 -18
- package/dist/api/graphql-api/connection/graphql-get-member-connections-bwell-response-factory.js +0 -40
- package/dist/api/graphql-api/event/event-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/event/event-request-factory.js +0 -11
- package/dist/api/graphql-api/event/graphql-event-manager.d.ts +0 -15
- package/dist/api/graphql-api/event/graphql-event-manager.js +0 -65
- package/dist/api/graphql-api/event/index.d.ts +0 -1
- package/dist/api/graphql-api/event/index.js +0 -1
- package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/financial/graphql-coverages-bwell-request-factory.js +0 -17
- package/dist/api/graphql-api/financial/graphql-explanation-of-benefits-factory.js +0 -23
- package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.d.ts +0 -20
- package/dist/api/graphql-api/health-space/add-care-team-member-request-factory.js +0 -29
- package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.d.ts +0 -16
- package/dist/api/graphql-api/health-space/add-care-team-members-request-factory.js +0 -23
- package/dist/api/graphql-api/health-space/care-team-factory-utils.d.ts +0 -23
- package/dist/api/graphql-api/health-space/care-team-factory-utils.js +0 -30
- package/dist/api/graphql-api/health-space/care-team-members-request-factory.d.ts +0 -12
- package/dist/api/graphql-api/health-space/care-team-members-request-factory.js +0 -17
- package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.d.ts +0 -16
- package/dist/api/graphql-api/health-space/remove-care-team-member-request-factory.js +0 -24
- package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.d.ts +0 -16
- package/dist/api/graphql-api/health-space/update-care-team-member-request-factory.js +0 -20
- package/dist/api/graphql-api/healthdata/graphql-diagnostic-reports-bwell-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/healthdata/graphql-diagnostic-reports-bwell-request-factory.js +0 -12
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.d.ts +0 -10
- package/dist/api/graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js +0 -35
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.d.ts +0 -10
- package/dist/api/graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js +0 -35
- package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/healthdata/graphql-update-medication-statement-request-factory.js +0 -11
- package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.d.ts +0 -9
- package/dist/api/graphql-api/questionnaire/get-questionnaire-responses-request-factory.js +0 -22
- package/dist/api/graphql-api/questionnaire/get-questionnaires-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/questionnaire/get-questionnaires-request-factory.js +0 -16
- package/dist/api/graphql-api/search/connection-search-request-factory.d.ts +0 -7
- package/dist/api/graphql-api/search/connection-search-request-factory.js +0 -21
- package/dist/api/graphql-api/search/index.d.ts +0 -1
- package/dist/api/graphql-api/search/index.js +0 -1
- package/dist/api/graphql-api/search/provider-search-request-factory.d.ts +0 -7
- package/dist/api/graphql-api/search/provider-search-request-factory.js +0 -21
- package/dist/api/graphql-api/search/request-connection-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/search/search-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/search/search-request-factory.js +0 -44
- package/dist/api/graphql-api/support/create-support-request-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/create-support-request-request-factory.js +0 -19
- package/dist/api/graphql-api/support/delete-support-attachment-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/delete-support-attachment-request-factory.js +0 -10
- package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/get-support-requests-bwell-request-factory.js +0 -16
- package/dist/api/graphql-api/support/graphql-support-manager.d.ts +0 -22
- package/dist/api/graphql-api/support/graphql-support-manager.js +0 -129
- package/dist/api/graphql-api/support/index.d.ts +0 -1
- package/dist/api/graphql-api/support/index.js +0 -1
- package/dist/api/graphql-api/support/upload-support-attachment-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/support/upload-support-attachment-request-factory.js +0 -11
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.d.ts +0 -6
- package/dist/api/graphql-api/user/create-data-export-direct-download-url-request-factory.js +0 -9
- package/dist/models/coding.d.ts +0 -5
- package/dist/models/fhir-error.d.ts +0 -9
- package/dist/models/user.d.ts +0 -4
- package/dist/utils/date-utils.d.ts +0 -6
- package/dist/utils/date-utils.js +0 -8
- /package/dist/api/base/{event/event-manager.js → health-data/health-data-response-factory.js} +0 -0
- /package/dist/api/base/{support/support-manager.js → requests/field-sort-order.js} +0 -0
- /package/dist/models/{coding.js → activity/index.js} +0 -0
- /package/dist/models/{fhir-error.js → activity/task.js} +0 -0
- /package/dist/models/{user.js → common/address.js} +0 -0
- /package/dist/{models → results}/operation-outcome.d.ts +0 -0
- /package/dist/{models → results}/operation-outcome.js +0 -0
|
@@ -1,62 +1,55 @@
|
|
|
1
|
+
import { DevicePlatform } from "../../../models/enums/index.js";
|
|
1
2
|
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* Input type for registering a device to receive push notifications.
|
|
5
|
+
* @category Inputs
|
|
6
|
+
* @title RegisterDeviceRequestInput
|
|
7
|
+
* @excerpt Input for registering a device
|
|
4
8
|
*/
|
|
5
|
-
export
|
|
6
|
-
/**
|
|
7
|
-
* Error message for when platformName is not a valid DevicePlatform value
|
|
8
|
-
*/
|
|
9
|
-
export declare const INVALID_PLATFORM_NAME_ERROR = "platformName must be a valid DevicePlatform value";
|
|
10
|
-
/**
|
|
11
|
-
* Error message for when applicationName is missing
|
|
12
|
-
*/
|
|
13
|
-
export declare const INVALID_APPLICATION_NAME_ERROR = "applicationName is required";
|
|
14
|
-
/**
|
|
15
|
-
* Enum for the device platform; currently only supports IOS and ANDROID
|
|
16
|
-
*/
|
|
17
|
-
declare enum DevicePlatformEnum {
|
|
18
|
-
IOS = "IOS",
|
|
19
|
-
ANDROID = "ANDROID"
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Type for the device platform; currently only supports IOS and ANDROID
|
|
23
|
-
*/
|
|
24
|
-
export type DevicePlatform = `${DevicePlatformEnum}`;
|
|
25
|
-
/**
|
|
26
|
-
* Base input for device request; used directly by DeregisterDeviceRequest
|
|
27
|
-
*/
|
|
28
|
-
export type DeviceRequestInput = {
|
|
9
|
+
export type RegisterDeviceRequestInput = {
|
|
29
10
|
deviceToken: string;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Input for the register device request
|
|
33
|
-
*/
|
|
34
|
-
export type RegisterDeviceRequestInput = DeviceRequestInput & {
|
|
35
11
|
platformName: DevicePlatform;
|
|
36
12
|
applicationName: string;
|
|
37
13
|
};
|
|
38
14
|
/**
|
|
39
|
-
*
|
|
15
|
+
* Validator for RegisterDeviceRequestInput.
|
|
16
|
+
* Validates device token, platform name, and application name fields.
|
|
40
17
|
*/
|
|
41
|
-
|
|
42
|
-
validate(data:
|
|
18
|
+
declare class RegisterDeviceRequestValidator implements Validator<RegisterDeviceRequestInput> {
|
|
19
|
+
validate(data: RegisterDeviceRequestInput, errors: ErrorsCollector): void;
|
|
43
20
|
}
|
|
44
21
|
/**
|
|
45
|
-
*
|
|
22
|
+
* Request class for registering a device.
|
|
23
|
+
* @category Requests
|
|
24
|
+
* @title RegisterDeviceRequest
|
|
25
|
+
* @excerpt Request for registering a device
|
|
46
26
|
*/
|
|
47
|
-
export declare class
|
|
48
|
-
|
|
27
|
+
export declare class RegisterDeviceRequest extends ValidationRequest<RegisterDeviceRequestInput> {
|
|
28
|
+
protected validator: RegisterDeviceRequestValidator;
|
|
49
29
|
}
|
|
50
30
|
/**
|
|
51
|
-
*
|
|
31
|
+
* Input object for deregistering a device
|
|
32
|
+
* @category Inputs
|
|
33
|
+
* @title DeregisterDeviceRequestInput
|
|
34
|
+
* @excerpt Input for deregistering a device
|
|
52
35
|
*/
|
|
53
|
-
export
|
|
54
|
-
|
|
36
|
+
export type DeregisterDeviceRequestInput = {
|
|
37
|
+
deviceToken: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Validator for DeregisterDeviceRequestInput.
|
|
41
|
+
* Validates the device token field.
|
|
42
|
+
*/
|
|
43
|
+
declare class DeregisterDeviceRequestValidator implements Validator<DeregisterDeviceRequestInput> {
|
|
44
|
+
validate(data: DeregisterDeviceRequestInput, errors: ErrorsCollector): void;
|
|
55
45
|
}
|
|
56
46
|
/**
|
|
57
|
-
* Request for
|
|
47
|
+
* Request class for de-registering a device.
|
|
48
|
+
* @category Requests
|
|
49
|
+
* @title DeregisterDeviceRequest
|
|
50
|
+
* @excerpt Request for de-registering a device
|
|
58
51
|
*/
|
|
59
|
-
export declare class DeregisterDeviceRequest extends ValidationRequest<
|
|
60
|
-
protected validator:
|
|
52
|
+
export declare class DeregisterDeviceRequest extends ValidationRequest<DeregisterDeviceRequestInput> {
|
|
53
|
+
protected validator: DeregisterDeviceRequestValidator;
|
|
61
54
|
}
|
|
62
55
|
export {};
|
|
@@ -1,49 +1,20 @@
|
|
|
1
|
+
import { devicePlatformValues, } from "../../../models/enums/index.js";
|
|
1
2
|
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
-
import { isBlank } from "../../../utils/
|
|
3
|
+
import { isBlank } from "../../../utils/string-utils.js";
|
|
4
|
+
import { INVALID_APPLICATION_NAME_ERROR, INVALID_DEVICE_TOKEN_ERROR, INVALID_PLATFORM_NAME_ERROR, } from "./constants.js";
|
|
5
|
+
const isValidDevicePlatform = (value) => {
|
|
6
|
+
return devicePlatformValues.includes(value);
|
|
7
|
+
};
|
|
3
8
|
/**
|
|
4
|
-
*
|
|
9
|
+
* Validator for RegisterDeviceRequestInput.
|
|
10
|
+
* Validates device token, platform name, and application name fields.
|
|
5
11
|
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Error message for when platformName is not a valid DevicePlatform value
|
|
9
|
-
*/
|
|
10
|
-
export const INVALID_PLATFORM_NAME_ERROR = "platformName must be a valid DevicePlatform value";
|
|
11
|
-
/**
|
|
12
|
-
* Error message for when applicationName is missing
|
|
13
|
-
*/
|
|
14
|
-
export const INVALID_APPLICATION_NAME_ERROR = "applicationName is required";
|
|
15
|
-
/**
|
|
16
|
-
* Enum for the device platform; currently only supports IOS and ANDROID
|
|
17
|
-
*/
|
|
18
|
-
var DevicePlatformEnum;
|
|
19
|
-
(function (DevicePlatformEnum) {
|
|
20
|
-
DevicePlatformEnum["IOS"] = "IOS";
|
|
21
|
-
DevicePlatformEnum["ANDROID"] = "ANDROID";
|
|
22
|
-
})(DevicePlatformEnum || (DevicePlatformEnum = {}));
|
|
23
|
-
const devicePlatformValueCache = new Set(Object.values(DevicePlatformEnum));
|
|
24
|
-
function isValidDevicePlatform(value) {
|
|
25
|
-
return devicePlatformValueCache.has(value);
|
|
26
|
-
}
|
|
27
|
-
function isNotValidDevicePlatform(value) {
|
|
28
|
-
return !isValidDevicePlatform(value);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Base validator for device requests - only deviceToken is required in both request types
|
|
32
|
-
*/
|
|
33
|
-
export class DeviceRequestValidator {
|
|
12
|
+
class RegisterDeviceRequestValidator {
|
|
34
13
|
validate(data, errors) {
|
|
35
14
|
if (isBlank(data.deviceToken)) {
|
|
36
15
|
errors.add(INVALID_DEVICE_TOKEN_ERROR);
|
|
37
16
|
}
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Validator for RegisterDeviceRequest - checks that platform, applicationName and deviceToken are valid
|
|
42
|
-
*/
|
|
43
|
-
export class RegisterDeviceRequestValidator extends DeviceRequestValidator {
|
|
44
|
-
validate(data, errors) {
|
|
45
|
-
super.validate(data, errors);
|
|
46
|
-
if (isNotValidDevicePlatform(data.platformName.toUpperCase())) {
|
|
17
|
+
if (!isValidDevicePlatform(data.platformName.toUpperCase())) {
|
|
47
18
|
errors.add(INVALID_PLATFORM_NAME_ERROR);
|
|
48
19
|
}
|
|
49
20
|
if (isBlank(data.applicationName)) {
|
|
@@ -52,7 +23,10 @@ export class RegisterDeviceRequestValidator extends DeviceRequestValidator {
|
|
|
52
23
|
}
|
|
53
24
|
}
|
|
54
25
|
/**
|
|
55
|
-
* Request for registering a device
|
|
26
|
+
* Request class for registering a device.
|
|
27
|
+
* @category Requests
|
|
28
|
+
* @title RegisterDeviceRequest
|
|
29
|
+
* @excerpt Request for registering a device
|
|
56
30
|
*/
|
|
57
31
|
export class RegisterDeviceRequest extends ValidationRequest {
|
|
58
32
|
constructor() {
|
|
@@ -61,11 +35,25 @@ export class RegisterDeviceRequest extends ValidationRequest {
|
|
|
61
35
|
}
|
|
62
36
|
}
|
|
63
37
|
/**
|
|
64
|
-
*
|
|
38
|
+
* Validator for DeregisterDeviceRequestInput.
|
|
39
|
+
* Validates the device token field.
|
|
40
|
+
*/
|
|
41
|
+
class DeregisterDeviceRequestValidator {
|
|
42
|
+
validate(data, errors) {
|
|
43
|
+
if (isBlank(data.deviceToken)) {
|
|
44
|
+
errors.add(INVALID_DEVICE_TOKEN_ERROR);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Request class for de-registering a device.
|
|
50
|
+
* @category Requests
|
|
51
|
+
* @title DeregisterDeviceRequest
|
|
52
|
+
* @excerpt Request for de-registering a device
|
|
65
53
|
*/
|
|
66
54
|
export class DeregisterDeviceRequest extends ValidationRequest {
|
|
67
55
|
constructor() {
|
|
68
56
|
super(...arguments);
|
|
69
|
-
this.validator = new
|
|
57
|
+
this.validator = new DeregisterDeviceRequestValidator();
|
|
70
58
|
}
|
|
71
59
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from "./device-request.js";
|
|
2
|
+
export * from "./device-manager.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from "./device-request.js";
|
|
2
|
+
export * from "./device-manager.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SearchDate, SearchReference, SearchString
|
|
1
|
+
import type { SearchDate, SearchReference, SearchString } from "../../../graphql/schema.js";
|
|
2
2
|
import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Input type for Coverage FHIR resource requests.
|
|
@@ -12,18 +12,17 @@ export type CoverageRequestInput = PagedRequestInput & {
|
|
|
12
12
|
sort?: Array<string | null> | string;
|
|
13
13
|
patient?: SearchReference;
|
|
14
14
|
beneficiary?: SearchReference;
|
|
15
|
-
total?: TotalType | null;
|
|
16
15
|
};
|
|
17
16
|
/**
|
|
18
17
|
* Validator for Coverage request inputs.
|
|
19
|
-
* Validates Coverage-specific search parameters.
|
|
18
|
+
* Validates the paged request properties as well as Coverage-specific search parameters.
|
|
20
19
|
*/
|
|
21
20
|
declare class CoverageRequestValidator extends PagedRequestValidator<CoverageRequestInput> {
|
|
22
21
|
#private;
|
|
23
22
|
/**
|
|
24
|
-
* Validates Coverage-specific search parameters.
|
|
25
|
-
* @param data
|
|
26
|
-
* @param errors
|
|
23
|
+
* Validates the paged request properties as well as Coverage-specific search parameters.
|
|
24
|
+
* @param data CoverageRequestInput to validate
|
|
25
|
+
* @param errors ErrorsCollector to collect validation errors
|
|
27
26
|
*/
|
|
28
27
|
validate(data: CoverageRequestInput, errors: ErrorsCollector): void;
|
|
29
28
|
}
|
|
@@ -11,7 +11,7 @@ import { SearchReferenceValidator } from "../requests/search-reference.js";
|
|
|
11
11
|
import { SearchStringValidator } from "../requests/search-string.js";
|
|
12
12
|
/**
|
|
13
13
|
* Validator for Coverage request inputs.
|
|
14
|
-
* Validates Coverage-specific search parameters.
|
|
14
|
+
* Validates the paged request properties as well as Coverage-specific search parameters.
|
|
15
15
|
*/
|
|
16
16
|
class CoverageRequestValidator extends PagedRequestValidator {
|
|
17
17
|
constructor() {
|
|
@@ -21,21 +21,21 @@ class CoverageRequestValidator extends PagedRequestValidator {
|
|
|
21
21
|
_CoverageRequestValidator_searchReferenceValidator.set(this, new SearchReferenceValidator());
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Validates Coverage-specific search parameters.
|
|
25
|
-
* @param data
|
|
26
|
-
* @param errors
|
|
24
|
+
* Validates the paged request properties as well as Coverage-specific search parameters.
|
|
25
|
+
* @param data CoverageRequestInput to validate
|
|
26
|
+
* @param errors ErrorsCollector to collect validation errors
|
|
27
27
|
*/
|
|
28
28
|
validate(data, errors) {
|
|
29
29
|
super.validate(data, errors);
|
|
30
|
-
// Validate
|
|
30
|
+
// Validate SearchString fields
|
|
31
31
|
if (isNotUndefined(data.id)) {
|
|
32
32
|
__classPrivateFieldGet(this, _CoverageRequestValidator_searchStringValidator, "f").validate(data.id, errors);
|
|
33
33
|
}
|
|
34
|
-
// Validate
|
|
34
|
+
// Validate SearchDate fields
|
|
35
35
|
if (isNotUndefined(data.lastUpdated)) {
|
|
36
36
|
__classPrivateFieldGet(this, _CoverageRequestValidator_searchDateValidator, "f").validate(data.lastUpdated, errors);
|
|
37
37
|
}
|
|
38
|
-
// Validate
|
|
38
|
+
// Validate SearchReference fields
|
|
39
39
|
if (isNotUndefined(data.beneficiary)) {
|
|
40
40
|
__classPrivateFieldGet(this, _CoverageRequestValidator_searchReferenceValidator, "f").validate(data.beneficiary, errors);
|
|
41
41
|
}
|
package/dist/api/base/financial/{explanation-of-benefit.d.ts → explanation-of-benefit-request.d.ts}
RENAMED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import type { SearchDate, SearchReference, SearchString
|
|
2
|
-
import { PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/
|
|
3
|
-
import {
|
|
1
|
+
import type { SearchDate, SearchReference, SearchString } from "../../../graphql/schema.js";
|
|
2
|
+
import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
|
|
3
|
+
import { FieldSortOrder } from "../requests/field-sort-order.js";
|
|
4
|
+
/**
|
|
5
|
+
* Input type for ExplanationOfBenefit FHIR resource requests.
|
|
6
|
+
* @category Inputs
|
|
7
|
+
* @title ExplanationOfBenefitRequestInput
|
|
8
|
+
* @excerpt Input for ExplanationOfBenefit query with filters and pagination
|
|
9
|
+
*/
|
|
4
10
|
export type ExplanationOfBenefitRequestInput = PagedRequestInput & {
|
|
5
11
|
id?: SearchString;
|
|
6
12
|
lastUpdated?: SearchDate;
|
|
7
|
-
sort?:
|
|
13
|
+
sort?: FieldSortOrder[];
|
|
8
14
|
patient?: SearchReference;
|
|
9
|
-
provider?: SearchReference;
|
|
10
|
-
coverage?: SearchReference;
|
|
11
|
-
status?: SearchToken;
|
|
12
|
-
created?: SearchDate;
|
|
13
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Validator for ExplanationOfBenefit request inputs.
|
|
18
|
+
* Validates the paged request properties as well as ExplanationOfBenefit-specific search parameters.
|
|
19
|
+
*/
|
|
14
20
|
declare class ExplanationOfBenefitRequestValidator extends PagedRequestValidator<ExplanationOfBenefitRequestInput> {
|
|
15
21
|
#private;
|
|
16
22
|
/**
|
|
@@ -26,7 +32,7 @@ declare class ExplanationOfBenefitRequestValidator extends PagedRequestValidator
|
|
|
26
32
|
* @title ExplanationOfBenefitsRequest
|
|
27
33
|
* @excerpt Request object for fetching ExplanationOfBenefit FHIR resources with validation
|
|
28
34
|
*/
|
|
29
|
-
export declare class
|
|
35
|
+
export declare class ExplanationOfBenefitsRequest extends PagedRequest<ExplanationOfBenefitRequestInput> {
|
|
30
36
|
protected validator: ExplanationOfBenefitRequestValidator;
|
|
31
37
|
}
|
|
32
38
|
export {};
|
package/dist/api/base/financial/{explanation-of-benefit.js → explanation-of-benefit-request.js}
RENAMED
|
@@ -3,20 +3,22 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
3
3
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
|
-
var _ExplanationOfBenefitRequestValidator_searchStringValidator, _ExplanationOfBenefitRequestValidator_searchDateValidator, _ExplanationOfBenefitRequestValidator_searchReferenceValidator
|
|
7
|
-
import { PagedRequest, PagedRequestValidator, } from "../../../requests/
|
|
6
|
+
var _ExplanationOfBenefitRequestValidator_searchStringValidator, _ExplanationOfBenefitRequestValidator_searchDateValidator, _ExplanationOfBenefitRequestValidator_searchReferenceValidator;
|
|
7
|
+
import { PagedRequest, PagedRequestValidator, } from "../../../requests/index.js";
|
|
8
8
|
import { isNotUndefined } from "../../../utils/type-utils.js";
|
|
9
9
|
import { SearchDateValidator } from "../requests/search-date.js";
|
|
10
10
|
import { SearchReferenceValidator } from "../requests/search-reference.js";
|
|
11
11
|
import { SearchStringValidator } from "../requests/search-string.js";
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Validator for ExplanationOfBenefit request inputs.
|
|
14
|
+
* Validates the paged request properties as well as ExplanationOfBenefit-specific search parameters.
|
|
15
|
+
*/
|
|
13
16
|
class ExplanationOfBenefitRequestValidator extends PagedRequestValidator {
|
|
14
17
|
constructor() {
|
|
15
18
|
super(...arguments);
|
|
16
19
|
_ExplanationOfBenefitRequestValidator_searchStringValidator.set(this, new SearchStringValidator());
|
|
17
20
|
_ExplanationOfBenefitRequestValidator_searchDateValidator.set(this, new SearchDateValidator());
|
|
18
21
|
_ExplanationOfBenefitRequestValidator_searchReferenceValidator.set(this, new SearchReferenceValidator());
|
|
19
|
-
_ExplanationOfBenefitRequestValidator_searchTokenValidator.set(this, new SearchTokenValidator());
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Validates the paged request properties as well as ExplanationOfBenefit-specific search parameters.
|
|
@@ -33,32 +35,20 @@ class ExplanationOfBenefitRequestValidator extends PagedRequestValidator {
|
|
|
33
35
|
if (isNotUndefined(data.lastUpdated)) {
|
|
34
36
|
__classPrivateFieldGet(this, _ExplanationOfBenefitRequestValidator_searchDateValidator, "f").validate(data.lastUpdated, errors);
|
|
35
37
|
}
|
|
36
|
-
if (isNotUndefined(data.created)) {
|
|
37
|
-
__classPrivateFieldGet(this, _ExplanationOfBenefitRequestValidator_searchDateValidator, "f").validate(data.created, errors);
|
|
38
|
-
}
|
|
39
38
|
// Validate SearchReference fields
|
|
40
39
|
if (isNotUndefined(data.patient)) {
|
|
41
40
|
__classPrivateFieldGet(this, _ExplanationOfBenefitRequestValidator_searchReferenceValidator, "f").validate(data.patient, errors);
|
|
42
41
|
}
|
|
43
|
-
if (isNotUndefined(data.provider)) {
|
|
44
|
-
__classPrivateFieldGet(this, _ExplanationOfBenefitRequestValidator_searchReferenceValidator, "f").validate(data.provider, errors);
|
|
45
|
-
}
|
|
46
|
-
if (isNotUndefined(data.coverage)) {
|
|
47
|
-
__classPrivateFieldGet(this, _ExplanationOfBenefitRequestValidator_searchReferenceValidator, "f").validate(data.coverage, errors);
|
|
48
|
-
}
|
|
49
|
-
if (isNotUndefined(data.status)) {
|
|
50
|
-
__classPrivateFieldGet(this, _ExplanationOfBenefitRequestValidator_searchTokenValidator, "f").validate(data.status, errors);
|
|
51
|
-
}
|
|
52
42
|
}
|
|
53
43
|
}
|
|
54
|
-
_ExplanationOfBenefitRequestValidator_searchStringValidator = new WeakMap(), _ExplanationOfBenefitRequestValidator_searchDateValidator = new WeakMap(), _ExplanationOfBenefitRequestValidator_searchReferenceValidator = new WeakMap()
|
|
44
|
+
_ExplanationOfBenefitRequestValidator_searchStringValidator = new WeakMap(), _ExplanationOfBenefitRequestValidator_searchDateValidator = new WeakMap(), _ExplanationOfBenefitRequestValidator_searchReferenceValidator = new WeakMap();
|
|
55
45
|
/**
|
|
56
46
|
* Request object for fetching ExplanationOfBenefit FHIR resources.
|
|
57
47
|
* @category Requests
|
|
58
48
|
* @title ExplanationOfBenefitsRequest
|
|
59
49
|
* @excerpt Request object for fetching ExplanationOfBenefit FHIR resources with validation
|
|
60
50
|
*/
|
|
61
|
-
export class
|
|
51
|
+
export class ExplanationOfBenefitsRequest extends PagedRequest {
|
|
62
52
|
constructor() {
|
|
63
53
|
super(...arguments);
|
|
64
54
|
this.validator = new ExplanationOfBenefitRequestValidator();
|
|
@@ -1,22 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { BaseManagerError } from "../errors.js";
|
|
1
|
+
import { CoverageBundle, ExplanationOfBenefitResponse } from "../../../models/index.js";
|
|
2
|
+
import type { BWellQueryResult } from "../../../results/index.js";
|
|
3
|
+
import type { BaseManagerError } from "../errors.js";
|
|
5
4
|
import { CoveragesRequest } from "./coverage-request.js";
|
|
6
|
-
import {
|
|
7
|
-
export type CoveragesResults = GetCoveragesQueryResults["coverages"];
|
|
8
|
-
export type ExplanationOfBenefitsResults = GetExplanationOfBenefitsQueryResults["explanationOfBenefits"];
|
|
5
|
+
import { ExplanationOfBenefitsRequest } from "./explanation-of-benefit-request.js";
|
|
9
6
|
/**
|
|
10
|
-
*
|
|
7
|
+
* Financial Manager for insurance coverage and financial data access.
|
|
8
|
+
* Provides methods for retrieving financial records including coverage information,
|
|
9
|
+
* insurance plans, and payment details.
|
|
10
|
+
* @see https://build.fhir.org/financial-module.html
|
|
11
|
+
* @category Managers
|
|
12
|
+
* @title FinancialManager
|
|
13
|
+
* @excerpt Financial Manager for insurance coverage and financial data access
|
|
11
14
|
*/
|
|
12
15
|
export interface FinancialManager {
|
|
13
16
|
/**
|
|
14
|
-
* Retrieves coverage resources
|
|
17
|
+
* Retrieves a list of coverage resources for the authenticated user.
|
|
18
|
+
* Gets individual coverage records including insurance plans and benefits.
|
|
15
19
|
*
|
|
16
|
-
* @param request -
|
|
17
|
-
*
|
|
18
|
-
*
|
|
20
|
+
* @param {CoveragesRequest} request - Request class instance for specifying the search criteria
|
|
21
|
+
*
|
|
22
|
+
* @returns {Promise<BWellQueryResult<CoverageBundle>>} A promise resolving to an object representing the list of coverages retrieved.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const paginatedCoverages = await sdk.financial.getCoverages(
|
|
27
|
+
* new CoveragesRequest({
|
|
28
|
+
* page: 0,
|
|
29
|
+
* pageSize: 10,
|
|
30
|
+
* })
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
getCoverages(request: CoveragesRequest): Promise<BWellQueryResult<CoverageBundle, BaseManagerError>>;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves a list of explanation of benefit resources for the authenticated user.
|
|
37
|
+
* Gets adjudication details from the processing of claims.
|
|
38
|
+
*
|
|
39
|
+
* @param {ExplanationOfBenefitsRequest} request - Request class instance for specifying the search criteria
|
|
40
|
+
*
|
|
41
|
+
* @returns {Promise<BWellQueryResult<HealthDataResponse<ExplanationOfBenefit>>>} A promise resolving to an object representing the list of explanation of benefits retrieved.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* const paginatedEOBs = await sdk.financial.getExplanationOfBenefits(
|
|
46
|
+
* new ExplanationOfBenefitsRequest({
|
|
47
|
+
* page: 0,
|
|
48
|
+
* pageSize: 10,
|
|
49
|
+
* })
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
19
52
|
*/
|
|
20
|
-
|
|
21
|
-
getExplanationOfBenefits(request: ExplanationOfBenefitRequest): Promise<BWellQueryResult<ExplanationOfBenefitsResults, ValidationError | BaseManagerError>>;
|
|
53
|
+
getExplanationOfBenefits(request: ExplanationOfBenefitsRequest): Promise<BWellQueryResult<ExplanationOfBenefitResponse, BaseManagerError>>;
|
|
22
54
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type { FinancialManager } from "./financial-manager.js";
|
|
2
|
+
export { CoveragesRequest, type CoverageRequestInput, } from "./coverage-request.js";
|
|
3
|
+
export { ExplanationOfBenefitsRequest, type ExplanationOfBenefitRequestInput, } from "./explanation-of-benefit-request.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { CoveragesRequest, } from "./coverage-request.js";
|
|
2
|
+
export { ExplanationOfBenefitsRequest, } from "./explanation-of-benefit-request.js";
|