@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1759844545 → 2.0.0-alpha.0-rc.1759861298

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
@@ -493,6 +804,7 @@ export const LocationManagingOrganizationReferenceFieldsFragmentDoc = `
493
804
  ${IdentifierFieldsFragmentDoc}`;
494
805
  export const LocationFieldsFragmentDoc = `
495
806
  fragment LocationFields on Location {
807
+ id
496
808
  name
497
809
  identifier {
498
810
  ...IdentifierFields
@@ -522,105 +834,26 @@ ${PositionFieldsFragmentDoc}
522
834
  ${ContactPointFieldsFragmentDoc}
523
835
  ${LocationManagingOrganizationReferenceFieldsFragmentDoc}
524
836
  ${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
837
  export const ParticipantFieldsFragmentDoc = `
538
838
  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
839
+ individual {
840
+ id
841
+ reference
842
+ type
843
+ resource {
844
+ ...PractitionerFields
845
+ }
607
846
  }
608
- }
609
- ${CodeableConceptFieldsFragmentDoc}`;
610
- export const PatientFieldsFragmentDoc = `
611
- fragment PatientFields on Patient {
612
- id
613
- name {
614
- ...HumanNameFields
847
+ type {
848
+ ...CodeableConceptFields
615
849
  }
616
- gender
617
- birthDate
618
- communication {
619
- ...CommunicationFields
850
+ period {
851
+ ...PeriodFields
620
852
  }
621
853
  }
622
- ${HumanNameFieldsFragmentDoc}
623
- ${CommunicationFieldsFragmentDoc}`;
854
+ ${PractitionerFieldsFragmentDoc}
855
+ ${CodeableConceptFieldsFragmentDoc}
856
+ ${PeriodFieldsFragmentDoc}`;
624
857
  export const RecorderFieldsFragmentDoc = `
625
858
  fragment RecorderFields on ConditionRecorder {
626
859
  ...PatientFields
@@ -1823,6 +2056,69 @@ export const GetDiagnosticReportLabGroupsDocument = `
1823
2056
  }
1824
2057
  ${CodingFieldsFragmentDoc}
1825
2058
  ${PagingFieldsFragmentDoc}`;
2059
+ export const GetDiagnosticReportsDocument = `
2060
+ query getDiagnosticReports($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
2061
+ diagnosticReports(
2062
+ _count: $pageSize
2063
+ _getpagesoffset: $page
2064
+ code: $code
2065
+ id: $id
2066
+ _lastUpdated: $lastUpdated
2067
+ _sort: $sort
2068
+ status: $status
2069
+ _total: $total
2070
+ ) {
2071
+ id
2072
+ entry {
2073
+ id
2074
+ resource {
2075
+ resourceType
2076
+ id
2077
+ meta {
2078
+ ...MetaFields
2079
+ }
2080
+ basedOn {
2081
+ id
2082
+ reference
2083
+ type
2084
+ display
2085
+ }
2086
+ category {
2087
+ ...CodeableConceptFields
2088
+ }
2089
+ code {
2090
+ ...CodeableConceptFields
2091
+ }
2092
+ effectiveDateTime
2093
+ encounter {
2094
+ id
2095
+ reference
2096
+ type
2097
+ display
2098
+ }
2099
+ issued
2100
+ performer {
2101
+ id
2102
+ reference
2103
+ type
2104
+ display
2105
+ }
2106
+ presentedForm {
2107
+ data
2108
+ }
2109
+ result {
2110
+ id
2111
+ reference
2112
+ type
2113
+ display
2114
+ }
2115
+ status
2116
+ }
2117
+ }
2118
+ }
2119
+ }
2120
+ ${MetaFieldsFragmentDoc}
2121
+ ${CodeableConceptFieldsFragmentDoc}`;
1826
2122
  export const GetEncountersGroupDocument = `
1827
2123
  query getEncountersGroup($request: EncounterGroupQueryRequest) {
1828
2124
  getEncounterGroups(request: $request) {
@@ -2262,6 +2558,111 @@ ${CodingFieldsFragmentDoc}
2262
2558
  ${ReferenceRangeFieldsFragmentDoc}
2263
2559
  ${ValueFieldsFragmentDoc}
2264
2560
  ${ComponentFieldsFragmentDoc}`;
2561
+ export const GetMedicationDispensesDocument = `
2562
+ query getMedicationDispenses($page: Int, $pageSize: Int, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $prescription: SearchReference, $total: TotalType) {
2563
+ medicationDispenses(
2564
+ _count: $pageSize
2565
+ _getpagesoffset: $page
2566
+ id: $id
2567
+ _lastUpdated: $lastUpdated
2568
+ _sort: $sort
2569
+ status: $status
2570
+ _total: $total
2571
+ prescription: $prescription
2572
+ ) {
2573
+ id
2574
+ entry {
2575
+ id
2576
+ resource {
2577
+ resourceType
2578
+ id
2579
+ identifier {
2580
+ ...IdentifierFields
2581
+ }
2582
+ meta {
2583
+ ...MetaFields
2584
+ }
2585
+ status
2586
+ category {
2587
+ ...CodeableConceptFields
2588
+ }
2589
+ medicationCodeableConcept {
2590
+ ...CodeableConceptFields
2591
+ }
2592
+ medicationReference {
2593
+ id
2594
+ reference
2595
+ type
2596
+ resource {
2597
+ ...MedicationFields
2598
+ }
2599
+ }
2600
+ subject {
2601
+ id
2602
+ reference
2603
+ type
2604
+ resource {
2605
+ ...PatientFields
2606
+ }
2607
+ }
2608
+ context {
2609
+ id
2610
+ reference
2611
+ type
2612
+ resource {
2613
+ ...EncounterFields
2614
+ }
2615
+ }
2616
+ performer {
2617
+ actor {
2618
+ id
2619
+ reference
2620
+ type
2621
+ resource {
2622
+ ...MedicationDispensePerformerActorFields
2623
+ }
2624
+ }
2625
+ }
2626
+ daysSupply {
2627
+ ...QuantityFields
2628
+ }
2629
+ quantity {
2630
+ ...QuantityFields
2631
+ }
2632
+ whenPrepared
2633
+ whenHandedOver
2634
+ dosageInstruction {
2635
+ ...DosageFields
2636
+ }
2637
+ type {
2638
+ ...CodeableConceptFields
2639
+ }
2640
+ location {
2641
+ id
2642
+ reference
2643
+ type
2644
+ resource {
2645
+ ...LocationFields
2646
+ }
2647
+ }
2648
+ authorizingPrescription {
2649
+ reference
2650
+ type
2651
+ }
2652
+ }
2653
+ }
2654
+ }
2655
+ }
2656
+ ${IdentifierFieldsFragmentDoc}
2657
+ ${MetaFieldsFragmentDoc}
2658
+ ${CodeableConceptFieldsFragmentDoc}
2659
+ ${MedicationFieldsFragmentDoc}
2660
+ ${PatientFieldsFragmentDoc}
2661
+ ${EncounterFieldsFragmentDoc}
2662
+ ${MedicationDispensePerformerActorFieldsFragmentDoc}
2663
+ ${QuantityFieldsFragmentDoc}
2664
+ ${DosageFieldsFragmentDoc}
2665
+ ${LocationFieldsFragmentDoc}`;
2265
2666
  export const GetMedicationGroupsDocument = `
2266
2667
  query getMedicationGroups($request: MedicationGroupQueryRequest) {
2267
2668
  getMedicationGroups(request: $request) {
@@ -2287,6 +2688,109 @@ export const GetMedicationGroupsDocument = `
2287
2688
  }
2288
2689
  ${PagingFieldsFragmentDoc}
2289
2690
  ${CodingFieldsFragmentDoc}`;
2691
+ export const GetMedicationRequestDocument = `
2692
+ query getMedicationRequest($page: Int, $pageSize: Int, $code: SearchToken, $id: SearchString, $lastUpdated: SearchDate, $sort: [String], $status: SearchToken, $total: TotalType) {
2693
+ medicationRequests(
2694
+ _count: $pageSize
2695
+ _getpagesoffset: $page
2696
+ code: $code
2697
+ id: $id
2698
+ _lastUpdated: $lastUpdated
2699
+ _sort: $sort
2700
+ status: $status
2701
+ _total: $total
2702
+ ) {
2703
+ id
2704
+ entry {
2705
+ id
2706
+ resource {
2707
+ resourceType
2708
+ id
2709
+ meta {
2710
+ ...MetaFields
2711
+ }
2712
+ status
2713
+ category {
2714
+ ...CodeableConceptFields
2715
+ }
2716
+ identifier {
2717
+ ...IdentifierFields
2718
+ }
2719
+ intent
2720
+ language
2721
+ medicationCodeableConcept {
2722
+ ...CodeableConceptFields
2723
+ }
2724
+ medicationReference {
2725
+ id
2726
+ reference
2727
+ type
2728
+ resource {
2729
+ ...MedicationFields
2730
+ }
2731
+ }
2732
+ text {
2733
+ ...NarrativeFields
2734
+ }
2735
+ subject {
2736
+ id
2737
+ reference
2738
+ type
2739
+ resource {
2740
+ ...PatientFields
2741
+ }
2742
+ }
2743
+ requester {
2744
+ id
2745
+ reference
2746
+ type
2747
+ resource {
2748
+ ...PractitionerFields
2749
+ }
2750
+ }
2751
+ recorder {
2752
+ id
2753
+ reference
2754
+ type
2755
+ resource {
2756
+ ...PractitionerFields
2757
+ }
2758
+ }
2759
+ encounter {
2760
+ id
2761
+ reference
2762
+ type
2763
+ resource {
2764
+ ...EncounterFields
2765
+ }
2766
+ }
2767
+ authoredOn
2768
+ dosageInstruction {
2769
+ ...DosageFields
2770
+ }
2771
+ dispenseRequest {
2772
+ ...MedicationRequestDispenseRequestFields
2773
+ }
2774
+ reasonCode {
2775
+ ...CodeableConceptFields
2776
+ }
2777
+ courseOfTherapyType {
2778
+ ...CodeableConceptFields
2779
+ }
2780
+ }
2781
+ }
2782
+ }
2783
+ }
2784
+ ${MetaFieldsFragmentDoc}
2785
+ ${CodeableConceptFieldsFragmentDoc}
2786
+ ${IdentifierFieldsFragmentDoc}
2787
+ ${MedicationFieldsFragmentDoc}
2788
+ ${NarrativeFieldsFragmentDoc}
2789
+ ${PatientFieldsFragmentDoc}
2790
+ ${PractitionerFieldsFragmentDoc}
2791
+ ${EncounterFieldsFragmentDoc}
2792
+ ${DosageFieldsFragmentDoc}
2793
+ ${MedicationRequestDispenseRequestFieldsFragmentDoc}`;
2290
2794
  export const AppointmentsDocument = `
2291
2795
  query appointments($source: SearchString, $id: SearchString, $count: Int, $getPagesOffset: Int, $date: SearchDate, $supportingInformation: SearchReference, $sort: [String], $status: SearchToken) {
2292
2796
  appointments(
@@ -2830,6 +3334,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2830
3334
  getDiagnosticReportLabGroups(variables, requestHeaders) {
2831
3335
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDiagnosticReportLabGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getDiagnosticReportLabGroups', 'query', variables);
2832
3336
  },
3337
+ getDiagnosticReports(variables, requestHeaders) {
3338
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetDiagnosticReportsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getDiagnosticReports', 'query', variables);
3339
+ },
2833
3340
  getEncountersGroup(variables, requestHeaders) {
2834
3341
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetEncountersGroupDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getEncountersGroup', 'query', variables);
2835
3342
  },
@@ -2860,9 +3367,15 @@ export function getSdk(client, withWrapper = defaultWrapper) {
2860
3367
  getLabGroups(variables, requestHeaders) {
2861
3368
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetLabGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getLabGroups', 'query', variables);
2862
3369
  },
3370
+ getMedicationDispenses(variables, requestHeaders) {
3371
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationDispensesDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationDispenses', 'query', variables);
3372
+ },
2863
3373
  getMedicationGroups(variables, requestHeaders) {
2864
3374
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationGroupsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationGroups', 'query', variables);
2865
3375
  },
3376
+ getMedicationRequest(variables, requestHeaders) {
3377
+ return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetMedicationRequestDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getMedicationRequest', 'query', variables);
3378
+ },
2866
3379
  appointments(variables, requestHeaders) {
2867
3380
  return withWrapper((wrappedRequestHeaders) => client.rawRequest(AppointmentsDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'appointments', 'query', variables);
2868
3381
  },