@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1758310056 → 2.0.0-alpha.0-rc.1758311895

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.
@@ -311,220 +311,27 @@ export const ConditionFieldsFragmentDoc = `
311
311
  ${CodeableConceptFieldsFragmentDoc}
312
312
  ${RecorderFieldsFragmentDoc}
313
313
  ${PeriodFieldsFragmentDoc}`;
314
- export const EndpointFieldsFragmentDoc = `
315
- fragment EndpointFields on Endpoint {
316
- identifier {
317
- ...IdentifierFields
318
- }
319
- name
320
- status
321
- connectionType {
322
- ...CodingFields
323
- }
324
- address
325
- }
326
- ${IdentifierFieldsFragmentDoc}
327
- ${CodingFieldsFragmentDoc}`;
328
- export const ContactPointFieldsFragmentDoc = `
329
- fragment ContactPointFields on ContactPoint {
330
- id
331
- system
332
- value
333
- use
334
- rank
335
- }
336
- `;
337
- export const AddressFieldsFragmentDoc = `
338
- fragment AddressFields on Address {
339
- use
340
- type
341
- text
342
- line
343
- city
344
- district
345
- state
346
- postalCode
347
- country
348
- }
349
- `;
350
- export const OrganizationFieldsFragmentDoc = `
351
- fragment OrganizationFields on Organization {
352
- resourceType
353
- identifier {
354
- ...IdentifierFields
355
- }
356
- endpoint {
357
- id
358
- reference
359
- type
360
- resource {
361
- ...EndpointFields
314
+ export const ObservationPerformerFieldsFragmentDoc = `
315
+ fragment ObservationPerformerFields on ObservationPerformer {
316
+ ... on Practitioner {
317
+ name {
318
+ ...HumanNameFields
362
319
  }
363
- }
364
- name
365
- telecom {
366
- ...ContactPointFields
367
- }
368
- address {
369
- ...AddressFields
370
- }
371
- active
372
- type {
373
- ...CodeableConceptFields
374
- }
375
- }
376
- ${IdentifierFieldsFragmentDoc}
377
- ${EndpointFieldsFragmentDoc}
378
- ${ContactPointFieldsFragmentDoc}
379
- ${AddressFieldsFragmentDoc}
380
- ${CodeableConceptFieldsFragmentDoc}`;
381
- export const PositionFieldsFragmentDoc = `
382
- fragment PositionFields on LocationPosition {
383
- latitude
384
- longitude
385
- }
386
- `;
387
- export const LocationFieldsFragmentDoc = `
388
- fragment LocationFields on Location {
389
- name
390
- identifier {
391
- ...IdentifierFields
392
- }
393
- alias
394
- description
395
- address {
396
- ...AddressFields
397
- }
398
- position {
399
- ...PositionFields
400
- }
401
- telecom {
402
- ...ContactPointFields
403
- }
404
- status
405
- managingOrganization {
406
- id
407
- reference
408
320
  identifier {
409
321
  ...IdentifierFields
410
322
  }
411
- display
412
- resource {
413
- ...OrganizationFields
414
- }
415
- }
416
- type {
417
- ...CodeableConceptFields
418
- }
419
- }
420
- ${IdentifierFieldsFragmentDoc}
421
- ${AddressFieldsFragmentDoc}
422
- ${PositionFieldsFragmentDoc}
423
- ${ContactPointFieldsFragmentDoc}
424
- ${OrganizationFieldsFragmentDoc}
425
- ${CodeableConceptFieldsFragmentDoc}`;
426
- export const PractitionerRoleFieldsFragmentDoc = `
427
- fragment PractitionerRoleFields on PractitionerRole {
428
- resourceType
429
- identifier {
430
- ...IdentifierFields
431
- }
432
- practitioner {
433
- id
434
- reference
435
- type
436
- resource {
437
- ...PractitionerFields
438
- }
439
- }
440
- organization {
441
- id
442
- reference
443
- type
444
- resource {
445
- ...OrganizationFields
446
- }
447
- }
448
- code {
449
- ...CodeableConceptFields
450
- }
451
- specialty {
452
- ...CodeableConceptFields
453
- }
454
- location {
455
- id
456
- reference
457
- type
458
- resource {
459
- ...LocationFields
460
- }
461
- }
462
- telecom {
463
- ...ContactPointFields
464
323
  }
465
- active
466
- id
467
- endpoint {
468
- id
469
- reference
470
- identifier {
471
- ...IdentifierFields
472
- }
473
- display
474
- resource {
475
- ...EndpointFields
324
+ ... on Patient {
325
+ name {
326
+ ...HumanNameFields
476
327
  }
477
328
  }
478
- period {
479
- ...PeriodFields
480
- }
481
- }
482
- ${IdentifierFieldsFragmentDoc}
483
- ${PractitionerFieldsFragmentDoc}
484
- ${OrganizationFieldsFragmentDoc}
485
- ${CodeableConceptFieldsFragmentDoc}
486
- ${LocationFieldsFragmentDoc}
487
- ${ContactPointFieldsFragmentDoc}
488
- ${EndpointFieldsFragmentDoc}
489
- ${PeriodFieldsFragmentDoc}`;
490
- export const RelatedPersonFieldsFragmentDoc = `
491
- fragment RelatedPersonFields on RelatedPerson {
492
- resourceType
493
- id
494
- active
495
- name {
496
- ...HumanNameFields
497
- }
498
- identifier {
499
- ...IdentifierFields
500
- }
501
- telecom {
502
- ...ContactPointFields
503
- }
504
- address {
505
- ...AddressFields
506
- }
507
- relationship {
508
- ...CodeableConceptFields
509
- }
510
- patient {
511
- id
512
- reference
513
- identifier {
514
- ...IdentifierFields
515
- }
516
- display
517
- resource {
518
- ...PatientFields
519
- }
329
+ ... on Organization {
330
+ organizationName: name
520
331
  }
521
332
  }
522
333
  ${HumanNameFieldsFragmentDoc}
523
- ${IdentifierFieldsFragmentDoc}
524
- ${ContactPointFieldsFragmentDoc}
525
- ${AddressFieldsFragmentDoc}
526
- ${CodeableConceptFieldsFragmentDoc}
527
- ${PatientFieldsFragmentDoc}`;
334
+ ${IdentifierFieldsFragmentDoc}`;
528
335
  export const DocumentReferenceAttachmentFieldsFragmentDoc = `
529
336
  fragment DocumentReferenceAttachmentFields on DocumentReferenceAttachment {
530
337
  contentType
@@ -720,27 +527,6 @@ export const ObservationComponentFieldsFragmentDoc = `
720
527
  ${CodeableConceptFieldsFragmentDoc}
721
528
  ${ObservationComponentValueFieldsFragmentDoc}
722
529
  ${ObservationReferenceRangeFieldsFragmentDoc}`;
723
- export const ObservationPerformerFieldsFragmentDoc = `
724
- fragment ObservationPerformerFields on ObservationPerformer {
725
- ... on Practitioner {
726
- name {
727
- ...HumanNameFields
728
- }
729
- identifier {
730
- ...IdentifierFields
731
- }
732
- }
733
- ... on Patient {
734
- name {
735
- ...HumanNameFields
736
- }
737
- }
738
- ... on Organization {
739
- organizationName: name
740
- }
741
- }
742
- ${HumanNameFieldsFragmentDoc}
743
- ${IdentifierFieldsFragmentDoc}`;
744
530
  export const SpecimenResourceFieldsFragmentDoc = `
745
531
  fragment SpecimenResourceFields on Specimen {
746
532
  identifier {
@@ -817,7 +603,11 @@ export const ObservationFieldsFragmentDoc = `
817
603
  reference
818
604
  type
819
605
  resource {
820
- ...ObservationPerformerFields
606
+ ...PractitionerFields
607
+ ...PatientFields
608
+ ... on Organization {
609
+ organizationName: name
610
+ }
821
611
  }
822
612
  }
823
613
  hasMember {
@@ -857,7 +647,8 @@ ${ObservationReferenceRangeFieldsFragmentDoc}
857
647
  ${ObservationComponentFieldsFragmentDoc}
858
648
  ${PeriodFieldsFragmentDoc}
859
649
  ${AnnotationFieldsFragmentDoc}
860
- ${ObservationPerformerFieldsFragmentDoc}
650
+ ${PractitionerFieldsFragmentDoc}
651
+ ${PatientFieldsFragmentDoc}
861
652
  ${SpecimenResourceFieldsFragmentDoc}`;
862
653
  export const ImmunizationReactionFieldsFragmentDoc = `
863
654
  fragment ImmunizationReactionFields on ImmunizationReaction {
@@ -911,6 +702,250 @@ export const ProcedurePerformerActorFieldsFragmentDoc = `
911
702
  }
912
703
  }
913
704
  ${PractitionerFieldsFragmentDoc}`;
705
+ export const EndpointFieldsFragmentDoc = `
706
+ fragment EndpointFields on Endpoint {
707
+ identifier {
708
+ ...IdentifierFields
709
+ }
710
+ name
711
+ status
712
+ connectionType {
713
+ ...CodingFields
714
+ }
715
+ address
716
+ }
717
+ ${IdentifierFieldsFragmentDoc}
718
+ ${CodingFieldsFragmentDoc}`;
719
+ export const ContactPointFieldsFragmentDoc = `
720
+ fragment ContactPointFields on ContactPoint {
721
+ id
722
+ system
723
+ value
724
+ use
725
+ rank
726
+ }
727
+ `;
728
+ export const AddressFieldsFragmentDoc = `
729
+ fragment AddressFields on Address {
730
+ use
731
+ type
732
+ text
733
+ line
734
+ city
735
+ district
736
+ state
737
+ postalCode
738
+ country
739
+ }
740
+ `;
741
+ export const OrganizationFieldsFragmentDoc = `
742
+ fragment OrganizationFields on Organization {
743
+ resourceType
744
+ identifier {
745
+ ...IdentifierFields
746
+ }
747
+ endpoint {
748
+ id
749
+ reference
750
+ type
751
+ resource {
752
+ ...EndpointFields
753
+ }
754
+ }
755
+ name
756
+ telecom {
757
+ ...ContactPointFields
758
+ }
759
+ address {
760
+ ...AddressFields
761
+ }
762
+ active
763
+ type {
764
+ ...CodeableConceptFields
765
+ }
766
+ }
767
+ ${IdentifierFieldsFragmentDoc}
768
+ ${EndpointFieldsFragmentDoc}
769
+ ${ContactPointFieldsFragmentDoc}
770
+ ${AddressFieldsFragmentDoc}
771
+ ${CodeableConceptFieldsFragmentDoc}`;
772
+ export const PositionFieldsFragmentDoc = `
773
+ fragment PositionFields on LocationPosition {
774
+ latitude
775
+ longitude
776
+ }
777
+ `;
778
+ export const LocationFieldsFragmentDoc = `
779
+ fragment LocationFields on Location {
780
+ name
781
+ identifier {
782
+ ...IdentifierFields
783
+ }
784
+ alias
785
+ description
786
+ address {
787
+ ...AddressFields
788
+ }
789
+ position {
790
+ ...PositionFields
791
+ }
792
+ telecom {
793
+ ...ContactPointFields
794
+ }
795
+ status
796
+ managingOrganization {
797
+ id
798
+ reference
799
+ identifier {
800
+ ...IdentifierFields
801
+ }
802
+ display
803
+ resource {
804
+ ...OrganizationFields
805
+ }
806
+ }
807
+ type {
808
+ ...CodeableConceptFields
809
+ }
810
+ }
811
+ ${IdentifierFieldsFragmentDoc}
812
+ ${AddressFieldsFragmentDoc}
813
+ ${PositionFieldsFragmentDoc}
814
+ ${ContactPointFieldsFragmentDoc}
815
+ ${OrganizationFieldsFragmentDoc}
816
+ ${CodeableConceptFieldsFragmentDoc}`;
817
+ export const PractitionerRoleFieldsFragmentDoc = `
818
+ fragment PractitionerRoleFields on PractitionerRole {
819
+ resourceType
820
+ identifier {
821
+ ...IdentifierFields
822
+ }
823
+ practitioner {
824
+ id
825
+ reference
826
+ type
827
+ resource {
828
+ ...PractitionerFields
829
+ }
830
+ }
831
+ organization {
832
+ id
833
+ reference
834
+ type
835
+ resource {
836
+ ...OrganizationFields
837
+ }
838
+ }
839
+ code {
840
+ ...CodeableConceptFields
841
+ }
842
+ specialty {
843
+ ...CodeableConceptFields
844
+ }
845
+ location {
846
+ id
847
+ reference
848
+ type
849
+ resource {
850
+ ...LocationFields
851
+ }
852
+ }
853
+ telecom {
854
+ ...ContactPointFields
855
+ }
856
+ active
857
+ id
858
+ endpoint {
859
+ id
860
+ reference
861
+ identifier {
862
+ ...IdentifierFields
863
+ }
864
+ display
865
+ resource {
866
+ ...EndpointFields
867
+ }
868
+ }
869
+ period {
870
+ ...PeriodFields
871
+ }
872
+ }
873
+ ${IdentifierFieldsFragmentDoc}
874
+ ${PractitionerFieldsFragmentDoc}
875
+ ${OrganizationFieldsFragmentDoc}
876
+ ${CodeableConceptFieldsFragmentDoc}
877
+ ${LocationFieldsFragmentDoc}
878
+ ${ContactPointFieldsFragmentDoc}
879
+ ${EndpointFieldsFragmentDoc}
880
+ ${PeriodFieldsFragmentDoc}`;
881
+ export const RelatedPersonFieldsFragmentDoc = `
882
+ fragment RelatedPersonFields on RelatedPerson {
883
+ resourceType
884
+ id
885
+ active
886
+ name {
887
+ ...HumanNameFields
888
+ }
889
+ identifier {
890
+ ...IdentifierFields
891
+ }
892
+ telecom {
893
+ ...ContactPointFields
894
+ }
895
+ address {
896
+ ...AddressFields
897
+ }
898
+ relationship {
899
+ ...CodeableConceptFields
900
+ }
901
+ patient {
902
+ id
903
+ reference
904
+ identifier {
905
+ ...IdentifierFields
906
+ }
907
+ display
908
+ resource {
909
+ ...PatientFields
910
+ }
911
+ }
912
+ }
913
+ ${HumanNameFieldsFragmentDoc}
914
+ ${IdentifierFieldsFragmentDoc}
915
+ ${ContactPointFieldsFragmentDoc}
916
+ ${AddressFieldsFragmentDoc}
917
+ ${CodeableConceptFieldsFragmentDoc}
918
+ ${PatientFieldsFragmentDoc}`;
919
+ export const CareTeamParticipantFieldsFragmentDoc = `
920
+ fragment CareTeamParticipantFields on CareTeamParticipant {
921
+ role {
922
+ ...CodeableConceptFields
923
+ }
924
+ member {
925
+ id
926
+ reference
927
+ type
928
+ resource {
929
+ __typename
930
+ ... on Organization {
931
+ id
932
+ organizationName: name
933
+ alias
934
+ meta {
935
+ ...MetaFields
936
+ }
937
+ }
938
+ ...PractitionerFields
939
+ ...PractitionerRoleFields
940
+ ...RelatedPersonFields
941
+ }
942
+ }
943
+ }
944
+ ${CodeableConceptFieldsFragmentDoc}
945
+ ${MetaFieldsFragmentDoc}
946
+ ${PractitionerFieldsFragmentDoc}
947
+ ${PractitionerRoleFieldsFragmentDoc}
948
+ ${RelatedPersonFieldsFragmentDoc}`;
914
949
  export const QuestionnaireResponseItemFieldsFragmentDoc = `
915
950
  fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {
916
951
  linkId
@@ -1465,6 +1500,45 @@ ${NarrativeFieldsFragmentDoc}
1465
1500
  ${AnnotationFieldsFragmentDoc}
1466
1501
  ${CarePlanDetailFieldsFragmentDoc}
1467
1502
  ${ConditionFieldsFragmentDoc}`;
1503
+ export const GetCareTeamsDocument = `
1504
+ query getCareTeams($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
1505
+ careTeams(
1506
+ _count: $pageSize
1507
+ _getpagesoffset: $page
1508
+ category: $code
1509
+ id: $id
1510
+ _lastUpdated: $lastUpdated
1511
+ _sort: $sort
1512
+ status: $status
1513
+ _total: $total
1514
+ ) {
1515
+ id
1516
+ entry {
1517
+ resource {
1518
+ resourceType
1519
+ id
1520
+ identifier {
1521
+ ...IdentifierFields
1522
+ }
1523
+ meta {
1524
+ ...MetaFields
1525
+ }
1526
+ status
1527
+ name
1528
+ category {
1529
+ ...CodeableConceptFields
1530
+ }
1531
+ participant {
1532
+ ...CareTeamParticipantFields
1533
+ }
1534
+ }
1535
+ }
1536
+ }
1537
+ }
1538
+ ${IdentifierFieldsFragmentDoc}
1539
+ ${MetaFieldsFragmentDoc}
1540
+ ${CodeableConceptFieldsFragmentDoc}
1541
+ ${CareTeamParticipantFieldsFragmentDoc}`;
1468
1542
  export const GetConditionGroupsDocument = `
1469
1543
  query getConditionGroups($request: ConditionGroupQueryRequest) {
1470
1544
  getConditionGroups(request: $request) {
@@ -2567,6 +2641,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2567
2641
  getCarePlans(variables, requestHeaders) {
2568
2642
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetCarePlansDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCarePlans', 'query', variables);
2569
2643
  },
2644
+ getCareTeams(variables, requestHeaders) {
2645
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetCareTeamsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCareTeams', 'query', variables);
2646
+ },
2570
2647
  getConditionGroups(variables, requestHeaders) {
2571
2648
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetConditionGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getConditionGroups', 'query', variables);
2572
2649
  },