@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1758728092 → 2.0.0-alpha.0-rc.1758914055
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-manager.d.ts +24 -1
- package/dist/api/graphql-api/healthdata/get-encounters-request-factory.d.ts +7 -0
- package/dist/api/graphql-api/healthdata/get-encounters-request-factory.js +76 -0
- package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +2 -1
- package/dist/api/graphql-api/healthdata/graphql-health-manager.js +24 -2
- package/dist/api/graphql-api/healthdata/health-data-request-factory.d.ts +7 -1
- package/dist/api/graphql-api/healthdata/health-data-request-factory.js +1 -1
- package/dist/graphql/operations/index.d.ts +32 -21
- package/dist/graphql/operations/index.js +385 -185
- package/dist/graphql/operations/types.d.ts +9623 -3851
- package/dist/graphql/schema.d.ts +28 -0
- package/dist/models/common/location.d.ts +2 -0
- package/dist/models/common/organization.d.ts +7 -1
- package/dist/models/common/practitioner-role.d.ts +1 -1
- package/dist/models/common/practitioner.d.ts +2 -0
- package/dist/models/health-data/condition.d.ts +3 -0
- package/dist/models/health-data/encounter.d.ts +79 -0
- package/dist/models/health-data/encounter.js +1 -0
- package/dist/models/health-data/immunization.d.ts +3 -1
- package/dist/models/health-data/index.d.ts +1 -0
- package/dist/models/health-data/observation.d.ts +3 -1
- package/dist/models/health-data/procedure.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/parsing-utils.d.ts +11 -1
- package/dist/utils/parsing-utils.js +33 -1
- package/dist/utils/search-token-utils.d.ts +8 -0
- package/dist/utils/search-token-utils.js +23 -0
- package/package.json +1 -1
|
@@ -38,70 +38,6 @@ export const CodeableConceptFieldsFragmentDoc = `
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
${CodingFieldsFragmentDoc}`;
|
|
41
|
-
export const IdentifierFieldsFragmentDoc = `
|
|
42
|
-
fragment IdentifierFields on Identifier {
|
|
43
|
-
id
|
|
44
|
-
type {
|
|
45
|
-
...CodeableConceptFields
|
|
46
|
-
}
|
|
47
|
-
system
|
|
48
|
-
value
|
|
49
|
-
}
|
|
50
|
-
${CodeableConceptFieldsFragmentDoc}`;
|
|
51
|
-
export const AddressFieldsFragmentDoc = `
|
|
52
|
-
fragment AddressFields on Address {
|
|
53
|
-
use
|
|
54
|
-
type
|
|
55
|
-
text
|
|
56
|
-
line
|
|
57
|
-
city
|
|
58
|
-
district
|
|
59
|
-
state
|
|
60
|
-
postalCode
|
|
61
|
-
country
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
export const PositionFieldsFragmentDoc = `
|
|
65
|
-
fragment PositionFields on LocationPosition {
|
|
66
|
-
latitude
|
|
67
|
-
longitude
|
|
68
|
-
}
|
|
69
|
-
`;
|
|
70
|
-
export const ContactPointFieldsFragmentDoc = `
|
|
71
|
-
fragment ContactPointFields on ContactPoint {
|
|
72
|
-
id
|
|
73
|
-
system
|
|
74
|
-
value
|
|
75
|
-
use
|
|
76
|
-
rank
|
|
77
|
-
}
|
|
78
|
-
`;
|
|
79
|
-
export const LocationFieldsFragmentDoc = `
|
|
80
|
-
fragment LocationFields on Location {
|
|
81
|
-
name
|
|
82
|
-
identifier {
|
|
83
|
-
...IdentifierFields
|
|
84
|
-
}
|
|
85
|
-
alias
|
|
86
|
-
description
|
|
87
|
-
address {
|
|
88
|
-
...AddressFields
|
|
89
|
-
}
|
|
90
|
-
position {
|
|
91
|
-
...PositionFields
|
|
92
|
-
}
|
|
93
|
-
telecom {
|
|
94
|
-
...ContactPointFields
|
|
95
|
-
}
|
|
96
|
-
type {
|
|
97
|
-
...CodeableConceptFields
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
${IdentifierFieldsFragmentDoc}
|
|
101
|
-
${AddressFieldsFragmentDoc}
|
|
102
|
-
${PositionFieldsFragmentDoc}
|
|
103
|
-
${ContactPointFieldsFragmentDoc}
|
|
104
|
-
${CodeableConceptFieldsFragmentDoc}`;
|
|
105
41
|
export const ExtensionFieldsFragmentDoc = `
|
|
106
42
|
fragment ExtensionFields on Extension {
|
|
107
43
|
id
|
|
@@ -269,19 +205,6 @@ export const CarePlanDetailFieldsFragmentDoc = `
|
|
|
269
205
|
${CodeableConceptFieldsFragmentDoc}
|
|
270
206
|
${PeriodFieldsFragmentDoc}
|
|
271
207
|
${TimingFieldsFragmentDoc}`;
|
|
272
|
-
export const MetaFieldsFragmentDoc = `
|
|
273
|
-
fragment MetaFields on Meta {
|
|
274
|
-
versionId
|
|
275
|
-
lastUpdated
|
|
276
|
-
source
|
|
277
|
-
security {
|
|
278
|
-
...CodingFields
|
|
279
|
-
}
|
|
280
|
-
tag {
|
|
281
|
-
...CodingFields
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
${CodingFieldsFragmentDoc}`;
|
|
285
208
|
export const HumanNameFieldsFragmentDoc = `
|
|
286
209
|
fragment HumanNameFields on HumanName {
|
|
287
210
|
text
|
|
@@ -291,80 +214,16 @@ export const HumanNameFieldsFragmentDoc = `
|
|
|
291
214
|
suffix
|
|
292
215
|
}
|
|
293
216
|
`;
|
|
294
|
-
export const
|
|
295
|
-
fragment
|
|
296
|
-
name {
|
|
297
|
-
...HumanNameFields
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
${HumanNameFieldsFragmentDoc}`;
|
|
301
|
-
export const PractitionerFieldsFragmentDoc = `
|
|
302
|
-
fragment PractitionerFields on Practitioner {
|
|
303
|
-
id
|
|
304
|
-
name {
|
|
305
|
-
...HumanNameFields
|
|
306
|
-
}
|
|
307
|
-
identifier {
|
|
308
|
-
...IdentifierFields
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
${HumanNameFieldsFragmentDoc}
|
|
312
|
-
${IdentifierFieldsFragmentDoc}`;
|
|
313
|
-
export const RecorderFieldsFragmentDoc = `
|
|
314
|
-
fragment RecorderFields on ConditionRecorder {
|
|
315
|
-
...PatientFields
|
|
316
|
-
...PractitionerFields
|
|
317
|
-
}
|
|
318
|
-
${PatientFieldsFragmentDoc}
|
|
319
|
-
${PractitionerFieldsFragmentDoc}`;
|
|
320
|
-
export const ConditionFieldsFragmentDoc = `
|
|
321
|
-
fragment ConditionFields on Condition {
|
|
217
|
+
export const IdentifierFieldsFragmentDoc = `
|
|
218
|
+
fragment IdentifierFields on Identifier {
|
|
322
219
|
id
|
|
323
|
-
|
|
324
|
-
...MetaFields
|
|
325
|
-
}
|
|
326
|
-
code {
|
|
327
|
-
...CodeableConceptFields
|
|
328
|
-
}
|
|
329
|
-
clinicalStatus {
|
|
330
|
-
...CodeableConceptFields
|
|
331
|
-
}
|
|
332
|
-
onsetDateTime
|
|
333
|
-
recordedDate
|
|
334
|
-
recorder {
|
|
335
|
-
resource {
|
|
336
|
-
...RecorderFields
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
note {
|
|
340
|
-
authorString
|
|
341
|
-
time
|
|
342
|
-
text
|
|
343
|
-
}
|
|
344
|
-
onsetPeriod {
|
|
345
|
-
...PeriodFields
|
|
346
|
-
}
|
|
347
|
-
abatementDateTime
|
|
348
|
-
abatementPeriod {
|
|
349
|
-
...PeriodFields
|
|
350
|
-
}
|
|
351
|
-
category {
|
|
352
|
-
...CodeableConceptFields
|
|
353
|
-
}
|
|
354
|
-
severity {
|
|
355
|
-
...CodeableConceptFields
|
|
356
|
-
}
|
|
357
|
-
verificationStatus {
|
|
358
|
-
...CodeableConceptFields
|
|
359
|
-
}
|
|
360
|
-
bodySite {
|
|
220
|
+
type {
|
|
361
221
|
...CodeableConceptFields
|
|
362
222
|
}
|
|
223
|
+
system
|
|
224
|
+
value
|
|
363
225
|
}
|
|
364
|
-
${
|
|
365
|
-
${CodeableConceptFieldsFragmentDoc}
|
|
366
|
-
${RecorderFieldsFragmentDoc}
|
|
367
|
-
${PeriodFieldsFragmentDoc}`;
|
|
226
|
+
${CodeableConceptFieldsFragmentDoc}`;
|
|
368
227
|
export const ObservationPerformerFieldsFragmentDoc = `
|
|
369
228
|
fragment ObservationPerformerFields on ObservationPerformer {
|
|
370
229
|
... on Practitioner {
|
|
@@ -386,47 +245,19 @@ export const ObservationPerformerFieldsFragmentDoc = `
|
|
|
386
245
|
}
|
|
387
246
|
${HumanNameFieldsFragmentDoc}
|
|
388
247
|
${IdentifierFieldsFragmentDoc}`;
|
|
389
|
-
export const
|
|
390
|
-
fragment
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
status
|
|
396
|
-
connectionType {
|
|
248
|
+
export const MetaFieldsFragmentDoc = `
|
|
249
|
+
fragment MetaFields on Meta {
|
|
250
|
+
versionId
|
|
251
|
+
lastUpdated
|
|
252
|
+
source
|
|
253
|
+
security {
|
|
397
254
|
...CodingFields
|
|
398
255
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
${IdentifierFieldsFragmentDoc}
|
|
402
|
-
${CodingFieldsFragmentDoc}`;
|
|
403
|
-
export const OrganizationFieldsFragmentDoc = `
|
|
404
|
-
fragment OrganizationFields on Organization {
|
|
405
|
-
resourceType
|
|
406
|
-
identifier {
|
|
407
|
-
...IdentifierFields
|
|
408
|
-
}
|
|
409
|
-
endpoint {
|
|
410
|
-
id
|
|
411
|
-
reference
|
|
412
|
-
type
|
|
413
|
-
resource {
|
|
414
|
-
...EndpointFields
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
name
|
|
418
|
-
telecom {
|
|
419
|
-
system
|
|
420
|
-
value
|
|
421
|
-
rank
|
|
422
|
-
}
|
|
423
|
-
address {
|
|
424
|
-
...AddressFields
|
|
256
|
+
tag {
|
|
257
|
+
...CodingFields
|
|
425
258
|
}
|
|
426
259
|
}
|
|
427
|
-
${
|
|
428
|
-
${EndpointFieldsFragmentDoc}
|
|
429
|
-
${AddressFieldsFragmentDoc}`;
|
|
260
|
+
${CodingFieldsFragmentDoc}`;
|
|
430
261
|
export const DocumentReferenceAttachmentFieldsFragmentDoc = `
|
|
431
262
|
fragment DocumentReferenceAttachmentFields on DocumentReferenceAttachment {
|
|
432
263
|
contentType
|
|
@@ -622,6 +453,314 @@ export const ObservationComponentFieldsFragmentDoc = `
|
|
|
622
453
|
${CodeableConceptFieldsFragmentDoc}
|
|
623
454
|
${ObservationComponentValueFieldsFragmentDoc}
|
|
624
455
|
${ObservationReferenceRangeFieldsFragmentDoc}`;
|
|
456
|
+
export const AddressFieldsFragmentDoc = `
|
|
457
|
+
fragment AddressFields on Address {
|
|
458
|
+
use
|
|
459
|
+
type
|
|
460
|
+
text
|
|
461
|
+
line
|
|
462
|
+
city
|
|
463
|
+
district
|
|
464
|
+
state
|
|
465
|
+
postalCode
|
|
466
|
+
country
|
|
467
|
+
}
|
|
468
|
+
`;
|
|
469
|
+
export const PositionFieldsFragmentDoc = `
|
|
470
|
+
fragment PositionFields on LocationPosition {
|
|
471
|
+
latitude
|
|
472
|
+
longitude
|
|
473
|
+
}
|
|
474
|
+
`;
|
|
475
|
+
export const ContactPointFieldsFragmentDoc = `
|
|
476
|
+
fragment ContactPointFields on ContactPoint {
|
|
477
|
+
id
|
|
478
|
+
system
|
|
479
|
+
value
|
|
480
|
+
use
|
|
481
|
+
rank
|
|
482
|
+
}
|
|
483
|
+
`;
|
|
484
|
+
export const EndpointFieldsFragmentDoc = `
|
|
485
|
+
fragment EndpointFields on Endpoint {
|
|
486
|
+
identifier {
|
|
487
|
+
...IdentifierFields
|
|
488
|
+
}
|
|
489
|
+
name
|
|
490
|
+
status
|
|
491
|
+
connectionType {
|
|
492
|
+
...CodingFields
|
|
493
|
+
}
|
|
494
|
+
address
|
|
495
|
+
}
|
|
496
|
+
${IdentifierFieldsFragmentDoc}
|
|
497
|
+
${CodingFieldsFragmentDoc}`;
|
|
498
|
+
export const OrganizationFieldsFragmentDoc = `
|
|
499
|
+
fragment OrganizationFields on Organization {
|
|
500
|
+
resourceType
|
|
501
|
+
id
|
|
502
|
+
identifier {
|
|
503
|
+
...IdentifierFields
|
|
504
|
+
}
|
|
505
|
+
endpoint {
|
|
506
|
+
id
|
|
507
|
+
reference
|
|
508
|
+
type
|
|
509
|
+
resource {
|
|
510
|
+
...EndpointFields
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
name
|
|
514
|
+
telecom {
|
|
515
|
+
...ContactPointFields
|
|
516
|
+
}
|
|
517
|
+
address {
|
|
518
|
+
...AddressFields
|
|
519
|
+
}
|
|
520
|
+
active
|
|
521
|
+
type {
|
|
522
|
+
...CodeableConceptFields
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
${IdentifierFieldsFragmentDoc}
|
|
526
|
+
${EndpointFieldsFragmentDoc}
|
|
527
|
+
${ContactPointFieldsFragmentDoc}
|
|
528
|
+
${AddressFieldsFragmentDoc}
|
|
529
|
+
${CodeableConceptFieldsFragmentDoc}`;
|
|
530
|
+
export const LocationFieldsFragmentDoc = `
|
|
531
|
+
fragment LocationFields on Location {
|
|
532
|
+
name
|
|
533
|
+
identifier {
|
|
534
|
+
...IdentifierFields
|
|
535
|
+
}
|
|
536
|
+
alias
|
|
537
|
+
description
|
|
538
|
+
address {
|
|
539
|
+
...AddressFields
|
|
540
|
+
}
|
|
541
|
+
position {
|
|
542
|
+
...PositionFields
|
|
543
|
+
}
|
|
544
|
+
telecom {
|
|
545
|
+
...ContactPointFields
|
|
546
|
+
}
|
|
547
|
+
status
|
|
548
|
+
managingOrganization {
|
|
549
|
+
id
|
|
550
|
+
reference
|
|
551
|
+
identifier {
|
|
552
|
+
...IdentifierFields
|
|
553
|
+
}
|
|
554
|
+
display
|
|
555
|
+
resource {
|
|
556
|
+
...OrganizationFields
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
type {
|
|
560
|
+
...CodeableConceptFields
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
${IdentifierFieldsFragmentDoc}
|
|
564
|
+
${AddressFieldsFragmentDoc}
|
|
565
|
+
${PositionFieldsFragmentDoc}
|
|
566
|
+
${ContactPointFieldsFragmentDoc}
|
|
567
|
+
${OrganizationFieldsFragmentDoc}
|
|
568
|
+
${CodeableConceptFieldsFragmentDoc}`;
|
|
569
|
+
export const PractitionerFieldsFragmentDoc = `
|
|
570
|
+
fragment PractitionerFields on Practitioner {
|
|
571
|
+
id
|
|
572
|
+
name {
|
|
573
|
+
...HumanNameFields
|
|
574
|
+
}
|
|
575
|
+
identifier {
|
|
576
|
+
...IdentifierFields
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
${HumanNameFieldsFragmentDoc}
|
|
580
|
+
${IdentifierFieldsFragmentDoc}`;
|
|
581
|
+
export const ParticipantFieldsFragmentDoc = `
|
|
582
|
+
fragment ParticipantFields on EncounterParticipant {
|
|
583
|
+
individual {
|
|
584
|
+
id
|
|
585
|
+
reference
|
|
586
|
+
type
|
|
587
|
+
resource {
|
|
588
|
+
...PractitionerFields
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
type {
|
|
592
|
+
...CodeableConceptFields
|
|
593
|
+
}
|
|
594
|
+
period {
|
|
595
|
+
...PeriodFields
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
${PractitionerFieldsFragmentDoc}
|
|
599
|
+
${CodeableConceptFieldsFragmentDoc}
|
|
600
|
+
${PeriodFieldsFragmentDoc}`;
|
|
601
|
+
export const CommunicationFieldsFragmentDoc = `
|
|
602
|
+
fragment CommunicationFields on PatientCommunication {
|
|
603
|
+
language {
|
|
604
|
+
...CodeableConceptFields
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
${CodeableConceptFieldsFragmentDoc}`;
|
|
608
|
+
export const PatientFieldsFragmentDoc = `
|
|
609
|
+
fragment PatientFields on Patient {
|
|
610
|
+
id
|
|
611
|
+
name {
|
|
612
|
+
...HumanNameFields
|
|
613
|
+
}
|
|
614
|
+
gender
|
|
615
|
+
birthDate
|
|
616
|
+
communication {
|
|
617
|
+
...CommunicationFields
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
${HumanNameFieldsFragmentDoc}
|
|
621
|
+
${CommunicationFieldsFragmentDoc}`;
|
|
622
|
+
export const RecorderFieldsFragmentDoc = `
|
|
623
|
+
fragment RecorderFields on ConditionRecorder {
|
|
624
|
+
...PatientFields
|
|
625
|
+
...PractitionerFields
|
|
626
|
+
}
|
|
627
|
+
${PatientFieldsFragmentDoc}
|
|
628
|
+
${PractitionerFieldsFragmentDoc}`;
|
|
629
|
+
export const ConditionFieldsFragmentDoc = `
|
|
630
|
+
fragment ConditionFields on Condition {
|
|
631
|
+
id
|
|
632
|
+
meta {
|
|
633
|
+
...MetaFields
|
|
634
|
+
}
|
|
635
|
+
code {
|
|
636
|
+
...CodeableConceptFields
|
|
637
|
+
}
|
|
638
|
+
clinicalStatus {
|
|
639
|
+
...CodeableConceptFields
|
|
640
|
+
}
|
|
641
|
+
onsetDateTime
|
|
642
|
+
recordedDate
|
|
643
|
+
recorder {
|
|
644
|
+
resource {
|
|
645
|
+
...RecorderFields
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
note {
|
|
649
|
+
authorString
|
|
650
|
+
time
|
|
651
|
+
text
|
|
652
|
+
}
|
|
653
|
+
onsetPeriod {
|
|
654
|
+
...PeriodFields
|
|
655
|
+
}
|
|
656
|
+
abatementDateTime
|
|
657
|
+
abatementPeriod {
|
|
658
|
+
...PeriodFields
|
|
659
|
+
}
|
|
660
|
+
category {
|
|
661
|
+
...CodeableConceptFields
|
|
662
|
+
}
|
|
663
|
+
severity {
|
|
664
|
+
...CodeableConceptFields
|
|
665
|
+
}
|
|
666
|
+
verificationStatus {
|
|
667
|
+
...CodeableConceptFields
|
|
668
|
+
}
|
|
669
|
+
bodySite {
|
|
670
|
+
...CodeableConceptFields
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
${MetaFieldsFragmentDoc}
|
|
674
|
+
${CodeableConceptFieldsFragmentDoc}
|
|
675
|
+
${RecorderFieldsFragmentDoc}
|
|
676
|
+
${PeriodFieldsFragmentDoc}`;
|
|
677
|
+
export const EncounterFieldsFragmentDoc = `
|
|
678
|
+
fragment EncounterFields on Encounter {
|
|
679
|
+
resourceType
|
|
680
|
+
id
|
|
681
|
+
identifier {
|
|
682
|
+
...IdentifierFields
|
|
683
|
+
}
|
|
684
|
+
meta {
|
|
685
|
+
...MetaFields
|
|
686
|
+
}
|
|
687
|
+
text {
|
|
688
|
+
...NarrativeFields
|
|
689
|
+
}
|
|
690
|
+
type {
|
|
691
|
+
...CodeableConceptFields
|
|
692
|
+
}
|
|
693
|
+
status
|
|
694
|
+
period {
|
|
695
|
+
...PeriodFields
|
|
696
|
+
}
|
|
697
|
+
reasonCode {
|
|
698
|
+
...CodeableConceptFields
|
|
699
|
+
}
|
|
700
|
+
class {
|
|
701
|
+
...CodingFields
|
|
702
|
+
}
|
|
703
|
+
hospitalization {
|
|
704
|
+
dischargeDisposition {
|
|
705
|
+
...CodeableConceptFields
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
location {
|
|
709
|
+
location {
|
|
710
|
+
id
|
|
711
|
+
reference
|
|
712
|
+
type
|
|
713
|
+
resource {
|
|
714
|
+
...LocationFields
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
status
|
|
718
|
+
physicalType {
|
|
719
|
+
...CodeableConceptFields
|
|
720
|
+
}
|
|
721
|
+
period {
|
|
722
|
+
...PeriodFields
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
participant {
|
|
726
|
+
...ParticipantFields
|
|
727
|
+
}
|
|
728
|
+
serviceProvider {
|
|
729
|
+
id
|
|
730
|
+
reference
|
|
731
|
+
type
|
|
732
|
+
resource {
|
|
733
|
+
...OrganizationFields
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
subject {
|
|
737
|
+
id
|
|
738
|
+
reference
|
|
739
|
+
type
|
|
740
|
+
resource {
|
|
741
|
+
...PatientFields
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
reasonReference {
|
|
745
|
+
id
|
|
746
|
+
reference
|
|
747
|
+
type
|
|
748
|
+
resource {
|
|
749
|
+
...ConditionFields
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
${IdentifierFieldsFragmentDoc}
|
|
754
|
+
${MetaFieldsFragmentDoc}
|
|
755
|
+
${NarrativeFieldsFragmentDoc}
|
|
756
|
+
${CodeableConceptFieldsFragmentDoc}
|
|
757
|
+
${PeriodFieldsFragmentDoc}
|
|
758
|
+
${CodingFieldsFragmentDoc}
|
|
759
|
+
${LocationFieldsFragmentDoc}
|
|
760
|
+
${ParticipantFieldsFragmentDoc}
|
|
761
|
+
${OrganizationFieldsFragmentDoc}
|
|
762
|
+
${PatientFieldsFragmentDoc}
|
|
763
|
+
${ConditionFieldsFragmentDoc}`;
|
|
625
764
|
export const SpecimenResourceFieldsFragmentDoc = `
|
|
626
765
|
fragment SpecimenResourceFields on Specimen {
|
|
627
766
|
identifier {
|
|
@@ -693,6 +832,14 @@ export const ObservationFieldsFragmentDoc = `
|
|
|
693
832
|
note {
|
|
694
833
|
...AnnotationFields
|
|
695
834
|
}
|
|
835
|
+
encounter {
|
|
836
|
+
id
|
|
837
|
+
reference
|
|
838
|
+
type
|
|
839
|
+
resource {
|
|
840
|
+
...EncounterFields
|
|
841
|
+
}
|
|
842
|
+
}
|
|
696
843
|
performer {
|
|
697
844
|
id
|
|
698
845
|
reference
|
|
@@ -742,6 +889,7 @@ ${ObservationReferenceRangeFieldsFragmentDoc}
|
|
|
742
889
|
${ObservationComponentFieldsFragmentDoc}
|
|
743
890
|
${PeriodFieldsFragmentDoc}
|
|
744
891
|
${AnnotationFieldsFragmentDoc}
|
|
892
|
+
${EncounterFieldsFragmentDoc}
|
|
745
893
|
${PractitionerFieldsFragmentDoc}
|
|
746
894
|
${PatientFieldsFragmentDoc}
|
|
747
895
|
${SpecimenResourceFieldsFragmentDoc}`;
|
|
@@ -1528,6 +1676,14 @@ export const GetConditionsDocument = `
|
|
|
1528
1676
|
...PractitionerFields
|
|
1529
1677
|
}
|
|
1530
1678
|
}
|
|
1679
|
+
encounter {
|
|
1680
|
+
id
|
|
1681
|
+
reference
|
|
1682
|
+
type
|
|
1683
|
+
resource {
|
|
1684
|
+
...EncounterFields
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1531
1687
|
}
|
|
1532
1688
|
}
|
|
1533
1689
|
}
|
|
@@ -1540,7 +1696,8 @@ ${RecorderFieldsFragmentDoc}
|
|
|
1540
1696
|
${AnnotationFieldsFragmentDoc}
|
|
1541
1697
|
${PeriodFieldsFragmentDoc}
|
|
1542
1698
|
${PatientFieldsFragmentDoc}
|
|
1543
|
-
${PractitionerFieldsFragmentDoc}
|
|
1699
|
+
${PractitionerFieldsFragmentDoc}
|
|
1700
|
+
${EncounterFieldsFragmentDoc}`;
|
|
1544
1701
|
export const GetDiagnosticReportLabGroupsDocument = `
|
|
1545
1702
|
query getDiagnosticReportLabGroups($request: DiagnosticReportLabGroupQueryRequest) {
|
|
1546
1703
|
getDiagnosticReportLabGroups(request: $request) {
|
|
@@ -1592,6 +1749,28 @@ export const GetEncountersGroupDocument = `
|
|
|
1592
1749
|
}
|
|
1593
1750
|
${PagingFieldsFragmentDoc}
|
|
1594
1751
|
${CodingFieldsFragmentDoc}`;
|
|
1752
|
+
export const GetEncountersDocument = `
|
|
1753
|
+
query getEncounters($page: Int, $pageSize: Int, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType, $class: SearchToken, $type: SearchToken) {
|
|
1754
|
+
encounters(
|
|
1755
|
+
_count: $pageSize
|
|
1756
|
+
_getpagesoffset: $page
|
|
1757
|
+
id: $id
|
|
1758
|
+
_lastUpdated: $lastUpdated
|
|
1759
|
+
_sort: $sort
|
|
1760
|
+
status: $status
|
|
1761
|
+
_total: $total
|
|
1762
|
+
class: $class
|
|
1763
|
+
type: $type
|
|
1764
|
+
) {
|
|
1765
|
+
id
|
|
1766
|
+
entry {
|
|
1767
|
+
resource {
|
|
1768
|
+
...EncounterFields
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
${EncounterFieldsFragmentDoc}`;
|
|
1595
1774
|
export const GetHealthSummaryDocument = `
|
|
1596
1775
|
query GetHealthSummary {
|
|
1597
1776
|
getHealthSummary {
|
|
@@ -1666,6 +1845,14 @@ export const GetImmunizationsDocument = `
|
|
|
1666
1845
|
doseQuantity {
|
|
1667
1846
|
...QuantityFields
|
|
1668
1847
|
}
|
|
1848
|
+
encounter {
|
|
1849
|
+
id
|
|
1850
|
+
reference
|
|
1851
|
+
type
|
|
1852
|
+
resource {
|
|
1853
|
+
...EncounterFields
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1669
1856
|
reaction {
|
|
1670
1857
|
...ImmunizationReactionFields
|
|
1671
1858
|
}
|
|
@@ -1717,6 +1904,7 @@ ${MetaFieldsFragmentDoc}
|
|
|
1717
1904
|
${NarrativeFieldsFragmentDoc}
|
|
1718
1905
|
${CodeableConceptFieldsFragmentDoc}
|
|
1719
1906
|
${QuantityFieldsFragmentDoc}
|
|
1907
|
+
${EncounterFieldsFragmentDoc}
|
|
1720
1908
|
${ImmunizationReactionFieldsFragmentDoc}
|
|
1721
1909
|
${ImmunizationProtocolAppliedFieldsFragmentDoc}
|
|
1722
1910
|
${OrganizationFieldsFragmentDoc}
|
|
@@ -1825,6 +2013,14 @@ export const GetProceduresDocument = `
|
|
|
1825
2013
|
}
|
|
1826
2014
|
}
|
|
1827
2015
|
}
|
|
2016
|
+
encounter {
|
|
2017
|
+
id
|
|
2018
|
+
reference
|
|
2019
|
+
type
|
|
2020
|
+
resource {
|
|
2021
|
+
...EncounterFields
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
1828
2024
|
reasonCode {
|
|
1829
2025
|
...CodeableConceptFields
|
|
1830
2026
|
}
|
|
@@ -1857,6 +2053,7 @@ ${NarrativeFieldsFragmentDoc}
|
|
|
1857
2053
|
${CodeableConceptFieldsFragmentDoc}
|
|
1858
2054
|
${PeriodFieldsFragmentDoc}
|
|
1859
2055
|
${ProcedurePerformerActorFieldsFragmentDoc}
|
|
2056
|
+
${EncounterFieldsFragmentDoc}
|
|
1860
2057
|
${AnnotationFieldsFragmentDoc}`;
|
|
1861
2058
|
export const GetVitalSignGroupsDocument = `
|
|
1862
2059
|
query getVitalSignGroups($request: VitalSignGroupQueryRequest) {
|
|
@@ -2533,6 +2730,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
2533
2730
|
getEncountersGroup(variables, requestHeaders) {
|
|
2534
2731
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetEncountersGroupDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getEncountersGroup', 'query', variables);
|
|
2535
2732
|
},
|
|
2733
|
+
getEncounters(variables, requestHeaders) {
|
|
2734
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetEncountersDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getEncounters', 'query', variables);
|
|
2735
|
+
},
|
|
2536
2736
|
GetHealthSummary(variables, requestHeaders) {
|
|
2537
2737
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetHealthSummaryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'GetHealthSummary', 'query', variables);
|
|
2538
2738
|
},
|