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

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.
@@ -38,6 +38,70 @@ 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}`;
41
105
  export const ExtensionFieldsFragmentDoc = `
42
106
  fragment ExtensionFields on Extension {
43
107
  id
@@ -234,16 +298,6 @@ export const PatientFieldsFragmentDoc = `
234
298
  }
235
299
  }
236
300
  ${HumanNameFieldsFragmentDoc}`;
237
- export const IdentifierFieldsFragmentDoc = `
238
- fragment IdentifierFields on Identifier {
239
- id
240
- type {
241
- ...CodeableConceptFields
242
- }
243
- system
244
- value
245
- }
246
- ${CodeableConceptFieldsFragmentDoc}`;
247
301
  export const PractitionerFieldsFragmentDoc = `
248
302
  fragment PractitionerFields on Practitioner {
249
303
  id
@@ -311,6 +365,27 @@ export const ConditionFieldsFragmentDoc = `
311
365
  ${CodeableConceptFieldsFragmentDoc}
312
366
  ${RecorderFieldsFragmentDoc}
313
367
  ${PeriodFieldsFragmentDoc}`;
368
+ export const ObservationPerformerFieldsFragmentDoc = `
369
+ fragment ObservationPerformerFields on ObservationPerformer {
370
+ ... on Practitioner {
371
+ name {
372
+ ...HumanNameFields
373
+ }
374
+ identifier {
375
+ ...IdentifierFields
376
+ }
377
+ }
378
+ ... on Patient {
379
+ name {
380
+ ...HumanNameFields
381
+ }
382
+ }
383
+ ... on Organization {
384
+ organizationName: name
385
+ }
386
+ }
387
+ ${HumanNameFieldsFragmentDoc}
388
+ ${IdentifierFieldsFragmentDoc}`;
314
389
  export const EndpointFieldsFragmentDoc = `
315
390
  fragment EndpointFields on Endpoint {
316
391
  identifier {
@@ -325,28 +400,6 @@ export const EndpointFieldsFragmentDoc = `
325
400
  }
326
401
  ${IdentifierFieldsFragmentDoc}
327
402
  ${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
403
  export const OrganizationFieldsFragmentDoc = `
351
404
  fragment OrganizationFields on Organization {
352
405
  resourceType
@@ -363,168 +416,17 @@ export const OrganizationFieldsFragmentDoc = `
363
416
  }
364
417
  name
365
418
  telecom {
366
- ...ContactPointFields
419
+ system
420
+ value
421
+ rank
367
422
  }
368
423
  address {
369
424
  ...AddressFields
370
425
  }
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
- identifier {
409
- ...IdentifierFields
410
- }
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
- }
465
- active
466
- id
467
- endpoint {
468
- id
469
- reference
470
- identifier {
471
- ...IdentifierFields
472
- }
473
- display
474
- resource {
475
- ...EndpointFields
476
- }
477
- }
478
- period {
479
- ...PeriodFields
480
- }
481
426
  }
482
427
  ${IdentifierFieldsFragmentDoc}
483
- ${PractitionerFieldsFragmentDoc}
484
- ${OrganizationFieldsFragmentDoc}
485
- ${CodeableConceptFieldsFragmentDoc}
486
- ${LocationFieldsFragmentDoc}
487
- ${ContactPointFieldsFragmentDoc}
488
428
  ${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
- }
520
- }
521
- }
522
- ${HumanNameFieldsFragmentDoc}
523
- ${IdentifierFieldsFragmentDoc}
524
- ${ContactPointFieldsFragmentDoc}
525
- ${AddressFieldsFragmentDoc}
526
- ${CodeableConceptFieldsFragmentDoc}
527
- ${PatientFieldsFragmentDoc}`;
429
+ ${AddressFieldsFragmentDoc}`;
528
430
  export const DocumentReferenceAttachmentFieldsFragmentDoc = `
529
431
  fragment DocumentReferenceAttachmentFields on DocumentReferenceAttachment {
530
432
  contentType
@@ -720,27 +622,6 @@ export const ObservationComponentFieldsFragmentDoc = `
720
622
  ${CodeableConceptFieldsFragmentDoc}
721
623
  ${ObservationComponentValueFieldsFragmentDoc}
722
624
  ${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
625
  export const SpecimenResourceFieldsFragmentDoc = `
745
626
  fragment SpecimenResourceFields on Specimen {
746
627
  identifier {
@@ -817,7 +698,11 @@ export const ObservationFieldsFragmentDoc = `
817
698
  reference
818
699
  type
819
700
  resource {
820
- ...ObservationPerformerFields
701
+ ...PractitionerFields
702
+ ...PatientFields
703
+ ... on Organization {
704
+ organizationName: name
705
+ }
821
706
  }
822
707
  }
823
708
  hasMember {
@@ -857,7 +742,8 @@ ${ObservationReferenceRangeFieldsFragmentDoc}
857
742
  ${ObservationComponentFieldsFragmentDoc}
858
743
  ${PeriodFieldsFragmentDoc}
859
744
  ${AnnotationFieldsFragmentDoc}
860
- ${ObservationPerformerFieldsFragmentDoc}
745
+ ${PractitionerFieldsFragmentDoc}
746
+ ${PatientFieldsFragmentDoc}
861
747
  ${SpecimenResourceFieldsFragmentDoc}`;
862
748
  export const ImmunizationReactionFieldsFragmentDoc = `
863
749
  fragment ImmunizationReactionFields on ImmunizationReaction {
@@ -911,6 +797,32 @@ export const ProcedurePerformerActorFieldsFragmentDoc = `
911
797
  }
912
798
  }
913
799
  ${PractitionerFieldsFragmentDoc}`;
800
+ export const CareTeamParticipantFieldsFragmentDoc = `
801
+ fragment CareTeamParticipantFields on CareTeamParticipant {
802
+ role {
803
+ ...CodeableConceptFields
804
+ }
805
+ member {
806
+ id
807
+ reference
808
+ type
809
+ resource {
810
+ __typename
811
+ ... on Organization {
812
+ id
813
+ organizationName: name
814
+ alias
815
+ meta {
816
+ ...MetaFields
817
+ }
818
+ }
819
+ ...PractitionerFields
820
+ }
821
+ }
822
+ }
823
+ ${CodeableConceptFieldsFragmentDoc}
824
+ ${MetaFieldsFragmentDoc}
825
+ ${PractitionerFieldsFragmentDoc}`;
914
826
  export const QuestionnaireResponseItemFieldsFragmentDoc = `
915
827
  fragment QuestionnaireResponseItemFields on QuestionnaireResponseItem {
916
828
  linkId
@@ -1465,6 +1377,45 @@ ${NarrativeFieldsFragmentDoc}
1465
1377
  ${AnnotationFieldsFragmentDoc}
1466
1378
  ${CarePlanDetailFieldsFragmentDoc}
1467
1379
  ${ConditionFieldsFragmentDoc}`;
1380
+ export const GetCareTeamsDocument = `
1381
+ query getCareTeams($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
1382
+ careTeams(
1383
+ _count: $pageSize
1384
+ _getpagesoffset: $page
1385
+ category: $code
1386
+ id: $id
1387
+ _lastUpdated: $lastUpdated
1388
+ _sort: $sort
1389
+ status: $status
1390
+ _total: $total
1391
+ ) {
1392
+ id
1393
+ entry {
1394
+ resource {
1395
+ resourceType
1396
+ id
1397
+ identifier {
1398
+ ...IdentifierFields
1399
+ }
1400
+ meta {
1401
+ ...MetaFields
1402
+ }
1403
+ status
1404
+ name
1405
+ category {
1406
+ ...CodeableConceptFields
1407
+ }
1408
+ participant {
1409
+ ...CareTeamParticipantFields
1410
+ }
1411
+ }
1412
+ }
1413
+ }
1414
+ }
1415
+ ${IdentifierFieldsFragmentDoc}
1416
+ ${MetaFieldsFragmentDoc}
1417
+ ${CodeableConceptFieldsFragmentDoc}
1418
+ ${CareTeamParticipantFieldsFragmentDoc}`;
1468
1419
  export const GetConditionGroupsDocument = `
1469
1420
  query getConditionGroups($request: ConditionGroupQueryRequest) {
1470
1421
  getConditionGroups(request: $request) {
@@ -2567,6 +2518,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2567
2518
  getCarePlans(variables, requestHeaders) {
2568
2519
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetCarePlansDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCarePlans', 'query', variables);
2569
2520
  },
2521
+ getCareTeams(variables, requestHeaders) {
2522
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetCareTeamsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getCareTeams', 'query', variables);
2523
+ },
2570
2524
  getConditionGroups(variables, requestHeaders) {
2571
2525
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetConditionGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getConditionGroups', 'query', variables);
2572
2526
  },