@icanbwell/bwell-sdk-ts 1.93.0 → 1.94.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/dist/__version__.d.ts +1 -1
- package/dist/__version__.js +1 -1
- package/dist/api/base/health-data/body-system-score-request.d.ts +10 -0
- package/dist/api/base/health-data/body-system-score-request.js +15 -0
- package/dist/api/base/health-data/health-manager.d.ts +8 -1
- package/dist/api/base/health-data/index.d.ts +2 -1
- package/dist/api/base/health-data/index.js +1 -0
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +2 -0
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +28 -0
- package/dist/graphql/operations/index.d.ts +16 -0
- package/dist/graphql/operations/index.js +92 -0
- package/dist/graphql/operations/types.d.ts +88 -0
- package/dist/graphql/schema.d.ts +101 -0
- package/dist/graphql/schema.js +1 -0
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ErrorsCollector, ValidationRequest, Validator } from "../../../requests/index.js";
|
|
2
|
+
export type BodySystemScoreRequestInput = {
|
|
3
|
+
bodySystemId: string;
|
|
4
|
+
};
|
|
5
|
+
export declare class BodySystemScoreRequestValidator implements Validator<BodySystemScoreRequestInput> {
|
|
6
|
+
validate(data: BodySystemScoreRequestInput, errors: ErrorsCollector): void;
|
|
7
|
+
}
|
|
8
|
+
export declare class BodySystemScoreRequest extends ValidationRequest<BodySystemScoreRequestInput> {
|
|
9
|
+
protected validator: BodySystemScoreRequestValidator;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ValidationRequest, } from "../../../requests/index.js";
|
|
2
|
+
import { isBlank } from "../../../utils/index.js";
|
|
3
|
+
export class BodySystemScoreRequestValidator {
|
|
4
|
+
validate(data, errors) {
|
|
5
|
+
if (isBlank(data.bodySystemId)) {
|
|
6
|
+
errors.add("The body system score request must contain a body system id.");
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export class BodySystemScoreRequest extends ValidationRequest {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.validator = new BodySystemScoreRequestValidator();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetBinaryQueryResults, GetCarePlanGroupsQueryResults, GetCarePlansQueryResults, GetCareTeamsQueryResults, GetConditionGroupsQueryResults, GetConditionsQueryResults, GetDeviceMetricsGroupsQueryResults, GetDiagnosticReportLabGroupsQueryResults, GetDiagnosticReportsQueryResults, GetDocumentReferencesQueryResults, GetEncounterQueryResults, GetEncountersGroupQueryResults, GetHealthSummaryQueryResults, GetImmunizationGroupsQueryResults, GetImmunizationsQueryResults, GetLabGroupsQueryResults, GetLabKnowledgeQueryResults, GetLabsQueryResults, GetMedicationGroupsQueryResults, GetMedicationKnowledgeQueryResults, GetMedicationPricingQueryResults, GetMedicationStatementsQueryResults, GetObservationsQueryResults, GetProcedureGroupsQueryResults, GetProceduresQueryResults, GetVitalSignGroupsQueryResults, UpdateMedicationStatementMutationResults } from "../../../graphql/operations/types.js";
|
|
1
|
+
import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetBinaryQueryResults, GetBodySystemScoreQueryResults, GetCarePlanGroupsQueryResults, GetCarePlansQueryResults, GetCareTeamsQueryResults, GetConditionGroupsQueryResults, GetConditionsQueryResults, GetDeviceMetricsGroupsQueryResults, GetDiagnosticReportLabGroupsQueryResults, GetDiagnosticReportsQueryResults, GetDocumentReferencesQueryResults, GetEncounterQueryResults, GetEncountersGroupQueryResults, GetHealthScoreQueryResults, GetHealthSummaryQueryResults, GetImmunizationGroupsQueryResults, GetImmunizationsQueryResults, GetLabGroupsQueryResults, GetLabKnowledgeQueryResults, GetLabsQueryResults, GetMedicationGroupsQueryResults, GetMedicationKnowledgeQueryResults, GetMedicationPricingQueryResults, GetMedicationStatementsQueryResults, GetObservationsQueryResults, GetProcedureGroupsQueryResults, GetProceduresQueryResults, GetVitalSignGroupsQueryResults, UpdateMedicationStatementMutationResults } from "../../../graphql/operations/types.js";
|
|
2
2
|
import { BWellQueryResult, BWellTransactionResult } from "../../../results/index.js";
|
|
3
3
|
import { MedicationDispenseResultsType } from "../../graphql-api/healthdata/graphql-get-medication-dispense-bwell-response-factory.js";
|
|
4
4
|
import { MedicationRequestResultsType } from "../../graphql-api/healthdata/graphql-get-medication-request-bwell-response-factory.js";
|
|
5
5
|
import type { BaseManagerError } from "../errors.js";
|
|
6
|
+
import { BodySystemScoreRequest } from "./body-system-score-request.js";
|
|
6
7
|
import { AllergyIntoleranceGroupsRequest, AllergyIntolerancesRequest, BinaryRequest, CarePlanGroupsRequest, CarePlansRequest, CareTeamsRequest, ConditionGroupsRequest, ConditionsRequest, DeviceMetricsGroupsRequest, DiagnosticReportLabGroupsRequest, DiagnosticReportsRequest, DocumentReferencesRequest, EncounterGroupsRequest, EncountersRequest, HealthDataRequest, ImmunizationGroupsRequest, ImmunizationsRequest, LabGroupsRequest, LabsRequest, MedicationDispenseRequest, MedicationGroupsRequest, MedicationRequestRequest, MedicationStatementsRequest, ProcedureGroupsRequest, ProceduresRequest, VitalSignGroupsRequest, VitalSignsRequest } from "./health-data-request.js";
|
|
7
8
|
import { LabKnowledgeRequest } from "./lab-knowledge-request.js";
|
|
8
9
|
import { MedicationKnowledgeRequest } from "./medication-knowledge-request.js";
|
|
@@ -11,6 +12,10 @@ import { UpdateMedicationStatementRequest } from "./medication-statement-request
|
|
|
11
12
|
type HealthSummaryResultsType = GetHealthSummaryQueryResults["getHealthSummary"];
|
|
12
13
|
export interface HealthSummaryResults extends HealthSummaryResultsType {
|
|
13
14
|
}
|
|
15
|
+
type HealthScoreResultsType = GetHealthScoreQueryResults["getHealthScore"]["resource"];
|
|
16
|
+
export type HealthScoreResults = HealthScoreResultsType;
|
|
17
|
+
type BodySystemScoreResultsType = GetBodySystemScoreQueryResults["getBodySystemScore"]["resource"];
|
|
18
|
+
export type BodySystemScoreResults = BodySystemScoreResultsType;
|
|
14
19
|
type AllergyIntolerancesResultsType = GetAllergyIntolerancesQueryResults["getAllergyIntolerances"];
|
|
15
20
|
export interface AllergyIntolerancesResults extends AllergyIntolerancesResultsType {
|
|
16
21
|
}
|
|
@@ -375,5 +380,7 @@ export interface HealthManager {
|
|
|
375
380
|
* @returns {Promise<BWellQueryResult<DiagnosticReportLabGroupsResults>>} A promise resolving to an object representing the list of diagnostic report lab groups retrieved.
|
|
376
381
|
*/
|
|
377
382
|
getDiagnosticReportLabGroups(request: DiagnosticReportLabGroupsRequest): Promise<BWellQueryResult<DiagnosticReportLabGroupsResults>>;
|
|
383
|
+
getHealthScore(): Promise<BWellQueryResult<HealthScoreResults, BaseManagerError>>;
|
|
384
|
+
getBodySystemScore(request: BodySystemScoreRequest): Promise<BWellQueryResult<BodySystemScoreResults, BaseManagerError>>;
|
|
378
385
|
}
|
|
379
386
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, BinaryRequest, ConditionsRequest, ConditionGroupsRequest, DiagnosticReportsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, DeviceMetricsGroupsRequest, MedicationDispenseRequest, MedicationRequestRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, DiagnosticReportLabGroupsRequest, } from "./health-data-request.js";
|
|
2
2
|
export { MedicationPricingRequest, MedicationPricingRequestInput, } from "./medication-pricing-request.js";
|
|
3
|
+
export { BodySystemScoreRequest, BodySystemScoreRequestInput, } from "./body-system-score-request.js";
|
|
3
4
|
export { MedicationKnowledgeRequest, MedicationKnowledgeRequestInput, } from "./medication-knowledge-request.js";
|
|
4
5
|
export { LabKnowledgeRequest, LabKnowledgeRequestInput, } from "./lab-knowledge-request.js";
|
|
5
6
|
export { UpdateMedicationStatementRequest, UpdateMedicationStatementInput, UpdateMedicationStatementStatus, } from "./medication-statement-request.js";
|
|
6
|
-
export { HealthSummaryResults, AllergyIntolerancesResults, AllergyIntolerancesGroupsResults, BinaryResults, ConditionsResults, ConditionGroupsResults, DiagnosticReportsResults, DocumentReferencesResults, LabsResults, LabGroupsResults, CarePlansResults, CarePlanGroupsResults, CareTeamsResults, EncountersResults, EncounterGroupsResults, ImmunizationsResults, ImmunizationGroupsResults, ProceduresResults, ProcedureGroupsResults, VitalSignsResults, VitalSignGroupsResults, DeviceMetricsResults, DeviceMetricsGroupsResults, MedicationDispenseResults, MedicationRequestResults, MedicationStatementsResults, MedicationKnowledgeResults, MedicationGroupsResults, LabKnowledgeResults, HealthManager, MedicationPricingResults, DiagnosticReportLabGroupsResults, UpdateMedicationStatementResult, } from "./health-manager.js";
|
|
7
|
+
export { HealthSummaryResults, HealthScoreResults, BodySystemScoreResults, AllergyIntolerancesResults, AllergyIntolerancesGroupsResults, BinaryResults, ConditionsResults, ConditionGroupsResults, DiagnosticReportsResults, DocumentReferencesResults, LabsResults, LabGroupsResults, CarePlansResults, CarePlanGroupsResults, CareTeamsResults, EncountersResults, EncounterGroupsResults, ImmunizationsResults, ImmunizationGroupsResults, ProceduresResults, ProcedureGroupsResults, VitalSignsResults, VitalSignGroupsResults, DeviceMetricsResults, DeviceMetricsGroupsResults, MedicationDispenseResults, MedicationRequestResults, MedicationStatementsResults, MedicationKnowledgeResults, MedicationGroupsResults, LabKnowledgeResults, HealthManager, MedicationPricingResults, DiagnosticReportLabGroupsResults, UpdateMedicationStatementResult, } from "./health-manager.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, BinaryRequest, ConditionsRequest, ConditionGroupsRequest, DiagnosticReportsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, CareTeamsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, DeviceMetricsGroupsRequest, MedicationDispenseRequest, MedicationRequestRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, DiagnosticReportLabGroupsRequest, } from "./health-data-request.js";
|
|
2
2
|
export { MedicationPricingRequest, } from "./medication-pricing-request.js";
|
|
3
|
+
export { BodySystemScoreRequest, } from "./body-system-score-request.js";
|
|
3
4
|
export { MedicationKnowledgeRequest, } from "./medication-knowledge-request.js";
|
|
4
5
|
export { LabKnowledgeRequest, } from "./lab-knowledge-request.js";
|
|
5
6
|
export { UpdateMedicationStatementRequest, UpdateMedicationStatementStatus, } from "./medication-statement-request.js";
|
|
@@ -49,4 +49,6 @@ export declare class GraphQLHealthManager extends GraphQLManager implements Heal
|
|
|
49
49
|
getLabKnowledge(request: health.LabKnowledgeRequest): Promise<BWellQueryResult<health.LabKnowledgeResults, ValidationError | BaseManagerError>>;
|
|
50
50
|
getMedicationPricing(request: health.MedicationPricingRequest): Promise<BWellQueryResult<health.MedicationPricingResults, ValidationError | BaseManagerError>>;
|
|
51
51
|
getDiagnosticReportLabGroups(request?: health.DiagnosticReportLabGroupsRequest): Promise<BWellQueryResult<health.DiagnosticReportLabGroupsResults, ValidationError | BaseManagerError>>;
|
|
52
|
+
getHealthScore(): Promise<BWellQueryResult<health.HealthScoreResults, BaseManagerError>>;
|
|
53
|
+
getBodySystemScore(request: health.BodySystemScoreRequest): Promise<BWellQueryResult<health.BodySystemScoreResults, ValidationError | BaseManagerError>>;
|
|
52
54
|
}
|
|
@@ -606,5 +606,33 @@ export class GraphQLHealthManager extends GraphQLManager {
|
|
|
606
606
|
return new BWellQueryResult((_b = result.data) === null || _b === void 0 ? void 0 : _b.getDiagnosticReportLabGroups, result.error);
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
|
+
getHealthScore() {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
611
|
+
var _a;
|
|
612
|
+
__classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("calling getHealthScore...");
|
|
613
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLHealthManager_sdk, "f").getHealthScore());
|
|
614
|
+
__classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("getHealthScore complete");
|
|
615
|
+
if (result.hasError()) {
|
|
616
|
+
__classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").error("getHealthScore errors", result.error);
|
|
617
|
+
}
|
|
618
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getHealthScore.resource, result.error);
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
getBodySystemScore(request) {
|
|
622
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
623
|
+
var _a;
|
|
624
|
+
const validationResult = this.validateRequest(request);
|
|
625
|
+
if (validationResult.failure()) {
|
|
626
|
+
return validationResult.toQueryResult();
|
|
627
|
+
}
|
|
628
|
+
__classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("calling getBodySystemScore...");
|
|
629
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLHealthManager_sdk, "f").getBodySystemScore({ request: request.data() }));
|
|
630
|
+
__classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("getBodySystemScore complete");
|
|
631
|
+
if (result.hasError()) {
|
|
632
|
+
__classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").error("getBodySystemScore errors", result.error);
|
|
633
|
+
}
|
|
634
|
+
return new BWellQueryResult((_a = result.data) === null || _a === void 0 ? void 0 : _a.getBodySystemScore.resource, result.error);
|
|
635
|
+
});
|
|
636
|
+
}
|
|
609
637
|
}
|
|
610
638
|
_GraphQLHealthManager_sdk = new WeakMap(), _GraphQLHealthManager_logger = new WeakMap(), _GraphQLHealthManager_medicationRequestResponseFactory = new WeakMap(), _GraphQLHealthManager_medicationDispenseResponseFactory = new WeakMap(), _GraphQLHealthManager_diagnosticReportRequestFactory = new WeakMap(), _GraphQLHealthManager_updateMedicationStatementRequestFactory = new WeakMap();
|
|
@@ -115,6 +115,8 @@ export declare const GetCoveragesDocument = "\n query getCoverages($id: Searc
|
|
|
115
115
|
export declare const GetExplanationOfBenefitsDocument = "\n query getExplanationOfBenefits($id: SearchString, $lastUpdated: SearchDate, $page: Int, $pageSize: Int, $patient: SearchReference, $provider: SearchReference, $coverage: SearchReference, $status: SearchToken, $created: SearchDate, $sort: [String], $total: TotalType) {\n explanationOfBenefits(\n id: $id\n _count: $pageSize\n _lastUpdated: $lastUpdated\n _getpagesoffset: $page\n patient: $patient\n provider: $provider\n coverage: $coverage\n status: $status\n created: $created\n _sort: $sort\n _total: $total\n ) {\n id\n total\n entry {\n id\n resource {\n id\n meta {\n ...MetaFields\n }\n identifier {\n ...IdentifierFields\n }\n status\n type {\n ...CodeableConceptFields\n }\n use\n patient {\n reference\n type\n display\n resource {\n ...PatientFields\n }\n }\n adjudication {\n ...ExplanationOfBenefitAdjudicationFields\n }\n billablePeriod {\n ...PeriodFields\n }\n benefitPeriod {\n ...PeriodFields\n }\n insurer {\n reference\n type\n display\n }\n provider {\n reference\n type\n display\n resource {\n ... on Practitioner {\n __typename\n ...PractitionerFields\n }\n ... on Organization {\n __typename\n organizationName: name\n meta {\n ...MetaFields\n }\n }\n }\n }\n related {\n relationship {\n ...CodeableConceptFields\n }\n reference {\n ...IdentifierFields\n }\n }\n payee {\n type {\n ...CodeableConceptFields\n }\n party {\n reference\n type\n display\n }\n }\n outcome\n careTeam {\n id\n sequence\n provider {\n reference\n type\n display\n }\n qualification {\n ...CodeableConceptFields\n }\n role {\n ...CodeableConceptFields\n }\n }\n supportingInfo {\n sequence\n category {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n timingDate\n timingPeriod {\n ...PeriodFields\n }\n valueBoolean\n valueString\n valueQuantity {\n ...QuantityFields\n }\n valueAttachment {\n ...AttachmentFields\n }\n valueReference {\n reference\n type\n display\n }\n reason {\n ...CodingFields\n }\n }\n insurance {\n focal\n coverage {\n reference\n type\n display\n }\n }\n payment {\n id\n adjustment {\n ...MoneyResourceFields\n }\n amount {\n ...MoneyResourceFields\n }\n date\n type {\n ...CodeableConceptFields\n }\n }\n processNote {\n type\n text\n }\n created\n diagnosis {\n id\n sequence\n diagnosisCodeableConcept {\n ...CodeableConceptFields\n }\n diagnosisReference {\n reference\n type\n display\n }\n type {\n ...CodeableConceptFields\n }\n onAdmission {\n ...CodeableConceptFields\n }\n packageCode {\n ...CodeableConceptFields\n }\n }\n item {\n id\n sequence\n bodySite {\n ...CodeableConceptFields\n }\n adjudication {\n ...ExplanationOfBenefitAdjudicationFields\n }\n locationCodeableConcept {\n ...CodeableConceptFields\n }\n modifier {\n ...CodeableConceptFields\n }\n net {\n ...MoneyResourceFields\n }\n noteNumber\n productOrService {\n ...CodeableConceptFields\n }\n quantity {\n ...QuantityFields\n }\n revenue {\n ...CodeableConceptFields\n }\n servicedDate\n servicedPeriod {\n ...PeriodFields\n }\n }\n subType {\n ...CodeableConceptFields\n }\n total {\n amount {\n ...MoneyResourceFields\n }\n category {\n ...CodeableConceptFields\n }\n }\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PatientFields on Patient {\n id\n name {\n ...HumanNameFields\n }\n birthDate\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ExplanationOfBenefitAdjudicationFields on ExplanationOfBenefitAdjudication {\n id\n category {\n ...CodeableConceptFields\n }\n reason {\n ...CodeableConceptFields\n }\n amount {\n ...MoneyResourceFields\n }\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment MoneyResourceFields on Money {\n value\n currency\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment PractitionerFields on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment AttachmentFields on Attachment {\n contentType\n data\n url\n title\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment MoneyResourceFields on Money {\n value\n currency\n}\n ";
|
|
116
116
|
export declare const GetBinaryDocument = "\n query getBinary($request: BinaryRequest!) {\n getBinary(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n resourceType\n id\n data\n contentType\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
|
|
117
117
|
export declare const GetFhirDocument = "\n query getFHIR($request: ResourceRequest!) {\n getFHIR(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n ";
|
|
118
|
+
export declare const GetBodySystemScoreDocument = "\n query getBodySystemScore($request: BodySystemScoreRequest!) {\n getBodySystemScore(request: $request) {\n resource {\n id\n bodySystemId\n title\n score\n grade\n trendDirection\n trendRate\n calculationDate\n periodStart\n periodEnd\n bioAge\n actualAge\n bioAgeOffset\n recommendations\n components {\n key\n title\n score\n category\n value\n text\n }\n dailyScores {\n date\n score\n grade\n components {\n key\n score\n }\n }\n quality {\n dataQuality\n scoreIsComplete\n scoredComponents\n missingComponents\n }\n }\n }\n}\n ";
|
|
119
|
+
export declare const GetHealthScoreDocument = "\n query getHealthScore {\n getHealthScore {\n resource {\n id\n overallScore\n overallGrade\n trendDirection\n trendRate\n calculationDate\n periodStart\n periodEnd\n bioAge\n actualAge\n bioAgeOffset\n recommendations\n bodySystems {\n bodySystemId\n title\n score\n grade\n }\n dailyScores {\n date\n score\n grade\n components {\n key\n score\n }\n }\n quality {\n dataQuality\n scoreIsComplete\n scoredComponents\n missingComponents\n }\n }\n }\n}\n ";
|
|
118
120
|
export declare const GetDiagnosticReportsDocument = "\n query getDiagnosticReports($pageSize: Int = null, $page: Int = null, $id: SearchString = null, $sort: [String] = null) {\n diagnosticReports(\n _count: $pageSize\n _getpagesoffset: $page\n id: $id\n _sort: $sort\n ) {\n entry {\n resource {\n id\n meta {\n ...MetaFields\n }\n basedOn {\n reference\n display\n }\n category {\n ...CodeableConceptFields\n }\n code {\n ...CodeableConceptFields\n }\n effectiveDateTime\n encounter {\n reference\n display\n }\n issued\n performer {\n reference\n display\n }\n presentedForm {\n data\n }\n resourceType\n result {\n ... on DiagnosticReportResultReference {\n display\n reference\n }\n }\n status\n }\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
119
121
|
export declare const GetAllergyIntoleranceGroupsDocument = "\n query getAllergyIntoleranceGroups($request: AllergyIntoleranceGroupQueryRequest) {\n getAllergyIntoleranceGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n coding {\n ...CodingFields\n }\n references\n criticality {\n code\n display\n }\n recordedDate\n source\n sourceDisplay\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
120
122
|
export declare const GetAllergyIntolerancesDocument = "\n query getAllergyIntolerances($request: AllergyIntolerancesRequest) {\n getAllergyIntolerances(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n resourceType\n id\n meta {\n ...MetaFields\n }\n category {\n code\n display\n }\n code {\n coding {\n system\n code\n display\n }\n text\n }\n criticality {\n code\n display\n }\n onsetDateTime\n onsetPeriod {\n start\n end\n }\n text {\n ...NarrativeFields\n }\n typeCoding {\n code\n display\n }\n recorder {\n ... on Practitioner {\n ...PractitionerFields\n }\n }\n lastOccurrence\n reaction {\n ...ReactionFields\n }\n recordedDate\n note {\n authorString\n time\n text\n }\n verificationStatus {\n coding {\n system\n code\n display\n }\n text\n }\n clinicalStatus {\n coding {\n system\n code\n display\n }\n text\n }\n }\n }\n}\n \n fragment PagingFields on PagingResults {\n page_number\n page_size\n total_pages\n total_items\n}\n \n\n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment PractitionerFields on Practitioner {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment ReactionFields on Reaction {\n description\n manifestation {\n ...CodeableConceptFields\n }\n onset\n severity {\n code\n display\n }\n note {\n authorString\n time\n text\n }\n date\n detail {\n ...ObservationFields\n }\n reported\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment ObservationFields on ObservationResource {\n id\n meta {\n ...MetaFields\n }\n resourceType\n text {\n ...NarrativeFields\n }\n identifier {\n ...IdentifierFields\n }\n subject {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n }\n issued\n basedOn {\n ...ObservationBasedOnFields\n }\n code {\n ...CodeableConceptFields\n }\n category {\n ...CodeableConceptFields\n }\n value {\n ...ValueFields\n }\n referenceRange {\n ...ReferenceRangeFields\n }\n interpretation {\n ...CodeableConceptFields\n }\n component {\n ...ComponentFields\n }\n effectiveDateTime\n effectivePeriod {\n ...PeriodFields\n }\n note {\n authorString\n time\n text\n }\n encounter {\n ...EncounterFields\n }\n performer {\n ...PerformerFields\n }\n hasMember {\n ... on ObservationResource {\n id\n code {\n ...CodeableConceptFields\n }\n }\n }\n specimen {\n ...SpecimenResourceFields\n }\n status {\n display\n code\n }\n dataAbsentReason {\n ...CodeableConceptFields\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ObservationBasedOnFields on ObservationBasedOn {\n ... on ServiceRequest {\n resourceType\n id\n reasonCode {\n ...CodeableConceptFields\n }\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment ValueFields on Value {\n valueQuantity {\n ...QuantityFields\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueString\n valueBoolean\n valueInteger\n valueRatio {\n ...RatioFields\n }\n valueRange {\n ...RangeFields\n }\n valueTime\n valueDateTime\n valuePeriod {\n ...PeriodFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment ReferenceRangeFields on ReferenceRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n text\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment ComponentFields on Component {\n code {\n ...CodeableConceptFields\n }\n value {\n ...ValueFields\n }\n referenceRange {\n ...ReferenceRangeFields\n }\n interpretation {\n ...CodeableConceptFields\n }\n dataAbsentReason {\n ...CodeableConceptFields\n }\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment ValueFields on Value {\n valueQuantity {\n ...QuantityFields\n }\n valueCodeableConcept {\n ...CodeableConceptFields\n }\n valueString\n valueBoolean\n valueInteger\n valueRatio {\n ...RatioFields\n }\n valueRange {\n ...RangeFields\n }\n valueTime\n valueDateTime\n valuePeriod {\n ...PeriodFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment RatioFields on Ratio {\n numerator {\n ...QuantityFields\n }\n denominator {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment RangeFields on Range {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment ReferenceRangeFields on ReferenceRange {\n low {\n ...QuantityFields\n }\n high {\n ...QuantityFields\n }\n text\n}\n \n fragment QuantityFields on Quantity {\n value\n unit\n code\n comparator\n system\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment EncounterFields on EncounterResource {\n meta {\n ...MetaFields\n }\n id\n resourceType\n text {\n ...NarrativeFields\n }\n encounterLocations: locations {\n location {\n ...LocationFields\n }\n status\n physicalType {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n }\n identifier {\n ...IdentifierFields\n }\n type {\n ...CodeableConceptFields\n }\n status {\n display\n code\n }\n participant {\n ...ParticipantFields\n }\n period {\n ...PeriodFields\n }\n reasonCode {\n ...CodeableConceptFields\n }\n class {\n system\n code\n display\n }\n location {\n ...LocationFields\n }\n serviceProvider {\n name\n endpoint {\n name\n status\n connectionType {\n system\n code\n display\n }\n address\n }\n }\n subject {\n id\n name {\n ...HumanNameFields\n }\n gender\n birthDate\n communication {\n language {\n ...CodeableConceptFields\n }\n }\n }\n reasonReference {\n ...ConditionFields\n }\n hospitalization {\n dischargeDisposition {\n ...CodeableConceptFields\n }\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment NarrativeFields on Narrative {\n div\n status\n}\n \n\n fragment LocationFields on Location {\n name\n identifier {\n ...IdentifierFields\n }\n alias\n description\n address {\n ...AddressFields\n }\n position {\n lat\n lon\n }\n distanceInMiles\n telecom {\n ...ContactPointFields\n }\n type {\n ...CodeableConceptFields\n }\n status\n managingOrganization {\n ...LocationManagingOrganizationReferenceFields\n }\n}\n \n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment AddressFields on Address {\n use\n type\n text\n line\n city\n district\n state\n postalCode\n country\n}\n \n\n fragment ContactPointFields on ContactPoint {\n id\n system\n value\n use\n rank\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment LocationManagingOrganizationReferenceFields on LocationManagingOrganizationReference {\n id\n reference\n identifier {\n ...IdentifierFields\n }\n display\n}\n \n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment ParticipantFields on Participant {\n individual {\n id\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n }\n type {\n ...CodeableConceptFields\n }\n period {\n ...PeriodFields\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment ConditionFields on ConditionResource {\n id\n meta {\n ...MetaFields\n }\n code {\n ...CodeableConceptFields\n }\n clinicalStatus {\n ...CodeableConceptFields\n }\n onsetDateTime\n recordedDate\n recorder {\n ...RecorderFields\n }\n note {\n authorString\n time\n text\n }\n onsetPeriod {\n ...PeriodFields\n }\n abatementDateTime\n abatementPeriod {\n ...PeriodFields\n }\n category {\n ...CodeableConceptFields\n }\n severity {\n ...CodeableConceptFields\n }\n verificationStatus {\n ...CodeableConceptFields\n }\n bodySite {\n ...CodeableConceptFields\n }\n}\n \n fragment MetaFields on Meta {\n versionId\n lastUpdated\n source\n security {\n ...CodingFields\n }\n tag {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment RecorderFields on Recorder {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n \n\n fragment PerformerFields on Performer {\n actor {\n ...ActorFields\n }\n}\n \n fragment ActorFields on Actor {\n __typename\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n identifier {\n ...IdentifierFields\n }\n }\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Organization {\n organizationName: name\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n \n\n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment SpecimenResourceFields on SpecimenResource {\n identifier {\n ...IdentifierFields\n }\n accessionIdentifier {\n ...IdentifierFields\n }\n type {\n ...CodeableConceptFields\n }\n}\n \n fragment IdentifierFields on Identifier {\n id\n type {\n ...CodeableConceptFields\n }\n system\n value\n}\n \n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment CodeableConceptFields on CodeableConcept {\n text\n coding {\n ...CodingFields\n }\n}\n \n fragment CodingFields on Coding {\n system\n code\n display\n}\n ";
|
|
@@ -336,6 +338,20 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
336
338
|
headers: Headers;
|
|
337
339
|
status: number;
|
|
338
340
|
}>;
|
|
341
|
+
getBodySystemScore(variables: Types.GetBodySystemScoreQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
342
|
+
data: Types.GetBodySystemScoreQueryResults;
|
|
343
|
+
errors?: GraphQLError[];
|
|
344
|
+
extensions?: any;
|
|
345
|
+
headers: Headers;
|
|
346
|
+
status: number;
|
|
347
|
+
}>;
|
|
348
|
+
getHealthScore(variables?: Types.GetHealthScoreQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
349
|
+
data: Types.GetHealthScoreQueryResults;
|
|
350
|
+
errors?: GraphQLError[];
|
|
351
|
+
extensions?: any;
|
|
352
|
+
headers: Headers;
|
|
353
|
+
status: number;
|
|
354
|
+
}>;
|
|
339
355
|
getDiagnosticReports(variables?: Types.GetDiagnosticReportsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
340
356
|
data: Types.GetDiagnosticReportsQueryResults;
|
|
341
357
|
errors?: GraphQLError[];
|
|
@@ -2667,6 +2667,92 @@ export const GetFhirDocument = `
|
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
2669
2669
|
${PagingFieldsFragmentDoc}`;
|
|
2670
|
+
export const GetBodySystemScoreDocument = `
|
|
2671
|
+
query getBodySystemScore($request: BodySystemScoreRequest!) {
|
|
2672
|
+
getBodySystemScore(request: $request) {
|
|
2673
|
+
resource {
|
|
2674
|
+
id
|
|
2675
|
+
bodySystemId
|
|
2676
|
+
title
|
|
2677
|
+
score
|
|
2678
|
+
grade
|
|
2679
|
+
trendDirection
|
|
2680
|
+
trendRate
|
|
2681
|
+
calculationDate
|
|
2682
|
+
periodStart
|
|
2683
|
+
periodEnd
|
|
2684
|
+
bioAge
|
|
2685
|
+
actualAge
|
|
2686
|
+
bioAgeOffset
|
|
2687
|
+
recommendations
|
|
2688
|
+
components {
|
|
2689
|
+
key
|
|
2690
|
+
title
|
|
2691
|
+
score
|
|
2692
|
+
category
|
|
2693
|
+
value
|
|
2694
|
+
text
|
|
2695
|
+
}
|
|
2696
|
+
dailyScores {
|
|
2697
|
+
date
|
|
2698
|
+
score
|
|
2699
|
+
grade
|
|
2700
|
+
components {
|
|
2701
|
+
key
|
|
2702
|
+
score
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
quality {
|
|
2706
|
+
dataQuality
|
|
2707
|
+
scoreIsComplete
|
|
2708
|
+
scoredComponents
|
|
2709
|
+
missingComponents
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
`;
|
|
2715
|
+
export const GetHealthScoreDocument = `
|
|
2716
|
+
query getHealthScore {
|
|
2717
|
+
getHealthScore {
|
|
2718
|
+
resource {
|
|
2719
|
+
id
|
|
2720
|
+
overallScore
|
|
2721
|
+
overallGrade
|
|
2722
|
+
trendDirection
|
|
2723
|
+
trendRate
|
|
2724
|
+
calculationDate
|
|
2725
|
+
periodStart
|
|
2726
|
+
periodEnd
|
|
2727
|
+
bioAge
|
|
2728
|
+
actualAge
|
|
2729
|
+
bioAgeOffset
|
|
2730
|
+
recommendations
|
|
2731
|
+
bodySystems {
|
|
2732
|
+
bodySystemId
|
|
2733
|
+
title
|
|
2734
|
+
score
|
|
2735
|
+
grade
|
|
2736
|
+
}
|
|
2737
|
+
dailyScores {
|
|
2738
|
+
date
|
|
2739
|
+
score
|
|
2740
|
+
grade
|
|
2741
|
+
components {
|
|
2742
|
+
key
|
|
2743
|
+
score
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
quality {
|
|
2747
|
+
dataQuality
|
|
2748
|
+
scoreIsComplete
|
|
2749
|
+
scoredComponents
|
|
2750
|
+
missingComponents
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
`;
|
|
2670
2756
|
export const GetDiagnosticReportsDocument = `
|
|
2671
2757
|
query getDiagnosticReports($pageSize: Int = null, $page: Int = null, $id: SearchString = null, $sort: [String] = null) {
|
|
2672
2758
|
diagnosticReports(
|
|
@@ -5076,6 +5162,12 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
5076
5162
|
getFHIR(variables, requestHeaders) {
|
|
5077
5163
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetFhirDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getFHIR', 'query', variables);
|
|
5078
5164
|
},
|
|
5165
|
+
getBodySystemScore(variables, requestHeaders) {
|
|
5166
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetBodySystemScoreDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getBodySystemScore', 'query', variables);
|
|
5167
|
+
},
|
|
5168
|
+
getHealthScore(variables, requestHeaders) {
|
|
5169
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetHealthScoreDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getHealthScore', 'query', variables);
|
|
5170
|
+
},
|
|
5079
5171
|
getDiagnosticReports(variables, requestHeaders) {
|
|
5080
5172
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDiagnosticReportsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getDiagnosticReports', 'query', variables);
|
|
5081
5173
|
},
|
|
@@ -10595,6 +10595,94 @@ export type GetFhirQueryResults = {
|
|
|
10595
10595
|
} | null;
|
|
10596
10596
|
};
|
|
10597
10597
|
};
|
|
10598
|
+
export type GetBodySystemScoreQueryVariables = Types.Exact<{
|
|
10599
|
+
request: Types.BodySystemScoreRequest;
|
|
10600
|
+
}>;
|
|
10601
|
+
export type GetBodySystemScoreQueryResults = {
|
|
10602
|
+
getBodySystemScore: {
|
|
10603
|
+
resource: {
|
|
10604
|
+
id: string | null;
|
|
10605
|
+
bodySystemId: string | null;
|
|
10606
|
+
title: string | null;
|
|
10607
|
+
score: number | null;
|
|
10608
|
+
grade: string | null;
|
|
10609
|
+
trendDirection: string | null;
|
|
10610
|
+
trendRate: number | null;
|
|
10611
|
+
calculationDate: any | null;
|
|
10612
|
+
periodStart: any | null;
|
|
10613
|
+
periodEnd: any | null;
|
|
10614
|
+
bioAge: number | null;
|
|
10615
|
+
actualAge: number | null;
|
|
10616
|
+
bioAgeOffset: number | null;
|
|
10617
|
+
recommendations: Array<string | null> | null;
|
|
10618
|
+
components: Array<{
|
|
10619
|
+
key: string | null;
|
|
10620
|
+
title: string | null;
|
|
10621
|
+
score: number | null;
|
|
10622
|
+
category: string | null;
|
|
10623
|
+
value: string | null;
|
|
10624
|
+
text: string | null;
|
|
10625
|
+
} | null> | null;
|
|
10626
|
+
dailyScores: Array<{
|
|
10627
|
+
date: any | null;
|
|
10628
|
+
score: number | null;
|
|
10629
|
+
grade: string | null;
|
|
10630
|
+
components: Array<{
|
|
10631
|
+
key: string | null;
|
|
10632
|
+
score: number | null;
|
|
10633
|
+
} | null> | null;
|
|
10634
|
+
} | null> | null;
|
|
10635
|
+
quality: {
|
|
10636
|
+
dataQuality: string | null;
|
|
10637
|
+
scoreIsComplete: boolean | null;
|
|
10638
|
+
scoredComponents: string | null;
|
|
10639
|
+
missingComponents: Array<string | null> | null;
|
|
10640
|
+
} | null;
|
|
10641
|
+
} | null;
|
|
10642
|
+
};
|
|
10643
|
+
};
|
|
10644
|
+
export type GetHealthScoreQueryVariables = Types.Exact<{
|
|
10645
|
+
[key: string]: never;
|
|
10646
|
+
}>;
|
|
10647
|
+
export type GetHealthScoreQueryResults = {
|
|
10648
|
+
getHealthScore: {
|
|
10649
|
+
resource: {
|
|
10650
|
+
id: string | null;
|
|
10651
|
+
overallScore: number | null;
|
|
10652
|
+
overallGrade: string | null;
|
|
10653
|
+
trendDirection: string | null;
|
|
10654
|
+
trendRate: number | null;
|
|
10655
|
+
calculationDate: any | null;
|
|
10656
|
+
periodStart: any | null;
|
|
10657
|
+
periodEnd: any | null;
|
|
10658
|
+
bioAge: number | null;
|
|
10659
|
+
actualAge: number | null;
|
|
10660
|
+
bioAgeOffset: number | null;
|
|
10661
|
+
recommendations: Array<string | null> | null;
|
|
10662
|
+
bodySystems: Array<{
|
|
10663
|
+
bodySystemId: string | null;
|
|
10664
|
+
title: string | null;
|
|
10665
|
+
score: number | null;
|
|
10666
|
+
grade: string | null;
|
|
10667
|
+
} | null> | null;
|
|
10668
|
+
dailyScores: Array<{
|
|
10669
|
+
date: any | null;
|
|
10670
|
+
score: number | null;
|
|
10671
|
+
grade: string | null;
|
|
10672
|
+
components: Array<{
|
|
10673
|
+
key: string | null;
|
|
10674
|
+
score: number | null;
|
|
10675
|
+
} | null> | null;
|
|
10676
|
+
} | null> | null;
|
|
10677
|
+
quality: {
|
|
10678
|
+
dataQuality: string | null;
|
|
10679
|
+
scoreIsComplete: boolean | null;
|
|
10680
|
+
scoredComponents: string | null;
|
|
10681
|
+
missingComponents: Array<string | null> | null;
|
|
10682
|
+
} | null;
|
|
10683
|
+
} | null;
|
|
10684
|
+
};
|
|
10685
|
+
};
|
|
10598
10686
|
export type GetDiagnosticReportsQueryVariables = Types.Exact<{
|
|
10599
10687
|
pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
|
10600
10688
|
page: Types.InputMaybe<Types.Scalars['Int']['input']>;
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -509,6 +509,51 @@ export type BinaryResource = {
|
|
|
509
509
|
/** Resource Type */
|
|
510
510
|
resourceType?: Maybe<Scalars['String']['output']>;
|
|
511
511
|
};
|
|
512
|
+
export type BodySystemComponent = {
|
|
513
|
+
__typename?: 'BodySystemComponent';
|
|
514
|
+
category?: Maybe<Scalars['String']['output']>;
|
|
515
|
+
key?: Maybe<Scalars['String']['output']>;
|
|
516
|
+
score?: Maybe<Scalars['Float']['output']>;
|
|
517
|
+
text?: Maybe<Scalars['String']['output']>;
|
|
518
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
519
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
520
|
+
};
|
|
521
|
+
export type BodySystemScore = {
|
|
522
|
+
__typename?: 'BodySystemScore';
|
|
523
|
+
actualAge?: Maybe<Scalars['Float']['output']>;
|
|
524
|
+
bioAge?: Maybe<Scalars['Float']['output']>;
|
|
525
|
+
bioAgeOffset?: Maybe<Scalars['Float']['output']>;
|
|
526
|
+
bodySystemId?: Maybe<Scalars['String']['output']>;
|
|
527
|
+
calculationDate?: Maybe<Scalars['DateTime']['output']>;
|
|
528
|
+
components?: Maybe<Array<Maybe<BodySystemComponent>>>;
|
|
529
|
+
dailyScores?: Maybe<Array<Maybe<HealthDailyScore>>>;
|
|
530
|
+
grade?: Maybe<Scalars['String']['output']>;
|
|
531
|
+
id?: Maybe<Scalars['ID']['output']>;
|
|
532
|
+
periodEnd?: Maybe<Scalars['DateTime']['output']>;
|
|
533
|
+
periodStart?: Maybe<Scalars['DateTime']['output']>;
|
|
534
|
+
quality?: Maybe<HealthQualityAssessment>;
|
|
535
|
+
recommendations?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
536
|
+
score?: Maybe<Scalars['Float']['output']>;
|
|
537
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
538
|
+
trendDirection?: Maybe<Scalars['String']['output']>;
|
|
539
|
+
trendRate?: Maybe<Scalars['Float']['output']>;
|
|
540
|
+
};
|
|
541
|
+
export type BodySystemScoreRequest = {
|
|
542
|
+
/** Body system identifier (e.g., cardiovascular, sleep, respiratory, musculoskeletal) */
|
|
543
|
+
bodySystemId: Scalars['String']['input'];
|
|
544
|
+
};
|
|
545
|
+
export type BodySystemScoreResult = {
|
|
546
|
+
__typename?: 'BodySystemScoreResult';
|
|
547
|
+
/** The typed body system score, or null if no data exists */
|
|
548
|
+
resource?: Maybe<BodySystemScore>;
|
|
549
|
+
};
|
|
550
|
+
export type BodySystemSummary = {
|
|
551
|
+
__typename?: 'BodySystemSummary';
|
|
552
|
+
bodySystemId?: Maybe<Scalars['String']['output']>;
|
|
553
|
+
grade?: Maybe<Scalars['String']['output']>;
|
|
554
|
+
score?: Maybe<Scalars['Float']['output']>;
|
|
555
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
556
|
+
};
|
|
512
557
|
export type Bookable = {
|
|
513
558
|
__typename?: 'Bookable';
|
|
514
559
|
online?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -1748,6 +1793,11 @@ export type CreateSupportRequestResponse = {
|
|
|
1748
1793
|
export declare enum CurrencyCode {
|
|
1749
1794
|
Usd = "USD"
|
|
1750
1795
|
}
|
|
1796
|
+
export type DailyComponentScore = {
|
|
1797
|
+
__typename?: 'DailyComponentScore';
|
|
1798
|
+
key?: Maybe<Scalars['String']['output']>;
|
|
1799
|
+
score?: Maybe<Scalars['Float']['output']>;
|
|
1800
|
+
};
|
|
1751
1801
|
export declare enum DataAccessInvitationResponse {
|
|
1752
1802
|
Accepted = "ACCEPTED",
|
|
1753
1803
|
Rejected = "REJECTED"
|
|
@@ -2903,9 +2953,23 @@ export type GuestAccessToken = {
|
|
|
2903
2953
|
refreshToken: Scalars['String']['output'];
|
|
2904
2954
|
tokenType: Scalars['String']['output'];
|
|
2905
2955
|
};
|
|
2956
|
+
export type HealthDailyScore = {
|
|
2957
|
+
__typename?: 'HealthDailyScore';
|
|
2958
|
+
components?: Maybe<Array<Maybe<DailyComponentScore>>>;
|
|
2959
|
+
date?: Maybe<Scalars['DateTime']['output']>;
|
|
2960
|
+
grade?: Maybe<Scalars['String']['output']>;
|
|
2961
|
+
score?: Maybe<Scalars['Float']['output']>;
|
|
2962
|
+
};
|
|
2906
2963
|
export type HealthLinkFilter = {
|
|
2907
2964
|
id?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
2908
2965
|
};
|
|
2966
|
+
export type HealthQualityAssessment = {
|
|
2967
|
+
__typename?: 'HealthQualityAssessment';
|
|
2968
|
+
dataQuality?: Maybe<Scalars['String']['output']>;
|
|
2969
|
+
missingComponents?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
2970
|
+
scoreIsComplete?: Maybe<Scalars['Boolean']['output']>;
|
|
2971
|
+
scoredComponents?: Maybe<Scalars['String']['output']>;
|
|
2972
|
+
};
|
|
2909
2973
|
/** Unified search result type */
|
|
2910
2974
|
export type HealthResourceSearchResult = {
|
|
2911
2975
|
__typename?: 'HealthResourceSearchResult';
|
|
@@ -2937,6 +3001,29 @@ export type HealthResourceSearchResult = {
|
|
|
2937
3001
|
telecom?: Maybe<Array<Maybe<ProviderContactPoint>>>;
|
|
2938
3002
|
type?: Maybe<SearchResultTypeEnum>;
|
|
2939
3003
|
};
|
|
3004
|
+
export type HealthScore = {
|
|
3005
|
+
__typename?: 'HealthScore';
|
|
3006
|
+
actualAge?: Maybe<Scalars['Float']['output']>;
|
|
3007
|
+
bioAge?: Maybe<Scalars['Float']['output']>;
|
|
3008
|
+
bioAgeOffset?: Maybe<Scalars['Float']['output']>;
|
|
3009
|
+
bodySystems?: Maybe<Array<Maybe<BodySystemSummary>>>;
|
|
3010
|
+
calculationDate?: Maybe<Scalars['DateTime']['output']>;
|
|
3011
|
+
dailyScores?: Maybe<Array<Maybe<HealthDailyScore>>>;
|
|
3012
|
+
id?: Maybe<Scalars['ID']['output']>;
|
|
3013
|
+
overallGrade?: Maybe<Scalars['String']['output']>;
|
|
3014
|
+
overallScore?: Maybe<Scalars['Float']['output']>;
|
|
3015
|
+
periodEnd?: Maybe<Scalars['DateTime']['output']>;
|
|
3016
|
+
periodStart?: Maybe<Scalars['DateTime']['output']>;
|
|
3017
|
+
quality?: Maybe<HealthQualityAssessment>;
|
|
3018
|
+
recommendations?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
3019
|
+
trendDirection?: Maybe<Scalars['String']['output']>;
|
|
3020
|
+
trendRate?: Maybe<Scalars['Float']['output']>;
|
|
3021
|
+
};
|
|
3022
|
+
export type HealthScoreResult = {
|
|
3023
|
+
__typename?: 'HealthScoreResult';
|
|
3024
|
+
/** The typed health score, or null if no data exists */
|
|
3025
|
+
resource?: Maybe<HealthScore>;
|
|
3026
|
+
};
|
|
2940
3027
|
export declare enum HealthSummaryCategory {
|
|
2941
3028
|
AllergyIntolerance = "ALLERGY_INTOLERANCE",
|
|
2942
3029
|
CarePlan = "CARE_PLAN",
|
|
@@ -5667,6 +5754,11 @@ export type Query = {
|
|
|
5667
5754
|
getAllergyIntolerances: AllergyIntoleranceQueryResults;
|
|
5668
5755
|
/** Retrieves a list of Binary resources based on the provided search criteria */
|
|
5669
5756
|
getBinary: BinaryQueryResults;
|
|
5757
|
+
/**
|
|
5758
|
+
* Retrieve a single body system score for the authenticated patient.
|
|
5759
|
+
* Returns pre-parsed domain fields (score, grade, trend, components, daily data).
|
|
5760
|
+
*/
|
|
5761
|
+
getBodySystemScore: BodySystemScoreResult;
|
|
5670
5762
|
getCarePlanGroups: CarePlanGroupQueryResults;
|
|
5671
5763
|
/** Retrieves a list of CarePlan resources based on the provided search criteria. */
|
|
5672
5764
|
getCarePlans: CarePlanQueryResults;
|
|
@@ -5699,6 +5791,11 @@ export type Query = {
|
|
|
5699
5791
|
/** Retrieves a list of Encounter resources based on the provided search criteria. */
|
|
5700
5792
|
getEncounters: EncounterQueryResults;
|
|
5701
5793
|
getFHIR: ResourceResponse;
|
|
5794
|
+
/**
|
|
5795
|
+
* Retrieve the overall health score for the authenticated patient.
|
|
5796
|
+
* Returns pre-parsed domain fields (scores, grades, trends, body systems).
|
|
5797
|
+
*/
|
|
5798
|
+
getHealthScore: HealthScoreResult;
|
|
5702
5799
|
/** Retrieves a list of HealthSummary resources based on the provided search criteria. */
|
|
5703
5800
|
getHealthSummary: HealthSummaryQueryResults;
|
|
5704
5801
|
getImmunizationGroups: ImmunizationGroupQueryResults;
|
|
@@ -5880,6 +5977,9 @@ export type QueryGetAllergyIntolerancesArgs = {
|
|
|
5880
5977
|
export type QueryGetBinaryArgs = {
|
|
5881
5978
|
request: BinaryRequest;
|
|
5882
5979
|
};
|
|
5980
|
+
export type QueryGetBodySystemScoreArgs = {
|
|
5981
|
+
request: BodySystemScoreRequest;
|
|
5982
|
+
};
|
|
5883
5983
|
export type QueryGetCarePlanGroupsArgs = {
|
|
5884
5984
|
request?: InputMaybe<CarePlanGroupQueryRequest>;
|
|
5885
5985
|
};
|
|
@@ -6762,6 +6862,7 @@ export declare enum ResourceType {
|
|
|
6762
6862
|
AllergyIntolerance = "ALLERGY_INTOLERANCE",
|
|
6763
6863
|
CarePlan = "CARE_PLAN",
|
|
6764
6864
|
Condition = "CONDITION",
|
|
6865
|
+
DocumentReference = "DOCUMENT_REFERENCE",
|
|
6765
6866
|
Encounter = "ENCOUNTER",
|
|
6766
6867
|
Immunization = "IMMUNIZATION",
|
|
6767
6868
|
MedicationDispense = "MEDICATION_DISPENSE",
|
package/dist/graphql/schema.js
CHANGED
|
@@ -436,6 +436,7 @@ export var ResourceType;
|
|
|
436
436
|
ResourceType["AllergyIntolerance"] = "ALLERGY_INTOLERANCE";
|
|
437
437
|
ResourceType["CarePlan"] = "CARE_PLAN";
|
|
438
438
|
ResourceType["Condition"] = "CONDITION";
|
|
439
|
+
ResourceType["DocumentReference"] = "DOCUMENT_REFERENCE";
|
|
439
440
|
ResourceType["Encounter"] = "ENCOUNTER";
|
|
440
441
|
ResourceType["Immunization"] = "IMMUNIZATION";
|
|
441
442
|
ResourceType["MedicationDispense"] = "MEDICATION_DISPENSE";
|