@icanbwell/bwell-sdk-ts 2.0.0-alpha.0-rc.1760356197 → 2.0.0-alpha.0-rc.1760653171

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.
@@ -14295,27 +14295,53 @@ export type GetLabGroupsQueryResults = {
14295
14295
  }>;
14296
14296
  };
14297
14297
  };
14298
- export type GetMedicationDispensesQueryVariables = Types.Exact<{
14298
+ export type GetLabsQueryVariables = Types.Exact<{
14299
14299
  page: Types.InputMaybe<Types.Scalars['Int']['input']>;
14300
14300
  pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
14301
+ code: Types.InputMaybe<Types.SearchToken>;
14301
14302
  id: Types.InputMaybe<Types.SearchString>;
14302
14303
  lastUpdated: Types.InputMaybe<Types.SearchDate>;
14303
14304
  sort: Types.InputMaybe<Array<Types.InputMaybe<Types.Scalars['String']['input']>> | Types.InputMaybe<Types.Scalars['String']['input']>>;
14304
14305
  status: Types.InputMaybe<Types.SearchToken>;
14305
- prescription: Types.InputMaybe<Types.SearchReference>;
14306
14306
  total: Types.InputMaybe<Types.TotalType>;
14307
14307
  }>;
14308
- export type GetMedicationDispensesQueryResults = {
14309
- medicationDispenses: {
14308
+ export type GetLabsQueryResults = {
14309
+ observations: {
14310
14310
  id: string | null;
14311
14311
  entry: Array<{
14312
14312
  id: string | null;
14313
14313
  resource: {
14314
- resourceType: string | null;
14315
14314
  id: string;
14315
+ resourceType: string | null;
14316
+ issued: any | null;
14317
+ effectiveDateTime: any | null;
14316
14318
  status: any | null;
14317
- whenPrepared: any | null;
14318
- whenHandedOver: any | null;
14319
+ valueString: string | null;
14320
+ valueBoolean: boolean | null;
14321
+ valueInteger: number | null;
14322
+ valueTime: any | null;
14323
+ valueDateTime: any | null;
14324
+ meta: {
14325
+ versionId: string | null;
14326
+ lastUpdated: any | null;
14327
+ source: any | null;
14328
+ security: Array<{
14329
+ id: string | null;
14330
+ system: any | null;
14331
+ code: any | null;
14332
+ display: string | null;
14333
+ } | null> | null;
14334
+ tag: Array<{
14335
+ id: string | null;
14336
+ system: any | null;
14337
+ code: any | null;
14338
+ display: string | null;
14339
+ } | null> | null;
14340
+ } | null;
14341
+ text: {
14342
+ div: any | null;
14343
+ status: any | null;
14344
+ } | null;
14319
14345
  identifier: Array<{
14320
14346
  id: string | null;
14321
14347
  system: any | null;
@@ -14331,24 +14357,50 @@ export type GetMedicationDispensesQueryResults = {
14331
14357
  } | null> | null;
14332
14358
  } | null;
14333
14359
  } | null> | null;
14334
- meta: {
14335
- versionId: string | null;
14336
- lastUpdated: any | null;
14337
- source: any | null;
14338
- security: Array<{
14339
- id: string | null;
14340
- system: any | null;
14341
- code: any | null;
14342
- display: string | null;
14343
- } | null> | null;
14344
- tag: Array<{
14360
+ subject: {
14361
+ id: string | null;
14362
+ reference: string | null;
14363
+ type: any | null;
14364
+ resource: {
14365
+ name: Array<{
14366
+ text: string | null;
14367
+ family: string | null;
14368
+ given: Array<string | null> | null;
14369
+ prefix: Array<string | null> | null;
14370
+ suffix: Array<string | null> | null;
14371
+ } | null> | null;
14372
+ } | {} | null;
14373
+ } | null;
14374
+ basedOn: Array<{
14375
+ id: string | null;
14376
+ reference: string | null;
14377
+ type: any | null;
14378
+ resource: {
14379
+ resourceType: string | null;
14380
+ id: string;
14381
+ reasonCode: Array<{
14382
+ id: string | null;
14383
+ text: string | null;
14384
+ coding: Array<{
14385
+ id: string | null;
14386
+ system: any | null;
14387
+ code: any | null;
14388
+ display: string | null;
14389
+ } | null> | null;
14390
+ } | null> | null;
14391
+ } | {} | null;
14392
+ } | null> | null;
14393
+ code: {
14394
+ id: string | null;
14395
+ text: string | null;
14396
+ coding: Array<{
14345
14397
  id: string | null;
14346
14398
  system: any | null;
14347
14399
  code: any | null;
14348
14400
  display: string | null;
14349
14401
  } | null> | null;
14350
14402
  } | null;
14351
- category: {
14403
+ category: Array<{
14352
14404
  id: string | null;
14353
14405
  text: string | null;
14354
14406
  coding: Array<{
@@ -14357,8 +14409,25 @@ export type GetMedicationDispensesQueryResults = {
14357
14409
  code: any | null;
14358
14410
  display: string | null;
14359
14411
  } | null> | null;
14360
- } | null;
14361
- medicationCodeableConcept: {
14412
+ } | null> | null;
14413
+ referenceRange: Array<{
14414
+ text: string | null;
14415
+ low: {
14416
+ value: number | null;
14417
+ unit: string | null;
14418
+ code: any | null;
14419
+ comparator: any | null;
14420
+ system: any | null;
14421
+ } | null;
14422
+ high: {
14423
+ value: number | null;
14424
+ unit: string | null;
14425
+ code: any | null;
14426
+ comparator: any | null;
14427
+ system: any | null;
14428
+ } | null;
14429
+ } | null> | null;
14430
+ interpretation: Array<{
14362
14431
  id: string | null;
14363
14432
  text: string | null;
14364
14433
  coding: Array<{
@@ -14367,14 +14436,132 @@ export type GetMedicationDispensesQueryResults = {
14367
14436
  code: any | null;
14368
14437
  display: string | null;
14369
14438
  } | null> | null;
14439
+ } | null> | null;
14440
+ component: Array<{
14441
+ valueString: string | null;
14442
+ valueBoolean: boolean | null;
14443
+ valueInteger: number | null;
14444
+ valueTime: any | null;
14445
+ valueDateTime: any | null;
14446
+ code: {
14447
+ id: string | null;
14448
+ text: string | null;
14449
+ coding: Array<{
14450
+ id: string | null;
14451
+ system: any | null;
14452
+ code: any | null;
14453
+ display: string | null;
14454
+ } | null> | null;
14455
+ } | null;
14456
+ referenceRange: Array<{
14457
+ text: string | null;
14458
+ low: {
14459
+ value: number | null;
14460
+ unit: string | null;
14461
+ code: any | null;
14462
+ comparator: any | null;
14463
+ system: any | null;
14464
+ } | null;
14465
+ high: {
14466
+ value: number | null;
14467
+ unit: string | null;
14468
+ code: any | null;
14469
+ comparator: any | null;
14470
+ system: any | null;
14471
+ } | null;
14472
+ } | null> | null;
14473
+ interpretation: Array<{
14474
+ id: string | null;
14475
+ text: string | null;
14476
+ coding: Array<{
14477
+ id: string | null;
14478
+ system: any | null;
14479
+ code: any | null;
14480
+ display: string | null;
14481
+ } | null> | null;
14482
+ } | null> | null;
14483
+ dataAbsentReason: {
14484
+ id: string | null;
14485
+ text: string | null;
14486
+ coding: Array<{
14487
+ id: string | null;
14488
+ system: any | null;
14489
+ code: any | null;
14490
+ display: string | null;
14491
+ } | null> | null;
14492
+ } | null;
14493
+ valueQuantity: {
14494
+ value: number | null;
14495
+ unit: string | null;
14496
+ code: any | null;
14497
+ comparator: any | null;
14498
+ system: any | null;
14499
+ } | null;
14500
+ valueCodeableConcept: {
14501
+ id: string | null;
14502
+ text: string | null;
14503
+ coding: Array<{
14504
+ id: string | null;
14505
+ system: any | null;
14506
+ code: any | null;
14507
+ display: string | null;
14508
+ } | null> | null;
14509
+ } | null;
14510
+ valueRatio: {
14511
+ numerator: {
14512
+ value: number | null;
14513
+ unit: string | null;
14514
+ code: any | null;
14515
+ comparator: any | null;
14516
+ system: any | null;
14517
+ } | null;
14518
+ denominator: {
14519
+ value: number | null;
14520
+ unit: string | null;
14521
+ code: any | null;
14522
+ comparator: any | null;
14523
+ system: any | null;
14524
+ } | null;
14525
+ } | null;
14526
+ valueRange: {
14527
+ low: {
14528
+ value: number | null;
14529
+ unit: string | null;
14530
+ code: any | null;
14531
+ comparator: any | null;
14532
+ system: any | null;
14533
+ } | null;
14534
+ high: {
14535
+ value: number | null;
14536
+ unit: string | null;
14537
+ code: any | null;
14538
+ comparator: any | null;
14539
+ system: any | null;
14540
+ } | null;
14541
+ } | null;
14542
+ valuePeriod: {
14543
+ start: any | null;
14544
+ end: any | null;
14545
+ } | null;
14546
+ } | null> | null;
14547
+ effectivePeriod: {
14548
+ start: any | null;
14549
+ end: any | null;
14370
14550
  } | null;
14371
- medicationReference: {
14551
+ note: Array<{
14552
+ id: string | null;
14553
+ authorString: string | null;
14554
+ time: any | null;
14555
+ text: any | null;
14556
+ } | null> | null;
14557
+ encounter: {
14372
14558
  id: string | null;
14373
14559
  reference: string | null;
14374
14560
  type: any | null;
14375
14561
  resource: {
14376
14562
  resourceType: string | null;
14377
14563
  id: string;
14564
+ status: any | null;
14378
14565
  identifier: Array<{
14379
14566
  id: string | null;
14380
14567
  system: any | null;
@@ -14390,7 +14577,28 @@ export type GetMedicationDispensesQueryResults = {
14390
14577
  } | null> | null;
14391
14578
  } | null;
14392
14579
  } | null> | null;
14393
- code: {
14580
+ meta: {
14581
+ versionId: string | null;
14582
+ lastUpdated: any | null;
14583
+ source: any | null;
14584
+ security: Array<{
14585
+ id: string | null;
14586
+ system: any | null;
14587
+ code: any | null;
14588
+ display: string | null;
14589
+ } | null> | null;
14590
+ tag: Array<{
14591
+ id: string | null;
14592
+ system: any | null;
14593
+ code: any | null;
14594
+ display: string | null;
14595
+ } | null> | null;
14596
+ } | null;
14597
+ text: {
14598
+ div: any | null;
14599
+ status: any | null;
14600
+ } | null;
14601
+ type: Array<{
14394
14602
  id: string | null;
14395
14603
  text: string | null;
14396
14604
  coding: Array<{
@@ -14399,10 +14607,29 @@ export type GetMedicationDispensesQueryResults = {
14399
14607
  code: any | null;
14400
14608
  display: string | null;
14401
14609
  } | null> | null;
14610
+ } | null> | null;
14611
+ period: {
14612
+ start: any | null;
14613
+ end: any | null;
14402
14614
  } | null;
14403
- ingredient: Array<{
14404
- isActive: boolean | null;
14405
- itemCodeableConcept: {
14615
+ reasonCode: Array<{
14616
+ id: string | null;
14617
+ text: string | null;
14618
+ coding: Array<{
14619
+ id: string | null;
14620
+ system: any | null;
14621
+ code: any | null;
14622
+ display: string | null;
14623
+ } | null> | null;
14624
+ } | null> | null;
14625
+ class: {
14626
+ id: string | null;
14627
+ system: any | null;
14628
+ code: any | null;
14629
+ display: string | null;
14630
+ } | null;
14631
+ hospitalization: {
14632
+ dischargeDisposition: {
14406
14633
  id: string | null;
14407
14634
  text: string | null;
14408
14635
  coding: Array<{
@@ -14412,28 +14639,19 @@ export type GetMedicationDispensesQueryResults = {
14412
14639
  display: string | null;
14413
14640
  } | null> | null;
14414
14641
  } | null;
14415
- strength: {
14416
- numerator: {
14417
- value: number | null;
14418
- unit: string | null;
14419
- code: any | null;
14420
- comparator: any | null;
14421
- system: any | null;
14422
- } | null;
14423
- denominator: {
14424
- value: number | null;
14425
- unit: string | null;
14426
- code: any | null;
14427
- comparator: any | null;
14428
- system: any | null;
14429
- } | null;
14430
- } | null;
14431
- itemReference: {
14642
+ } | null;
14643
+ location: Array<{
14644
+ status: any | null;
14645
+ location: {
14432
14646
  id: string | null;
14433
14647
  reference: string | null;
14434
14648
  type: any | null;
14435
14649
  resource: {
14436
- resourceType: string | null;
14650
+ id: string;
14651
+ name: string | null;
14652
+ alias: Array<string | null> | null;
14653
+ description: string | null;
14654
+ status: any | null;
14437
14655
  identifier: Array<{
14438
14656
  id: string | null;
14439
14657
  system: any | null;
@@ -14449,7 +14667,49 @@ export type GetMedicationDispensesQueryResults = {
14449
14667
  } | null> | null;
14450
14668
  } | null;
14451
14669
  } | null> | null;
14452
- code: {
14670
+ address: {
14671
+ use: any | null;
14672
+ type: any | null;
14673
+ text: string | null;
14674
+ line: Array<string | null> | null;
14675
+ city: string | null;
14676
+ district: string | null;
14677
+ state: string | null;
14678
+ postalCode: string | null;
14679
+ country: string | null;
14680
+ } | null;
14681
+ position: {
14682
+ latitude: number | null;
14683
+ longitude: number | null;
14684
+ } | null;
14685
+ telecom: Array<{
14686
+ id: string | null;
14687
+ system: any | null;
14688
+ value: string | null;
14689
+ use: any | null;
14690
+ rank: number | null;
14691
+ } | null> | null;
14692
+ managingOrganization: {
14693
+ id: string | null;
14694
+ reference: string | null;
14695
+ display: string | null;
14696
+ identifier: {
14697
+ id: string | null;
14698
+ system: any | null;
14699
+ value: string | null;
14700
+ type: {
14701
+ id: string | null;
14702
+ text: string | null;
14703
+ coding: Array<{
14704
+ id: string | null;
14705
+ system: any | null;
14706
+ code: any | null;
14707
+ display: string | null;
14708
+ } | null> | null;
14709
+ } | null;
14710
+ } | null;
14711
+ } | null;
14712
+ type: Array<{
14453
14713
  id: string | null;
14454
14714
  text: string | null;
14455
14715
  coding: Array<{
@@ -14458,16 +14718,38 @@ export type GetMedicationDispensesQueryResults = {
14458
14718
  code: any | null;
14459
14719
  display: string | null;
14460
14720
  } | null> | null;
14461
- } | null;
14462
- } | {
14463
- resourceType: string | null;
14721
+ } | null> | null;
14722
+ } | null;
14723
+ } | null;
14724
+ physicalType: {
14725
+ id: string | null;
14726
+ text: string | null;
14727
+ coding: Array<{
14728
+ id: string | null;
14729
+ system: any | null;
14730
+ code: any | null;
14731
+ display: string | null;
14732
+ } | null> | null;
14733
+ } | null;
14734
+ period: {
14735
+ start: any | null;
14736
+ end: any | null;
14737
+ } | null;
14738
+ } | null> | null;
14739
+ participant: Array<{
14740
+ individual: {
14741
+ id: string | null;
14742
+ reference: string | null;
14743
+ type: any | null;
14744
+ resource: {
14464
14745
  id: string;
14465
- status: any | null;
14466
- description: string | null;
14467
- text: {
14468
- div: any | null;
14469
- status: any | null;
14470
- } | null;
14746
+ name: Array<{
14747
+ text: string | null;
14748
+ family: string | null;
14749
+ given: Array<string | null> | null;
14750
+ prefix: Array<string | null> | null;
14751
+ suffix: Array<string | null> | null;
14752
+ } | null> | null;
14471
14753
  identifier: Array<{
14472
14754
  id: string | null;
14473
14755
  system: any | null;
@@ -14483,17 +14765,37 @@ export type GetMedicationDispensesQueryResults = {
14483
14765
  } | null> | null;
14484
14766
  } | null;
14485
14767
  } | null> | null;
14486
- category: Array<{
14487
- id: string | null;
14488
- text: string | null;
14489
- coding: Array<{
14490
- id: string | null;
14491
- system: any | null;
14492
- code: any | null;
14493
- display: string | null;
14494
- } | null> | null;
14495
- } | null> | null;
14496
- code: {
14768
+ } | {} | null;
14769
+ } | null;
14770
+ type: Array<{
14771
+ id: string | null;
14772
+ text: string | null;
14773
+ coding: Array<{
14774
+ id: string | null;
14775
+ system: any | null;
14776
+ code: any | null;
14777
+ display: string | null;
14778
+ } | null> | null;
14779
+ } | null> | null;
14780
+ period: {
14781
+ start: any | null;
14782
+ end: any | null;
14783
+ } | null;
14784
+ } | null> | null;
14785
+ serviceProvider: {
14786
+ id: string | null;
14787
+ reference: string | null;
14788
+ type: any | null;
14789
+ resource: {
14790
+ resourceType: string | null;
14791
+ id: string;
14792
+ name: string | null;
14793
+ active: boolean | null;
14794
+ identifier: Array<{
14795
+ id: string | null;
14796
+ system: any | null;
14797
+ value: string | null;
14798
+ type: {
14497
14799
  id: string | null;
14498
14800
  text: string | null;
14499
14801
  coding: Array<{
@@ -14503,9 +14805,16 @@ export type GetMedicationDispensesQueryResults = {
14503
14805
  display: string | null;
14504
14806
  } | null> | null;
14505
14807
  } | null;
14506
- instance: Array<{
14507
- expiry: any | null;
14508
- identifier: {
14808
+ } | null> | null;
14809
+ endpoint: Array<{
14810
+ id: string | null;
14811
+ reference: string | null;
14812
+ type: any | null;
14813
+ resource: {
14814
+ name: string | null;
14815
+ status: any | null;
14816
+ address: any | null;
14817
+ identifier: Array<{
14509
14818
  id: string | null;
14510
14819
  system: any | null;
14511
14820
  value: string | null;
@@ -14519,64 +14828,234 @@ export type GetMedicationDispensesQueryResults = {
14519
14828
  display: string | null;
14520
14829
  } | null> | null;
14521
14830
  } | null;
14522
- } | null;
14523
- quantity: {
14524
- value: number | null;
14525
- unit: string | null;
14526
- code: any | null;
14527
- comparator: any | null;
14831
+ } | null> | null;
14832
+ connectionType: {
14833
+ id: string | null;
14528
14834
  system: any | null;
14835
+ code: any | null;
14836
+ display: string | null;
14529
14837
  } | null;
14530
- } | null> | null;
14531
- ingredient: Array<{
14838
+ } | null;
14839
+ } | null> | null;
14840
+ telecom: Array<{
14841
+ id: string | null;
14842
+ system: any | null;
14843
+ value: string | null;
14844
+ use: any | null;
14845
+ rank: number | null;
14846
+ } | null> | null;
14847
+ address: Array<{
14848
+ use: any | null;
14849
+ type: any | null;
14850
+ text: string | null;
14851
+ line: Array<string | null> | null;
14852
+ city: string | null;
14853
+ district: string | null;
14854
+ state: string | null;
14855
+ postalCode: string | null;
14856
+ country: string | null;
14857
+ } | null> | null;
14858
+ type: Array<{
14859
+ id: string | null;
14860
+ text: string | null;
14861
+ coding: Array<{
14532
14862
  id: string | null;
14533
- quantity: {
14534
- numerator: {
14535
- value: number | null;
14536
- unit: string | null;
14537
- code: any | null;
14538
- comparator: any | null;
14539
- system: any | null;
14540
- } | null;
14541
- denominator: {
14542
- value: number | null;
14543
- unit: string | null;
14544
- code: any | null;
14545
- comparator: any | null;
14546
- system: any | null;
14547
- } | null;
14548
- } | null;
14549
- substanceCodeableConcept: {
14550
- id: string | null;
14551
- text: string | null;
14552
- coding: Array<{
14553
- id: string | null;
14554
- system: any | null;
14555
- code: any | null;
14556
- display: string | null;
14557
- } | null> | null;
14558
- } | null;
14863
+ system: any | null;
14864
+ code: any | null;
14865
+ display: string | null;
14559
14866
  } | null> | null;
14560
- } | null;
14867
+ } | null> | null;
14561
14868
  } | null;
14562
- } | null> | null;
14563
- form: {
14869
+ } | null;
14870
+ subject: {
14564
14871
  id: string | null;
14565
- text: string | null;
14566
- coding: Array<{
14567
- id: string | null;
14568
- system: any | null;
14569
- code: any | null;
14570
- display: string | null;
14571
- } | null> | null;
14872
+ reference: string | null;
14873
+ type: any | null;
14874
+ resource: {
14875
+ id: string;
14876
+ gender: any | null;
14877
+ birthDate: any | null;
14878
+ name: Array<{
14879
+ text: string | null;
14880
+ family: string | null;
14881
+ given: Array<string | null> | null;
14882
+ prefix: Array<string | null> | null;
14883
+ suffix: Array<string | null> | null;
14884
+ } | null> | null;
14885
+ communication: Array<{
14886
+ language: {
14887
+ id: string | null;
14888
+ text: string | null;
14889
+ coding: Array<{
14890
+ id: string | null;
14891
+ system: any | null;
14892
+ code: any | null;
14893
+ display: string | null;
14894
+ } | null> | null;
14895
+ } | null;
14896
+ } | null> | null;
14897
+ } | {} | null;
14572
14898
  } | null;
14899
+ reasonReference: Array<{
14900
+ id: string | null;
14901
+ reference: string | null;
14902
+ type: any | null;
14903
+ resource: {
14904
+ id: string;
14905
+ onsetDateTime: any | null;
14906
+ recordedDate: any | null;
14907
+ abatementDateTime: any | null;
14908
+ meta: {
14909
+ versionId: string | null;
14910
+ lastUpdated: any | null;
14911
+ source: any | null;
14912
+ security: Array<{
14913
+ id: string | null;
14914
+ system: any | null;
14915
+ code: any | null;
14916
+ display: string | null;
14917
+ } | null> | null;
14918
+ tag: Array<{
14919
+ id: string | null;
14920
+ system: any | null;
14921
+ code: any | null;
14922
+ display: string | null;
14923
+ } | null> | null;
14924
+ } | null;
14925
+ code: {
14926
+ id: string | null;
14927
+ text: string | null;
14928
+ coding: Array<{
14929
+ id: string | null;
14930
+ system: any | null;
14931
+ code: any | null;
14932
+ display: string | null;
14933
+ } | null> | null;
14934
+ } | null;
14935
+ clinicalStatus: {
14936
+ id: string | null;
14937
+ text: string | null;
14938
+ coding: Array<{
14939
+ id: string | null;
14940
+ system: any | null;
14941
+ code: any | null;
14942
+ display: string | null;
14943
+ } | null> | null;
14944
+ } | null;
14945
+ recorder: {
14946
+ resource: {
14947
+ id: string;
14948
+ gender: any | null;
14949
+ birthDate: any | null;
14950
+ name: Array<{
14951
+ text: string | null;
14952
+ family: string | null;
14953
+ given: Array<string | null> | null;
14954
+ prefix: Array<string | null> | null;
14955
+ suffix: Array<string | null> | null;
14956
+ } | null> | null;
14957
+ communication: Array<{
14958
+ language: {
14959
+ id: string | null;
14960
+ text: string | null;
14961
+ coding: Array<{
14962
+ id: string | null;
14963
+ system: any | null;
14964
+ code: any | null;
14965
+ display: string | null;
14966
+ } | null> | null;
14967
+ } | null;
14968
+ } | null> | null;
14969
+ } | {
14970
+ id: string;
14971
+ name: Array<{
14972
+ text: string | null;
14973
+ family: string | null;
14974
+ given: Array<string | null> | null;
14975
+ prefix: Array<string | null> | null;
14976
+ suffix: Array<string | null> | null;
14977
+ } | null> | null;
14978
+ identifier: Array<{
14979
+ id: string | null;
14980
+ system: any | null;
14981
+ value: string | null;
14982
+ type: {
14983
+ id: string | null;
14984
+ text: string | null;
14985
+ coding: Array<{
14986
+ id: string | null;
14987
+ system: any | null;
14988
+ code: any | null;
14989
+ display: string | null;
14990
+ } | null> | null;
14991
+ } | null;
14992
+ } | null> | null;
14993
+ } | {} | null;
14994
+ } | null;
14995
+ note: Array<{
14996
+ authorString: string | null;
14997
+ time: any | null;
14998
+ text: any | null;
14999
+ } | null> | null;
15000
+ onsetPeriod: {
15001
+ start: any | null;
15002
+ end: any | null;
15003
+ } | null;
15004
+ abatementPeriod: {
15005
+ start: any | null;
15006
+ end: any | null;
15007
+ } | null;
15008
+ category: Array<{
15009
+ id: string | null;
15010
+ text: string | null;
15011
+ coding: Array<{
15012
+ id: string | null;
15013
+ system: any | null;
15014
+ code: any | null;
15015
+ display: string | null;
15016
+ } | null> | null;
15017
+ } | null> | null;
15018
+ severity: {
15019
+ id: string | null;
15020
+ text: string | null;
15021
+ coding: Array<{
15022
+ id: string | null;
15023
+ system: any | null;
15024
+ code: any | null;
15025
+ display: string | null;
15026
+ } | null> | null;
15027
+ } | null;
15028
+ verificationStatus: {
15029
+ id: string | null;
15030
+ text: string | null;
15031
+ coding: Array<{
15032
+ id: string | null;
15033
+ system: any | null;
15034
+ code: any | null;
15035
+ display: string | null;
15036
+ } | null> | null;
15037
+ } | null;
15038
+ bodySite: Array<{
15039
+ id: string | null;
15040
+ text: string | null;
15041
+ coding: Array<{
15042
+ id: string | null;
15043
+ system: any | null;
15044
+ code: any | null;
15045
+ display: string | null;
15046
+ } | null> | null;
15047
+ } | null> | null;
15048
+ } | {} | null;
15049
+ } | null> | null;
14573
15050
  } | null;
14574
15051
  } | null;
14575
- subject: {
15052
+ performer: Array<{
14576
15053
  id: string | null;
14577
15054
  reference: string | null;
14578
15055
  type: any | null;
14579
15056
  resource: {
15057
+ organizationName: string | null;
15058
+ } | {
14580
15059
  id: string;
14581
15060
  gender: any | null;
14582
15061
  birthDate: any | null;
@@ -14599,16 +15078,15 @@ export type GetMedicationDispensesQueryResults = {
14599
15078
  } | null> | null;
14600
15079
  } | null;
14601
15080
  } | null> | null;
14602
- } | {} | null;
14603
- } | null;
14604
- context: {
14605
- id: string | null;
14606
- reference: string | null;
14607
- type: any | null;
14608
- resource: {
14609
- resourceType: string | null;
15081
+ } | {
14610
15082
  id: string;
14611
- status: any | null;
15083
+ name: Array<{
15084
+ text: string | null;
15085
+ family: string | null;
15086
+ given: Array<string | null> | null;
15087
+ prefix: Array<string | null> | null;
15088
+ suffix: Array<string | null> | null;
15089
+ } | null> | null;
14612
15090
  identifier: Array<{
14613
15091
  id: string | null;
14614
15092
  system: any | null;
@@ -14624,28 +15102,15 @@ export type GetMedicationDispensesQueryResults = {
14624
15102
  } | null> | null;
14625
15103
  } | null;
14626
15104
  } | null> | null;
14627
- meta: {
14628
- versionId: string | null;
14629
- lastUpdated: any | null;
14630
- source: any | null;
14631
- security: Array<{
14632
- id: string | null;
14633
- system: any | null;
14634
- code: any | null;
14635
- display: string | null;
14636
- } | null> | null;
14637
- tag: Array<{
14638
- id: string | null;
14639
- system: any | null;
14640
- code: any | null;
14641
- display: string | null;
14642
- } | null> | null;
14643
- } | null;
14644
- text: {
14645
- div: any | null;
14646
- status: any | null;
14647
- } | null;
14648
- type: Array<{
15105
+ } | {} | null;
15106
+ } | null> | null;
15107
+ hasMember: Array<{
15108
+ id: string | null;
15109
+ reference: string | null;
15110
+ type: any | null;
15111
+ resource: {
15112
+ id: string;
15113
+ code: {
14649
15114
  id: string | null;
14650
15115
  text: string | null;
14651
15116
  coding: Array<{
@@ -14654,29 +15119,208 @@ export type GetMedicationDispensesQueryResults = {
14654
15119
  code: any | null;
14655
15120
  display: string | null;
14656
15121
  } | null> | null;
14657
- } | null> | null;
14658
- period: {
14659
- start: any | null;
14660
- end: any | null;
14661
15122
  } | null;
14662
- reasonCode: Array<{
15123
+ } | {} | null;
15124
+ } | null> | null;
15125
+ specimen: {
15126
+ id: string | null;
15127
+ reference: string | null;
15128
+ type: any | null;
15129
+ resource: {
15130
+ identifier: Array<{
14663
15131
  id: string | null;
14664
- text: string | null;
14665
- coding: Array<{
14666
- id: string | null;
14667
- system: any | null;
15132
+ system: any | null;
15133
+ value: string | null;
15134
+ type: {
15135
+ id: string | null;
15136
+ text: string | null;
15137
+ coding: Array<{
15138
+ id: string | null;
15139
+ system: any | null;
15140
+ code: any | null;
15141
+ display: string | null;
15142
+ } | null> | null;
15143
+ } | null;
15144
+ } | null> | null;
15145
+ accessionIdentifier: {
15146
+ id: string | null;
15147
+ system: any | null;
15148
+ value: string | null;
15149
+ type: {
15150
+ id: string | null;
15151
+ text: string | null;
15152
+ coding: Array<{
15153
+ id: string | null;
15154
+ system: any | null;
15155
+ code: any | null;
15156
+ display: string | null;
15157
+ } | null> | null;
15158
+ } | null;
15159
+ } | null;
15160
+ type: {
15161
+ id: string | null;
15162
+ text: string | null;
15163
+ coding: Array<{
15164
+ id: string | null;
15165
+ system: any | null;
14668
15166
  code: any | null;
14669
15167
  display: string | null;
14670
15168
  } | null> | null;
14671
- } | null> | null;
14672
- class: {
15169
+ } | null;
15170
+ } | null;
15171
+ } | null;
15172
+ dataAbsentReason: {
15173
+ id: string | null;
15174
+ text: string | null;
15175
+ coding: Array<{
15176
+ id: string | null;
15177
+ system: any | null;
15178
+ code: any | null;
15179
+ display: string | null;
15180
+ } | null> | null;
15181
+ } | null;
15182
+ valueQuantity: {
15183
+ value: number | null;
15184
+ unit: string | null;
15185
+ code: any | null;
15186
+ comparator: any | null;
15187
+ system: any | null;
15188
+ } | null;
15189
+ valueCodeableConcept: {
15190
+ id: string | null;
15191
+ text: string | null;
15192
+ coding: Array<{
15193
+ id: string | null;
15194
+ system: any | null;
15195
+ code: any | null;
15196
+ display: string | null;
15197
+ } | null> | null;
15198
+ } | null;
15199
+ valueRatio: {
15200
+ numerator: {
15201
+ value: number | null;
15202
+ unit: string | null;
15203
+ code: any | null;
15204
+ comparator: any | null;
15205
+ system: any | null;
15206
+ } | null;
15207
+ denominator: {
15208
+ value: number | null;
15209
+ unit: string | null;
15210
+ code: any | null;
15211
+ comparator: any | null;
15212
+ system: any | null;
15213
+ } | null;
15214
+ } | null;
15215
+ valueRange: {
15216
+ low: {
15217
+ value: number | null;
15218
+ unit: string | null;
15219
+ code: any | null;
15220
+ comparator: any | null;
15221
+ system: any | null;
15222
+ } | null;
15223
+ high: {
15224
+ value: number | null;
15225
+ unit: string | null;
15226
+ code: any | null;
15227
+ comparator: any | null;
15228
+ system: any | null;
15229
+ } | null;
15230
+ } | null;
15231
+ valuePeriod: {
15232
+ start: any | null;
15233
+ end: any | null;
15234
+ } | null;
15235
+ } | null;
15236
+ } | null> | null;
15237
+ } | null;
15238
+ };
15239
+ export type GetMedicationDispensesQueryVariables = Types.Exact<{
15240
+ page: Types.InputMaybe<Types.Scalars['Int']['input']>;
15241
+ pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
15242
+ id: Types.InputMaybe<Types.SearchString>;
15243
+ lastUpdated: Types.InputMaybe<Types.SearchDate>;
15244
+ sort: Types.InputMaybe<Array<Types.InputMaybe<Types.Scalars['String']['input']>> | Types.InputMaybe<Types.Scalars['String']['input']>>;
15245
+ status: Types.InputMaybe<Types.SearchToken>;
15246
+ prescription: Types.InputMaybe<Types.SearchReference>;
15247
+ total: Types.InputMaybe<Types.TotalType>;
15248
+ }>;
15249
+ export type GetMedicationDispensesQueryResults = {
15250
+ medicationDispenses: {
15251
+ id: string | null;
15252
+ entry: Array<{
15253
+ id: string | null;
15254
+ resource: {
15255
+ resourceType: string | null;
15256
+ id: string;
15257
+ status: any | null;
15258
+ whenPrepared: any | null;
15259
+ whenHandedOver: any | null;
15260
+ identifier: Array<{
15261
+ id: string | null;
15262
+ system: any | null;
15263
+ value: string | null;
15264
+ type: {
15265
+ id: string | null;
15266
+ text: string | null;
15267
+ coding: Array<{
14673
15268
  id: string | null;
14674
15269
  system: any | null;
14675
15270
  code: any | null;
14676
15271
  display: string | null;
14677
- } | null;
14678
- hospitalization: {
14679
- dischargeDisposition: {
15272
+ } | null> | null;
15273
+ } | null;
15274
+ } | null> | null;
15275
+ meta: {
15276
+ versionId: string | null;
15277
+ lastUpdated: any | null;
15278
+ source: any | null;
15279
+ security: Array<{
15280
+ id: string | null;
15281
+ system: any | null;
15282
+ code: any | null;
15283
+ display: string | null;
15284
+ } | null> | null;
15285
+ tag: Array<{
15286
+ id: string | null;
15287
+ system: any | null;
15288
+ code: any | null;
15289
+ display: string | null;
15290
+ } | null> | null;
15291
+ } | null;
15292
+ category: {
15293
+ id: string | null;
15294
+ text: string | null;
15295
+ coding: Array<{
15296
+ id: string | null;
15297
+ system: any | null;
15298
+ code: any | null;
15299
+ display: string | null;
15300
+ } | null> | null;
15301
+ } | null;
15302
+ medicationCodeableConcept: {
15303
+ id: string | null;
15304
+ text: string | null;
15305
+ coding: Array<{
15306
+ id: string | null;
15307
+ system: any | null;
15308
+ code: any | null;
15309
+ display: string | null;
15310
+ } | null> | null;
15311
+ } | null;
15312
+ medicationReference: {
15313
+ id: string | null;
15314
+ reference: string | null;
15315
+ type: any | null;
15316
+ resource: {
15317
+ resourceType: string | null;
15318
+ id: string;
15319
+ identifier: Array<{
15320
+ id: string | null;
15321
+ system: any | null;
15322
+ value: string | null;
15323
+ type: {
14680
15324
  id: string | null;
14681
15325
  text: string | null;
14682
15326
  coding: Array<{
@@ -14686,19 +15330,51 @@ export type GetMedicationDispensesQueryResults = {
14686
15330
  display: string | null;
14687
15331
  } | null> | null;
14688
15332
  } | null;
15333
+ } | null> | null;
15334
+ code: {
15335
+ id: string | null;
15336
+ text: string | null;
15337
+ coding: Array<{
15338
+ id: string | null;
15339
+ system: any | null;
15340
+ code: any | null;
15341
+ display: string | null;
15342
+ } | null> | null;
14689
15343
  } | null;
14690
- location: Array<{
14691
- status: any | null;
14692
- location: {
15344
+ ingredient: Array<{
15345
+ isActive: boolean | null;
15346
+ itemCodeableConcept: {
15347
+ id: string | null;
15348
+ text: string | null;
15349
+ coding: Array<{
15350
+ id: string | null;
15351
+ system: any | null;
15352
+ code: any | null;
15353
+ display: string | null;
15354
+ } | null> | null;
15355
+ } | null;
15356
+ strength: {
15357
+ numerator: {
15358
+ value: number | null;
15359
+ unit: string | null;
15360
+ code: any | null;
15361
+ comparator: any | null;
15362
+ system: any | null;
15363
+ } | null;
15364
+ denominator: {
15365
+ value: number | null;
15366
+ unit: string | null;
15367
+ code: any | null;
15368
+ comparator: any | null;
15369
+ system: any | null;
15370
+ } | null;
15371
+ } | null;
15372
+ itemReference: {
14693
15373
  id: string | null;
14694
15374
  reference: string | null;
14695
15375
  type: any | null;
14696
15376
  resource: {
14697
- id: string;
14698
- name: string | null;
14699
- alias: Array<string | null> | null;
14700
- description: string | null;
14701
- status: any | null;
15377
+ resourceType: string | null;
14702
15378
  identifier: Array<{
14703
15379
  id: string | null;
14704
15380
  system: any | null;
@@ -14714,32 +15390,62 @@ export type GetMedicationDispensesQueryResults = {
14714
15390
  } | null> | null;
14715
15391
  } | null;
14716
15392
  } | null> | null;
14717
- address: {
14718
- use: any | null;
14719
- type: any | null;
15393
+ code: {
15394
+ id: string | null;
14720
15395
  text: string | null;
14721
- line: Array<string | null> | null;
14722
- city: string | null;
14723
- district: string | null;
14724
- state: string | null;
14725
- postalCode: string | null;
14726
- country: string | null;
15396
+ coding: Array<{
15397
+ id: string | null;
15398
+ system: any | null;
15399
+ code: any | null;
15400
+ display: string | null;
15401
+ } | null> | null;
14727
15402
  } | null;
14728
- position: {
14729
- latitude: number | null;
14730
- longitude: number | null;
15403
+ } | {
15404
+ resourceType: string | null;
15405
+ id: string;
15406
+ status: any | null;
15407
+ description: string | null;
15408
+ text: {
15409
+ div: any | null;
15410
+ status: any | null;
14731
15411
  } | null;
14732
- telecom: Array<{
15412
+ identifier: Array<{
14733
15413
  id: string | null;
14734
15414
  system: any | null;
14735
15415
  value: string | null;
14736
- use: any | null;
14737
- rank: number | null;
15416
+ type: {
15417
+ id: string | null;
15418
+ text: string | null;
15419
+ coding: Array<{
15420
+ id: string | null;
15421
+ system: any | null;
15422
+ code: any | null;
15423
+ display: string | null;
15424
+ } | null> | null;
15425
+ } | null;
14738
15426
  } | null> | null;
14739
- managingOrganization: {
15427
+ category: Array<{
14740
15428
  id: string | null;
14741
- reference: string | null;
14742
- display: string | null;
15429
+ text: string | null;
15430
+ coding: Array<{
15431
+ id: string | null;
15432
+ system: any | null;
15433
+ code: any | null;
15434
+ display: string | null;
15435
+ } | null> | null;
15436
+ } | null> | null;
15437
+ code: {
15438
+ id: string | null;
15439
+ text: string | null;
15440
+ coding: Array<{
15441
+ id: string | null;
15442
+ system: any | null;
15443
+ code: any | null;
15444
+ display: string | null;
15445
+ } | null> | null;
15446
+ } | null;
15447
+ instance: Array<{
15448
+ expiry: any | null;
14743
15449
  identifier: {
14744
15450
  id: string | null;
14745
15451
  system: any | null;
@@ -14755,20 +15461,75 @@ export type GetMedicationDispensesQueryResults = {
14755
15461
  } | null> | null;
14756
15462
  } | null;
14757
15463
  } | null;
14758
- } | null;
14759
- type: Array<{
15464
+ quantity: {
15465
+ value: number | null;
15466
+ unit: string | null;
15467
+ code: any | null;
15468
+ comparator: any | null;
15469
+ system: any | null;
15470
+ } | null;
15471
+ } | null> | null;
15472
+ ingredient: Array<{
14760
15473
  id: string | null;
14761
- text: string | null;
14762
- coding: Array<{
15474
+ quantity: {
15475
+ numerator: {
15476
+ value: number | null;
15477
+ unit: string | null;
15478
+ code: any | null;
15479
+ comparator: any | null;
15480
+ system: any | null;
15481
+ } | null;
15482
+ denominator: {
15483
+ value: number | null;
15484
+ unit: string | null;
15485
+ code: any | null;
15486
+ comparator: any | null;
15487
+ system: any | null;
15488
+ } | null;
15489
+ } | null;
15490
+ substanceCodeableConcept: {
14763
15491
  id: string | null;
14764
- system: any | null;
14765
- code: any | null;
14766
- display: string | null;
14767
- } | null> | null;
15492
+ text: string | null;
15493
+ coding: Array<{
15494
+ id: string | null;
15495
+ system: any | null;
15496
+ code: any | null;
15497
+ display: string | null;
15498
+ } | null> | null;
15499
+ } | null;
14768
15500
  } | null> | null;
14769
15501
  } | null;
14770
15502
  } | null;
14771
- physicalType: {
15503
+ } | null> | null;
15504
+ form: {
15505
+ id: string | null;
15506
+ text: string | null;
15507
+ coding: Array<{
15508
+ id: string | null;
15509
+ system: any | null;
15510
+ code: any | null;
15511
+ display: string | null;
15512
+ } | null> | null;
15513
+ } | null;
15514
+ } | null;
15515
+ } | null;
15516
+ subject: {
15517
+ id: string | null;
15518
+ reference: string | null;
15519
+ type: any | null;
15520
+ resource: {
15521
+ id: string;
15522
+ gender: any | null;
15523
+ birthDate: any | null;
15524
+ name: Array<{
15525
+ text: string | null;
15526
+ family: string | null;
15527
+ given: Array<string | null> | null;
15528
+ prefix: Array<string | null> | null;
15529
+ suffix: Array<string | null> | null;
15530
+ } | null> | null;
15531
+ communication: Array<{
15532
+ language: {
14772
15533
  id: string | null;
14773
15534
  text: string | null;
14774
15535
  coding: Array<{
@@ -14778,25 +15539,107 @@ export type GetMedicationDispensesQueryResults = {
14778
15539
  display: string | null;
14779
15540
  } | null> | null;
14780
15541
  } | null;
14781
- period: {
14782
- start: any | null;
14783
- end: any | null;
15542
+ } | null> | null;
15543
+ } | {} | null;
15544
+ } | null;
15545
+ context: {
15546
+ id: string | null;
15547
+ reference: string | null;
15548
+ type: any | null;
15549
+ resource: {
15550
+ resourceType: string | null;
15551
+ id: string;
15552
+ status: any | null;
15553
+ identifier: Array<{
15554
+ id: string | null;
15555
+ system: any | null;
15556
+ value: string | null;
15557
+ type: {
15558
+ id: string | null;
15559
+ text: string | null;
15560
+ coding: Array<{
15561
+ id: string | null;
15562
+ system: any | null;
15563
+ code: any | null;
15564
+ display: string | null;
15565
+ } | null> | null;
14784
15566
  } | null;
14785
15567
  } | null> | null;
14786
- participant: Array<{
14787
- individual: {
15568
+ meta: {
15569
+ versionId: string | null;
15570
+ lastUpdated: any | null;
15571
+ source: any | null;
15572
+ security: Array<{
15573
+ id: string | null;
15574
+ system: any | null;
15575
+ code: any | null;
15576
+ display: string | null;
15577
+ } | null> | null;
15578
+ tag: Array<{
15579
+ id: string | null;
15580
+ system: any | null;
15581
+ code: any | null;
15582
+ display: string | null;
15583
+ } | null> | null;
15584
+ } | null;
15585
+ text: {
15586
+ div: any | null;
15587
+ status: any | null;
15588
+ } | null;
15589
+ type: Array<{
15590
+ id: string | null;
15591
+ text: string | null;
15592
+ coding: Array<{
15593
+ id: string | null;
15594
+ system: any | null;
15595
+ code: any | null;
15596
+ display: string | null;
15597
+ } | null> | null;
15598
+ } | null> | null;
15599
+ period: {
15600
+ start: any | null;
15601
+ end: any | null;
15602
+ } | null;
15603
+ reasonCode: Array<{
15604
+ id: string | null;
15605
+ text: string | null;
15606
+ coding: Array<{
15607
+ id: string | null;
15608
+ system: any | null;
15609
+ code: any | null;
15610
+ display: string | null;
15611
+ } | null> | null;
15612
+ } | null> | null;
15613
+ class: {
15614
+ id: string | null;
15615
+ system: any | null;
15616
+ code: any | null;
15617
+ display: string | null;
15618
+ } | null;
15619
+ hospitalization: {
15620
+ dischargeDisposition: {
15621
+ id: string | null;
15622
+ text: string | null;
15623
+ coding: Array<{
15624
+ id: string | null;
15625
+ system: any | null;
15626
+ code: any | null;
15627
+ display: string | null;
15628
+ } | null> | null;
15629
+ } | null;
15630
+ } | null;
15631
+ location: Array<{
15632
+ status: any | null;
15633
+ location: {
14788
15634
  id: string | null;
14789
15635
  reference: string | null;
14790
15636
  type: any | null;
14791
15637
  resource: {
14792
15638
  id: string;
14793
- name: Array<{
14794
- text: string | null;
14795
- family: string | null;
14796
- given: Array<string | null> | null;
14797
- prefix: Array<string | null> | null;
14798
- suffix: Array<string | null> | null;
14799
- } | null> | null;
15639
+ name: string | null;
15640
+ alias: Array<string | null> | null;
15641
+ description: string | null;
15642
+ status: any | null;
14800
15643
  identifier: Array<{
14801
15644
  id: string | null;
14802
15645
  system: any | null;
@@ -14812,35 +15655,133 @@ export type GetMedicationDispensesQueryResults = {
14812
15655
  } | null> | null;
14813
15656
  } | null;
14814
15657
  } | null> | null;
14815
- } | {} | null;
14816
- } | null;
14817
- type: Array<{
14818
- id: string | null;
14819
- text: string | null;
14820
- coding: Array<{
14821
- id: string | null;
14822
- system: any | null;
14823
- code: any | null;
14824
- display: string | null;
14825
- } | null> | null;
14826
- } | null> | null;
14827
- period: {
14828
- start: any | null;
14829
- end: any | null;
14830
- } | null;
14831
- } | null> | null;
14832
- serviceProvider: {
14833
- id: string | null;
14834
- reference: string | null;
14835
- type: any | null;
14836
- resource: {
14837
- resourceType: string | null;
14838
- id: string;
14839
- name: string | null;
14840
- active: boolean | null;
14841
- identifier: Array<{
14842
- id: string | null;
14843
- system: any | null;
15658
+ address: {
15659
+ use: any | null;
15660
+ type: any | null;
15661
+ text: string | null;
15662
+ line: Array<string | null> | null;
15663
+ city: string | null;
15664
+ district: string | null;
15665
+ state: string | null;
15666
+ postalCode: string | null;
15667
+ country: string | null;
15668
+ } | null;
15669
+ position: {
15670
+ latitude: number | null;
15671
+ longitude: number | null;
15672
+ } | null;
15673
+ telecom: Array<{
15674
+ id: string | null;
15675
+ system: any | null;
15676
+ value: string | null;
15677
+ use: any | null;
15678
+ rank: number | null;
15679
+ } | null> | null;
15680
+ managingOrganization: {
15681
+ id: string | null;
15682
+ reference: string | null;
15683
+ display: string | null;
15684
+ identifier: {
15685
+ id: string | null;
15686
+ system: any | null;
15687
+ value: string | null;
15688
+ type: {
15689
+ id: string | null;
15690
+ text: string | null;
15691
+ coding: Array<{
15692
+ id: string | null;
15693
+ system: any | null;
15694
+ code: any | null;
15695
+ display: string | null;
15696
+ } | null> | null;
15697
+ } | null;
15698
+ } | null;
15699
+ } | null;
15700
+ type: Array<{
15701
+ id: string | null;
15702
+ text: string | null;
15703
+ coding: Array<{
15704
+ id: string | null;
15705
+ system: any | null;
15706
+ code: any | null;
15707
+ display: string | null;
15708
+ } | null> | null;
15709
+ } | null> | null;
15710
+ } | null;
15711
+ } | null;
15712
+ physicalType: {
15713
+ id: string | null;
15714
+ text: string | null;
15715
+ coding: Array<{
15716
+ id: string | null;
15717
+ system: any | null;
15718
+ code: any | null;
15719
+ display: string | null;
15720
+ } | null> | null;
15721
+ } | null;
15722
+ period: {
15723
+ start: any | null;
15724
+ end: any | null;
15725
+ } | null;
15726
+ } | null> | null;
15727
+ participant: Array<{
15728
+ individual: {
15729
+ id: string | null;
15730
+ reference: string | null;
15731
+ type: any | null;
15732
+ resource: {
15733
+ id: string;
15734
+ name: Array<{
15735
+ text: string | null;
15736
+ family: string | null;
15737
+ given: Array<string | null> | null;
15738
+ prefix: Array<string | null> | null;
15739
+ suffix: Array<string | null> | null;
15740
+ } | null> | null;
15741
+ identifier: Array<{
15742
+ id: string | null;
15743
+ system: any | null;
15744
+ value: string | null;
15745
+ type: {
15746
+ id: string | null;
15747
+ text: string | null;
15748
+ coding: Array<{
15749
+ id: string | null;
15750
+ system: any | null;
15751
+ code: any | null;
15752
+ display: string | null;
15753
+ } | null> | null;
15754
+ } | null;
15755
+ } | null> | null;
15756
+ } | {} | null;
15757
+ } | null;
15758
+ type: Array<{
15759
+ id: string | null;
15760
+ text: string | null;
15761
+ coding: Array<{
15762
+ id: string | null;
15763
+ system: any | null;
15764
+ code: any | null;
15765
+ display: string | null;
15766
+ } | null> | null;
15767
+ } | null> | null;
15768
+ period: {
15769
+ start: any | null;
15770
+ end: any | null;
15771
+ } | null;
15772
+ } | null> | null;
15773
+ serviceProvider: {
15774
+ id: string | null;
15775
+ reference: string | null;
15776
+ type: any | null;
15777
+ resource: {
15778
+ resourceType: string | null;
15779
+ id: string;
15780
+ name: string | null;
15781
+ active: boolean | null;
15782
+ identifier: Array<{
15783
+ id: string | null;
15784
+ system: any | null;
14844
15785
  value: string | null;
14845
15786
  type: {
14846
15787
  id: string | null;
@@ -16377,11 +17318,446 @@ export type GetMedicationRequestQueryResults = {
16377
17318
  display: string | null;
16378
17319
  } | null> | null;
16379
17320
  } | null> | null;
16380
- } | {} | null;
16381
- } | null> | null;
17321
+ } | {} | null;
17322
+ } | null> | null;
17323
+ } | null;
17324
+ } | null;
17325
+ dosageInstruction: Array<{
17326
+ id: string | null;
17327
+ asNeededBoolean: boolean | null;
17328
+ patientInstruction: string | null;
17329
+ sequence: number | null;
17330
+ text: string | null;
17331
+ additionalInstruction: Array<{
17332
+ id: string | null;
17333
+ text: string | null;
17334
+ coding: Array<{
17335
+ id: string | null;
17336
+ system: any | null;
17337
+ code: any | null;
17338
+ display: string | null;
17339
+ } | null> | null;
17340
+ } | null> | null;
17341
+ asNeededCodeableConcept: {
17342
+ id: string | null;
17343
+ text: string | null;
17344
+ coding: Array<{
17345
+ id: string | null;
17346
+ system: any | null;
17347
+ code: any | null;
17348
+ display: string | null;
17349
+ } | null> | null;
17350
+ } | null;
17351
+ doseAndRate: Array<{
17352
+ id: string | null;
17353
+ type: {
17354
+ id: string | null;
17355
+ text: string | null;
17356
+ coding: Array<{
17357
+ id: string | null;
17358
+ system: any | null;
17359
+ code: any | null;
17360
+ display: string | null;
17361
+ } | null> | null;
17362
+ } | null;
17363
+ doseRange: {
17364
+ low: {
17365
+ value: number | null;
17366
+ unit: string | null;
17367
+ code: any | null;
17368
+ comparator: any | null;
17369
+ system: any | null;
17370
+ } | null;
17371
+ high: {
17372
+ value: number | null;
17373
+ unit: string | null;
17374
+ code: any | null;
17375
+ comparator: any | null;
17376
+ system: any | null;
17377
+ } | null;
17378
+ } | null;
17379
+ doseQuantity: {
17380
+ value: number | null;
17381
+ unit: string | null;
17382
+ code: any | null;
17383
+ comparator: any | null;
17384
+ system: any | null;
17385
+ } | null;
17386
+ rateQuantity: {
17387
+ value: number | null;
17388
+ unit: string | null;
17389
+ code: any | null;
17390
+ comparator: any | null;
17391
+ system: any | null;
17392
+ } | null;
17393
+ rateRange: {
17394
+ low: {
17395
+ value: number | null;
17396
+ unit: string | null;
17397
+ code: any | null;
17398
+ comparator: any | null;
17399
+ system: any | null;
17400
+ } | null;
17401
+ high: {
17402
+ value: number | null;
17403
+ unit: string | null;
17404
+ code: any | null;
17405
+ comparator: any | null;
17406
+ system: any | null;
17407
+ } | null;
17408
+ } | null;
17409
+ rateRatio: {
17410
+ numerator: {
17411
+ value: number | null;
17412
+ unit: string | null;
17413
+ code: any | null;
17414
+ comparator: any | null;
17415
+ system: any | null;
17416
+ } | null;
17417
+ denominator: {
17418
+ value: number | null;
17419
+ unit: string | null;
17420
+ code: any | null;
17421
+ comparator: any | null;
17422
+ system: any | null;
17423
+ } | null;
17424
+ } | null;
17425
+ } | null> | null;
17426
+ maxDosePerAdministration: {
17427
+ value: number | null;
17428
+ unit: string | null;
17429
+ code: any | null;
17430
+ comparator: any | null;
17431
+ system: any | null;
17432
+ } | null;
17433
+ maxDosePerLifetime: {
17434
+ value: number | null;
17435
+ unit: string | null;
17436
+ code: any | null;
17437
+ comparator: any | null;
17438
+ system: any | null;
17439
+ } | null;
17440
+ maxDosePerPeriod: {
17441
+ numerator: {
17442
+ value: number | null;
17443
+ unit: string | null;
17444
+ code: any | null;
17445
+ comparator: any | null;
17446
+ system: any | null;
17447
+ } | null;
17448
+ denominator: {
17449
+ value: number | null;
17450
+ unit: string | null;
17451
+ code: any | null;
17452
+ comparator: any | null;
17453
+ system: any | null;
17454
+ } | null;
17455
+ } | null;
17456
+ method: {
17457
+ id: string | null;
17458
+ text: string | null;
17459
+ coding: Array<{
17460
+ id: string | null;
17461
+ system: any | null;
17462
+ code: any | null;
17463
+ display: string | null;
17464
+ } | null> | null;
17465
+ } | null;
17466
+ route: {
17467
+ id: string | null;
17468
+ text: string | null;
17469
+ coding: Array<{
17470
+ id: string | null;
17471
+ system: any | null;
17472
+ code: any | null;
17473
+ display: string | null;
17474
+ } | null> | null;
17475
+ } | null;
17476
+ site: {
17477
+ id: string | null;
17478
+ text: string | null;
17479
+ coding: Array<{
17480
+ id: string | null;
17481
+ system: any | null;
17482
+ code: any | null;
17483
+ display: string | null;
17484
+ } | null> | null;
17485
+ } | null;
17486
+ timing: {
17487
+ id: string | null;
17488
+ event: Array<any | null> | null;
17489
+ code: {
17490
+ id: string | null;
17491
+ text: string | null;
17492
+ coding: Array<{
17493
+ id: string | null;
17494
+ system: any | null;
17495
+ code: any | null;
17496
+ display: string | null;
17497
+ } | null> | null;
17498
+ } | null;
17499
+ repeat: {
17500
+ id: string | null;
17501
+ count: number | null;
17502
+ countMax: number | null;
17503
+ dayOfWeek: Array<any | null> | null;
17504
+ duration: number | null;
17505
+ durationMax: number | null;
17506
+ durationUnit: any | null;
17507
+ frequency: number | null;
17508
+ frequencyMax: number | null;
17509
+ offset: number | null;
17510
+ period: number | null;
17511
+ periodMax: number | null;
17512
+ periodUnit: any | null;
17513
+ timeOfDay: Array<any | null> | null;
17514
+ when: Array<any | null> | null;
17515
+ boundsDuration: {
17516
+ value: number | null;
17517
+ unit: string | null;
17518
+ code: any | null;
17519
+ comparator: any | null;
17520
+ system: any | null;
17521
+ } | null;
17522
+ boundsPeriod: {
17523
+ start: any | null;
17524
+ end: any | null;
17525
+ } | null;
17526
+ boundsRange: {
17527
+ low: {
17528
+ value: number | null;
17529
+ unit: string | null;
17530
+ code: any | null;
17531
+ comparator: any | null;
17532
+ system: any | null;
17533
+ } | null;
17534
+ high: {
17535
+ value: number | null;
17536
+ unit: string | null;
17537
+ code: any | null;
17538
+ comparator: any | null;
17539
+ system: any | null;
17540
+ } | null;
17541
+ } | null;
17542
+ } | null;
17543
+ } | null;
17544
+ } | null> | null;
17545
+ dispenseRequest: {
17546
+ id: string | null;
17547
+ numberOfRepeatsAllowed: number | null;
17548
+ dispenseInterval: {
17549
+ value: number | null;
17550
+ unit: string | null;
17551
+ code: any | null;
17552
+ comparator: any | null;
17553
+ system: any | null;
17554
+ } | null;
17555
+ expectedSupplyDuration: {
17556
+ value: number | null;
17557
+ unit: string | null;
17558
+ code: any | null;
17559
+ comparator: any | null;
17560
+ system: any | null;
17561
+ } | null;
17562
+ initialFill: {
17563
+ id: string | null;
17564
+ duration: {
17565
+ value: number | null;
17566
+ unit: string | null;
17567
+ code: any | null;
17568
+ comparator: any | null;
17569
+ system: any | null;
17570
+ } | null;
17571
+ quantity: {
17572
+ value: number | null;
17573
+ unit: string | null;
17574
+ code: any | null;
17575
+ comparator: any | null;
17576
+ system: any | null;
17577
+ } | null;
17578
+ } | null;
17579
+ performer: {
17580
+ id: string | null;
17581
+ reference: string | null;
17582
+ type: any | null;
17583
+ display: string | null;
17584
+ resource: {
17585
+ resourceType: string | null;
17586
+ id: string;
17587
+ name: string | null;
17588
+ active: boolean | null;
17589
+ identifier: Array<{
17590
+ id: string | null;
17591
+ system: any | null;
17592
+ value: string | null;
17593
+ type: {
17594
+ id: string | null;
17595
+ text: string | null;
17596
+ coding: Array<{
17597
+ id: string | null;
17598
+ system: any | null;
17599
+ code: any | null;
17600
+ display: string | null;
17601
+ } | null> | null;
17602
+ } | null;
17603
+ } | null> | null;
17604
+ endpoint: Array<{
17605
+ id: string | null;
17606
+ reference: string | null;
17607
+ type: any | null;
17608
+ resource: {
17609
+ name: string | null;
17610
+ status: any | null;
17611
+ address: any | null;
17612
+ identifier: Array<{
17613
+ id: string | null;
17614
+ system: any | null;
17615
+ value: string | null;
17616
+ type: {
17617
+ id: string | null;
17618
+ text: string | null;
17619
+ coding: Array<{
17620
+ id: string | null;
17621
+ system: any | null;
17622
+ code: any | null;
17623
+ display: string | null;
17624
+ } | null> | null;
17625
+ } | null;
17626
+ } | null> | null;
17627
+ connectionType: {
17628
+ id: string | null;
17629
+ system: any | null;
17630
+ code: any | null;
17631
+ display: string | null;
17632
+ } | null;
17633
+ } | null;
17634
+ } | null> | null;
17635
+ telecom: Array<{
17636
+ id: string | null;
17637
+ system: any | null;
17638
+ value: string | null;
17639
+ use: any | null;
17640
+ rank: number | null;
17641
+ } | null> | null;
17642
+ address: Array<{
17643
+ use: any | null;
17644
+ type: any | null;
17645
+ text: string | null;
17646
+ line: Array<string | null> | null;
17647
+ city: string | null;
17648
+ district: string | null;
17649
+ state: string | null;
17650
+ postalCode: string | null;
17651
+ country: string | null;
17652
+ } | null> | null;
17653
+ type: Array<{
17654
+ id: string | null;
17655
+ text: string | null;
17656
+ coding: Array<{
17657
+ id: string | null;
17658
+ system: any | null;
17659
+ code: any | null;
17660
+ display: string | null;
17661
+ } | null> | null;
17662
+ } | null> | null;
17663
+ } | null;
17664
+ } | null;
17665
+ validityPeriod: {
17666
+ start: any | null;
17667
+ end: any | null;
17668
+ } | null;
17669
+ quantity: {
17670
+ value: number | null;
17671
+ unit: string | null;
17672
+ code: any | null;
17673
+ comparator: any | null;
17674
+ system: any | null;
16382
17675
  } | null;
16383
17676
  } | null;
16384
- dosageInstruction: Array<{
17677
+ reasonCode: Array<{
17678
+ id: string | null;
17679
+ text: string | null;
17680
+ coding: Array<{
17681
+ id: string | null;
17682
+ system: any | null;
17683
+ code: any | null;
17684
+ display: string | null;
17685
+ } | null> | null;
17686
+ } | null> | null;
17687
+ courseOfTherapyType: {
17688
+ id: string | null;
17689
+ text: string | null;
17690
+ coding: Array<{
17691
+ id: string | null;
17692
+ system: any | null;
17693
+ code: any | null;
17694
+ display: string | null;
17695
+ } | null> | null;
17696
+ } | null;
17697
+ } | null;
17698
+ } | null> | null;
17699
+ } | null;
17700
+ };
17701
+ export type GetMedicationStatementsQueryVariables = Types.Exact<{
17702
+ page: Types.InputMaybe<Types.Scalars['Int']['input']>;
17703
+ pageSize: Types.InputMaybe<Types.Scalars['Int']['input']>;
17704
+ code: Types.InputMaybe<Types.SearchToken>;
17705
+ id: Types.InputMaybe<Types.SearchString>;
17706
+ lastUpdated: Types.InputMaybe<Types.SearchDate>;
17707
+ sort: Types.InputMaybe<Array<Types.InputMaybe<Types.Scalars['String']['input']>> | Types.InputMaybe<Types.Scalars['String']['input']>>;
17708
+ status: Types.InputMaybe<Types.SearchToken>;
17709
+ total: Types.InputMaybe<Types.TotalType>;
17710
+ }>;
17711
+ export type GetMedicationStatementsQueryResults = {
17712
+ medicationStatements: {
17713
+ id: string | null;
17714
+ entry: Array<{
17715
+ id: string | null;
17716
+ resource: {
17717
+ id: string;
17718
+ status: any | null;
17719
+ meta: {
17720
+ versionId: string | null;
17721
+ lastUpdated: any | null;
17722
+ source: any | null;
17723
+ security: Array<{
17724
+ id: string | null;
17725
+ system: any | null;
17726
+ code: any | null;
17727
+ display: string | null;
17728
+ } | null> | null;
17729
+ tag: Array<{
17730
+ id: string | null;
17731
+ system: any | null;
17732
+ code: any | null;
17733
+ display: string | null;
17734
+ } | null> | null;
17735
+ } | null;
17736
+ medicationCodeableConcept: {
17737
+ id: string | null;
17738
+ text: string | null;
17739
+ coding: Array<{
17740
+ id: string | null;
17741
+ system: any | null;
17742
+ code: any | null;
17743
+ display: string | null;
17744
+ } | null> | null;
17745
+ } | null;
17746
+ reasonCode: Array<{
17747
+ id: string | null;
17748
+ text: string | null;
17749
+ coding: Array<{
17750
+ id: string | null;
17751
+ system: any | null;
17752
+ code: any | null;
17753
+ display: string | null;
17754
+ } | null> | null;
17755
+ } | null> | null;
17756
+ effectivePeriod: {
17757
+ start: any | null;
17758
+ end: any | null;
17759
+ } | null;
17760
+ dosage: Array<{
16385
17761
  id: string | null;
16386
17762
  asNeededBoolean: boolean | null;
16387
17763
  patientInstruction: string | null;
@@ -16601,158 +17977,11 @@ export type GetMedicationRequestQueryResults = {
16601
17977
  } | null;
16602
17978
  } | null;
16603
17979
  } | null> | null;
16604
- dispenseRequest: {
16605
- id: string | null;
16606
- numberOfRepeatsAllowed: number | null;
16607
- dispenseInterval: {
16608
- value: number | null;
16609
- unit: string | null;
16610
- code: any | null;
16611
- comparator: any | null;
16612
- system: any | null;
16613
- } | null;
16614
- expectedSupplyDuration: {
16615
- value: number | null;
16616
- unit: string | null;
16617
- code: any | null;
16618
- comparator: any | null;
16619
- system: any | null;
16620
- } | null;
16621
- initialFill: {
16622
- id: string | null;
16623
- duration: {
16624
- value: number | null;
16625
- unit: string | null;
16626
- code: any | null;
16627
- comparator: any | null;
16628
- system: any | null;
16629
- } | null;
16630
- quantity: {
16631
- value: number | null;
16632
- unit: string | null;
16633
- code: any | null;
16634
- comparator: any | null;
16635
- system: any | null;
16636
- } | null;
16637
- } | null;
16638
- performer: {
16639
- id: string | null;
16640
- reference: string | null;
16641
- type: any | null;
16642
- display: string | null;
16643
- resource: {
16644
- resourceType: string | null;
16645
- id: string;
16646
- name: string | null;
16647
- active: boolean | null;
16648
- identifier: Array<{
16649
- id: string | null;
16650
- system: any | null;
16651
- value: string | null;
16652
- type: {
16653
- id: string | null;
16654
- text: string | null;
16655
- coding: Array<{
16656
- id: string | null;
16657
- system: any | null;
16658
- code: any | null;
16659
- display: string | null;
16660
- } | null> | null;
16661
- } | null;
16662
- } | null> | null;
16663
- endpoint: Array<{
16664
- id: string | null;
16665
- reference: string | null;
16666
- type: any | null;
16667
- resource: {
16668
- name: string | null;
16669
- status: any | null;
16670
- address: any | null;
16671
- identifier: Array<{
16672
- id: string | null;
16673
- system: any | null;
16674
- value: string | null;
16675
- type: {
16676
- id: string | null;
16677
- text: string | null;
16678
- coding: Array<{
16679
- id: string | null;
16680
- system: any | null;
16681
- code: any | null;
16682
- display: string | null;
16683
- } | null> | null;
16684
- } | null;
16685
- } | null> | null;
16686
- connectionType: {
16687
- id: string | null;
16688
- system: any | null;
16689
- code: any | null;
16690
- display: string | null;
16691
- } | null;
16692
- } | null;
16693
- } | null> | null;
16694
- telecom: Array<{
16695
- id: string | null;
16696
- system: any | null;
16697
- value: string | null;
16698
- use: any | null;
16699
- rank: number | null;
16700
- } | null> | null;
16701
- address: Array<{
16702
- use: any | null;
16703
- type: any | null;
16704
- text: string | null;
16705
- line: Array<string | null> | null;
16706
- city: string | null;
16707
- district: string | null;
16708
- state: string | null;
16709
- postalCode: string | null;
16710
- country: string | null;
16711
- } | null> | null;
16712
- type: Array<{
16713
- id: string | null;
16714
- text: string | null;
16715
- coding: Array<{
16716
- id: string | null;
16717
- system: any | null;
16718
- code: any | null;
16719
- display: string | null;
16720
- } | null> | null;
16721
- } | null> | null;
16722
- } | null;
16723
- } | null;
16724
- validityPeriod: {
16725
- start: any | null;
16726
- end: any | null;
16727
- } | null;
16728
- quantity: {
16729
- value: number | null;
16730
- unit: string | null;
16731
- code: any | null;
16732
- comparator: any | null;
16733
- system: any | null;
16734
- } | null;
16735
- } | null;
16736
- reasonCode: Array<{
17980
+ derivedFrom: Array<{
16737
17981
  id: string | null;
16738
- text: string | null;
16739
- coding: Array<{
16740
- id: string | null;
16741
- system: any | null;
16742
- code: any | null;
16743
- display: string | null;
16744
- } | null> | null;
17982
+ reference: string | null;
17983
+ type: any | null;
16745
17984
  } | null> | null;
16746
- courseOfTherapyType: {
16747
- id: string | null;
16748
- text: string | null;
16749
- coding: Array<{
16750
- id: string | null;
16751
- system: any | null;
16752
- code: any | null;
16753
- display: string | null;
16754
- } | null> | null;
16755
- } | null;
16756
17985
  } | null;
16757
17986
  } | null> | null;
16758
17987
  } | null;