@icanbwell/bwell-sdk-ts 1.1.0 → 1.2.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/health-data-request.d.ts +5 -0
- package/dist/api/base/health-data/health-data-request.js +5 -0
- package/dist/api/base/health-data/health-manager.d.ts +16 -2
- package/dist/api/base/health-data/index.d.ts +2 -2
- package/dist/api/base/health-data/index.js +1 -1
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +1 -0
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +16 -0
- package/dist/graphql/operations/index.d.ts +8 -0
- package/dist/graphql/operations/index.js +62 -0
- package/dist/graphql/operations/types.d.ts +84 -0
- package/dist/graphql/schema.d.ts +2 -2
- package/package.json +1 -1
package/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -44,6 +44,11 @@ export declare class ConditionsRequest extends HealthDataRequest {
|
|
|
44
44
|
*/
|
|
45
45
|
export declare class ConditionGroupsRequest extends PagedRequest {
|
|
46
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Request object for fetching document references data.
|
|
49
|
+
*/
|
|
50
|
+
export declare class DocumentReferencesRequest extends HealthDataRequest {
|
|
51
|
+
}
|
|
47
52
|
/**
|
|
48
53
|
* Request object for fetching labs data.
|
|
49
54
|
*/
|
|
@@ -61,6 +61,11 @@ export class ConditionsRequest extends HealthDataRequest {
|
|
|
61
61
|
*/
|
|
62
62
|
export class ConditionGroupsRequest extends PagedRequest {
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Request object for fetching document references data.
|
|
66
|
+
*/
|
|
67
|
+
export class DocumentReferencesRequest extends HealthDataRequest {
|
|
68
|
+
}
|
|
64
69
|
/**
|
|
65
70
|
* Request object for fetching labs data.
|
|
66
71
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetCarePlanGroupsQueryResults, GetCarePlansQueryResults, GetConditionGroupsQueryResults, GetConditionsQueryResults, GetEncounterQueryResults, GetEncountersGroupQueryResults, GetHealthSummaryQueryResults, GetImmunizationGroupsQueryResults, GetImmunizationsQueryResults, GetLabGroupsQueryResults, GetLabKnowledgeQueryResults, GetLabsQueryResults, GetMedicationGroupsQueryResults, GetMedicationKnowledgeQueryResults, GetMedicationStatementsQueryResults, GetProcedureGroupsQueryResults, GetProceduresQueryResults, GetVitalSignGroupsQueryResults, GetVitalSignsQueryResults } from "../../../graphql/operations/types.js";
|
|
1
|
+
import { GetAllergyIntoleranceGroupsQueryResults, GetAllergyIntolerancesQueryResults, GetCarePlanGroupsQueryResults, GetCarePlansQueryResults, GetConditionGroupsQueryResults, GetConditionsQueryResults, GetDocumentReferencesQueryResults, GetEncounterQueryResults, GetEncountersGroupQueryResults, GetHealthSummaryQueryResults, GetImmunizationGroupsQueryResults, GetImmunizationsQueryResults, GetLabGroupsQueryResults, GetLabKnowledgeQueryResults, GetLabsQueryResults, GetMedicationGroupsQueryResults, GetMedicationKnowledgeQueryResults, GetMedicationStatementsQueryResults, GetProcedureGroupsQueryResults, GetProceduresQueryResults, GetVitalSignGroupsQueryResults, GetVitalSignsQueryResults } from "../../../graphql/operations/types.js";
|
|
2
2
|
import type { BWellQueryResult } from "../../../results/index.js";
|
|
3
3
|
import type { BaseManagerError } from "../errors.js";
|
|
4
|
-
import { AllergyIntoleranceGroupsRequest, AllergyIntolerancesRequest, CarePlanGroupsRequest, CarePlansRequest, ConditionGroupsRequest, ConditionsRequest, EncounterGroupsRequest, EncountersRequest, ImmunizationGroupsRequest, ImmunizationsRequest, LabGroupsRequest, LabsRequest, MedicationGroupsRequest, MedicationStatementsRequest, ProcedureGroupsRequest, ProceduresRequest, VitalSignGroupsRequest, VitalSignsRequest } from "./health-data-request.js";
|
|
4
|
+
import { AllergyIntoleranceGroupsRequest, AllergyIntolerancesRequest, CarePlanGroupsRequest, CarePlansRequest, ConditionGroupsRequest, ConditionsRequest, DocumentReferencesRequest, EncounterGroupsRequest, EncountersRequest, ImmunizationGroupsRequest, ImmunizationsRequest, LabGroupsRequest, LabsRequest, MedicationGroupsRequest, MedicationStatementsRequest, ProcedureGroupsRequest, ProceduresRequest, VitalSignGroupsRequest, VitalSignsRequest } from "./health-data-request.js";
|
|
5
5
|
import { LabKnowledgeRequest } from "./lab-knowledge-request.js";
|
|
6
6
|
import { MedicationKnowledgeRequest } from "./medication-knowledge-request.js";
|
|
7
7
|
type HealthSummaryResultsType = GetHealthSummaryQueryResults["getHealthSummary"];
|
|
@@ -10,6 +10,9 @@ export interface HealthSummaryResults extends HealthSummaryResultsType {
|
|
|
10
10
|
type AllergyIntolerancesResultsType = GetAllergyIntolerancesQueryResults["getAllergyIntolerances"];
|
|
11
11
|
export interface AllergyIntolerancesResults extends AllergyIntolerancesResultsType {
|
|
12
12
|
}
|
|
13
|
+
type DocumentReferencesResultsType = GetDocumentReferencesQueryResults["getDocumentReferences"];
|
|
14
|
+
export interface DocumentReferencesResults extends DocumentReferencesResultsType {
|
|
15
|
+
}
|
|
13
16
|
type AllergyIntolerancesGroupsResultsType = GetAllergyIntoleranceGroupsQueryResults["getAllergyIntoleranceGroups"];
|
|
14
17
|
export interface AllergyIntolerancesGroupsResults extends AllergyIntolerancesGroupsResultsType {
|
|
15
18
|
}
|
|
@@ -115,6 +118,17 @@ export interface HealthManager {
|
|
|
115
118
|
* @returns {Promise<BWellQueryResult<ConditionGroupsResults>>} A promise resolving to an object representing he list of condition groups retrieved.
|
|
116
119
|
*/
|
|
117
120
|
getConditionGroups(request?: ConditionGroupsRequest): Promise<BWellQueryResult<ConditionGroupsResults>>;
|
|
121
|
+
/**
|
|
122
|
+
* Retrieves a list of document references using the FHIR (Fast Healthcare Interoperability Resources) standard.
|
|
123
|
+
* A reference to a document of any kind for any purpose.
|
|
124
|
+
* This method provides access to this type of clinical data.
|
|
125
|
+
* See also https://build.fhir.org/documentreference.html
|
|
126
|
+
*
|
|
127
|
+
* @param {DocumentReferencesRequest} request An optional request class for specifying the search criteria, for the retrieval of document reference resources.
|
|
128
|
+
*
|
|
129
|
+
* @returns {Promise<BWellQueryResult<DocumentReferencesResults>>} A promise resolving to an object representing the list of document references retrieved from the FHIR server.
|
|
130
|
+
*/
|
|
131
|
+
getDocumentReferences(request?: DocumentReferencesRequest): Promise<BWellQueryResult<DocumentReferencesResults>>;
|
|
118
132
|
/**
|
|
119
133
|
* Retrieve a summary of laboratory test results.
|
|
120
134
|
* It returns a list of unique laboratory measurements for the patient sorted by most recent first.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, ConditionsRequest, ConditionGroupsRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, } from "./health-data-request.js";
|
|
1
|
+
export { HealthDataRequestInput, AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, ConditionsRequest, ConditionGroupsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, } from "./health-data-request.js";
|
|
2
2
|
export { MedicationKnowledgeRequest, MedicationKnowledgeRequestInput, } from "./medication-knowledge-request.js";
|
|
3
3
|
export { LabKnowledgeRequest, LabKnowledgeRequestInput, } from "./lab-knowledge-request.js";
|
|
4
|
-
export { HealthSummaryResults, AllergyIntolerancesResults, AllergyIntolerancesGroupsResults, ConditionsResults, ConditionGroupsResults, LabsResults, LabGroupsResults, CarePlansResults, CarePlanGroupsResults, EncountersResults, EncounterGroupsResults, ImmunizationsResults, ImmunizationGroupsResults, ProceduresResults, ProcedureGroupsResults, VitalSignsResults, VitalSignGroupsResults, MedicationStatementsResults, MedicationKnowledgeResults, MedicationGroupsResults, LabKnowledgeResults, HealthManager, } from "./health-manager.js";
|
|
4
|
+
export { HealthSummaryResults, AllergyIntolerancesResults, AllergyIntolerancesGroupsResults, ConditionsResults, ConditionGroupsResults, DocumentReferencesResults, LabsResults, LabGroupsResults, CarePlansResults, CarePlanGroupsResults, EncountersResults, EncounterGroupsResults, ImmunizationsResults, ImmunizationGroupsResults, ProceduresResults, ProcedureGroupsResults, VitalSignsResults, VitalSignGroupsResults, MedicationStatementsResults, MedicationKnowledgeResults, MedicationGroupsResults, LabKnowledgeResults, HealthManager, } from "./health-manager.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, ConditionsRequest, ConditionGroupsRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, } from "./health-data-request.js";
|
|
1
|
+
export { AllergyIntolerancesRequest, AllergyIntoleranceGroupsRequest, ConditionsRequest, ConditionGroupsRequest, DocumentReferencesRequest, LabsRequest, LabGroupsRequest, CarePlansRequest, CarePlanGroupsRequest, EncountersRequest, EncounterGroupsRequest, ImmunizationsRequest, ImmunizationGroupsRequest, ProceduresRequest, ProcedureGroupsRequest, VitalSignsRequest, VitalSignGroupsRequest, MedicationStatementsRequest, MedicationGroupsRequest, HealthDataRequest, } from "./health-data-request.js";
|
|
2
2
|
export { MedicationKnowledgeRequest, } from "./medication-knowledge-request.js";
|
|
3
3
|
export { LabKnowledgeRequest, } from "./lab-knowledge-request.js";
|
|
@@ -14,6 +14,7 @@ export declare class GraphQLHealthManager extends GraphQLManager implements Heal
|
|
|
14
14
|
getAllergyIntoleranceGroups(request?: health.AllergyIntoleranceGroupsRequest): Promise<BWellQueryResult<health.AllergyIntolerancesGroupsResults, ValidationError | BaseManagerError>>;
|
|
15
15
|
getConditions(request?: health.ConditionsRequest): Promise<BWellQueryResult<health.ConditionsResults, ValidationError | BaseManagerError>>;
|
|
16
16
|
getConditionGroups(request?: health.ConditionGroupsRequest): Promise<BWellQueryResult<health.ConditionGroupsResults, ValidationError | BaseManagerError>>;
|
|
17
|
+
getDocumentReferences(request?: health.DocumentReferencesRequest): Promise<BWellQueryResult<health.DocumentReferencesResults, ValidationError | BaseManagerError>>;
|
|
17
18
|
getLabs(request?: health.LabsRequest): Promise<BWellQueryResult<health.LabsResults, ValidationError | BaseManagerError>>;
|
|
18
19
|
getLabGroups(request?: health.LabGroupsRequest): Promise<BWellQueryResult<health.LabGroupsResults, ValidationError | BaseManagerError>>;
|
|
19
20
|
getCarePlans(request?: health.CarePlansRequest): Promise<BWellQueryResult<health.CarePlansResults, ValidationError | BaseManagerError>>;
|
|
@@ -113,6 +113,22 @@ export class GraphQLHealthManager extends GraphQLManager {
|
|
|
113
113
|
return new BWellQueryResult((_b = result.data) === null || _b === void 0 ? void 0 : _b.getConditionGroups, result.error);
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
+
getDocumentReferences(request) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
const validationResult = this.validateRequest(request);
|
|
120
|
+
if (validationResult.failure()) {
|
|
121
|
+
return validationResult.toQueryResult();
|
|
122
|
+
}
|
|
123
|
+
__classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("calling getDocumentReferences...");
|
|
124
|
+
const result = yield this.handleQuery(__classPrivateFieldGet(this, _GraphQLHealthManager_sdk, "f").getDocumentReferences({ request: (_a = request === null || request === void 0 ? void 0 : request.data()) !== null && _a !== void 0 ? _a : null }));
|
|
125
|
+
__classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").verbose("getDocumentReferences complete");
|
|
126
|
+
if (result.hasError()) {
|
|
127
|
+
__classPrivateFieldGet(this, _GraphQLHealthManager_logger, "f").error("getDocumentReferences errors", result.error);
|
|
128
|
+
}
|
|
129
|
+
return new BWellQueryResult((_b = result.data) === null || _b === void 0 ? void 0 : _b.getDocumentReferences, result.error);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
116
132
|
getLabs(request) {
|
|
117
133
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
134
|
var _a, _b;
|
|
@@ -59,6 +59,7 @@ export declare const GetCarePlanGroupsDocument = "\n query getCarePlanGroups(
|
|
|
59
59
|
export declare const GetCarePlansDocument = "\n query getCarePlans($request: CarePlanRequest) {\n getCarePlans(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n meta {\n ...MetaFields\n }\n id\n title\n category {\n ...CodeableConceptFields\n }\n text {\n div\n status\n }\n status {\n display\n code\n }\n intent {\n display\n code\n }\n subject {\n _resourceType\n id\n }\n period {\n ...PeriodFields\n }\n created\n activity {\n ...ActivityFields\n }\n note {\n authorString\n time\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 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 ActivityFields on Activity {\n detail {\n ...DetailFields\n }\n}\n \n fragment DetailFields on Detail {\n kind {\n display\n code\n }\n code {\n ...CodeableConceptFields\n }\n status {\n display\n code\n }\n scheduledPeriod {\n ...PeriodFields\n }\n scheduledString\n scheduledTiming {\n ...TimingFields\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 TimingFields on Timing {\n id\n code {\n ...CodeableConceptFields\n }\n event\n repeat {\n id\n boundsDuration {\n ...QuantityFields\n }\n boundsPeriod {\n ...PeriodFields\n }\n boundsRange {\n ...RangeFields\n }\n count\n countMax\n dayOfWeek {\n code\n display\n }\n duration\n durationMax\n durationUnit {\n code\n display\n }\n frequency\n frequencyMax\n offset\n period\n periodMax\n periodUnit {\n display\n code\n }\n timeOfDay\n when {\n code\n display\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 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 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 ";
|
|
60
60
|
export declare const GetConditionGroupsDocument = "\n query getConditionGroups($request: ConditionGroupQueryRequest) {\n getConditionGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n coding {\n ...CodingFields\n }\n references\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 ";
|
|
61
61
|
export declare const GetConditionsDocument = "\n query getConditions($request: ConditionRequest) {\n getConditions(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\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 subject {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n }\n category {\n ...CodeableConceptFields\n }\n severity {\n ...CodeableConceptFields\n }\n verificationStatus {\n ...CodeableConceptFields\n }\n bodySite {\n ...CodeableConceptFields\n }\n asserter {\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n }\n }\n encounter {\n ...EncounterFields\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 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 }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\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 EncounterFields on EncounterResource {\n meta {\n ...MetaFields\n }\n id\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 name\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 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 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 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 ParticipantFields on Participant {\n individual {\n id\n name {\n ...HumanNameFields\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 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 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 RecorderFields on Recorder {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
|
|
62
|
+
export declare const GetDocumentReferencesDocument = "\n query getDocumentReferences($request: DocumentReferenceRequest) {\n getDocumentReferences(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n meta {\n ...MetaFields\n }\n language\n text {\n div\n status\n }\n identifier {\n ...IdentifierFields\n }\n status\n type {\n text\n }\n category {\n text\n }\n date\n author {\n reference\n display\n }\n description\n content {\n attachment {\n contentType\n data\n url\n }\n format {\n ...CodingFields\n }\n }\n context {\n encounter {\n reference\n display\n }\n period {\n ...PeriodFields\n }\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 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 CodingFields on Coding {\n system\n code\n display\n}\n \n\n fragment PeriodFields on Period {\n start\n end\n}\n ";
|
|
62
63
|
export declare const GetEncountersGroupDocument = "\n query getEncountersGroup($request: EncounterGroupQueryRequest) {\n getEncounterGroups(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n id\n name\n references\n class {\n ...CodingFields\n }\n type {\n ...CodingFields\n }\n participant\n coding {\n ...CodingFields\n }\n date\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 ";
|
|
63
64
|
export declare const GetEncounterQueryDocument = "\n query getEncounterQuery($request: EncounterRequest) {\n getEncounters(request: $request) {\n paging_info {\n ...PagingFields\n }\n resources {\n ...EncounterFields\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 EncounterFields on EncounterResource {\n meta {\n ...MetaFields\n }\n id\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 name\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 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 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 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 ParticipantFields on Participant {\n individual {\n id\n name {\n ...HumanNameFields\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 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 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 RecorderFields on Recorder {\n __typename\n ... on Patient {\n name {\n ...HumanNameFields\n }\n }\n ... on Practitioner {\n name {\n ...HumanNameFields\n }\n }\n}\n \n fragment HumanNameFields on HumanName {\n text\n family\n given\n prefix\n suffix\n}\n ";
|
|
64
65
|
export declare const GetHealthSummaryDocument = "\n query GetHealthSummary {\n getHealthSummary {\n resources {\n category\n total\n }\n }\n}\n ";
|
|
@@ -208,6 +209,13 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
208
209
|
headers: Headers;
|
|
209
210
|
status: number;
|
|
210
211
|
}>;
|
|
212
|
+
getDocumentReferences(variables?: Types.GetDocumentReferencesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
213
|
+
data: Types.GetDocumentReferencesQueryResults;
|
|
214
|
+
errors?: GraphQLError[];
|
|
215
|
+
extensions?: any;
|
|
216
|
+
headers: Headers;
|
|
217
|
+
status: number;
|
|
218
|
+
}>;
|
|
211
219
|
getEncountersGroup(variables?: Types.GetEncountersGroupQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
|
|
212
220
|
data: Types.GetEncountersGroupQueryResults;
|
|
213
221
|
errors?: GraphQLError[];
|
|
@@ -945,6 +945,65 @@ ${RecorderFieldsFragmentDoc}
|
|
|
945
945
|
${PeriodFieldsFragmentDoc}
|
|
946
946
|
${HumanNameFieldsFragmentDoc}
|
|
947
947
|
${EncounterFieldsFragmentDoc}`;
|
|
948
|
+
export const GetDocumentReferencesDocument = `
|
|
949
|
+
query getDocumentReferences($request: DocumentReferenceRequest) {
|
|
950
|
+
getDocumentReferences(request: $request) {
|
|
951
|
+
paging_info {
|
|
952
|
+
...PagingFields
|
|
953
|
+
}
|
|
954
|
+
resources {
|
|
955
|
+
id
|
|
956
|
+
meta {
|
|
957
|
+
...MetaFields
|
|
958
|
+
}
|
|
959
|
+
language
|
|
960
|
+
text {
|
|
961
|
+
div
|
|
962
|
+
status
|
|
963
|
+
}
|
|
964
|
+
identifier {
|
|
965
|
+
...IdentifierFields
|
|
966
|
+
}
|
|
967
|
+
status
|
|
968
|
+
type {
|
|
969
|
+
text
|
|
970
|
+
}
|
|
971
|
+
category {
|
|
972
|
+
text
|
|
973
|
+
}
|
|
974
|
+
date
|
|
975
|
+
author {
|
|
976
|
+
reference
|
|
977
|
+
display
|
|
978
|
+
}
|
|
979
|
+
description
|
|
980
|
+
content {
|
|
981
|
+
attachment {
|
|
982
|
+
contentType
|
|
983
|
+
data
|
|
984
|
+
url
|
|
985
|
+
}
|
|
986
|
+
format {
|
|
987
|
+
...CodingFields
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
context {
|
|
991
|
+
encounter {
|
|
992
|
+
reference
|
|
993
|
+
display
|
|
994
|
+
}
|
|
995
|
+
period {
|
|
996
|
+
...PeriodFields
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
${PagingFieldsFragmentDoc}
|
|
1003
|
+
${MetaFieldsFragmentDoc}
|
|
1004
|
+
${IdentifierFieldsFragmentDoc}
|
|
1005
|
+
${CodingFieldsFragmentDoc}
|
|
1006
|
+
${PeriodFieldsFragmentDoc}`;
|
|
948
1007
|
export const GetEncountersGroupDocument = `
|
|
949
1008
|
query getEncountersGroup($request: EncounterGroupQueryRequest) {
|
|
950
1009
|
getEncounterGroups(request: $request) {
|
|
@@ -1988,6 +2047,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
1988
2047
|
getConditions(variables, requestHeaders) {
|
|
1989
2048
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetConditionsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getConditions', 'query', variables);
|
|
1990
2049
|
},
|
|
2050
|
+
getDocumentReferences(variables, requestHeaders) {
|
|
2051
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDocumentReferencesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getDocumentReferences', 'query', variables);
|
|
2052
|
+
},
|
|
1991
2053
|
getEncountersGroup(variables, requestHeaders) {
|
|
1992
2054
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetEncountersGroupDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getEncountersGroup', 'query', variables);
|
|
1993
2055
|
},
|
|
@@ -3396,6 +3396,90 @@ export type GetConditionsQueryResults = {
|
|
|
3396
3396
|
}>;
|
|
3397
3397
|
};
|
|
3398
3398
|
};
|
|
3399
|
+
export type GetDocumentReferencesQueryVariables = Types.Exact<{
|
|
3400
|
+
request: Types.InputMaybe<Types.DocumentReferenceRequest>;
|
|
3401
|
+
}>;
|
|
3402
|
+
export type GetDocumentReferencesQueryResults = {
|
|
3403
|
+
getDocumentReferences: {
|
|
3404
|
+
paging_info: {
|
|
3405
|
+
page_number: number;
|
|
3406
|
+
page_size: number;
|
|
3407
|
+
total_pages: number;
|
|
3408
|
+
total_items: number;
|
|
3409
|
+
} | null;
|
|
3410
|
+
resources: Array<{
|
|
3411
|
+
id: string | null;
|
|
3412
|
+
language: string | null;
|
|
3413
|
+
status: string | null;
|
|
3414
|
+
date: any | null;
|
|
3415
|
+
description: string | null;
|
|
3416
|
+
meta: {
|
|
3417
|
+
versionId: string | null;
|
|
3418
|
+
lastUpdated: any | null;
|
|
3419
|
+
source: string | null;
|
|
3420
|
+
security: Array<{
|
|
3421
|
+
system: string | null;
|
|
3422
|
+
code: string | null;
|
|
3423
|
+
display: string | null;
|
|
3424
|
+
} | null> | null;
|
|
3425
|
+
tag: Array<{
|
|
3426
|
+
system: string | null;
|
|
3427
|
+
code: string | null;
|
|
3428
|
+
display: string | null;
|
|
3429
|
+
} | null> | null;
|
|
3430
|
+
} | null;
|
|
3431
|
+
text: {
|
|
3432
|
+
div: string;
|
|
3433
|
+
status: string | null;
|
|
3434
|
+
} | null;
|
|
3435
|
+
identifier: Array<{
|
|
3436
|
+
id: string | null;
|
|
3437
|
+
system: string | null;
|
|
3438
|
+
value: string | null;
|
|
3439
|
+
type: {
|
|
3440
|
+
text: string | null;
|
|
3441
|
+
coding: Array<{
|
|
3442
|
+
system: string | null;
|
|
3443
|
+
code: string | null;
|
|
3444
|
+
display: string | null;
|
|
3445
|
+
} | null> | null;
|
|
3446
|
+
} | null;
|
|
3447
|
+
} | null> | null;
|
|
3448
|
+
type: {
|
|
3449
|
+
text: string | null;
|
|
3450
|
+
} | null;
|
|
3451
|
+
category: Array<{
|
|
3452
|
+
text: string | null;
|
|
3453
|
+
} | null> | null;
|
|
3454
|
+
author: Array<{
|
|
3455
|
+
reference: string | null;
|
|
3456
|
+
display: string | null;
|
|
3457
|
+
} | null> | null;
|
|
3458
|
+
content: Array<{
|
|
3459
|
+
attachment: {
|
|
3460
|
+
contentType: string | null;
|
|
3461
|
+
data: string | null;
|
|
3462
|
+
url: string | null;
|
|
3463
|
+
} | null;
|
|
3464
|
+
format: {
|
|
3465
|
+
system: string | null;
|
|
3466
|
+
code: string | null;
|
|
3467
|
+
display: string | null;
|
|
3468
|
+
} | null;
|
|
3469
|
+
} | null> | null;
|
|
3470
|
+
context: {
|
|
3471
|
+
encounter: Array<{
|
|
3472
|
+
reference: string | null;
|
|
3473
|
+
display: string | null;
|
|
3474
|
+
} | null> | null;
|
|
3475
|
+
period: {
|
|
3476
|
+
start: any | null;
|
|
3477
|
+
end: any | null;
|
|
3478
|
+
} | null;
|
|
3479
|
+
} | null;
|
|
3480
|
+
}>;
|
|
3481
|
+
};
|
|
3482
|
+
};
|
|
3399
3483
|
export type GetEncountersGroupQueryVariables = Types.Exact<{
|
|
3400
3484
|
request: Types.InputMaybe<Types.EncounterGroupQueryRequest>;
|
|
3401
3485
|
}>;
|
package/dist/graphql/schema.d.ts
CHANGED
|
@@ -3004,7 +3004,7 @@ export type Query = {
|
|
|
3004
3004
|
getConditions: ConditionQueryResults;
|
|
3005
3005
|
getConsentJob?: Maybe<Job>;
|
|
3006
3006
|
getDataSource: DataSource;
|
|
3007
|
-
|
|
3007
|
+
getDocumentReferences: DocumentReferenceQueryResults;
|
|
3008
3008
|
getEncounterGroups: EncounterGroupQueryResults;
|
|
3009
3009
|
/** Retrieves a list of Encounter resources based on the provided search criteria. */
|
|
3010
3010
|
getEncounters: EncounterQueryResults;
|
|
@@ -3117,7 +3117,7 @@ export type QueryGetConsentJobArgs = {
|
|
|
3117
3117
|
export type QueryGetDataSourceArgs = {
|
|
3118
3118
|
connectionId: Scalars['String']['input'];
|
|
3119
3119
|
};
|
|
3120
|
-
export type
|
|
3120
|
+
export type QueryGetDocumentReferencesArgs = {
|
|
3121
3121
|
request?: InputMaybe<DocumentReferenceRequest>;
|
|
3122
3122
|
};
|
|
3123
3123
|
export type QueryGetEncounterGroupsArgs = {
|