@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1759757646 → 2.0.0-alpha.0-rc.1759853778

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.
@@ -327,6 +327,345 @@ ${CodeableConceptFieldsFragmentDoc}
327
327
  ${DocumentReferenceAttachmentFieldsFragmentDoc}
328
328
  ${CodingFieldsFragmentDoc}
329
329
  ${DocumentReferenceContextFieldsFragmentDoc}`;
330
+ export const NestedMedicationReferenceFieldsFragmentDoc = `
331
+ fragment NestedMedicationReferenceFields on Medication {
332
+ resourceType
333
+ identifier {
334
+ ...IdentifierFields
335
+ }
336
+ code {
337
+ ...CodeableConceptFields
338
+ }
339
+ }
340
+ ${IdentifierFieldsFragmentDoc}
341
+ ${CodeableConceptFieldsFragmentDoc}`;
342
+ export const NarrativeFieldsFragmentDoc = `
343
+ fragment NarrativeFields on Narrative {
344
+ div
345
+ status
346
+ }
347
+ `;
348
+ export const SubstanceInstanceFieldsFragmentDoc = `
349
+ fragment SubstanceInstanceFields on SubstanceInstance {
350
+ identifier {
351
+ ...IdentifierFields
352
+ }
353
+ expiry
354
+ quantity {
355
+ ...QuantityFields
356
+ }
357
+ }
358
+ ${IdentifierFieldsFragmentDoc}
359
+ ${QuantityFieldsFragmentDoc}`;
360
+ export const SubstanceIngredientFieldsFragmentDoc = `
361
+ fragment SubstanceIngredientFields on SubstanceIngredient {
362
+ id
363
+ quantity {
364
+ ...RatioFields
365
+ }
366
+ substanceCodeableConcept {
367
+ ...CodeableConceptFields
368
+ }
369
+ }
370
+ ${RatioFieldsFragmentDoc}
371
+ ${CodeableConceptFieldsFragmentDoc}`;
372
+ export const SubstanceFieldsFragmentDoc = `
373
+ fragment SubstanceFields on Substance {
374
+ resourceType
375
+ id
376
+ text {
377
+ ...NarrativeFields
378
+ }
379
+ identifier {
380
+ ...IdentifierFields
381
+ }
382
+ status
383
+ category {
384
+ ...CodeableConceptFields
385
+ }
386
+ code {
387
+ ...CodeableConceptFields
388
+ }
389
+ description
390
+ instance {
391
+ ...SubstanceInstanceFields
392
+ }
393
+ ingredient {
394
+ ...SubstanceIngredientFields
395
+ }
396
+ }
397
+ ${NarrativeFieldsFragmentDoc}
398
+ ${IdentifierFieldsFragmentDoc}
399
+ ${CodeableConceptFieldsFragmentDoc}
400
+ ${SubstanceInstanceFieldsFragmentDoc}
401
+ ${SubstanceIngredientFieldsFragmentDoc}`;
402
+ export const MedicationIngredientFieldsFragmentDoc = `
403
+ fragment MedicationIngredientFields on MedicationIngredient {
404
+ itemCodeableConcept {
405
+ ...CodeableConceptFields
406
+ }
407
+ strength {
408
+ ...RatioFields
409
+ }
410
+ itemReference {
411
+ id
412
+ reference
413
+ type
414
+ resource {
415
+ ...NestedMedicationReferenceFields
416
+ ...SubstanceFields
417
+ }
418
+ }
419
+ isActive
420
+ }
421
+ ${CodeableConceptFieldsFragmentDoc}
422
+ ${RatioFieldsFragmentDoc}
423
+ ${NestedMedicationReferenceFieldsFragmentDoc}
424
+ ${SubstanceFieldsFragmentDoc}`;
425
+ export const MedicationFieldsFragmentDoc = `
426
+ fragment MedicationFields on Medication {
427
+ resourceType
428
+ id
429
+ identifier {
430
+ ...IdentifierFields
431
+ }
432
+ code {
433
+ ...CodeableConceptFields
434
+ }
435
+ ingredient {
436
+ ...MedicationIngredientFields
437
+ }
438
+ form {
439
+ ...CodeableConceptFields
440
+ }
441
+ }
442
+ ${IdentifierFieldsFragmentDoc}
443
+ ${CodeableConceptFieldsFragmentDoc}
444
+ ${MedicationIngredientFieldsFragmentDoc}`;
445
+ export const PractitionerFieldsFragmentDoc = `
446
+ fragment PractitionerFields on Practitioner {
447
+ id
448
+ name {
449
+ ...HumanNameFields
450
+ }
451
+ identifier {
452
+ ...IdentifierFields
453
+ }
454
+ }
455
+ ${HumanNameFieldsFragmentDoc}
456
+ ${IdentifierFieldsFragmentDoc}`;
457
+ export const CommunicationFieldsFragmentDoc = `
458
+ fragment CommunicationFields on PatientCommunication {
459
+ language {
460
+ ...CodeableConceptFields
461
+ }
462
+ }
463
+ ${CodeableConceptFieldsFragmentDoc}`;
464
+ export const PatientFieldsFragmentDoc = `
465
+ fragment PatientFields on Patient {
466
+ id
467
+ name {
468
+ ...HumanNameFields
469
+ }
470
+ gender
471
+ birthDate
472
+ communication {
473
+ ...CommunicationFields
474
+ }
475
+ }
476
+ ${HumanNameFieldsFragmentDoc}
477
+ ${CommunicationFieldsFragmentDoc}`;
478
+ export const MedicationDispensePerformerActorFieldsFragmentDoc = `
479
+ fragment MedicationDispensePerformerActorFields on MedicationDispensePerformerActor {
480
+ ...PractitionerFields
481
+ ...PatientFields
482
+ ... on Organization {
483
+ organizationName: name
484
+ }
485
+ }
486
+ ${PractitionerFieldsFragmentDoc}
487
+ ${PatientFieldsFragmentDoc}`;
488
+ export const DoseAndRateFieldsFragmentDoc = `
489
+ fragment DoseAndRateFields on DosageDoseAndRate {
490
+ id
491
+ type {
492
+ ...CodeableConceptFields
493
+ }
494
+ doseRange {
495
+ ...RangeFields
496
+ }
497
+ doseQuantity {
498
+ ...QuantityFields
499
+ }
500
+ rateQuantity {
501
+ ...QuantityFields
502
+ }
503
+ rateRange {
504
+ ...RangeFields
505
+ }
506
+ rateRatio {
507
+ ...RatioFields
508
+ }
509
+ }
510
+ ${CodeableConceptFieldsFragmentDoc}
511
+ ${RangeFieldsFragmentDoc}
512
+ ${QuantityFieldsFragmentDoc}
513
+ ${RatioFieldsFragmentDoc}`;
514
+ export const DosageFieldsFragmentDoc = `
515
+ fragment DosageFields on Dosage {
516
+ id
517
+ additionalInstruction {
518
+ ...CodeableConceptFields
519
+ }
520
+ asNeededBoolean
521
+ asNeededCodeableConcept {
522
+ ...CodeableConceptFields
523
+ }
524
+ doseAndRate {
525
+ ...DoseAndRateFields
526
+ }
527
+ maxDosePerAdministration {
528
+ ...QuantityFields
529
+ }
530
+ maxDosePerLifetime {
531
+ ...QuantityFields
532
+ }
533
+ maxDosePerPeriod {
534
+ ...RatioFields
535
+ }
536
+ method {
537
+ ...CodeableConceptFields
538
+ }
539
+ patientInstruction
540
+ route {
541
+ ...CodeableConceptFields
542
+ }
543
+ sequence
544
+ site {
545
+ ...CodeableConceptFields
546
+ }
547
+ text
548
+ timing {
549
+ ...TimingFields
550
+ }
551
+ }
552
+ ${CodeableConceptFieldsFragmentDoc}
553
+ ${DoseAndRateFieldsFragmentDoc}
554
+ ${QuantityFieldsFragmentDoc}
555
+ ${RatioFieldsFragmentDoc}
556
+ ${TimingFieldsFragmentDoc}`;
557
+ export const MedicationRequestInitialFillFieldsFragmentDoc = `
558
+ fragment MedicationRequestInitialFillFields on MedicationRequestInitialFill {
559
+ id
560
+ duration {
561
+ ...QuantityFields
562
+ }
563
+ quantity {
564
+ ...QuantityFields
565
+ }
566
+ }
567
+ ${QuantityFieldsFragmentDoc}`;
568
+ export const EndpointFieldsFragmentDoc = `
569
+ fragment EndpointFields on Endpoint {
570
+ identifier {
571
+ ...IdentifierFields
572
+ }
573
+ name
574
+ status
575
+ connectionType {
576
+ ...CodingFields
577
+ }
578
+ address
579
+ }
580
+ ${IdentifierFieldsFragmentDoc}
581
+ ${CodingFieldsFragmentDoc}`;
582
+ export const ContactPointFieldsFragmentDoc = `
583
+ fragment ContactPointFields on ContactPoint {
584
+ id
585
+ system
586
+ value
587
+ use
588
+ rank
589
+ }
590
+ `;
591
+ export const AddressFieldsFragmentDoc = `
592
+ fragment AddressFields on Address {
593
+ use
594
+ type
595
+ text
596
+ line
597
+ city
598
+ district
599
+ state
600
+ postalCode
601
+ country
602
+ }
603
+ `;
604
+ export const OrganizationFieldsFragmentDoc = `
605
+ fragment OrganizationFields on Organization {
606
+ resourceType
607
+ id
608
+ identifier {
609
+ ...IdentifierFields
610
+ }
611
+ endpoint {
612
+ id
613
+ reference
614
+ type
615
+ resource {
616
+ ...EndpointFields
617
+ }
618
+ }
619
+ name
620
+ telecom {
621
+ ...ContactPointFields
622
+ }
623
+ address {
624
+ ...AddressFields
625
+ }
626
+ active
627
+ type {
628
+ ...CodeableConceptFields
629
+ }
630
+ }
631
+ ${IdentifierFieldsFragmentDoc}
632
+ ${EndpointFieldsFragmentDoc}
633
+ ${ContactPointFieldsFragmentDoc}
634
+ ${AddressFieldsFragmentDoc}
635
+ ${CodeableConceptFieldsFragmentDoc}`;
636
+ export const MedicationRequestDispenseRequestFieldsFragmentDoc = `
637
+ fragment MedicationRequestDispenseRequestFields on MedicationRequestDispenseRequest {
638
+ id
639
+ dispenseInterval {
640
+ ...QuantityFields
641
+ }
642
+ expectedSupplyDuration {
643
+ ...QuantityFields
644
+ }
645
+ initialFill {
646
+ ...MedicationRequestInitialFillFields
647
+ }
648
+ numberOfRepeatsAllowed
649
+ performer {
650
+ id
651
+ reference
652
+ type
653
+ display
654
+ resource {
655
+ ...OrganizationFields
656
+ }
657
+ }
658
+ validityPeriod {
659
+ ...PeriodFields
660
+ }
661
+ quantity {
662
+ ...QuantityFields
663
+ }
664
+ }
665
+ ${QuantityFieldsFragmentDoc}
666
+ ${MedicationRequestInitialFillFieldsFragmentDoc}
667
+ ${OrganizationFieldsFragmentDoc}
668
+ ${PeriodFieldsFragmentDoc}`;
330
669
  export const AnnotationFieldsFragmentDoc = `
331
670
  fragment AnnotationFields on Annotation {
332
671
  id
@@ -350,12 +689,6 @@ export const ReactionFieldsFragmentDoc = `
350
689
  }
351
690
  ${CodeableConceptFieldsFragmentDoc}
352
691
  ${AnnotationFieldsFragmentDoc}`;
353
- export const NarrativeFieldsFragmentDoc = `
354
- fragment NarrativeFields on Narrative {
355
- div
356
- status
357
- }
358
- `;
359
692
  export const ObservationBasedOnFieldsFragmentDoc = `
360
693
  fragment ObservationBasedOnFields on ObservationBasedOn {
361
694
  ... on ServiceRequest {
@@ -453,34 +786,12 @@ export const ObservationComponentFieldsFragmentDoc = `
453
786
  ${CodeableConceptFieldsFragmentDoc}
454
787
  ${ObservationComponentValueFieldsFragmentDoc}
455
788
  ${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
789
  export const PositionFieldsFragmentDoc = `
470
790
  fragment PositionFields on LocationPosition {
471
791
  latitude
472
792
  longitude
473
793
  }
474
794
  `;
475
- export const ContactPointFieldsFragmentDoc = `
476
- fragment ContactPointFields on ContactPoint {
477
- id
478
- system
479
- value
480
- use
481
- rank
482
- }
483
- `;
484
795
  export const LocationManagingOrganizationReferenceFieldsFragmentDoc = `
485
796
  fragment LocationManagingOrganizationReferenceFields on LocationManagingOrganizationReference {
486
797
  id
@@ -522,105 +833,26 @@ ${PositionFieldsFragmentDoc}
522
833
  ${ContactPointFieldsFragmentDoc}
523
834
  ${LocationManagingOrganizationReferenceFieldsFragmentDoc}
524
835
  ${CodeableConceptFieldsFragmentDoc}`;
525
- export const PractitionerFieldsFragmentDoc = `
526
- fragment PractitionerFields on Practitioner {
527
- id
528
- name {
529
- ...HumanNameFields
530
- }
531
- identifier {
532
- ...IdentifierFields
533
- }
534
- }
535
- ${HumanNameFieldsFragmentDoc}
536
- ${IdentifierFieldsFragmentDoc}`;
537
836
  export const ParticipantFieldsFragmentDoc = `
538
837
  fragment ParticipantFields on EncounterParticipant {
539
- individual {
540
- id
541
- reference
542
- type
543
- resource {
544
- ...PractitionerFields
545
- }
546
- }
547
- type {
548
- ...CodeableConceptFields
549
- }
550
- period {
551
- ...PeriodFields
552
- }
553
- }
554
- ${PractitionerFieldsFragmentDoc}
555
- ${CodeableConceptFieldsFragmentDoc}
556
- ${PeriodFieldsFragmentDoc}`;
557
- export const EndpointFieldsFragmentDoc = `
558
- fragment EndpointFields on Endpoint {
559
- identifier {
560
- ...IdentifierFields
561
- }
562
- name
563
- status
564
- connectionType {
565
- ...CodingFields
566
- }
567
- address
568
- }
569
- ${IdentifierFieldsFragmentDoc}
570
- ${CodingFieldsFragmentDoc}`;
571
- export const OrganizationFieldsFragmentDoc = `
572
- fragment OrganizationFields on Organization {
573
- resourceType
574
- id
575
- identifier {
576
- ...IdentifierFields
577
- }
578
- endpoint {
579
- id
580
- reference
581
- type
582
- resource {
583
- ...EndpointFields
584
- }
585
- }
586
- name
587
- telecom {
588
- ...ContactPointFields
589
- }
590
- address {
591
- ...AddressFields
592
- }
593
- active
594
- type {
595
- ...CodeableConceptFields
596
- }
597
- }
598
- ${IdentifierFieldsFragmentDoc}
599
- ${EndpointFieldsFragmentDoc}
600
- ${ContactPointFieldsFragmentDoc}
601
- ${AddressFieldsFragmentDoc}
602
- ${CodeableConceptFieldsFragmentDoc}`;
603
- export const CommunicationFieldsFragmentDoc = `
604
- fragment CommunicationFields on PatientCommunication {
605
- language {
606
- ...CodeableConceptFields
838
+ individual {
839
+ id
840
+ reference
841
+ type
842
+ resource {
843
+ ...PractitionerFields
844
+ }
607
845
  }
608
- }
609
- ${CodeableConceptFieldsFragmentDoc}`;
610
- export const PatientFieldsFragmentDoc = `
611
- fragment PatientFields on Patient {
612
- id
613
- name {
614
- ...HumanNameFields
846
+ type {
847
+ ...CodeableConceptFields
615
848
  }
616
- gender
617
- birthDate
618
- communication {
619
- ...CommunicationFields
849
+ period {
850
+ ...PeriodFields
620
851
  }
621
852
  }
622
- ${HumanNameFieldsFragmentDoc}
623
- ${CommunicationFieldsFragmentDoc}`;
853
+ ${PractitionerFieldsFragmentDoc}
854
+ ${CodeableConceptFieldsFragmentDoc}
855
+ ${PeriodFieldsFragmentDoc}`;
624
856
  export const RecorderFieldsFragmentDoc = `
625
857
  fragment RecorderFields on ConditionRecorder {
626
858
  ...PatientFields
@@ -1823,6 +2055,69 @@ export const GetDiagnosticReportLabGroupsDocument = `
1823
2055
  }
1824
2056
  ${CodingFieldsFragmentDoc}
1825
2057
  ${PagingFieldsFragmentDoc}`;
2058
+ export const GetDiagnosticReportsDocument = `
2059
+ query getDiagnosticReports($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
2060
+ diagnosticReports(
2061
+ _count: $pageSize
2062
+ _getpagesoffset: $page
2063
+ code: $code
2064
+ id: $id
2065
+ _lastUpdated: $lastUpdated
2066
+ _sort: $sort
2067
+ status: $status
2068
+ _total: $total
2069
+ ) {
2070
+ id
2071
+ entry {
2072
+ id
2073
+ resource {
2074
+ resourceType
2075
+ id
2076
+ meta {
2077
+ ...MetaFields
2078
+ }
2079
+ basedOn {
2080
+ id
2081
+ reference
2082
+ type
2083
+ display
2084
+ }
2085
+ category {
2086
+ ...CodeableConceptFields
2087
+ }
2088
+ code {
2089
+ ...CodeableConceptFields
2090
+ }
2091
+ effectiveDateTime
2092
+ encounter {
2093
+ id
2094
+ reference
2095
+ type
2096
+ display
2097
+ }
2098
+ issued
2099
+ performer {
2100
+ id
2101
+ reference
2102
+ type
2103
+ display
2104
+ }
2105
+ presentedForm {
2106
+ data
2107
+ }
2108
+ result {
2109
+ id
2110
+ reference
2111
+ type
2112
+ display
2113
+ }
2114
+ status
2115
+ }
2116
+ }
2117
+ }
2118
+ }
2119
+ ${MetaFieldsFragmentDoc}
2120
+ ${CodeableConceptFieldsFragmentDoc}`;
1826
2121
  export const GetEncountersGroupDocument = `
1827
2122
  query getEncountersGroup($request: EncounterGroupQueryRequest) {
1828
2123
  getEncounterGroups(request: $request) {
@@ -2262,6 +2557,111 @@ ${CodingFieldsFragmentDoc}
2262
2557
  ${ReferenceRangeFieldsFragmentDoc}
2263
2558
  ${ValueFieldsFragmentDoc}
2264
2559
  ${ComponentFieldsFragmentDoc}`;
2560
+ export const GetMedicationDispensesDocument = `
2561
+ query getMedicationDispenses($page: Int, $pageSize: Int, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $prescription: SearchReference, $total: TotalType) {
2562
+ medicationDispenses(
2563
+ _count: $pageSize
2564
+ _getpagesoffset: $page
2565
+ id: $id
2566
+ _lastUpdated: $lastUpdated
2567
+ _sort: $sort
2568
+ status: $status
2569
+ _total: $total
2570
+ prescription: $prescription
2571
+ ) {
2572
+ id
2573
+ entry {
2574
+ id
2575
+ resource {
2576
+ resourceType
2577
+ id
2578
+ identifier {
2579
+ ...IdentifierFields
2580
+ }
2581
+ meta {
2582
+ ...MetaFields
2583
+ }
2584
+ status
2585
+ category {
2586
+ ...CodeableConceptFields
2587
+ }
2588
+ medicationCodeableConcept {
2589
+ ...CodeableConceptFields
2590
+ }
2591
+ medicationReference {
2592
+ id
2593
+ reference
2594
+ type
2595
+ resource {
2596
+ ...MedicationFields
2597
+ }
2598
+ }
2599
+ subject {
2600
+ id
2601
+ reference
2602
+ type
2603
+ resource {
2604
+ ...PatientFields
2605
+ }
2606
+ }
2607
+ context {
2608
+ id
2609
+ reference
2610
+ type
2611
+ resource {
2612
+ ...EncounterFields
2613
+ }
2614
+ }
2615
+ performer {
2616
+ actor {
2617
+ id
2618
+ reference
2619
+ type
2620
+ resource {
2621
+ ...MedicationDispensePerformerActorFields
2622
+ }
2623
+ }
2624
+ }
2625
+ daysSupply {
2626
+ ...QuantityFields
2627
+ }
2628
+ quantity {
2629
+ ...QuantityFields
2630
+ }
2631
+ whenPrepared
2632
+ whenHandedOver
2633
+ dosageInstruction {
2634
+ ...DosageFields
2635
+ }
2636
+ type {
2637
+ ...CodeableConceptFields
2638
+ }
2639
+ location {
2640
+ id
2641
+ reference
2642
+ type
2643
+ resource {
2644
+ ...LocationFields
2645
+ }
2646
+ }
2647
+ authorizingPrescription {
2648
+ reference
2649
+ type
2650
+ }
2651
+ }
2652
+ }
2653
+ }
2654
+ }
2655
+ ${IdentifierFieldsFragmentDoc}
2656
+ ${MetaFieldsFragmentDoc}
2657
+ ${CodeableConceptFieldsFragmentDoc}
2658
+ ${MedicationFieldsFragmentDoc}
2659
+ ${PatientFieldsFragmentDoc}
2660
+ ${EncounterFieldsFragmentDoc}
2661
+ ${MedicationDispensePerformerActorFieldsFragmentDoc}
2662
+ ${QuantityFieldsFragmentDoc}
2663
+ ${DosageFieldsFragmentDoc}
2664
+ ${LocationFieldsFragmentDoc}`;
2265
2665
  export const GetMedicationGroupsDocument = `
2266
2666
  query getMedicationGroups($request: MedicationGroupQueryRequest) {
2267
2667
  getMedicationGroups(request: $request) {
@@ -2287,6 +2687,109 @@ export const GetMedicationGroupsDocument = `
2287
2687
  }
2288
2688
  ${PagingFieldsFragmentDoc}
2289
2689
  ${CodingFieldsFragmentDoc}`;
2690
+ export const GetMedicationRequestDocument = `
2691
+ query getMedicationRequest($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
2692
+ medicationRequests(
2693
+ _count: $pageSize
2694
+ _getpagesoffset: $page
2695
+ code: $code
2696
+ id: $id
2697
+ _lastUpdated: $lastUpdated
2698
+ _sort: $sort
2699
+ status: $status
2700
+ _total: $total
2701
+ ) {
2702
+ id
2703
+ entry {
2704
+ id
2705
+ resource {
2706
+ resourceType
2707
+ id
2708
+ meta {
2709
+ ...MetaFields
2710
+ }
2711
+ status
2712
+ category {
2713
+ ...CodeableConceptFields
2714
+ }
2715
+ identifier {
2716
+ ...IdentifierFields
2717
+ }
2718
+ intent
2719
+ language
2720
+ medicationCodeableConcept {
2721
+ ...CodeableConceptFields
2722
+ }
2723
+ medicationReference {
2724
+ id
2725
+ reference
2726
+ type
2727
+ resource {
2728
+ ...MedicationFields
2729
+ }
2730
+ }
2731
+ text {
2732
+ ...NarrativeFields
2733
+ }
2734
+ subject {
2735
+ id
2736
+ reference
2737
+ type
2738
+ resource {
2739
+ ...PatientFields
2740
+ }
2741
+ }
2742
+ requester {
2743
+ id
2744
+ reference
2745
+ type
2746
+ resource {
2747
+ ...PractitionerFields
2748
+ }
2749
+ }
2750
+ recorder {
2751
+ id
2752
+ reference
2753
+ type
2754
+ resource {
2755
+ ...PractitionerFields
2756
+ }
2757
+ }
2758
+ encounter {
2759
+ id
2760
+ reference
2761
+ type
2762
+ resource {
2763
+ ...EncounterFields
2764
+ }
2765
+ }
2766
+ authoredOn
2767
+ dosageInstruction {
2768
+ ...DosageFields
2769
+ }
2770
+ dispenseRequest {
2771
+ ...MedicationRequestDispenseRequestFields
2772
+ }
2773
+ reasonCode {
2774
+ ...CodeableConceptFields
2775
+ }
2776
+ courseOfTherapyType {
2777
+ ...CodeableConceptFields
2778
+ }
2779
+ }
2780
+ }
2781
+ }
2782
+ }
2783
+ ${MetaFieldsFragmentDoc}
2784
+ ${CodeableConceptFieldsFragmentDoc}
2785
+ ${IdentifierFieldsFragmentDoc}
2786
+ ${MedicationFieldsFragmentDoc}
2787
+ ${NarrativeFieldsFragmentDoc}
2788
+ ${PatientFieldsFragmentDoc}
2789
+ ${PractitionerFieldsFragmentDoc}
2790
+ ${EncounterFieldsFragmentDoc}
2791
+ ${DosageFieldsFragmentDoc}
2792
+ ${MedicationRequestDispenseRequestFieldsFragmentDoc}`;
2290
2793
  export const AppointmentsDocument = `
2291
2794
  query appointments($source: SearchString, $id: SearchString, $count: Int, $getPagesOffset: Int, $date: SearchDate, $supportingInformation: SearchReference, $sort: [String], $status: SearchToken) {
2292
2795
  appointments(
@@ -2830,6 +3333,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2830
3333
  getDiagnosticReportLabGroups(variables, requestHeaders) {
2831
3334
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDiagnosticReportLabGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getDiagnosticReportLabGroups', 'query', variables);
2832
3335
  },
3336
+ getDiagnosticReports(variables, requestHeaders) {
3337
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDiagnosticReportsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getDiagnosticReports', 'query', variables);
3338
+ },
2833
3339
  getEncountersGroup(variables, requestHeaders) {
2834
3340
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetEncountersGroupDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getEncountersGroup', 'query', variables);
2835
3341
  },
@@ -2860,9 +3366,15 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2860
3366
  getLabGroups(variables, requestHeaders) {
2861
3367
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetLabGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getLabGroups', 'query', variables);
2862
3368
  },
3369
+ getMedicationDispenses(variables, requestHeaders) {
3370
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationDispensesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationDispenses', 'query', variables);
3371
+ },
2863
3372
  getMedicationGroups(variables, requestHeaders) {
2864
3373
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationGroups', 'query', variables);
2865
3374
  },
3375
+ getMedicationRequest(variables, requestHeaders) {
3376
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationRequestDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationRequest', 'query', variables);
3377
+ },
2866
3378
  appointments(variables, requestHeaders) {
2867
3379
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(AppointmentsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'appointments', 'query', variables);
2868
3380
  },