@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1757362315 → 2.0.0-alpha.0-rc.1757691388

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.
Files changed (44) hide show
  1. package/dist/__version__.d.ts +1 -1
  2. package/dist/__version__.js +1 -1
  3. package/dist/api/base/health-data/health-data-request.d.ts +3 -0
  4. package/dist/api/base/health-data/health-manager.d.ts +53 -1
  5. package/dist/api/base/requests/field-sort-order.d.ts +11 -0
  6. package/dist/api/base/requests/field-sort-order.js +1 -0
  7. package/dist/api/base/requests/index.d.ts +1 -0
  8. package/dist/api/base/search/search-health-resources-request.d.ts +3 -11
  9. package/dist/api/graphql-api/healthdata/graphql-health-manager.d.ts +5 -1
  10. package/dist/api/graphql-api/healthdata/graphql-health-manager.js +82 -0
  11. package/dist/api/graphql-api/healthdata/health-data-request-factory.js +13 -1
  12. package/dist/graphql/operations/index.d.ts +66 -5
  13. package/dist/graphql/operations/index.js +1115 -143
  14. package/dist/graphql/operations/types.d.ts +5625 -2203
  15. package/dist/models/common/contact-point.d.ts +4 -0
  16. package/dist/models/common/extension.d.ts +2 -0
  17. package/dist/models/common/index.d.ts +6 -1
  18. package/dist/models/common/location.d.ts +5 -0
  19. package/dist/models/common/organization.d.ts +22 -0
  20. package/dist/models/common/patient.d.ts +13 -0
  21. package/dist/models/common/patient.js +1 -0
  22. package/dist/models/common/practitioner.d.ts +15 -0
  23. package/dist/models/common/practitioner.js +1 -0
  24. package/dist/models/common/service-request.d.ts +21 -0
  25. package/dist/models/common/service-request.js +1 -0
  26. package/dist/models/common/specimen.d.ts +13 -0
  27. package/dist/models/common/specimen.js +1 -0
  28. package/dist/models/common/timing.d.ts +107 -0
  29. package/dist/models/common/timing.js +1 -0
  30. package/dist/models/common/value.d.ts +22 -0
  31. package/dist/models/common/value.js +1 -0
  32. package/dist/models/health-data/care-plan.d.ts +134 -0
  33. package/dist/models/health-data/care-plan.js +1 -0
  34. package/dist/models/health-data/condition.d.ts +102 -0
  35. package/dist/models/health-data/condition.js +1 -0
  36. package/dist/models/health-data/immunization.d.ts +149 -0
  37. package/dist/models/health-data/immunization.js +1 -0
  38. package/dist/models/health-data/index.d.ts +5 -0
  39. package/dist/models/health-data/observation.d.ts +100 -0
  40. package/dist/models/health-data/observation.js +1 -0
  41. package/dist/models/health-data/procedure.d.ts +77 -0
  42. package/dist/models/health-data/procedure.js +1 -0
  43. package/dist/models/search/health-resources.d.ts +2 -2
  44. package/package.json +1 -1
@@ -21,6 +21,33 @@ export const PagingFieldsFragmentDoc = `
21
21
  total_items
22
22
  }
23
23
  `;
24
+ export const CodingFieldsFragmentDoc = `
25
+ fragment CodingFields on Coding {
26
+ id
27
+ system
28
+ code
29
+ display
30
+ }
31
+ `;
32
+ export const CodeableConceptFieldsFragmentDoc = `
33
+ fragment CodeableConceptFields on CodeableConcept {
34
+ id
35
+ text
36
+ coding {
37
+ ...CodingFields
38
+ }
39
+ }
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}`;
24
51
  export const AddressFieldsFragmentDoc = `
25
52
  fragment AddressFields on Address {
26
53
  use
@@ -34,23 +61,58 @@ export const AddressFieldsFragmentDoc = `
34
61
  country
35
62
  }
36
63
  `;
37
- export const CodingFieldsFragmentDoc = `
38
- fragment CodingFields on Coding {
64
+ export const PositionFieldsFragmentDoc = `
65
+ fragment PositionFields on LocationPosition {
66
+ latitude
67
+ longitude
68
+ }
69
+ `;
70
+ export const ContactPointFieldsFragmentDoc = `
71
+ fragment ContactPointFields on ContactPoint {
39
72
  id
40
73
  system
41
- code
42
- display
74
+ value
75
+ use
76
+ rank
43
77
  }
44
78
  `;
45
- export const CodeableConceptFieldsFragmentDoc = `
46
- fragment CodeableConceptFields on CodeableConcept {
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
+ export const ExtensionFieldsFragmentDoc = `
106
+ fragment ExtensionFields on Extension {
47
107
  id
48
- text
49
- coding {
50
- ...CodingFields
108
+ url
109
+ valueCodeableConcept {
110
+ ...CodeableConceptFields
51
111
  }
112
+ valueString
113
+ valueInteger
52
114
  }
53
- ${CodingFieldsFragmentDoc}`;
115
+ ${CodeableConceptFieldsFragmentDoc}`;
54
116
  export const QuantityFieldsFragmentDoc = `
55
117
  fragment QuantityFields on Quantity {
56
118
  value
@@ -134,91 +196,602 @@ export const ComponentFieldsFragmentDoc = `
134
196
  ...ValueFields
135
197
  }
136
198
  referenceRange {
137
- ...ReferenceRangeFields
199
+ ...ReferenceRangeFields
200
+ }
201
+ interpretation {
202
+ ...CodeableConceptFields
203
+ }
204
+ dataAbsentReason {
205
+ ...CodeableConceptFields
206
+ }
207
+ }
208
+ ${CodeableConceptFieldsFragmentDoc}
209
+ ${ValueFieldsFragmentDoc}
210
+ ${ReferenceRangeFieldsFragmentDoc}`;
211
+ export const TimingRepeatFieldsFragmentDoc = `
212
+ fragment TimingRepeatFields on TimingRepeat {
213
+ id
214
+ boundsDuration {
215
+ ...QuantityFields
216
+ }
217
+ boundsPeriod {
218
+ ...PeriodFields
219
+ }
220
+ boundsRange {
221
+ ...RangeFields
222
+ }
223
+ count
224
+ countMax
225
+ dayOfWeek
226
+ duration
227
+ durationMax
228
+ durationUnit
229
+ frequency
230
+ frequencyMax
231
+ offset
232
+ period
233
+ periodMax
234
+ periodUnit
235
+ timeOfDay
236
+ when
237
+ }
238
+ ${QuantityFieldsFragmentDoc}
239
+ ${PeriodFieldsFragmentDoc}
240
+ ${RangeFieldsFragmentDoc}`;
241
+ export const TimingFieldsFragmentDoc = `
242
+ fragment TimingFields on Timing {
243
+ id
244
+ code {
245
+ ...CodeableConceptFields
246
+ }
247
+ event
248
+ repeat {
249
+ ...TimingRepeatFields
250
+ }
251
+ }
252
+ ${CodeableConceptFieldsFragmentDoc}
253
+ ${TimingRepeatFieldsFragmentDoc}`;
254
+ export const CarePlanDetailFieldsFragmentDoc = `
255
+ fragment CarePlanDetailFields on CarePlanDetail {
256
+ kind
257
+ code {
258
+ ...CodeableConceptFields
259
+ }
260
+ status
261
+ scheduledPeriod {
262
+ ...PeriodFields
263
+ }
264
+ scheduledString
265
+ scheduledTiming {
266
+ ...TimingFields
267
+ }
268
+ }
269
+ ${CodeableConceptFieldsFragmentDoc}
270
+ ${PeriodFieldsFragmentDoc}
271
+ ${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
+ export const HumanNameFieldsFragmentDoc = `
286
+ fragment HumanNameFields on HumanName {
287
+ text
288
+ family
289
+ given
290
+ prefix
291
+ suffix
292
+ }
293
+ `;
294
+ export const PatientFieldsFragmentDoc = `
295
+ fragment PatientFields on Patient {
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 {
322
+ id
323
+ meta {
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 {
361
+ ...CodeableConceptFields
362
+ }
363
+ }
364
+ ${MetaFieldsFragmentDoc}
365
+ ${CodeableConceptFieldsFragmentDoc}
366
+ ${RecorderFieldsFragmentDoc}
367
+ ${PeriodFieldsFragmentDoc}`;
368
+ export const EndpointFieldsFragmentDoc = `
369
+ fragment EndpointFields on Endpoint {
370
+ identifier {
371
+ ...IdentifierFields
372
+ }
373
+ name
374
+ status
375
+ connectionType {
376
+ ...CodingFields
377
+ }
378
+ address
379
+ }
380
+ ${IdentifierFieldsFragmentDoc}
381
+ ${CodingFieldsFragmentDoc}`;
382
+ export const OrganizationFieldsFragmentDoc = `
383
+ fragment OrganizationFields on Organization {
384
+ resourceType
385
+ identifier {
386
+ ...IdentifierFields
387
+ }
388
+ endpoint {
389
+ id
390
+ reference
391
+ type
392
+ resource {
393
+ ...EndpointFields
394
+ }
395
+ }
396
+ name
397
+ telecom {
398
+ system
399
+ value
400
+ rank
401
+ }
402
+ address {
403
+ ...AddressFields
404
+ }
405
+ }
406
+ ${IdentifierFieldsFragmentDoc}
407
+ ${EndpointFieldsFragmentDoc}
408
+ ${AddressFieldsFragmentDoc}`;
409
+ export const DocumentReferenceAttachmentFieldsFragmentDoc = `
410
+ fragment DocumentReferenceAttachmentFields on DocumentReferenceAttachment {
411
+ contentType
412
+ data
413
+ url
414
+ title
415
+ }
416
+ `;
417
+ export const DocumentReferenceContextFieldsFragmentDoc = `
418
+ fragment DocumentReferenceContextFields on DocumentReferenceContext {
419
+ encounter {
420
+ reference
421
+ display
422
+ }
423
+ period {
424
+ ...PeriodFields
425
+ }
426
+ }
427
+ ${PeriodFieldsFragmentDoc}`;
428
+ export const DocumentReferenceFieldsFragmentDoc = `
429
+ fragment DocumentReferenceFields on DocumentReference {
430
+ resourceType
431
+ id
432
+ identifier {
433
+ ...IdentifierFields
434
+ }
435
+ meta {
436
+ ...MetaFields
437
+ }
438
+ text {
439
+ div
440
+ status
441
+ }
442
+ description
443
+ language
444
+ status
445
+ type {
446
+ ...CodeableConceptFields
447
+ }
448
+ category {
449
+ ...CodeableConceptFields
450
+ }
451
+ date
452
+ subject {
453
+ reference
454
+ display
455
+ }
456
+ author {
457
+ reference
458
+ display
459
+ }
460
+ content {
461
+ attachment {
462
+ ...DocumentReferenceAttachmentFields
463
+ }
464
+ format {
465
+ ...CodingFields
466
+ }
467
+ }
468
+ context {
469
+ ...DocumentReferenceContextFields
470
+ }
471
+ }
472
+ ${IdentifierFieldsFragmentDoc}
473
+ ${MetaFieldsFragmentDoc}
474
+ ${CodeableConceptFieldsFragmentDoc}
475
+ ${DocumentReferenceAttachmentFieldsFragmentDoc}
476
+ ${CodingFieldsFragmentDoc}
477
+ ${DocumentReferenceContextFieldsFragmentDoc}`;
478
+ export const AnnotationFieldsFragmentDoc = `
479
+ fragment AnnotationFields on Annotation {
480
+ id
481
+ authorString
482
+ time
483
+ text
484
+ }
485
+ `;
486
+ export const ReactionFieldsFragmentDoc = `
487
+ fragment ReactionFields on AllergyIntoleranceReaction {
488
+ id
489
+ onset
490
+ severity
491
+ description
492
+ manifestation {
493
+ ...CodeableConceptFields
494
+ }
495
+ note {
496
+ ...AnnotationFields
497
+ }
498
+ }
499
+ ${CodeableConceptFieldsFragmentDoc}
500
+ ${AnnotationFieldsFragmentDoc}`;
501
+ export const NarrativeFieldsFragmentDoc = `
502
+ fragment NarrativeFields on Narrative {
503
+ div
504
+ status
505
+ }
506
+ `;
507
+ export const ObservationBasedOnFieldsFragmentDoc = `
508
+ fragment ObservationBasedOnFields on ObservationBasedOn {
509
+ ... on ServiceRequest {
510
+ resourceType
511
+ id
512
+ reasonCode {
513
+ ...CodeableConceptFields
514
+ }
515
+ }
516
+ }
517
+ ${CodeableConceptFieldsFragmentDoc}`;
518
+ export const ObservationValueFieldsFragmentDoc = `
519
+ fragment ObservationValueFields on Observation {
520
+ valueQuantity {
521
+ ...QuantityFields
522
+ }
523
+ valueCodeableConcept {
524
+ ...CodeableConceptFields
525
+ }
526
+ valueString
527
+ valueBoolean
528
+ valueInteger
529
+ valueRatio {
530
+ ...RatioFields
531
+ }
532
+ valueRange {
533
+ ...RangeFields
534
+ }
535
+ valueTime
536
+ valueDateTime
537
+ valuePeriod {
538
+ ...PeriodFields
539
+ }
540
+ }
541
+ ${QuantityFieldsFragmentDoc}
542
+ ${CodeableConceptFieldsFragmentDoc}
543
+ ${RatioFieldsFragmentDoc}
544
+ ${RangeFieldsFragmentDoc}
545
+ ${PeriodFieldsFragmentDoc}`;
546
+ export const ObservationReferenceRangeFieldsFragmentDoc = `
547
+ fragment ObservationReferenceRangeFields on ObservationReferenceRange {
548
+ low {
549
+ ...QuantityFields
550
+ }
551
+ high {
552
+ ...QuantityFields
553
+ }
554
+ text
555
+ }
556
+ ${QuantityFieldsFragmentDoc}`;
557
+ export const ObservationComponentValueFieldsFragmentDoc = `
558
+ fragment ObservationComponentValueFields on ObservationComponent {
559
+ valueQuantity {
560
+ ...QuantityFields
561
+ }
562
+ valueCodeableConcept {
563
+ ...CodeableConceptFields
564
+ }
565
+ valueString
566
+ valueBoolean
567
+ valueInteger
568
+ valueRatio {
569
+ ...RatioFields
570
+ }
571
+ valueRange {
572
+ ...RangeFields
573
+ }
574
+ valueTime
575
+ valueDateTime
576
+ valuePeriod {
577
+ ...PeriodFields
578
+ }
579
+ }
580
+ ${QuantityFieldsFragmentDoc}
581
+ ${CodeableConceptFieldsFragmentDoc}
582
+ ${RatioFieldsFragmentDoc}
583
+ ${RangeFieldsFragmentDoc}
584
+ ${PeriodFieldsFragmentDoc}`;
585
+ export const ObservationComponentFieldsFragmentDoc = `
586
+ fragment ObservationComponentFields on ObservationComponent {
587
+ code {
588
+ ...CodeableConceptFields
589
+ }
590
+ ...ObservationComponentValueFields
591
+ referenceRange {
592
+ ...ObservationReferenceRangeFields
593
+ }
594
+ interpretation {
595
+ ...CodeableConceptFields
596
+ }
597
+ dataAbsentReason {
598
+ ...CodeableConceptFields
599
+ }
600
+ }
601
+ ${CodeableConceptFieldsFragmentDoc}
602
+ ${ObservationComponentValueFieldsFragmentDoc}
603
+ ${ObservationReferenceRangeFieldsFragmentDoc}`;
604
+ export const ObservationPerformerFieldsFragmentDoc = `
605
+ fragment ObservationPerformerFields on ObservationPerformer {
606
+ ... on Practitioner {
607
+ name {
608
+ ...HumanNameFields
609
+ }
610
+ identifier {
611
+ ...IdentifierFields
612
+ }
613
+ }
614
+ ... on Patient {
615
+ name {
616
+ ...HumanNameFields
617
+ }
618
+ }
619
+ ... on Organization {
620
+ organizationName: name
621
+ }
622
+ }
623
+ ${HumanNameFieldsFragmentDoc}
624
+ ${IdentifierFieldsFragmentDoc}`;
625
+ export const SpecimenResourceFieldsFragmentDoc = `
626
+ fragment SpecimenResourceFields on Specimen {
627
+ identifier {
628
+ ...IdentifierFields
629
+ }
630
+ accessionIdentifier {
631
+ ...IdentifierFields
632
+ }
633
+ type {
634
+ ...CodeableConceptFields
635
+ }
636
+ }
637
+ ${IdentifierFieldsFragmentDoc}
638
+ ${CodeableConceptFieldsFragmentDoc}`;
639
+ export const ObservationFieldsFragmentDoc = `
640
+ fragment ObservationFields on Observation {
641
+ id
642
+ meta {
643
+ ...MetaFields
644
+ }
645
+ resourceType
646
+ text {
647
+ ...NarrativeFields
648
+ }
649
+ identifier {
650
+ ...IdentifierFields
651
+ }
652
+ subject {
653
+ id
654
+ reference
655
+ type
656
+ resource {
657
+ ... on Patient {
658
+ name {
659
+ ...HumanNameFields
660
+ }
661
+ }
662
+ }
663
+ }
664
+ issued
665
+ basedOn {
666
+ id
667
+ reference
668
+ type
669
+ resource {
670
+ ...ObservationBasedOnFields
671
+ }
672
+ }
673
+ ...ObservationValueFields
674
+ code {
675
+ ...CodeableConceptFields
676
+ }
677
+ category {
678
+ ...CodeableConceptFields
679
+ }
680
+ referenceRange {
681
+ ...ObservationReferenceRangeFields
138
682
  }
139
683
  interpretation {
140
684
  ...CodeableConceptFields
141
685
  }
142
- dataAbsentReason {
143
- ...CodeableConceptFields
686
+ component {
687
+ ...ObservationComponentFields
688
+ }
689
+ effectiveDateTime
690
+ effectivePeriod {
691
+ ...PeriodFields
692
+ }
693
+ note {
694
+ ...AnnotationFields
695
+ }
696
+ performer {
697
+ id
698
+ reference
699
+ type
700
+ resource {
701
+ ...ObservationPerformerFields
702
+ }
703
+ }
704
+ hasMember {
705
+ id
706
+ reference
707
+ type
708
+ resource {
709
+ ... on Observation {
710
+ id
711
+ code {
712
+ ...CodeableConceptFields
713
+ }
714
+ }
715
+ }
716
+ }
717
+ specimen {
718
+ id
719
+ reference
720
+ type
721
+ resource {
722
+ ...SpecimenResourceFields
723
+ }
144
724
  }
145
- }
146
- ${CodeableConceptFieldsFragmentDoc}
147
- ${ValueFieldsFragmentDoc}
148
- ${ReferenceRangeFieldsFragmentDoc}`;
149
- export const NarrativeFieldsFragmentDoc = `
150
- fragment NarrativeFields on Narrative {
151
- div
152
725
  status
153
- }
154
- `;
155
- export const HumanNameFieldsFragmentDoc = `
156
- fragment HumanNameFields on HumanName {
157
- text
158
- family
159
- given
160
- prefix
161
- suffix
162
- }
163
- `;
164
- export const IdentifierFieldsFragmentDoc = `
165
- fragment IdentifierFields on Identifier {
166
- id
167
- type {
726
+ dataAbsentReason {
168
727
  ...CodeableConceptFields
169
728
  }
170
- system
171
- value
172
729
  }
173
- ${CodeableConceptFieldsFragmentDoc}`;
174
- export const PractitionerFieldsFragmentDoc = `
175
- fragment PractitionerFields on Practitioner {
176
- id
177
- name {
178
- ...HumanNameFields
179
- }
180
- identifier {
181
- ...IdentifierFields
730
+ ${MetaFieldsFragmentDoc}
731
+ ${NarrativeFieldsFragmentDoc}
732
+ ${IdentifierFieldsFragmentDoc}
733
+ ${HumanNameFieldsFragmentDoc}
734
+ ${ObservationBasedOnFieldsFragmentDoc}
735
+ ${ObservationValueFieldsFragmentDoc}
736
+ ${CodeableConceptFieldsFragmentDoc}
737
+ ${ObservationReferenceRangeFieldsFragmentDoc}
738
+ ${ObservationComponentFieldsFragmentDoc}
739
+ ${PeriodFieldsFragmentDoc}
740
+ ${AnnotationFieldsFragmentDoc}
741
+ ${ObservationPerformerFieldsFragmentDoc}
742
+ ${SpecimenResourceFieldsFragmentDoc}`;
743
+ export const ImmunizationReactionFieldsFragmentDoc = `
744
+ fragment ImmunizationReactionFields on ImmunizationReaction {
745
+ date
746
+ detail {
747
+ id
748
+ reference
749
+ type
750
+ resource {
751
+ ...ObservationFields
752
+ }
182
753
  }
754
+ reported
183
755
  }
184
- ${HumanNameFieldsFragmentDoc}
185
- ${IdentifierFieldsFragmentDoc}`;
186
- export const AnnotationFieldsFragmentDoc = `
187
- fragment AnnotationFields on Annotation {
188
- id
189
- authorString
190
- time
191
- text
756
+ ${ObservationFieldsFragmentDoc}`;
757
+ export const ImmunizationProtocolAppliedFieldsFragmentDoc = `
758
+ fragment ImmunizationProtocolAppliedFields on ImmunizationProtocolApplied {
759
+ doseNumberString
760
+ doseNumberPositiveInt
192
761
  }
193
762
  `;
194
- export const ReactionFieldsFragmentDoc = `
195
- fragment ReactionFields on AllergyIntoleranceReaction {
196
- id
197
- onset
198
- severity
199
- description
200
- manifestation {
201
- ...CodeableConceptFields
763
+ export const ImmunizationPerformerActorFieldsFragmentDoc = `
764
+ fragment ImmunizationPerformerActorFields on ImmunizationPerformerActor {
765
+ ... on Practitioner {
766
+ ...PractitionerFields
202
767
  }
203
- note {
204
- ...AnnotationFields
768
+ ... on Organization {
769
+ organizationName: name
205
770
  }
206
771
  }
207
- ${CodeableConceptFieldsFragmentDoc}
208
- ${AnnotationFieldsFragmentDoc}`;
209
- export const MetaFieldsFragmentDoc = `
210
- fragment MetaFields on Meta {
211
- versionId
212
- lastUpdated
213
- source
214
- security {
215
- ...CodingFields
216
- }
217
- tag {
218
- ...CodingFields
772
+ ${PractitionerFieldsFragmentDoc}`;
773
+ export const ProcedureRecorderFieldsFragmentDoc = `
774
+ fragment ProcedureRecorderFields on ProcedureRecorder {
775
+ ...PatientFields
776
+ ...PractitionerFields
777
+ }
778
+ ${PatientFieldsFragmentDoc}
779
+ ${PractitionerFieldsFragmentDoc}`;
780
+ export const ProcedureAsserterFieldsFragmentDoc = `
781
+ fragment ProcedureAsserterFields on ProcedureAsserter {
782
+ ...PatientFields
783
+ ...PractitionerFields
784
+ }
785
+ ${PatientFieldsFragmentDoc}
786
+ ${PractitionerFieldsFragmentDoc}`;
787
+ export const ProcedurePerformerActorFieldsFragmentDoc = `
788
+ fragment ProcedurePerformerActorFields on ProcedurePerformerActor {
789
+ ...PractitionerFields
790
+ ... on Organization {
791
+ organizationName: name
219
792
  }
220
793
  }
221
- ${CodingFieldsFragmentDoc}`;
794
+ ${PractitionerFieldsFragmentDoc}`;
222
795
  export const QuestionnaireResponseItemFieldsFragmentDoc = `
223
796
  fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {
224
797
  linkId
@@ -616,114 +1189,288 @@ export const GetAllergyIntoleranceGroupsDocument = `
616
1189
  ${PagingFieldsFragmentDoc}
617
1190
  ${CodingFieldsFragmentDoc}`;
618
1191
  export const GetAllergyIntolerancesDocument = `
619
- query getAllergyIntolerances($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate) {
1192
+ query getAllergyIntolerances($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
620
1193
  allergyIntolerances(
621
1194
  _count: $pageSize
622
1195
  _getpagesoffset: $page
623
1196
  code: $code
624
1197
  id: $id
625
1198
  _lastUpdated: $lastUpdated
1199
+ _sort: $sort
1200
+ verification_status: $status
1201
+ _total: $total
1202
+ ) {
1203
+ id
1204
+ entry {
1205
+ id
1206
+ resource {
1207
+ id
1208
+ meta {
1209
+ ...MetaFields
1210
+ }
1211
+ resourceType
1212
+ category
1213
+ code {
1214
+ ...CodeableConceptFields
1215
+ }
1216
+ criticality
1217
+ onsetDateTime
1218
+ onsetPeriod {
1219
+ ...PeriodFields
1220
+ }
1221
+ text {
1222
+ ...NarrativeFields
1223
+ }
1224
+ type
1225
+ recorder {
1226
+ id
1227
+ reference
1228
+ type
1229
+ resource {
1230
+ ...PractitionerFields
1231
+ }
1232
+ }
1233
+ lastOccurrence
1234
+ reaction {
1235
+ ...ReactionFields
1236
+ }
1237
+ recordedDate
1238
+ note {
1239
+ ...AnnotationFields
1240
+ }
1241
+ verificationStatus {
1242
+ ...CodeableConceptFields
1243
+ }
1244
+ clinicalStatus {
1245
+ ...CodeableConceptFields
1246
+ }
1247
+ }
1248
+ }
1249
+ }
1250
+ }
1251
+ ${MetaFieldsFragmentDoc}
1252
+ ${CodeableConceptFieldsFragmentDoc}
1253
+ ${PeriodFieldsFragmentDoc}
1254
+ ${NarrativeFieldsFragmentDoc}
1255
+ ${PractitionerFieldsFragmentDoc}
1256
+ ${ReactionFieldsFragmentDoc}
1257
+ ${AnnotationFieldsFragmentDoc}`;
1258
+ export const GetCarePlanGroupsDocument = `
1259
+ query getCarePlanGroups($request: CarePlanGroupQueryRequest) {
1260
+ getCarePlanGroups(request: $request) {
1261
+ paging_info {
1262
+ ...PagingFields
1263
+ }
1264
+ resources {
1265
+ id
1266
+ name
1267
+ references
1268
+ coding {
1269
+ ...CodingFields
1270
+ }
1271
+ source
1272
+ period {
1273
+ ...PeriodFields
1274
+ }
1275
+ sourceDisplay
1276
+ }
1277
+ }
1278
+ }
1279
+ ${PagingFieldsFragmentDoc}
1280
+ ${CodingFieldsFragmentDoc}
1281
+ ${PeriodFieldsFragmentDoc}`;
1282
+ export const GetCarePlansDocument = `
1283
+ query getCarePlans($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
1284
+ carePlans(
1285
+ _count: $pageSize
1286
+ _getpagesoffset: $page
1287
+ category: $code
1288
+ id: $id
1289
+ _lastUpdated: $lastUpdated
1290
+ _sort: $sort
1291
+ status: $status
1292
+ _total: $total
1293
+ ) {
1294
+ id
1295
+ entry {
1296
+ resource {
1297
+ resourceType
1298
+ id
1299
+ identifier {
1300
+ ...IdentifierFields
1301
+ }
1302
+ meta {
1303
+ ...MetaFields
1304
+ }
1305
+ title
1306
+ category {
1307
+ ...CodeableConceptFields
1308
+ }
1309
+ description
1310
+ period {
1311
+ ...PeriodFields
1312
+ }
1313
+ created
1314
+ text {
1315
+ ...NarrativeFields
1316
+ }
1317
+ note {
1318
+ ...AnnotationFields
1319
+ }
1320
+ status
1321
+ intent
1322
+ activity {
1323
+ detail {
1324
+ ...CarePlanDetailFields
1325
+ }
1326
+ }
1327
+ addresses {
1328
+ resource {
1329
+ ...ConditionFields
1330
+ }
1331
+ }
1332
+ subject {
1333
+ id
1334
+ reference
1335
+ type
1336
+ }
1337
+ }
1338
+ }
1339
+ }
1340
+ }
1341
+ ${IdentifierFieldsFragmentDoc}
1342
+ ${MetaFieldsFragmentDoc}
1343
+ ${CodeableConceptFieldsFragmentDoc}
1344
+ ${PeriodFieldsFragmentDoc}
1345
+ ${NarrativeFieldsFragmentDoc}
1346
+ ${AnnotationFieldsFragmentDoc}
1347
+ ${CarePlanDetailFieldsFragmentDoc}
1348
+ ${ConditionFieldsFragmentDoc}`;
1349
+ export const GetConditionGroupsDocument = `
1350
+ query getConditionGroups($request: ConditionGroupQueryRequest) {
1351
+ getConditionGroups(request: $request) {
1352
+ paging_info {
1353
+ ...PagingFields
1354
+ }
1355
+ resources {
1356
+ id
1357
+ name
1358
+ coding {
1359
+ ...CodingFields
1360
+ }
1361
+ references
1362
+ recordedDate
1363
+ source
1364
+ sourceDisplay
1365
+ }
1366
+ }
1367
+ }
1368
+ ${PagingFieldsFragmentDoc}
1369
+ ${CodingFieldsFragmentDoc}`;
1370
+ export const GetConditionsDocument = `
1371
+ query getConditions($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
1372
+ conditions(
1373
+ _count: $pageSize
1374
+ _getpagesoffset: $page
1375
+ code: $code
1376
+ id: $id
1377
+ _lastUpdated: $lastUpdated
1378
+ _sort: $sort
1379
+ verification_status: $status
1380
+ _total: $total
626
1381
  ) {
627
1382
  id
628
1383
  entry {
629
1384
  id
630
1385
  resource {
1386
+ resourceType
631
1387
  id
1388
+ identifier {
1389
+ ...IdentifierFields
1390
+ }
632
1391
  meta {
633
1392
  ...MetaFields
634
1393
  }
635
- resourceType
636
- category
1394
+ text {
1395
+ ...NarrativeFields
1396
+ }
1397
+ extension {
1398
+ id
1399
+ url
1400
+ valueCodeableConcept {
1401
+ ...CodeableConceptFields
1402
+ }
1403
+ valueString
1404
+ valueInteger
1405
+ valueDateTime
1406
+ }
637
1407
  code {
638
1408
  ...CodeableConceptFields
639
1409
  }
640
- criticality
1410
+ clinicalStatus {
1411
+ ...CodeableConceptFields
1412
+ }
641
1413
  onsetDateTime
1414
+ recordedDate
1415
+ recorder {
1416
+ id
1417
+ reference
1418
+ type
1419
+ resource {
1420
+ ...RecorderFields
1421
+ }
1422
+ }
1423
+ note {
1424
+ ...AnnotationFields
1425
+ }
642
1426
  onsetPeriod {
643
1427
  ...PeriodFields
644
1428
  }
645
- text {
646
- ...NarrativeFields
1429
+ abatementDateTime
1430
+ abatementPeriod {
1431
+ ...PeriodFields
647
1432
  }
648
- type
649
- recorder {
1433
+ subject {
650
1434
  id
651
1435
  reference
652
1436
  type
653
1437
  resource {
654
- ...PractitionerFields
1438
+ ...PatientFields
655
1439
  }
656
1440
  }
657
- lastOccurrence
658
- reaction {
659
- ...ReactionFields
1441
+ category {
1442
+ ...CodeableConceptFields
660
1443
  }
661
- recordedDate
662
- note {
663
- ...AnnotationFields
1444
+ severity {
1445
+ ...CodeableConceptFields
664
1446
  }
665
1447
  verificationStatus {
666
1448
  ...CodeableConceptFields
667
1449
  }
668
- clinicalStatus {
1450
+ bodySite {
669
1451
  ...CodeableConceptFields
670
1452
  }
1453
+ asserter {
1454
+ id
1455
+ reference
1456
+ type
1457
+ resource {
1458
+ ...PractitionerFields
1459
+ }
1460
+ }
671
1461
  }
672
1462
  }
673
1463
  }
674
1464
  }
675
- ${MetaFieldsFragmentDoc}
1465
+ ${IdentifierFieldsFragmentDoc}
1466
+ ${MetaFieldsFragmentDoc}
1467
+ ${NarrativeFieldsFragmentDoc}
676
1468
  ${CodeableConceptFieldsFragmentDoc}
1469
+ ${RecorderFieldsFragmentDoc}
1470
+ ${AnnotationFieldsFragmentDoc}
677
1471
  ${PeriodFieldsFragmentDoc}
678
- ${NarrativeFieldsFragmentDoc}
679
- ${PractitionerFieldsFragmentDoc}
680
- ${ReactionFieldsFragmentDoc}
681
- ${AnnotationFieldsFragmentDoc}`;
682
- export const GetCarePlanGroupsDocument = `
683
- query getCarePlanGroups($request: CarePlanGroupQueryRequest) {
684
- getCarePlanGroups(request: $request) {
685
- paging_info {
686
- ...PagingFields
687
- }
688
- resources {
689
- id
690
- name
691
- references
692
- coding {
693
- ...CodingFields
694
- }
695
- source
696
- period {
697
- ...PeriodFields
698
- }
699
- sourceDisplay
700
- }
701
- }
702
- }
703
- ${PagingFieldsFragmentDoc}
704
- ${CodingFieldsFragmentDoc}
705
- ${PeriodFieldsFragmentDoc}`;
706
- export const GetConditionGroupsDocument = `
707
- query getConditionGroups($request: ConditionGroupQueryRequest) {
708
- getConditionGroups(request: $request) {
709
- paging_info {
710
- ...PagingFields
711
- }
712
- resources {
713
- id
714
- name
715
- coding {
716
- ...CodingFields
717
- }
718
- references
719
- recordedDate
720
- source
721
- sourceDisplay
722
- }
723
- }
724
- }
725
- ${PagingFieldsFragmentDoc}
726
- ${CodingFieldsFragmentDoc}`;
1472
+ ${PatientFieldsFragmentDoc}
1473
+ ${PractitionerFieldsFragmentDoc}`;
727
1474
  export const GetDiagnosticReportLabGroupsDocument = `
728
1475
  query getDiagnosticReportLabGroups($request: DiagnosticReportLabGroupQueryRequest) {
729
1476
  getDiagnosticReportLabGroups(request: $request) {
@@ -806,6 +1553,105 @@ export const GetImmunizationGroupsDocument = `
806
1553
  }
807
1554
  ${PagingFieldsFragmentDoc}
808
1555
  ${CodingFieldsFragmentDoc}`;
1556
+ export const GetImmunizationsDocument = `
1557
+ query getImmunizations($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
1558
+ immunizations(
1559
+ _count: $pageSize
1560
+ _getpagesoffset: $page
1561
+ vaccine_code: $code
1562
+ id: $id
1563
+ _lastUpdated: $lastUpdated
1564
+ _sort: $sort
1565
+ status: $status
1566
+ _total: $total
1567
+ ) {
1568
+ id
1569
+ entry {
1570
+ id
1571
+ resource {
1572
+ resourceType
1573
+ id
1574
+ identifier {
1575
+ ...IdentifierFields
1576
+ }
1577
+ meta {
1578
+ ...MetaFields
1579
+ }
1580
+ text {
1581
+ ...NarrativeFields
1582
+ }
1583
+ status
1584
+ expirationDate
1585
+ reportOrigin {
1586
+ ...CodeableConceptFields
1587
+ }
1588
+ vaccineCode {
1589
+ ...CodeableConceptFields
1590
+ }
1591
+ statusReason {
1592
+ ...CodeableConceptFields
1593
+ }
1594
+ occurrenceDateTime
1595
+ primarySource
1596
+ doseQuantity {
1597
+ ...QuantityFields
1598
+ }
1599
+ reaction {
1600
+ ...ImmunizationReactionFields
1601
+ }
1602
+ protocolApplied {
1603
+ ...ImmunizationProtocolAppliedFields
1604
+ }
1605
+ manufacturer {
1606
+ id
1607
+ reference
1608
+ type
1609
+ resource {
1610
+ ...OrganizationFields
1611
+ }
1612
+ }
1613
+ lotNumber
1614
+ site {
1615
+ ...CodeableConceptFields
1616
+ }
1617
+ route {
1618
+ ...CodeableConceptFields
1619
+ }
1620
+ performer {
1621
+ actor {
1622
+ id
1623
+ reference
1624
+ type
1625
+ resource {
1626
+ ...ImmunizationPerformerActorFields
1627
+ }
1628
+ }
1629
+ }
1630
+ location {
1631
+ id
1632
+ reference
1633
+ type
1634
+ resource {
1635
+ ...LocationFields
1636
+ }
1637
+ }
1638
+ reasonCode {
1639
+ ...CodeableConceptFields
1640
+ }
1641
+ }
1642
+ }
1643
+ }
1644
+ }
1645
+ ${IdentifierFieldsFragmentDoc}
1646
+ ${MetaFieldsFragmentDoc}
1647
+ ${NarrativeFieldsFragmentDoc}
1648
+ ${CodeableConceptFieldsFragmentDoc}
1649
+ ${QuantityFieldsFragmentDoc}
1650
+ ${ImmunizationReactionFieldsFragmentDoc}
1651
+ ${ImmunizationProtocolAppliedFieldsFragmentDoc}
1652
+ ${OrganizationFieldsFragmentDoc}
1653
+ ${ImmunizationPerformerActorFieldsFragmentDoc}
1654
+ ${LocationFieldsFragmentDoc}`;
809
1655
  export const GetProcedureGroupsDocument = `
810
1656
  query getProcedureGroups($request: ProcedureGroupQueryRequest) {
811
1657
  getProcedureGroups(request: $request) {
@@ -828,6 +1674,120 @@ export const GetProcedureGroupsDocument = `
828
1674
  }
829
1675
  ${PagingFieldsFragmentDoc}
830
1676
  ${CodingFieldsFragmentDoc}`;
1677
+ export const GetProceduresDocument = `
1678
+ query getProcedures($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
1679
+ procedures(
1680
+ _count: $pageSize
1681
+ _getpagesoffset: $page
1682
+ code: $code
1683
+ id: $id
1684
+ _lastUpdated: $lastUpdated
1685
+ _sort: $sort
1686
+ status: $status
1687
+ _total: $total
1688
+ ) {
1689
+ id
1690
+ entry {
1691
+ id
1692
+ resource {
1693
+ resourceType
1694
+ id
1695
+ identifier {
1696
+ ...IdentifierFields
1697
+ }
1698
+ meta {
1699
+ ...MetaFields
1700
+ }
1701
+ location {
1702
+ id
1703
+ reference
1704
+ type
1705
+ resource {
1706
+ ...LocationFields
1707
+ }
1708
+ }
1709
+ status
1710
+ subject {
1711
+ id
1712
+ reference
1713
+ type
1714
+ resource {
1715
+ ...PatientFields
1716
+ }
1717
+ }
1718
+ recorder {
1719
+ id
1720
+ reference
1721
+ type
1722
+ resource {
1723
+ ...ProcedureRecorderFields
1724
+ }
1725
+ }
1726
+ asserter {
1727
+ id
1728
+ reference
1729
+ type
1730
+ resource {
1731
+ ...ProcedureAsserterFields
1732
+ }
1733
+ }
1734
+ text {
1735
+ ...NarrativeFields
1736
+ }
1737
+ code {
1738
+ ...CodeableConceptFields
1739
+ }
1740
+ category {
1741
+ ...CodeableConceptFields
1742
+ }
1743
+ performedDateTime
1744
+ performedPeriod {
1745
+ ...PeriodFields
1746
+ }
1747
+ performedString
1748
+ performer {
1749
+ actor {
1750
+ id
1751
+ reference
1752
+ type
1753
+ resource {
1754
+ ...ProcedurePerformerActorFields
1755
+ }
1756
+ }
1757
+ }
1758
+ reasonCode {
1759
+ ...CodeableConceptFields
1760
+ }
1761
+ bodySite {
1762
+ ...CodeableConceptFields
1763
+ }
1764
+ outcome {
1765
+ ...CodeableConceptFields
1766
+ }
1767
+ followUp {
1768
+ ...CodeableConceptFields
1769
+ }
1770
+ complication {
1771
+ ...CodeableConceptFields
1772
+ }
1773
+ note {
1774
+ ...AnnotationFields
1775
+ }
1776
+ }
1777
+ }
1778
+ }
1779
+ }
1780
+ ${IdentifierFieldsFragmentDoc}
1781
+ ${MetaFieldsFragmentDoc}
1782
+ ${LocationFieldsFragmentDoc}
1783
+ ${PatientFieldsFragmentDoc}
1784
+ ${ProcedureRecorderFieldsFragmentDoc}
1785
+ ${ProcedureAsserterFieldsFragmentDoc}
1786
+ ${NarrativeFieldsFragmentDoc}
1787
+ ${CodeableConceptFieldsFragmentDoc}
1788
+ ${PeriodFieldsFragmentDoc}
1789
+ ${ProcedurePerformerActorFieldsFragmentDoc}
1790
+ ${AnnotationFieldsFragmentDoc}`;
831
1791
  export const GetVitalSignGroupsDocument = `
832
1792
  query getVitalSignGroups($request: VitalSignGroupQueryRequest) {
833
1793
  getVitalSignGroups(request: $request) {
@@ -1462,9 +2422,15 @@ export function getSdk(client, withWrapper = defaultWrapper) {
1462
2422
  getCarePlanGroups(variables, requestHeaders) {
1463
2423
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetCarePlanGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCarePlanGroups', 'query', variables);
1464
2424
  },
2425
+ getCarePlans(variables, requestHeaders) {
2426
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetCarePlansDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCarePlans', 'query', variables);
2427
+ },
1465
2428
  getConditionGroups(variables, requestHeaders) {
1466
2429
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetConditionGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getConditionGroups', 'query', variables);
1467
2430
  },
2431
+ getConditions(variables, requestHeaders) {
2432
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetConditionsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getConditions', 'query', variables);
2433
+ },
1468
2434
  getDiagnosticReportLabGroups(variables, requestHeaders) {
1469
2435
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDiagnosticReportLabGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getDiagnosticReportLabGroups', 'query', variables);
1470
2436
  },
@@ -1477,9 +2443,15 @@ export function getSdk(client, withWrapper = defaultWrapper) {
1477
2443
  getImmunizationGroups(variables, requestHeaders) {
1478
2444
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetImmunizationGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getImmunizationGroups', 'query', variables);
1479
2445
  },
2446
+ getImmunizations(variables, requestHeaders) {
2447
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetImmunizationsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getImmunizations', 'query', variables);
2448
+ },
1480
2449
  getProcedureGroups(variables, requestHeaders) {
1481
2450
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetProcedureGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getProcedureGroups', 'query', variables);
1482
2451
  },
2452
+ getProcedures(variables, requestHeaders) {
2453
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetProceduresDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getProcedures', 'query', variables);
2454
+ },
1483
2455
  getVitalSignGroups(variables, requestHeaders) {
1484
2456
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetVitalSignGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getVitalSignGroups', 'query', variables);
1485
2457
  },