@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
|
@@ -83,6 +83,9 @@ export class BinaryRequestValidator extends PagedRequestValidator {
|
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* Base request object for fetching health data.
|
|
86
|
+
* @category Requests
|
|
87
|
+
* @title HealthDataRequest
|
|
88
|
+
* @excerpt Base request object for fetching health data
|
|
86
89
|
*/
|
|
87
90
|
export class HealthDataRequest extends PagedRequest {
|
|
88
91
|
constructor() {
|
|
@@ -92,96 +95,153 @@ export class HealthDataRequest extends PagedRequest {
|
|
|
92
95
|
}
|
|
93
96
|
/**
|
|
94
97
|
* Request object for fetching allergy intolerance data.
|
|
98
|
+
* @category Requests
|
|
99
|
+
* @title AllergyIntolerancesRequest
|
|
100
|
+
* @excerpt Request object for fetching allergy intolerance data
|
|
95
101
|
*/
|
|
96
102
|
export class AllergyIntolerancesRequest extends HealthDataRequest {
|
|
97
103
|
}
|
|
98
104
|
/**
|
|
99
105
|
* Request object for fetching allergy intolerance group data.
|
|
106
|
+
* @category Requests
|
|
107
|
+
* @title AllergyIntoleranceGroupsRequest
|
|
108
|
+
* @excerpt Request object for fetching allergy intolerance group data
|
|
100
109
|
*/
|
|
101
110
|
export class AllergyIntoleranceGroupsRequest extends PagedRequest {
|
|
102
111
|
}
|
|
103
112
|
/**
|
|
104
113
|
* Request object for fetching conditions data.
|
|
114
|
+
* @category Requests
|
|
115
|
+
* @title ConditionsRequest
|
|
116
|
+
* @excerpt Request object for fetching conditions data
|
|
105
117
|
*/
|
|
106
118
|
export class ConditionsRequest extends HealthDataRequest {
|
|
107
119
|
}
|
|
108
120
|
/**
|
|
109
121
|
* Request object for fetching condition groups data.
|
|
122
|
+
* @category Requests
|
|
123
|
+
* @title ConditionGroupsRequest
|
|
124
|
+
* @excerpt Request object for fetching condition groups data
|
|
110
125
|
*/
|
|
111
126
|
export class ConditionGroupsRequest extends PagedRequest {
|
|
112
127
|
}
|
|
113
128
|
/**
|
|
114
129
|
* Request object for fetching document references data.
|
|
130
|
+
* @category Requests
|
|
131
|
+
* @title DocumentReferencesRequest
|
|
132
|
+
* @excerpt Request object for fetching document references data
|
|
115
133
|
*/
|
|
116
134
|
export class DocumentReferencesRequest extends HealthDataRequest {
|
|
117
135
|
}
|
|
118
136
|
/**
|
|
119
137
|
* Request object for fetching labs data.
|
|
138
|
+
* @category Requests
|
|
139
|
+
* @title LabsRequest
|
|
140
|
+
* @excerpt Request object for fetching labs data
|
|
120
141
|
*/
|
|
121
142
|
export class LabsRequest extends HealthDataRequest {
|
|
122
143
|
}
|
|
123
144
|
/**
|
|
124
145
|
* Request object for fetching lab groups data.
|
|
146
|
+
* @category Requests
|
|
147
|
+
* @title LabGroupsRequest
|
|
148
|
+
* @excerpt Request object for fetching lab groups data
|
|
125
149
|
*/
|
|
126
150
|
export class LabGroupsRequest extends PagedRequest {
|
|
127
151
|
}
|
|
128
152
|
/**
|
|
129
153
|
* Request object for fetching care plan data.
|
|
154
|
+
* @category Requests
|
|
155
|
+
* @title CarePlansRequest
|
|
156
|
+
* @excerpt Request object for fetching care plan data
|
|
130
157
|
*/
|
|
131
158
|
export class CarePlansRequest extends HealthDataRequest {
|
|
132
159
|
}
|
|
133
160
|
/**
|
|
134
161
|
* Request object for fetching care team data.
|
|
162
|
+
* @category Requests
|
|
163
|
+
* @title CareTeamsRequest
|
|
164
|
+
* @excerpt Request object for fetching care team data
|
|
135
165
|
*/
|
|
136
166
|
export class CareTeamsRequest extends PagedRequest {
|
|
137
167
|
}
|
|
138
168
|
/**
|
|
139
169
|
* Request object for fetching care plan groups data.
|
|
170
|
+
* @category Requests
|
|
171
|
+
* @title CarePlanGroupsRequest
|
|
172
|
+
* @excerpt Request object for fetching care plan groups data
|
|
140
173
|
*/
|
|
141
174
|
export class CarePlanGroupsRequest extends PagedRequest {
|
|
142
175
|
}
|
|
143
176
|
/**
|
|
144
177
|
* Request object for fetching encounters data.
|
|
178
|
+
* @category Requests
|
|
179
|
+
* @title EncountersRequest
|
|
180
|
+
* @excerpt Request object for fetching encounters data
|
|
145
181
|
*/
|
|
146
182
|
export class EncountersRequest extends HealthDataRequest {
|
|
147
183
|
}
|
|
148
184
|
/**
|
|
149
185
|
* Request object for fetching encounter groups data.
|
|
186
|
+
* @category Requests
|
|
187
|
+
* @title EncounterGroupsRequest
|
|
188
|
+
* @excerpt Request object for fetching encounter groups data
|
|
150
189
|
*/
|
|
151
190
|
export class EncounterGroupsRequest extends PagedRequest {
|
|
152
191
|
}
|
|
153
192
|
/**
|
|
154
193
|
* Request object for fetching immunization data.
|
|
194
|
+
* @category Requests
|
|
195
|
+
* @title ImmunizationsRequest
|
|
196
|
+
* @excerpt Request object for fetching immunization data
|
|
155
197
|
*/
|
|
156
198
|
export class ImmunizationsRequest extends HealthDataRequest {
|
|
157
199
|
}
|
|
158
200
|
/**
|
|
159
201
|
* Request object for fetching immunization groups data.
|
|
202
|
+
* @category Requests
|
|
203
|
+
* @title ImmunizationGroupsRequest
|
|
204
|
+
* @excerpt Request object for fetching immunization groups data
|
|
160
205
|
*/
|
|
161
206
|
export class ImmunizationGroupsRequest extends PagedRequest {
|
|
162
207
|
}
|
|
163
208
|
/**
|
|
164
209
|
* Request object for fetching procedure data.
|
|
210
|
+
* @category Requests
|
|
211
|
+
* @title ProceduresRequest
|
|
212
|
+
* @excerpt Request object for fetching procedure data
|
|
165
213
|
*/
|
|
166
214
|
export class ProceduresRequest extends HealthDataRequest {
|
|
167
215
|
}
|
|
168
216
|
/**
|
|
169
217
|
* Request object for fetching procedure groups data.
|
|
218
|
+
* @category Requests
|
|
219
|
+
* @title ProcedureGroupsRequest
|
|
220
|
+
* @excerpt Request object for fetching procedure groups data
|
|
170
221
|
*/
|
|
171
222
|
export class ProcedureGroupsRequest extends PagedRequest {
|
|
172
223
|
}
|
|
173
224
|
/**
|
|
174
225
|
* Request object for fetching vital signs data.
|
|
226
|
+
* @category Requests
|
|
227
|
+
* @title VitalSignsRequest
|
|
228
|
+
* @excerpt Request object for fetching vital signs data
|
|
175
229
|
*/
|
|
176
230
|
export class VitalSignsRequest extends HealthDataRequest {
|
|
177
231
|
}
|
|
178
232
|
/**
|
|
179
233
|
* Request object for fetching vital sign groups data.
|
|
234
|
+
* @category Requests
|
|
235
|
+
* @title VitalSignGroupsRequest
|
|
236
|
+
* @excerpt Request object for fetching vital sign groups data
|
|
180
237
|
*/
|
|
181
238
|
export class VitalSignGroupsRequest extends PagedRequest {
|
|
182
239
|
}
|
|
183
240
|
/**
|
|
184
241
|
* Request object for fetching DiagnosticReport Lab Groups
|
|
242
|
+
* @category Requests
|
|
243
|
+
* @title DiagnosticReportLabGroupsRequest
|
|
244
|
+
* @excerpt Request object for fetching DiagnosticReport Lab Groups
|
|
185
245
|
*/
|
|
186
246
|
export class DiagnosticReportLabGroupsRequest extends PagedRequest {
|
|
187
247
|
}
|
|
@@ -205,6 +265,9 @@ export class MedicationRequestRequestValidator extends MedicationDispenseRequest
|
|
|
205
265
|
_MedicationRequestRequestValidator_medicationCodeValidator = new WeakMap();
|
|
206
266
|
/**
|
|
207
267
|
* Request object for fetching medication dispense data.
|
|
268
|
+
* @category Requests
|
|
269
|
+
* @title MedicationDispenseRequest
|
|
270
|
+
* @excerpt Request object for fetching medication dispense data
|
|
208
271
|
*/
|
|
209
272
|
export class MedicationDispenseRequest extends PagedRequest {
|
|
210
273
|
constructor() {
|
|
@@ -214,6 +277,9 @@ export class MedicationDispenseRequest extends PagedRequest {
|
|
|
214
277
|
}
|
|
215
278
|
/**
|
|
216
279
|
* Request object for fetching medication request data.
|
|
280
|
+
* @category Requests
|
|
281
|
+
* @title MedicationRequestRequest
|
|
282
|
+
* @excerpt Request object for fetching medication request data
|
|
217
283
|
*/
|
|
218
284
|
export class MedicationRequestRequest extends PagedRequest {
|
|
219
285
|
constructor() {
|
|
@@ -242,6 +308,9 @@ export class MedicationStatementRequestValidator extends HealthDataRequestValida
|
|
|
242
308
|
_MedicationStatementRequestValidator_medicationCodeValidator = new WeakMap();
|
|
243
309
|
/**
|
|
244
310
|
* Request object for fetching medication statement data.
|
|
311
|
+
* @category Requests
|
|
312
|
+
* @title MedicationStatementsRequest
|
|
313
|
+
* @excerpt Request object for fetching medication statement data
|
|
245
314
|
*/
|
|
246
315
|
export class MedicationStatementsRequest extends HealthDataRequest {
|
|
247
316
|
constructor() {
|
|
@@ -251,11 +320,17 @@ export class MedicationStatementsRequest extends HealthDataRequest {
|
|
|
251
320
|
}
|
|
252
321
|
/**
|
|
253
322
|
* Request object for fetching medication groups data.
|
|
323
|
+
* @category Requests
|
|
324
|
+
* @title MedicationGroupsRequest
|
|
325
|
+
* @excerpt Request object for fetching medication groups data
|
|
254
326
|
*/
|
|
255
327
|
export class MedicationGroupsRequest extends PagedRequest {
|
|
256
328
|
}
|
|
257
329
|
/**
|
|
258
330
|
* Request object for fetching Binary data.
|
|
331
|
+
* @category Requests
|
|
332
|
+
* @title BinaryRequest
|
|
333
|
+
* @excerpt Request object for fetching Binary data
|
|
259
334
|
*/
|
|
260
335
|
export class BinaryRequest extends PagedRequest {
|
|
261
336
|
constructor() {
|
|
@@ -263,5 +338,11 @@ export class BinaryRequest extends PagedRequest {
|
|
|
263
338
|
this.validator = new BinaryRequestValidator();
|
|
264
339
|
}
|
|
265
340
|
}
|
|
341
|
+
/**
|
|
342
|
+
* Request object for fetching diagnostic reports data.
|
|
343
|
+
* @category Requests
|
|
344
|
+
* @title DiagnosticReportsRequest
|
|
345
|
+
* @excerpt Request object for fetching diagnostic reports data
|
|
346
|
+
*/
|
|
266
347
|
export class DiagnosticReportsRequest extends HealthDataRequest {
|
|
267
348
|
}
|
|
@@ -1,132 +1,172 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AllergyIntoleranceBundle, AllergyIntoleranceGroupBundle, CarePlanGroupBundle, ConditionGroupBundle, DiagnosticReportLabGroupBundle, EncounterGroupBundle, HealthSummary, ImmunizationGroupBundle, LabGroupBundle, MedicationGroupBundle, ProcedureGroupBundle, VitalSignGroupBundle } from "../../../models/health-data/index.js";
|
|
2
2
|
import type { BWellQueryResult } from "../../../results/index.js";
|
|
3
3
|
import type { BaseManagerError } from "../errors.js";
|
|
4
4
|
import type { AllergyIntoleranceGroupsRequest, CarePlanGroupsRequest, ConditionGroupsRequest, DiagnosticReportLabGroupsRequest, EncounterGroupsRequest, HealthDataRequest, ImmunizationGroupsRequest, LabGroupsRequest, MedicationGroupsRequest, ProcedureGroupsRequest, VitalSignGroupsRequest } from "./health-data-request.js";
|
|
5
|
-
type HealthSummaryResultsType = GetHealthSummaryQueryResults["getHealthSummary"];
|
|
6
|
-
export interface HealthSummaryResults extends HealthSummaryResultsType {
|
|
7
|
-
}
|
|
8
|
-
export type AllergyIntolerancesResults = GetAllergyIntolerancesQueryResults["allergyIntolerances"];
|
|
9
|
-
type AllergyIntolerancesGroupsResultsType = GetAllergyIntoleranceGroupsQueryResults["getAllergyIntoleranceGroups"];
|
|
10
|
-
export interface AllergyIntolerancesGroupsResults extends AllergyIntolerancesGroupsResultsType {
|
|
11
|
-
}
|
|
12
|
-
type ConditionGroupsResultsType = GetConditionGroupsQueryResults["getConditionGroups"];
|
|
13
|
-
export interface ConditionGroupsResults extends ConditionGroupsResultsType {
|
|
14
|
-
}
|
|
15
|
-
type LabGroupsResultsType = GetLabGroupsQueryResults["getLabGroups"];
|
|
16
|
-
export interface LabGroupsResults extends LabGroupsResultsType {
|
|
17
|
-
}
|
|
18
|
-
type CarePlanGroupsResultsType = GetCarePlanGroupsQueryResults["getCarePlanGroups"];
|
|
19
|
-
export interface CarePlanGroupsResults extends CarePlanGroupsResultsType {
|
|
20
|
-
}
|
|
21
|
-
type EncounterGroupsResultsType = GetEncountersGroupQueryResults["getEncounterGroups"];
|
|
22
|
-
export interface EncounterGroupsResults extends EncounterGroupsResultsType {
|
|
23
|
-
}
|
|
24
|
-
type ImmunizationGroupsResultsType = GetImmunizationGroupsQueryResults["getImmunizationGroups"];
|
|
25
|
-
export interface ImmunizationGroupsResults extends ImmunizationGroupsResultsType {
|
|
26
|
-
}
|
|
27
|
-
type ProcedureGroupsResultsType = GetProcedureGroupsQueryResults["getProcedureGroups"];
|
|
28
|
-
export interface ProcedureGroupsResults extends ProcedureGroupsResultsType {
|
|
29
|
-
}
|
|
30
|
-
type VitalSignGroupsResultsType = GetVitalSignGroupsQueryResults["getVitalSignGroups"];
|
|
31
|
-
export interface VitalSignGroupsResults extends VitalSignGroupsResultsType {
|
|
32
|
-
}
|
|
33
|
-
type DiagnosticReportLabGroupsResultsType = GetDiagnosticReportLabGroupsQueryResults["getDiagnosticReportLabGroups"];
|
|
34
|
-
export interface DiagnosticReportLabGroupsResults extends DiagnosticReportLabGroupsResultsType {
|
|
35
|
-
}
|
|
36
|
-
type MedicationGroupsResultsType = GetMedicationGroupsQueryResults["getMedicationGroups"];
|
|
37
|
-
export interface MedicationGroupsResults extends MedicationGroupsResultsType {
|
|
38
|
-
}
|
|
39
5
|
/**
|
|
40
|
-
*
|
|
6
|
+
* Health Manager for patient health records and clinical data access.
|
|
7
|
+
* Provides methods for retrieving health care records including conditions, medications,
|
|
8
|
+
* labs, procedures, and other clinical data organized by groups.
|
|
9
|
+
* @see https://build.fhir.org/patient.html
|
|
10
|
+
* @title HealthManager
|
|
11
|
+
* @excerpt Health Manager for patient health records and clinical data access
|
|
12
|
+
* @category Managers
|
|
41
13
|
*/
|
|
42
14
|
export interface HealthManager {
|
|
43
15
|
/**
|
|
44
16
|
* Retrieve a summary view of current health care records by category. This view includes counts for AllergyIntolerance, CarePlan, Condition, Encounter, Immunization, Procedure, Vital Sign, Medication Statement, and Lab resources.
|
|
45
17
|
*
|
|
46
|
-
* @returns {Promise<BWellQueryResult<
|
|
18
|
+
* @returns {Promise<BWellQueryResult<HealthSummary>>} A promise resolving to An object which based off of generated ResourceGroups representing an aggregation of AllergyIntolerance, CarePlan, Condition, Encounter, Immunization, Procedure, MedicationStatement, Observation (Vital Sign and Lab) resources.
|
|
19
|
+
*/
|
|
20
|
+
getHealthSummary(): Promise<BWellQueryResult<HealthSummary, BaseManagerError>>;
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves a list of allergy intolerance resources.
|
|
23
|
+
* Gets individual allergy intolerance records for the authenticated user.
|
|
24
|
+
*
|
|
25
|
+
* @param {HealthDataRequest} request An optional request class for specifying the search criteria.
|
|
26
|
+
*
|
|
27
|
+
* @returns {Promise<BWellQueryResult<AllergyIntoleranceBundle>>} A promise resolving to an object representing the list of allergy intolerances retrieved.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* const allergies = await sdk.health.getAllergyIntolerances();
|
|
32
|
+
* ```
|
|
47
33
|
*/
|
|
48
|
-
|
|
49
|
-
getAllergyIntolerances(request?: HealthDataRequest): Promise<BWellQueryResult<AllergyIntolerancesResults, BaseManagerError>>;
|
|
34
|
+
getAllergyIntolerances(request?: HealthDataRequest): Promise<BWellQueryResult<AllergyIntoleranceBundle, BaseManagerError>>;
|
|
50
35
|
/**
|
|
51
36
|
* Retrieves a list of AllergyIntoleranceGroup resources.
|
|
52
37
|
* The method accepts a AllergyIntoleranceGroupsRequest object to specify the search criteria.
|
|
53
38
|
*
|
|
54
39
|
* @param {AllergyIntoleranceGroupsRequest} request An object specifying the search criteria for retrieving the AllergyIntoleranceGroup resources.
|
|
55
40
|
*
|
|
56
|
-
* @returns {Promise<BWellQueryResult<
|
|
41
|
+
* @returns {Promise<BWellQueryResult<AllergyIntoleranceGroupBundle>>} A promise resolving to an object representing the list of Allergy Intolerance Groups retrieved, along with potential validation or GraphQL errors.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* const allergyGroups = await sdk.health.getAllergyIntoleranceGroups();
|
|
46
|
+
* ```
|
|
57
47
|
*/
|
|
58
|
-
getAllergyIntoleranceGroups(request?: AllergyIntoleranceGroupsRequest): Promise<BWellQueryResult<
|
|
48
|
+
getAllergyIntoleranceGroups(request?: AllergyIntoleranceGroupsRequest): Promise<BWellQueryResult<AllergyIntoleranceGroupBundle, BaseManagerError>>;
|
|
59
49
|
/**
|
|
60
50
|
* Retrieves a list of condition groups resources.
|
|
61
51
|
*
|
|
62
52
|
* @param {ConditionGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of condition groups resources.
|
|
63
53
|
*
|
|
64
|
-
* @returns {Promise<BWellQueryResult<
|
|
54
|
+
* @returns {Promise<BWellQueryResult<ConditionGroupBundle>>} A promise resolving to an object representing he list of condition groups retrieved.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* const conditions = await sdk.health.getConditionGroups();
|
|
59
|
+
* ```
|
|
65
60
|
*/
|
|
66
|
-
getConditionGroups(request?: ConditionGroupsRequest): Promise<BWellQueryResult<
|
|
61
|
+
getConditionGroups(request?: ConditionGroupsRequest): Promise<BWellQueryResult<ConditionGroupBundle, BaseManagerError>>;
|
|
67
62
|
/**
|
|
68
|
-
* Retrieves a list of
|
|
63
|
+
* Retrieves a list of laboratory groups results.
|
|
64
|
+
*
|
|
65
|
+
* @param {LabGroupsRequest} request An optional request class for specifying the search criteria, for accessing lab groups resources.
|
|
69
66
|
*
|
|
70
|
-
* @
|
|
67
|
+
* @returns {Promise<BWellQueryResult<LabGroupBundle>>} A promise resolving to an object representing a list of laboratory groups, along with potential errors.
|
|
71
68
|
*
|
|
72
|
-
* @
|
|
69
|
+
* @example
|
|
70
|
+
* ```typescript
|
|
71
|
+
* const labGroups = await sdk.health.getLabGroups();
|
|
72
|
+
* ```
|
|
73
73
|
*/
|
|
74
|
-
getLabGroups(request?: LabGroupsRequest): Promise<BWellQueryResult<
|
|
74
|
+
getLabGroups(request?: LabGroupsRequest): Promise<BWellQueryResult<LabGroupBundle, BaseManagerError>>;
|
|
75
75
|
/**
|
|
76
76
|
* Retrieves a list of care plan groups resources.
|
|
77
77
|
*
|
|
78
78
|
* @param {CarePlanGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of care plan groups resources.
|
|
79
79
|
*
|
|
80
|
-
* @returns {Promise<BWellQueryResult<
|
|
80
|
+
* @returns {Promise<BWellQueryResult<CarePlanGroupBundle>>} A promise resolving to an object representing the list of care plan groups retrieved.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* const carePlanGroups = await sdk.health.getCarePlanGroups();
|
|
85
|
+
* ```
|
|
81
86
|
*/
|
|
82
|
-
getCarePlanGroups(request?: CarePlanGroupsRequest): Promise<BWellQueryResult<
|
|
87
|
+
getCarePlanGroups(request?: CarePlanGroupsRequest): Promise<BWellQueryResult<CarePlanGroupBundle, BaseManagerError>>;
|
|
83
88
|
/**
|
|
84
89
|
* Retrieves a list of encounter groups resources.
|
|
85
90
|
*
|
|
86
91
|
* @param {EncounterGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of encounter groups resources.
|
|
87
92
|
*
|
|
88
|
-
* @returns {Promise<BWellQueryResult<
|
|
93
|
+
* @returns {Promise<BWellQueryResult<EncounterGroupBundle>>} A promise resolving to an object representing the list of encounter groups retrieved.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```typescript
|
|
97
|
+
* const encounterGroups = await sdk.health.getEncounterGroups();
|
|
98
|
+
* ```
|
|
89
99
|
*/
|
|
90
|
-
getEncounterGroups(request?: EncounterGroupsRequest): Promise<BWellQueryResult<
|
|
100
|
+
getEncounterGroups(request?: EncounterGroupsRequest): Promise<BWellQueryResult<EncounterGroupBundle, BaseManagerError>>;
|
|
91
101
|
/**
|
|
92
102
|
* Retrieves a list of immunization groups resources.
|
|
93
103
|
*
|
|
94
104
|
* @param {ImmunizationGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of immunization groups resources.
|
|
95
105
|
*
|
|
96
|
-
* @returns {Promise<BWellQueryResult<
|
|
106
|
+
* @returns {Promise<BWellQueryResult<ImmunizationGroupBundle>>} A promise resolving to an object representing the list of immunization groups retrieved.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```typescript
|
|
110
|
+
* const immunizationGroups = await sdk.health.getImmunizationGroups();
|
|
111
|
+
* ```
|
|
97
112
|
*/
|
|
98
|
-
getImmunizationGroups(request?: ImmunizationGroupsRequest): Promise<BWellQueryResult<
|
|
113
|
+
getImmunizationGroups(request?: ImmunizationGroupsRequest): Promise<BWellQueryResult<ImmunizationGroupBundle, BaseManagerError>>;
|
|
99
114
|
/**
|
|
100
115
|
* Retrieves a list of procedure groups resources.
|
|
101
116
|
*
|
|
102
117
|
* @param {ProcedureGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of procedure groups resources.
|
|
103
118
|
*
|
|
104
|
-
* @returns {Promise<BWellQueryResult<
|
|
119
|
+
* @returns {Promise<BWellQueryResult<ProcedureGroupBundle>>} A promise resolving to an object representing the list of procedure groups retrieved.
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* ```typescript
|
|
123
|
+
* const procedureGroups = await sdk.health.getProcedureGroups();
|
|
124
|
+
* ```
|
|
105
125
|
*/
|
|
106
|
-
getProcedureGroups(request?: ProcedureGroupsRequest): Promise<BWellQueryResult<
|
|
126
|
+
getProcedureGroups(request?: ProcedureGroupsRequest): Promise<BWellQueryResult<ProcedureGroupBundle, BaseManagerError>>;
|
|
107
127
|
/**
|
|
108
128
|
* Retrieves a list of vital sign groups resources.
|
|
109
129
|
*
|
|
110
130
|
* @param {VitalSignGroupsRequest} request An optional request class for specifying the search criteria, for the retrieval of vital sign groups resources.
|
|
111
131
|
*
|
|
112
|
-
* @returns {Promise<BWellQueryResult<
|
|
132
|
+
* @returns {Promise<BWellQueryResult<VitalSignGroupBundle>>} A promise resolving to an object representing the list of vital sign groups retrieved.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```typescript
|
|
136
|
+
* const vitalSignGroups = await sdk.health.getVitalSignGroups();
|
|
137
|
+
* ```
|
|
113
138
|
*/
|
|
114
|
-
getVitalSignGroups(request?: VitalSignGroupsRequest): Promise<BWellQueryResult<
|
|
139
|
+
getVitalSignGroups(request?: VitalSignGroupsRequest): Promise<BWellQueryResult<VitalSignGroupBundle, BaseManagerError>>;
|
|
115
140
|
/**
|
|
116
141
|
* Retrieves a list of medication groups resources.
|
|
117
142
|
*
|
|
118
|
-
* @param {MedicationGroupsRequest} request
|
|
143
|
+
* @param {MedicationGroupsRequest} request A request class for specifying the search criteria, for the retrieval of medication groups resources.
|
|
144
|
+
*
|
|
145
|
+
* @returns {Promise<BWellQueryResult<MedicationGroupBundle>>} A promise resolving to an object representing the list of medication groups retrieved.
|
|
119
146
|
*
|
|
120
|
-
* @
|
|
147
|
+
* @example
|
|
148
|
+
* ```typescript
|
|
149
|
+
* const medications = await sdk.health.getMedicationGroups({
|
|
150
|
+
* page: 1,
|
|
151
|
+
* pageSize: 10
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
121
154
|
*/
|
|
122
|
-
getMedicationGroups(request: MedicationGroupsRequest): Promise<BWellQueryResult<
|
|
155
|
+
getMedicationGroups(request: MedicationGroupsRequest): Promise<BWellQueryResult<MedicationGroupBundle, BaseManagerError>>;
|
|
123
156
|
/**
|
|
124
157
|
* Retrieves a list of diagnostic report lab groups resources.
|
|
125
158
|
*
|
|
126
|
-
* @param {DiagnosticReportLabGroupsRequest} request
|
|
159
|
+
* @param {DiagnosticReportLabGroupsRequest} request A request class for specifying the search criteria, for the retrieval of diagnostic report lab groups resources.
|
|
160
|
+
*
|
|
161
|
+
* @returns {Promise<BWellQueryResult<DiagnosticReportLabGroupBundle>>} A promise resolving to an object representing the list of diagnostic report lab groups retrieved.
|
|
127
162
|
*
|
|
128
|
-
* @
|
|
163
|
+
* @example
|
|
164
|
+
* ```typescript
|
|
165
|
+
* const diagnosticReportLabGroups = await sdk.health.getDiagnosticReportLabGroups({
|
|
166
|
+
* page: 1,
|
|
167
|
+
* pageSize: 10
|
|
168
|
+
* });
|
|
169
|
+
* ```
|
|
129
170
|
*/
|
|
130
|
-
getDiagnosticReportLabGroups(request: DiagnosticReportLabGroupsRequest): Promise<BWellQueryResult<
|
|
171
|
+
getDiagnosticReportLabGroups(request: DiagnosticReportLabGroupsRequest): Promise<BWellQueryResult<DiagnosticReportLabGroupBundle, BaseManagerError>>;
|
|
131
172
|
}
|
|
132
|
-
export {};
|
|
@@ -2,4 +2,4 @@ export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceG
|
|
|
2
2
|
export { MedicationPricingRequest, MedicationPricingRequestInput, } from "./medication-pricing-request.js";
|
|
3
3
|
export { MedicationKnowledgeRequest, MedicationKnowledgeRequestInput, } from "./medication-knowledge-request.js";
|
|
4
4
|
export { LabKnowledgeRequest, LabKnowledgeRequestInput, } from "./lab-knowledge-request.js";
|
|
5
|
-
export {
|
|
5
|
+
export { HealthManager } from "./health-manager.js";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Input type for lab knowledge requests. Used to fetch knowledge about specific labs.
|
|
4
|
+
* @category Inputs
|
|
5
|
+
* @title LabKnowledgeRequestInput
|
|
6
|
+
* @excerpt Input for fetching lab knowledge by lab ID
|
|
7
|
+
*/
|
|
2
8
|
export type LabKnowledgeRequestInput = PagedRequestInput & {
|
|
3
9
|
labId: string;
|
|
4
10
|
};
|
|
@@ -15,6 +21,9 @@ export declare class LabKnowledgeRequestValidator extends PagedRequestValidator<
|
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Request object for fetching lab knowledge data.
|
|
24
|
+
* @category Requests
|
|
25
|
+
* @title LabKnowledgeRequest
|
|
26
|
+
* @excerpt Request object for fetching lab knowledge data
|
|
18
27
|
*/
|
|
19
28
|
export declare class LabKnowledgeRequest extends PagedRequest<LabKnowledgeRequestInput> {
|
|
20
29
|
protected validator: LabKnowledgeRequestValidator;
|
|
@@ -18,6 +18,9 @@ export class LabKnowledgeRequestValidator extends PagedRequestValidator {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Request object for fetching lab knowledge data.
|
|
21
|
+
* @category Requests
|
|
22
|
+
* @title LabKnowledgeRequest
|
|
23
|
+
* @excerpt Request object for fetching lab knowledge data
|
|
21
24
|
*/
|
|
22
25
|
export class LabKnowledgeRequest extends PagedRequest {
|
|
23
26
|
constructor() {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ErrorsCollector, PagedRequest, PagedRequestInput, PagedRequestValidator } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Input type for medication knowledge requests. Used to fetch knowledge about specific medications.
|
|
4
|
+
* @category Inputs
|
|
5
|
+
* @title MedicationKnowledgeRequestInput
|
|
6
|
+
* @excerpt Input for fetching medication knowledge by statement ID
|
|
7
|
+
*/
|
|
2
8
|
export type MedicationKnowledgeRequestInput = PagedRequestInput & {
|
|
3
9
|
medicationStatementId: string;
|
|
4
10
|
};
|
|
@@ -15,6 +21,9 @@ export declare class MedicationKnowledgeRequestValidator extends PagedRequestVal
|
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Request object for fetching medication knowledge data.
|
|
24
|
+
* @category Requests
|
|
25
|
+
* @title MedicationKnowledgeRequest
|
|
26
|
+
* @excerpt Request object for fetching medication knowledge data
|
|
18
27
|
*/
|
|
19
28
|
export declare class MedicationKnowledgeRequest extends PagedRequest<MedicationKnowledgeRequestInput> {
|
|
20
29
|
protected validator: MedicationKnowledgeRequestValidator;
|
|
@@ -18,6 +18,9 @@ export class MedicationKnowledgeRequestValidator extends PagedRequestValidator {
|
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Request object for fetching medication knowledge data.
|
|
21
|
+
* @category Requests
|
|
22
|
+
* @title MedicationKnowledgeRequest
|
|
23
|
+
* @excerpt Request object for fetching medication knowledge data
|
|
21
24
|
*/
|
|
22
25
|
export class MedicationKnowledgeRequest extends PagedRequest {
|
|
23
26
|
constructor() {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Input type for medication pricing requests. Used to fetch pricing information for medications.
|
|
4
|
+
* @category Inputs
|
|
5
|
+
* @title MedicationPricingRequestInput
|
|
6
|
+
* @excerpt Input for fetching medication pricing information
|
|
7
|
+
*/
|
|
2
8
|
export type MedicationPricingRequestInput = {
|
|
3
9
|
medicationStatementId: string;
|
|
4
10
|
};
|
|
@@ -15,6 +21,9 @@ export declare class MedicationPricingRequestValidator implements Validator<Medi
|
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* Request object for fetching medication pricing data.
|
|
24
|
+
* @category Requests
|
|
25
|
+
* @title MedicationPricingRequest
|
|
26
|
+
* @excerpt Request object for fetching medication pricing data
|
|
18
27
|
*/
|
|
19
28
|
export declare class MedicationPricingRequest extends ValidationRequest<MedicationPricingRequestInput> {
|
|
20
29
|
protected validator: MedicationPricingRequestValidator;
|
|
@@ -17,6 +17,9 @@ export class MedicationPricingRequestValidator {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Request object for fetching medication pricing data.
|
|
20
|
+
* @category Requests
|
|
21
|
+
* @title MedicationPricingRequest
|
|
22
|
+
* @excerpt Request object for fetching medication pricing data
|
|
20
23
|
*/
|
|
21
24
|
export class MedicationPricingRequest extends ValidationRequest {
|
|
22
25
|
constructor() {
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { SearchReference } from "../../../graphql/schema.js";
|
|
2
2
|
import { ErrorsCollector, ValidationRequest } from "../../../requests/index.js";
|
|
3
3
|
import { SearchDate, SearchString, SearchToken } from "../requests/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* Input type for appointment requests. Used to specify filters and search criteria for appointments.
|
|
6
|
+
* @category Inputs
|
|
7
|
+
* @title AppointmentsRequestInput
|
|
8
|
+
* @excerpt Input for appointment searches with filters
|
|
9
|
+
*/
|
|
4
10
|
export type AppointmentsRequestInput = {
|
|
5
11
|
/**
|
|
6
12
|
* The source[s] of the appointments to search for
|
|
@@ -67,6 +73,9 @@ declare class AppointmentsRequestValidator {
|
|
|
67
73
|
* for appointment-related input data.
|
|
68
74
|
*
|
|
69
75
|
* @extends ValidationRequest<AppointmentsRequestInput>
|
|
76
|
+
* @category Requests
|
|
77
|
+
* @title AppointmentsRequest
|
|
78
|
+
* @excerpt Represents a request for appointments within the health space
|
|
70
79
|
*/
|
|
71
80
|
export declare class AppointmentsRequest extends ValidationRequest<AppointmentsRequestInput> {
|
|
72
81
|
protected validator: AppointmentsRequestValidator;
|
|
@@ -69,6 +69,9 @@ _AppointmentsRequestValidator_searchDateValidator = new WeakMap(), _Appointments
|
|
|
69
69
|
* for appointment-related input data.
|
|
70
70
|
*
|
|
71
71
|
* @extends ValidationRequest<AppointmentsRequestInput>
|
|
72
|
+
* @category Requests
|
|
73
|
+
* @title AppointmentsRequest
|
|
74
|
+
* @excerpt Represents a request for appointments within the health space
|
|
72
75
|
*/
|
|
73
76
|
export class AppointmentsRequest extends ValidationRequest {
|
|
74
77
|
constructor() {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { CodeableConcept, Scalars } from "../../../graphql/schema.js";
|
|
2
2
|
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
3
3
|
/**
|
|
4
|
-
* Input type for canceling an appointment.
|
|
4
|
+
* Input type for canceling an appointment. Requires the appointment ID and optionally a cancellation reason.
|
|
5
|
+
* @category Inputs
|
|
6
|
+
* @title CancelAppointmentRequestInput
|
|
7
|
+
* @excerpt Input for canceling appointments with optional reason
|
|
5
8
|
* @property id - The unique identifier of the appointment to be canceled.
|
|
6
9
|
* @property cancelationReason - The reason for canceling the appointment (optional, FHIR CodeableConcept).
|
|
7
10
|
*/
|
|
@@ -42,6 +45,10 @@ declare class CancelAppointmentRequestValidator implements Validator<CancelAppoi
|
|
|
42
45
|
* Usage:
|
|
43
46
|
* const req = new CancelAppointmentRequest(input);
|
|
44
47
|
* const validation = req.validate();
|
|
48
|
+
*
|
|
49
|
+
* @category Requests
|
|
50
|
+
* @title CancelAppointmentRequest
|
|
51
|
+
* @excerpt Represents a request for canceling an appointment within the health space
|
|
45
52
|
*/
|
|
46
53
|
export declare class CancelAppointmentRequest extends ValidationRequest<CancelAppointmentRequestInput> {
|
|
47
54
|
/**
|
|
@@ -45,6 +45,10 @@ class CancelAppointmentRequestValidator {
|
|
|
45
45
|
* Usage:
|
|
46
46
|
* const req = new CancelAppointmentRequest(input);
|
|
47
47
|
* const validation = req.validate();
|
|
48
|
+
*
|
|
49
|
+
* @category Requests
|
|
50
|
+
* @title CancelAppointmentRequest
|
|
51
|
+
* @excerpt Represents a request for canceling an appointment within the health space
|
|
48
52
|
*/
|
|
49
53
|
export class CancelAppointmentRequest extends ValidationRequest {
|
|
50
54
|
constructor() {
|