@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1754330797 → 2.0.0-alpha.0-rc.1754488327
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 +17 -1
- package/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/base/connection/connection-manager.d.ts +55 -49
- 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 -2
- package/dist/api/base/health-data/health-data-request.d.ts +105 -0
- package/dist/api/base/health-data/health-data-request.js +81 -0
- package/dist/api/base/health-data/health-manager.d.ts +104 -64
- package/dist/api/base/health-data/index.d.ts +1 -1
- 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-data/medication-pricing-request.d.ts +9 -0
- package/dist/api/base/health-data/medication-pricing-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 +33 -24
- package/dist/api/base/health-space/index.d.ts +2 -2
- package/dist/api/base/health-space/index.js +1 -1
- package/dist/api/base/identity/identity-manager.d.ts +97 -10
- package/dist/api/base/questionnaire/index.d.ts +1 -1
- 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 +16 -9
- package/dist/api/base/requests/search-date.d.ts +12 -0
- 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/user/create-consent-request.d.ts +13 -1
- package/dist/api/base/user/create-consent-request.js +8 -3
- 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 +50 -55
- package/dist/api/base/user/validators.d.ts +5 -0
- package/dist/api/base/user/validators.js +13 -0
- package/dist/api/graphql-api/connection/connection-response-factory.d.ts +1 -1
- package/dist/api/graphql-api/connection/connection-response-factory.js +1 -4
- package/dist/api/graphql-api/connection/graphql-connection-manager.d.ts +7 -6
- package/dist/api/graphql-api/connection/graphql-connection-manager.js +6 -3
- package/dist/api/graphql-api/errors/errors.js +1 -1
- 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 -4
- package/dist/api/graphql-api/health-space/graphql-health-space-manager.js +7 -6
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +13 -12
- package/dist/api/graphql-api/identity/graphql-identity-manager.d.ts +2 -1
- package/dist/api/graphql-api/identity/graphql-identity-manager.js +4 -2
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.d.ts +3 -2
- package/dist/api/graphql-api/questionnaire/graphql-questionnaire-manager.js +2 -1
- package/dist/api/graphql-api/user/graphql-user-manager.d.ts +7 -7
- package/dist/api/graphql-api/user/graphql-user-manager.js +7 -4
- package/dist/api/graphql-api/user/update-profile-request-factory.js +1 -2
- package/dist/auth/auth-code-strategy.d.ts +2 -1
- package/dist/auth/auth-strategy.d.ts +1 -1
- package/dist/auth/oauth-strategy.d.ts +2 -1
- package/dist/auth/username-password-strategy.d.ts +2 -1
- package/dist/bwell-sdk/bwell-sdk.d.ts +289 -33
- package/dist/bwell-sdk/bwell-sdk.js +294 -30
- package/dist/config/bwell-config.d.ts +8 -2
- package/dist/config/bwell-config.js +1 -3
- package/dist/config/sdk-config.d.ts +1 -1
- 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 +30 -30
- package/dist/graphql/operations/index.js +6 -4
- package/dist/graphql/operations/types.d.ts +242 -6
- package/dist/graphql/schema.d.ts +90 -277
- package/dist/graphql/schema.js +1 -369
- 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/common/address.d.ts +41 -0
- package/dist/models/common/annotation.d.ts +18 -0
- package/dist/models/common/attachment.d.ts +18 -0
- package/dist/models/common/bundle.d.ts +59 -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 +28 -0
- package/dist/models/common/contact-point.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 +47 -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 +23 -0
- package/dist/models/common/index.js +2 -0
- package/dist/models/common/location.d.ts +44 -0
- package/dist/models/common/location.js +1 -0
- package/dist/models/common/meta.d.ts +21 -0
- package/dist/models/common/meta.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/paging-info.d.ts +18 -0
- package/dist/models/common/paging-info.js +1 -0
- package/dist/models/common/period.d.ts +14 -0
- package/dist/models/common/period.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 +26 -0
- package/dist/models/common/reference.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 +25 -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/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/index.d.ts +9 -0
- package/dist/models/enums/index.js +4 -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/sync-status.d.ts +9 -0
- package/dist/models/enums/sync-status.js +1 -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-entry.d.ts +11 -0
- package/dist/models/health-data/allergy-intolerance-entry.js +1 -0
- package/dist/models/health-data/allergy-intolerance-group.d.ts +36 -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 +46 -0
- package/dist/models/health-data/allergy-intolerance.js +1 -0
- package/dist/models/health-data/care-plan-group.d.ts +34 -0
- package/dist/models/health-data/care-plan-group.js +1 -0
- package/dist/models/health-data/condition-group.d.ts +34 -0
- package/dist/models/health-data/condition-group.js +1 -0
- package/dist/models/health-data/diagnostic-report-lab-group.d.ts +37 -0
- package/dist/models/health-data/diagnostic-report-lab-group.js +1 -0
- package/dist/models/health-data/encounter-group.d.ts +40 -0
- package/dist/models/health-data/encounter-group.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 +33 -0
- package/dist/models/health-data/immunization-group.js +1 -0
- package/dist/models/health-data/index.d.ts +15 -0
- package/dist/models/health-data/index.js +1 -0
- package/dist/models/health-data/lab-group.d.ts +43 -0
- package/dist/models/health-data/lab-group.js +1 -0
- package/dist/models/health-data/medication-group.d.ts +35 -0
- package/dist/models/health-data/medication-group.js +1 -0
- package/dist/models/health-data/procedure-group.d.ts +35 -0
- package/dist/models/health-data/procedure-group.js +1 -0
- package/dist/models/health-data/vital-sign-group.d.ts +43 -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-entry.d.ts +11 -0
- package/dist/models/health-space/appointment-entry.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 +6 -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 +27 -0
- package/dist/models/identity/sdk-configuration-result.js +1 -0
- package/dist/models/index.d.ts +7 -4
- package/dist/models/index.js +7 -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/user/consent.d.ts +91 -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/tokens/load-auth-tokens.d.ts +1 -1
- package/dist/tokens/token-storage.d.ts +4 -0
- package/dist/tokens/token-storage.js +2 -0
- package/package.json +5 -2
- package/dist/api/base/connection/connection.d.ts +0 -19
- package/dist/api/base/health-space/cancelationReasons-request.d.ts +0 -16
- package/dist/api/base/user/types.d.ts +0 -9
- package/dist/api/base/user/types.js +0 -17
- 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/{api/base/connection/connection.js → models/common/address.js} +0 -0
- /package/dist/models/{coding.js → common/annotation.js} +0 -0
- /package/dist/models/{fhir-error.js → common/attachment.js} +0 -0
- /package/dist/models/{user.js → common/bundle.js} +0 -0
- /package/dist/{models → results}/operation-outcome.d.ts +0 -0
- /package/dist/{models → results}/operation-outcome.js +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CodeableConcept, Coding, Component, Extension, ReferenceRange, ResourceBundle } from "../common/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Bundle containing lab group data with paging information.
|
|
4
|
+
* Maps exactly to GraphQL GetLabGroupsQueryResults structure.
|
|
5
|
+
*
|
|
6
|
+
* @category Models
|
|
7
|
+
* @title LabGroupBundle
|
|
8
|
+
* @excerpt Bundle containing lab group data with paging information
|
|
9
|
+
*/
|
|
10
|
+
export type LabGroupBundle = ResourceBundle<LabGroup>;
|
|
11
|
+
/**
|
|
12
|
+
* Represents a lab group resource matching GraphQL structure.
|
|
13
|
+
*
|
|
14
|
+
* @category Models
|
|
15
|
+
* @title LabGroup
|
|
16
|
+
* @excerpt Represents a lab group resource matching GraphQL structure
|
|
17
|
+
*/
|
|
18
|
+
export interface LabGroup {
|
|
19
|
+
/** Resource identifier */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Group name */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Source information */
|
|
24
|
+
source: string[];
|
|
25
|
+
/** Source display names */
|
|
26
|
+
sourceDisplay: string[];
|
|
27
|
+
/** Effective date time */
|
|
28
|
+
effectiveDateTime: string;
|
|
29
|
+
/** References to underlying resources */
|
|
30
|
+
references: string[];
|
|
31
|
+
/** Category information */
|
|
32
|
+
category: CodeableConcept[];
|
|
33
|
+
/** Coding information */
|
|
34
|
+
coding: Coding;
|
|
35
|
+
/** Reference range */
|
|
36
|
+
referenceRange: ReferenceRange[];
|
|
37
|
+
/** Value information */
|
|
38
|
+
value: Extension;
|
|
39
|
+
/** Interpretation information */
|
|
40
|
+
interpretation: CodeableConcept[];
|
|
41
|
+
/** Component information */
|
|
42
|
+
component: Component[];
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Coding, ResourceBundle } from "../common/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Bundle containing medication group data with paging information.
|
|
4
|
+
* Maps exactly to GraphQL GetMedicationGroupsQueryResults structure.
|
|
5
|
+
*
|
|
6
|
+
* @category Models
|
|
7
|
+
* @title MedicationGroupBundle
|
|
8
|
+
* @excerpt Bundle containing medication group data with paging information
|
|
9
|
+
*/
|
|
10
|
+
export type MedicationGroupBundle = ResourceBundle<MedicationGroup>;
|
|
11
|
+
/**
|
|
12
|
+
* Represents a medication group resource matching GraphQL structure.
|
|
13
|
+
*
|
|
14
|
+
* @category Models
|
|
15
|
+
* @title MedicationGroup
|
|
16
|
+
* @excerpt Represents a medication group resource matching GraphQL structure
|
|
17
|
+
*/
|
|
18
|
+
export interface MedicationGroup {
|
|
19
|
+
/** Resource identifier */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Group name */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Source information */
|
|
24
|
+
source: string[];
|
|
25
|
+
/** Source display names */
|
|
26
|
+
sourceDisplay: string[];
|
|
27
|
+
/** References to underlying resources */
|
|
28
|
+
references: string[];
|
|
29
|
+
/** Authored on date */
|
|
30
|
+
authoredOn: string;
|
|
31
|
+
/** Coding information */
|
|
32
|
+
coding: Coding;
|
|
33
|
+
/** Status information */
|
|
34
|
+
status: Coding;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Coding, ResourceBundle } from "../common/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Bundle containing procedure group data with paging information.
|
|
4
|
+
* Maps exactly to GraphQL GetProcedureGroupsQueryResults structure.
|
|
5
|
+
*
|
|
6
|
+
* @category Models
|
|
7
|
+
* @title ProcedureGroupBundle
|
|
8
|
+
* @excerpt Bundle containing procedure group data with paging information
|
|
9
|
+
*/
|
|
10
|
+
export type ProcedureGroupBundle = ResourceBundle<ProcedureGroup>;
|
|
11
|
+
/**
|
|
12
|
+
* Represents a procedure group resource matching GraphQL structure.
|
|
13
|
+
*
|
|
14
|
+
* @category Models
|
|
15
|
+
* @title ProcedureGroup
|
|
16
|
+
* @excerpt Represents a procedure group resource matching GraphQL structure
|
|
17
|
+
*/
|
|
18
|
+
export interface ProcedureGroup {
|
|
19
|
+
/** Resource identifier */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Group name */
|
|
22
|
+
name: string;
|
|
23
|
+
/** References to underlying resources */
|
|
24
|
+
references: string[];
|
|
25
|
+
/** Performer information */
|
|
26
|
+
performer: string[];
|
|
27
|
+
/** Performed date */
|
|
28
|
+
performedDate: string;
|
|
29
|
+
/** Source information */
|
|
30
|
+
source: string[];
|
|
31
|
+
/** Source display names */
|
|
32
|
+
sourceDisplay: string[];
|
|
33
|
+
/** Coding information */
|
|
34
|
+
coding: Coding;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CodeableConcept, Coding, Component, Extension, ReferenceRange, ResourceBundle } from "../common/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Bundle containing vital sign group data with paging information.
|
|
4
|
+
* Maps exactly to GraphQL GetVitalSignGroupsQueryResults structure.
|
|
5
|
+
*
|
|
6
|
+
* @category Models
|
|
7
|
+
* @title VitalSignGroupBundle
|
|
8
|
+
* @excerpt Bundle containing vital sign group data with paging...
|
|
9
|
+
*/
|
|
10
|
+
export type VitalSignGroupBundle = ResourceBundle<VitalSignGroup>;
|
|
11
|
+
/**
|
|
12
|
+
* Represents a vital sign group resource matching GraphQL structure.
|
|
13
|
+
*
|
|
14
|
+
* @category Models
|
|
15
|
+
* @title VitalSignGroup
|
|
16
|
+
* @excerpt Represents a vital sign group resource matching GraphQL...
|
|
17
|
+
*/
|
|
18
|
+
export interface VitalSignGroup {
|
|
19
|
+
/** Resource identifier */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Group name */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Source information */
|
|
24
|
+
source: string[];
|
|
25
|
+
/** Source display names */
|
|
26
|
+
sourceDisplay: string[];
|
|
27
|
+
/** Effective date time */
|
|
28
|
+
effectiveDateTime: string;
|
|
29
|
+
/** References to underlying resources */
|
|
30
|
+
references: string[];
|
|
31
|
+
/** Category information */
|
|
32
|
+
category: CodeableConcept[];
|
|
33
|
+
/** Coding information */
|
|
34
|
+
coding: Coding;
|
|
35
|
+
/** Interpretation information */
|
|
36
|
+
interpretation: CodeableConcept[];
|
|
37
|
+
/** Value information */
|
|
38
|
+
value: Extension;
|
|
39
|
+
/** Reference range */
|
|
40
|
+
referenceRange: ReferenceRange[];
|
|
41
|
+
/** Component information */
|
|
42
|
+
component: Component[];
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EntryBundle } from "../common/index.js";
|
|
2
|
+
import type { AppointmentEntry } from "./appointment-entry.js";
|
|
3
|
+
/**
|
|
4
|
+
* Bundle containing appointment search results.
|
|
5
|
+
* Used for paginated appointment queries with entries.
|
|
6
|
+
*
|
|
7
|
+
* @category Models
|
|
8
|
+
* @title AppointmentBundle
|
|
9
|
+
* @excerpt Bundle containing appointment search results
|
|
10
|
+
*/
|
|
11
|
+
export type AppointmentBundle = EntryBundle<AppointmentEntry>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResourceEntry } from "../common/index.js";
|
|
2
|
+
import type { Appointment } from "./appointment.js";
|
|
3
|
+
/**
|
|
4
|
+
* Bundle entry containing appointment resource.
|
|
5
|
+
* Wrapper for appointment data within search result bundles.
|
|
6
|
+
*
|
|
7
|
+
* @category Models
|
|
8
|
+
* @title AppointmentEntry
|
|
9
|
+
* @excerpt Bundle entry containing appointment resource
|
|
10
|
+
*/
|
|
11
|
+
export type AppointmentEntry = ResourceEntry<Appointment>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CodeableConcept, Location, Reference } from "../common/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Participant in an appointment.
|
|
4
|
+
* Represents individuals or entities involved in the scheduled appointment.
|
|
5
|
+
*
|
|
6
|
+
* @category Models
|
|
7
|
+
* @title AppointmentParticipant
|
|
8
|
+
* @excerpt Participant in an appointment
|
|
9
|
+
*/
|
|
10
|
+
export type AppointmentParticipant = {
|
|
11
|
+
/** Unique participant identifier */
|
|
12
|
+
id: string | null;
|
|
13
|
+
/** Type of participant (patient, provider, etc.) */
|
|
14
|
+
type: (CodeableConcept | null)[] | null;
|
|
15
|
+
/** Reference to the actual participant */
|
|
16
|
+
actor: Reference<Location> | null;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Appointment update result.
|
|
3
|
+
* Returned when an appointment is successfully updated (e.g., cancelled).
|
|
4
|
+
*
|
|
5
|
+
* @category Models
|
|
6
|
+
* @title AppointmentUpdate
|
|
7
|
+
* @excerpt Appointment update result
|
|
8
|
+
*/
|
|
9
|
+
export type AppointmentUpdate = {
|
|
10
|
+
/** Unique appointment identifier */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Current appointment status */
|
|
13
|
+
status: string | null;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CodeableConcept, Extension, Reference } from "../common/index.js";
|
|
2
|
+
import type { AppointmentParticipant } from "./appointment-participant.js";
|
|
3
|
+
/**
|
|
4
|
+
* Healthcare appointment resource.
|
|
5
|
+
* Represents a scheduled meeting between patients and healthcare providers.
|
|
6
|
+
*
|
|
7
|
+
* @category Models
|
|
8
|
+
* @title Appointment
|
|
9
|
+
* @excerpt Healthcare appointment resource
|
|
10
|
+
*/
|
|
11
|
+
export type Appointment = {
|
|
12
|
+
/** Unique appointment identifier */
|
|
13
|
+
id: string;
|
|
14
|
+
/** Current appointment status */
|
|
15
|
+
status: string | null;
|
|
16
|
+
/** Appointment start time */
|
|
17
|
+
start: string | null;
|
|
18
|
+
/** Appointment end time */
|
|
19
|
+
end: string | null;
|
|
20
|
+
/** Reason for cancellation (if applicable) */
|
|
21
|
+
cancelationReason: CodeableConcept | null;
|
|
22
|
+
/** Additional appointment extensions */
|
|
23
|
+
extension: (Extension | null)[] | null;
|
|
24
|
+
/** Type of service being performed */
|
|
25
|
+
serviceType: (CodeableConcept | null)[] | null;
|
|
26
|
+
/** Supporting information references */
|
|
27
|
+
supportingInformation: (Reference | null)[] | null;
|
|
28
|
+
/** Appointment participants */
|
|
29
|
+
participant: (AppointmentParticipant | null)[] | null;
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concept within cancellation reason code system.
|
|
3
|
+
* Represents individual cancellation reason codes and descriptions.
|
|
4
|
+
*
|
|
5
|
+
* @category Models
|
|
6
|
+
* @title CancellationReasonConcept
|
|
7
|
+
* @excerpt Concept within cancellation reason code system
|
|
8
|
+
*/
|
|
9
|
+
export type CancellationReasonConcept = {
|
|
10
|
+
/** Cancellation reason code */
|
|
11
|
+
code: string | null;
|
|
12
|
+
/** Human-readable display text */
|
|
13
|
+
display: string | null;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Code system containing cancellation reasons.
|
|
17
|
+
* Provides standardized reasons for appointment cancellation.
|
|
18
|
+
*
|
|
19
|
+
* @category Models
|
|
20
|
+
* @title CancellationReasons
|
|
21
|
+
* @excerpt Code system containing cancellation reasons
|
|
22
|
+
*/
|
|
23
|
+
export type CancellationReasons = {
|
|
24
|
+
/** Unique code system identifier */
|
|
25
|
+
id: string;
|
|
26
|
+
/** Code system title */
|
|
27
|
+
title: string | null;
|
|
28
|
+
/** Code system URL */
|
|
29
|
+
url: string | null;
|
|
30
|
+
/** List of cancellation reason concepts */
|
|
31
|
+
concept: (CancellationReasonConcept | null)[] | null;
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { Appointment } from "./appointment.js";
|
|
2
|
+
export type { AppointmentUpdate } from "./appointment-update.js";
|
|
3
|
+
export type { AppointmentEntry } from "./appointment-entry.js";
|
|
4
|
+
export type { AppointmentBundle } from "./appointment-bundle.js";
|
|
5
|
+
export type { AppointmentParticipant } from "./appointment-participant.js";
|
|
6
|
+
export type { CancellationReasons, CancellationReasonConcept, } from "./cancellation-reasons.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AuthTokens model representing the set of authentication tokens required
|
|
3
|
+
* for secure API access and user authentication.
|
|
4
|
+
*
|
|
5
|
+
* @category Models
|
|
6
|
+
* @title AuthTokens
|
|
7
|
+
* @excerpt Authentication tokens for API access
|
|
8
|
+
*/
|
|
9
|
+
export type AuthTokens = {
|
|
10
|
+
/**
|
|
11
|
+
* The access token used to authenticate API requests. This token provides
|
|
12
|
+
* the necessary authorization to access protected resources.
|
|
13
|
+
*/
|
|
14
|
+
accessToken: string;
|
|
15
|
+
/**
|
|
16
|
+
* The identity token containing user identity information and claims.
|
|
17
|
+
* This token is typically used for user identification and authentication.
|
|
18
|
+
*/
|
|
19
|
+
idToken: string;
|
|
20
|
+
/**
|
|
21
|
+
* The refresh token used to obtain new access tokens when the current
|
|
22
|
+
* access token expires, enabling seamless token renewal.
|
|
23
|
+
*/
|
|
24
|
+
refreshToken: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AuthTokens } from "./auth-tokens.js";
|
|
2
|
+
export { SdkConfigurationResult } from "./sdk-configuration-result.js";
|
|
3
|
+
export { RefreshTokenResults } from "./refresh-token-results.js";
|
|
4
|
+
export { CreateGuestAccessTokenResults } from "./create-guest-access-token-results.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LogLevel } from "../enums/log-level.js";
|
|
2
|
+
/**
|
|
3
|
+
* SDK configuration result type
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export type SdkConfigurationResult = {
|
|
7
|
+
logLevel: LogLevel | null;
|
|
8
|
+
httpClient: {
|
|
9
|
+
requestTimeout: number | null;
|
|
10
|
+
retry: {
|
|
11
|
+
interval: number;
|
|
12
|
+
attempts: number;
|
|
13
|
+
} | null;
|
|
14
|
+
};
|
|
15
|
+
graphQLClient: {
|
|
16
|
+
url: string;
|
|
17
|
+
authUrl: string;
|
|
18
|
+
fetchPolicy: string;
|
|
19
|
+
cache: {
|
|
20
|
+
maxSizeBytes: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
telemetry: {
|
|
24
|
+
enabled: boolean | null;
|
|
25
|
+
collectorUrl: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export * from "./user.js";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
1
|
+
export * from "./user/index.js";
|
|
2
|
+
export * from "./connection/index.js";
|
|
3
|
+
export * from "./questionnaire/index.js";
|
|
4
|
+
export * from "./health-data/index.js";
|
|
5
|
+
export * from "./common/index.js";
|
|
6
|
+
export * from "./health-space/index.js";
|
|
7
|
+
export * from "./enums/index.js";
|
package/dist/models/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export * from "./user.js";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
1
|
+
export * from "./user/index.js";
|
|
2
|
+
export * from "./connection/index.js";
|
|
3
|
+
export * from "./questionnaire/index.js";
|
|
4
|
+
export * from "./health-data/index.js";
|
|
5
|
+
export * from "./common/index.js";
|
|
6
|
+
export * from "./health-space/index.js";
|
|
7
|
+
export * from "./enums/index.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { QuestionnaireResponse } from "./questionnaire-response.js";
|
|
2
|
+
export type { QuestionnaireResponseItem } from "./questionnaire-response-item.js";
|
|
3
|
+
export type { QuestionnaireResponseAnswer } from "./questionnaire-response-answer.js";
|
|
4
|
+
export type { Questionnaire } from "./questionnaire.js";
|
|
5
|
+
export type { QuestionnaireItem } from "./questionnaire-item.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an item (question or group) within a questionnaire.
|
|
3
|
+
* Can contain nested items for hierarchical question structures.
|
|
4
|
+
*
|
|
5
|
+
* @category Models
|
|
6
|
+
* @title QuestionnaireItem
|
|
7
|
+
* @excerpt Represents an item (question or group) within a questionnaire.
|
|
8
|
+
*/
|
|
9
|
+
export type QuestionnaireItem = {
|
|
10
|
+
/** Unique identifier for this item */
|
|
11
|
+
linkId: string | null;
|
|
12
|
+
/** E.g. "1(a)", "2.5.3" */
|
|
13
|
+
prefix: string | null;
|
|
14
|
+
/** Primary text for the item */
|
|
15
|
+
text: string | null;
|
|
16
|
+
/** The type of questionnaire item */
|
|
17
|
+
type: string | null;
|
|
18
|
+
/** Controls how multiple items are enabled */
|
|
19
|
+
enableBehavior: string | null;
|
|
20
|
+
/** Whether the item must be included */
|
|
21
|
+
required: boolean | null;
|
|
22
|
+
/** Whether the item may repeat */
|
|
23
|
+
repeats: boolean | null;
|
|
24
|
+
/** Don't allow human editing */
|
|
25
|
+
readOnly: boolean | null;
|
|
26
|
+
/** No more than this many characters */
|
|
27
|
+
maxLength: number | null;
|
|
28
|
+
/** Nested items (for hierarchical questions) */
|
|
29
|
+
item: (QuestionnaireItem | null)[] | null;
|
|
30
|
+
/** Additional extensions (complex structure maintained as-is) */
|
|
31
|
+
extension: (string | null)[] | null;
|
|
32
|
+
/** Enable when conditions (complex structure maintained as-is) */
|
|
33
|
+
enableWhen: (string | null)[] | null;
|
|
34
|
+
/** Permitted answer options (complex structure maintained as-is) */
|
|
35
|
+
answerOption: (string | null)[] | null;
|
|
36
|
+
/** Default values (complex structure maintained as-is) */
|
|
37
|
+
initial: (string | null)[] | null;
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Attachment, Coding, Quantity, Reference } from "../common/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an answer value within questionnaire responses.
|
|
4
|
+
* Supports multiple data types for comprehensive form responses.
|
|
5
|
+
*
|
|
6
|
+
* @category Models
|
|
7
|
+
* @title QuestionnaireResponseAnswer
|
|
8
|
+
* @excerpt Represents an answer value within questionnaire responses
|
|
9
|
+
*/
|
|
10
|
+
export type QuestionnaireResponseAnswer = {
|
|
11
|
+
/** Boolean answer value */
|
|
12
|
+
valueBoolean: boolean | null;
|
|
13
|
+
/** Decimal number answer value */
|
|
14
|
+
valueDecimal: number | null;
|
|
15
|
+
/** Integer answer value */
|
|
16
|
+
valueInteger: number | null;
|
|
17
|
+
/** Date answer value */
|
|
18
|
+
valueDate: string | null;
|
|
19
|
+
/** DateTime answer value */
|
|
20
|
+
valueDateTime: string | null;
|
|
21
|
+
/** String answer value */
|
|
22
|
+
valueString: string | null;
|
|
23
|
+
/** URI answer value */
|
|
24
|
+
valueUri: string | null;
|
|
25
|
+
/** File attachment answer */
|
|
26
|
+
valueAttachment: Attachment | null;
|
|
27
|
+
/** Coded answer value */
|
|
28
|
+
valueCoding: Coding | null;
|
|
29
|
+
/** Quantity answer with units */
|
|
30
|
+
valueQuantity: Quantity | null;
|
|
31
|
+
/** Reference to another resource */
|
|
32
|
+
valueReference: Reference;
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { QuestionnaireResponseAnswer } from "./questionnaire-response-answer.js";
|
|
2
|
+
/**
|
|
3
|
+
* Represents an item within a questionnaire response.
|
|
4
|
+
* Contains the question identifier, text, and nested items/answers.
|
|
5
|
+
*
|
|
6
|
+
* @category Models
|
|
7
|
+
* @title QuestionnaireResponseItem
|
|
8
|
+
* @excerpt Represents an item within a questionnaire response
|
|
9
|
+
*/
|
|
10
|
+
export type QuestionnaireResponseItem = {
|
|
11
|
+
/** Unique identifier for this item within the questionnaire */
|
|
12
|
+
linkId: string | null;
|
|
13
|
+
/** Display text for this item */
|
|
14
|
+
text: string | null;
|
|
15
|
+
/** Nested questionnaire response items */
|
|
16
|
+
item: (QuestionnaireResponseItem | null)[] | null;
|
|
17
|
+
/** The response(s) to the question */
|
|
18
|
+
answer: (QuestionnaireResponseAnswer | null)[] | null;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Identifier, Meta } from "../common/index.js";
|
|
2
|
+
import type { QuestionnaireResponseItem } from "./questionnaire-response-item.js";
|
|
3
|
+
import type { Questionnaire } from "./questionnaire.js";
|
|
4
|
+
/**
|
|
5
|
+
* Represents a questionnaire response containing answers to questions.
|
|
6
|
+
* Used to capture completed questionnaire data from users.
|
|
7
|
+
*
|
|
8
|
+
* @category Models
|
|
9
|
+
* @title QuestionnaireResponse
|
|
10
|
+
* @excerpt Represents a questionnaire response containing answers to questions
|
|
11
|
+
*/
|
|
12
|
+
export type QuestionnaireResponse = {
|
|
13
|
+
/** Resource type identifier */
|
|
14
|
+
resourceType: string | null;
|
|
15
|
+
/** Unique id for this response */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Reference to the questionnaire being answered */
|
|
18
|
+
questionnaire: string | null;
|
|
19
|
+
/** Current status of the response */
|
|
20
|
+
status: string | null;
|
|
21
|
+
/** Metadata about the resource */
|
|
22
|
+
meta: Meta | null;
|
|
23
|
+
/** Business identifier for this response */
|
|
24
|
+
identifier: Identifier | null;
|
|
25
|
+
/** Groups and questions that make up the response */
|
|
26
|
+
item: (QuestionnaireResponseItem | null)[] | null;
|
|
27
|
+
/** Resources contained within this response */
|
|
28
|
+
contained: (Questionnaire | null)[] | null;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Identifier, Meta } from "../common/index.js";
|
|
2
|
+
import type { QuestionnaireItem } from "./questionnaire-item.js";
|
|
3
|
+
/**
|
|
4
|
+
* Represents a questionnaire definition containing questions and structure.
|
|
5
|
+
* Used to define the structure and questions that can be answered in a questionnaire response.
|
|
6
|
+
*
|
|
7
|
+
* @category Models
|
|
8
|
+
* @title Questionnaire
|
|
9
|
+
* @excerpt Represents a questionnaire definition containing questions and structure
|
|
10
|
+
*/
|
|
11
|
+
export type Questionnaire = {
|
|
12
|
+
/** Resource type of the contained resource */
|
|
13
|
+
resourceType: string | null;
|
|
14
|
+
/** Unique identifier for the contained resource */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Name of the questionnaire */
|
|
17
|
+
name: string | null;
|
|
18
|
+
/** Title of the questionnaire */
|
|
19
|
+
title: string | null;
|
|
20
|
+
/** Publication status */
|
|
21
|
+
status: string | null;
|
|
22
|
+
/** Natural language description */
|
|
23
|
+
description: string | null;
|
|
24
|
+
/** Metadata about the contained resource */
|
|
25
|
+
meta: Meta | null;
|
|
26
|
+
/** Business identifiers for the contained resource */
|
|
27
|
+
identifier: (Identifier | null)[] | null;
|
|
28
|
+
/** The questions and structure of the questionnaire */
|
|
29
|
+
item: (QuestionnaireItem | null)[] | null;
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|