/
EhrIndexer.go
839 lines (686 loc) · 51.6 KB
/
EhrIndexer.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package ehrIndexer
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors.New
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
)
// AttributesAttribute is an auto generated low-level Go binding around an user-defined struct.
type AttributesAttribute struct {
Code uint8
Value []byte
}
// DocGroupsDocGroupCreateParams is an auto generated low-level Go binding around an user-defined struct.
type DocGroupsDocGroupCreateParams struct {
GroupIDHash [32]byte
Attrs []AttributesAttribute
Signer common.Address
Deadline *big.Int
Signature []byte
}
// IAccessStoreAccess is an auto generated low-level Go binding around an user-defined struct.
type IAccessStoreAccess struct {
Kind uint8
IdHash [32]byte
IdEncr []byte
KeyEncr []byte
Level uint8
}
// IDocsAddEhrDocParams is an auto generated low-level Go binding around an user-defined struct.
type IDocsAddEhrDocParams struct {
DocType uint8
Id []byte
Version []byte
Timestamp uint32
Attrs []AttributesAttribute
Signer common.Address
Deadline *big.Int
Signature []byte
}
// IDocsDocumentMeta is an auto generated low-level Go binding around an user-defined struct.
type IDocsDocumentMeta struct {
Status uint8
Id []byte
Version []byte
Timestamp uint32
IsLast bool
Attrs []AttributesAttribute
}
// EhrIndexerMetaData contains all meta data concerning the EhrIndexer contract.
var EhrIndexerMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_users\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"accessStore\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enumIDocs.Type\",\"name\":\"docType\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"id\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"version\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"components\":[{\"internalType\":\"enumAttributes.Code\",\"name\":\"code\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structAttributes.Attribute[]\",\"name\":\"attrs\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structIDocs.AddEhrDocParams\",\"name\":\"p\",\"type\":\"tuple\"}],\"name\":\"addEhrDoc\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowedChange\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"ehrId\",\"type\":\"bytes32\"},{\"internalType\":\"enumIDocs.Type\",\"name\":\"docType\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"docBaseUIDHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"version\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"deleteDoc\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"groupIDHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"docCIDHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"docCIDEncr\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"docGroupAddDoc\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"groupIDHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"enumAttributes.Code\",\"name\":\"code\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structAttributes.Attribute[]\",\"name\":\"attrs\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structDocGroups.DocGroupCreateParams\",\"name\":\"p\",\"type\":\"tuple\"}],\"name\":\"docGroupCreate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"groupIdHash\",\"type\":\"bytes32\"}],\"name\":\"docGroupGetAttrs\",\"outputs\":[{\"components\":[{\"internalType\":\"enumAttributes.Code\",\"name\":\"code\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structAttributes.Attribute[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"groupIdHash\",\"type\":\"bytes32\"}],\"name\":\"docGroupGetDocs\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"\",\"type\":\"bytes[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ehrIndex\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"ehrSubject\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"ehrID\",\"type\":\"bytes32\"},{\"internalType\":\"enumIDocs.Type\",\"name\":\"docType\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"getDocByTime\",\"outputs\":[{\"components\":[{\"internalType\":\"enumIDocs.Status\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"id\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"version\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"isLast\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"enumAttributes.Code\",\"name\":\"code\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structAttributes.Attribute[]\",\"name\":\"attrs\",\"type\":\"tuple[]\"}],\"internalType\":\"structIDocs.DocumentMeta\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"ehrId\",\"type\":\"bytes32\"},{\"internalType\":\"enumIDocs.Type\",\"name\":\"docType\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"docBaseUIDHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"version\",\"type\":\"bytes32\"}],\"name\":\"getDocByVersion\",\"outputs\":[{\"components\":[{\"internalType\":\"enumIDocs.Status\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"id\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"version\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"isLast\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"enumAttributes.Code\",\"name\":\"code\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structAttributes.Attribute[]\",\"name\":\"attrs\",\"type\":\"tuple[]\"}],\"internalType\":\"structIDocs.DocumentMeta\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"userIDHash\",\"type\":\"bytes32\"},{\"internalType\":\"enumIDocs.Type\",\"name\":\"docType\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"UIDHash\",\"type\":\"bytes32\"}],\"name\":\"getDocLastByBaseID\",\"outputs\":[{\"components\":[{\"internalType\":\"enumIDocs.Status\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"id\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"version\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"isLast\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"enumAttributes.Code\",\"name\":\"code\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structAttributes.Attribute[]\",\"name\":\"attrs\",\"type\":\"tuple[]\"}],\"internalType\":\"structIDocs.DocumentMeta\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"userIDHash\",\"type\":\"bytes32\"},{\"internalType\":\"enumIDocs.Type\",\"name\":\"docType\",\"type\":\"uint8\"}],\"name\":\"getEhrDocs\",\"outputs\":[{\"components\":[{\"internalType\":\"enumIDocs.Status\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"id\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"version\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"isLast\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"enumAttributes.Code\",\"name\":\"code\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structAttributes.Attribute[]\",\"name\":\"attrs\",\"type\":\"tuple[]\"}],\"internalType\":\"structIDocs.DocumentMeta[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"userIDHash\",\"type\":\"bytes32\"}],\"name\":\"getEhrUser\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"ehrId\",\"type\":\"bytes32\"},{\"internalType\":\"enumIDocs.Type\",\"name\":\"docType\",\"type\":\"uint8\"}],\"name\":\"getLastEhrDocByType\",\"outputs\":[{\"components\":[{\"internalType\":\"enumIDocs.Status\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"id\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"version\",\"type\":\"bytes\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"isLast\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"enumAttributes.Code\",\"name\":\"code\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"value\",\"type\":\"bytes\"}],\"internalType\":\"structAttributes.Attribute[]\",\"name\":\"attrs\",\"type\":\"tuple[]\"}],\"internalType\":\"structIDocs.DocumentMeta\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"accessID\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"enumIAccessStore.AccessKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"idHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"idEncr\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"keyEncr\",\"type\":\"bytes\"},{\"internalType\":\"enumIAccessStore.AccessLevel\",\"name\":\"level\",\"type\":\"uint8\"}],\"internalType\":\"structIAccessStore.Access\",\"name\":\"a\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"setAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowed\",\"type\":\"bool\"}],\"name\":\"setAllowed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subjectKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"ehrId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"setEhrSubject\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"IDHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"ehrId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"setEhrUser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"users\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
// EhrIndexerABI is the input ABI used to generate the binding from.
// Deprecated: Use EhrIndexerMetaData.ABI instead.
var EhrIndexerABI = EhrIndexerMetaData.ABI
// EhrIndexer is an auto generated Go binding around an Ethereum contract.
type EhrIndexer struct {
EhrIndexerCaller // Read-only binding to the contract
EhrIndexerTransactor // Write-only binding to the contract
EhrIndexerFilterer // Log filterer for contract events
}
// EhrIndexerCaller is an auto generated read-only Go binding around an Ethereum contract.
type EhrIndexerCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// EhrIndexerTransactor is an auto generated write-only Go binding around an Ethereum contract.
type EhrIndexerTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// EhrIndexerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type EhrIndexerFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// EhrIndexerSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type EhrIndexerSession struct {
Contract *EhrIndexer // Generic contract binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// EhrIndexerCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type EhrIndexerCallerSession struct {
Contract *EhrIndexerCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// EhrIndexerTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type EhrIndexerTransactorSession struct {
Contract *EhrIndexerTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// EhrIndexerRaw is an auto generated low-level Go binding around an Ethereum contract.
type EhrIndexerRaw struct {
Contract *EhrIndexer // Generic contract binding to access the raw methods on
}
// EhrIndexerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type EhrIndexerCallerRaw struct {
Contract *EhrIndexerCaller // Generic read-only contract binding to access the raw methods on
}
// EhrIndexerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type EhrIndexerTransactorRaw struct {
Contract *EhrIndexerTransactor // Generic write-only contract binding to access the raw methods on
}
// NewEhrIndexer creates a new instance of EhrIndexer, bound to a specific deployed contract.
func NewEhrIndexer(address common.Address, backend bind.ContractBackend) (*EhrIndexer, error) {
contract, err := bindEhrIndexer(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &EhrIndexer{EhrIndexerCaller: EhrIndexerCaller{contract: contract}, EhrIndexerTransactor: EhrIndexerTransactor{contract: contract}, EhrIndexerFilterer: EhrIndexerFilterer{contract: contract}}, nil
}
// NewEhrIndexerCaller creates a new read-only instance of EhrIndexer, bound to a specific deployed contract.
func NewEhrIndexerCaller(address common.Address, caller bind.ContractCaller) (*EhrIndexerCaller, error) {
contract, err := bindEhrIndexer(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &EhrIndexerCaller{contract: contract}, nil
}
// NewEhrIndexerTransactor creates a new write-only instance of EhrIndexer, bound to a specific deployed contract.
func NewEhrIndexerTransactor(address common.Address, transactor bind.ContractTransactor) (*EhrIndexerTransactor, error) {
contract, err := bindEhrIndexer(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &EhrIndexerTransactor{contract: contract}, nil
}
// NewEhrIndexerFilterer creates a new log filterer instance of EhrIndexer, bound to a specific deployed contract.
func NewEhrIndexerFilterer(address common.Address, filterer bind.ContractFilterer) (*EhrIndexerFilterer, error) {
contract, err := bindEhrIndexer(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &EhrIndexerFilterer{contract: contract}, nil
}
// bindEhrIndexer binds a generic wrapper to an already deployed contract.
func bindEhrIndexer(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(EhrIndexerABI))
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_EhrIndexer *EhrIndexerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _EhrIndexer.Contract.EhrIndexerCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_EhrIndexer *EhrIndexerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _EhrIndexer.Contract.EhrIndexerTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_EhrIndexer *EhrIndexerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _EhrIndexer.Contract.EhrIndexerTransactor.contract.Transact(opts, method, params...)
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_EhrIndexer *EhrIndexerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _EhrIndexer.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_EhrIndexer *EhrIndexerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _EhrIndexer.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_EhrIndexer *EhrIndexerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _EhrIndexer.Contract.contract.Transact(opts, method, params...)
}
// AccessStore is a free data retrieval call binding the contract method 0x45e9ea6f.
//
// Solidity: function accessStore() view returns(address)
func (_EhrIndexer *EhrIndexerCaller) AccessStore(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "accessStore")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// AccessStore is a free data retrieval call binding the contract method 0x45e9ea6f.
//
// Solidity: function accessStore() view returns(address)
func (_EhrIndexer *EhrIndexerSession) AccessStore() (common.Address, error) {
return _EhrIndexer.Contract.AccessStore(&_EhrIndexer.CallOpts)
}
// AccessStore is a free data retrieval call binding the contract method 0x45e9ea6f.
//
// Solidity: function accessStore() view returns(address)
func (_EhrIndexer *EhrIndexerCallerSession) AccessStore() (common.Address, error) {
return _EhrIndexer.Contract.AccessStore(&_EhrIndexer.CallOpts)
}
// AllowedChange is a free data retrieval call binding the contract method 0xe9b5b29a.
//
// Solidity: function allowedChange(address ) view returns(bool)
func (_EhrIndexer *EhrIndexerCaller) AllowedChange(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "allowedChange", arg0)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// AllowedChange is a free data retrieval call binding the contract method 0xe9b5b29a.
//
// Solidity: function allowedChange(address ) view returns(bool)
func (_EhrIndexer *EhrIndexerSession) AllowedChange(arg0 common.Address) (bool, error) {
return _EhrIndexer.Contract.AllowedChange(&_EhrIndexer.CallOpts, arg0)
}
// AllowedChange is a free data retrieval call binding the contract method 0xe9b5b29a.
//
// Solidity: function allowedChange(address ) view returns(bool)
func (_EhrIndexer *EhrIndexerCallerSession) AllowedChange(arg0 common.Address) (bool, error) {
return _EhrIndexer.Contract.AllowedChange(&_EhrIndexer.CallOpts, arg0)
}
// DocGroupGetAttrs is a free data retrieval call binding the contract method 0x891c952e.
//
// Solidity: function docGroupGetAttrs(bytes32 groupIdHash) view returns((uint8,bytes)[])
func (_EhrIndexer *EhrIndexerCaller) DocGroupGetAttrs(opts *bind.CallOpts, groupIdHash [32]byte) ([]AttributesAttribute, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "docGroupGetAttrs", groupIdHash)
if err != nil {
return *new([]AttributesAttribute), err
}
out0 := *abi.ConvertType(out[0], new([]AttributesAttribute)).(*[]AttributesAttribute)
return out0, err
}
// DocGroupGetAttrs is a free data retrieval call binding the contract method 0x891c952e.
//
// Solidity: function docGroupGetAttrs(bytes32 groupIdHash) view returns((uint8,bytes)[])
func (_EhrIndexer *EhrIndexerSession) DocGroupGetAttrs(groupIdHash [32]byte) ([]AttributesAttribute, error) {
return _EhrIndexer.Contract.DocGroupGetAttrs(&_EhrIndexer.CallOpts, groupIdHash)
}
// DocGroupGetAttrs is a free data retrieval call binding the contract method 0x891c952e.
//
// Solidity: function docGroupGetAttrs(bytes32 groupIdHash) view returns((uint8,bytes)[])
func (_EhrIndexer *EhrIndexerCallerSession) DocGroupGetAttrs(groupIdHash [32]byte) ([]AttributesAttribute, error) {
return _EhrIndexer.Contract.DocGroupGetAttrs(&_EhrIndexer.CallOpts, groupIdHash)
}
// DocGroupGetDocs is a free data retrieval call binding the contract method 0x88216834.
//
// Solidity: function docGroupGetDocs(bytes32 groupIdHash) view returns(bytes[])
func (_EhrIndexer *EhrIndexerCaller) DocGroupGetDocs(opts *bind.CallOpts, groupIdHash [32]byte) ([][]byte, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "docGroupGetDocs", groupIdHash)
if err != nil {
return *new([][]byte), err
}
out0 := *abi.ConvertType(out[0], new([][]byte)).(*[][]byte)
return out0, err
}
// DocGroupGetDocs is a free data retrieval call binding the contract method 0x88216834.
//
// Solidity: function docGroupGetDocs(bytes32 groupIdHash) view returns(bytes[])
func (_EhrIndexer *EhrIndexerSession) DocGroupGetDocs(groupIdHash [32]byte) ([][]byte, error) {
return _EhrIndexer.Contract.DocGroupGetDocs(&_EhrIndexer.CallOpts, groupIdHash)
}
// DocGroupGetDocs is a free data retrieval call binding the contract method 0x88216834.
//
// Solidity: function docGroupGetDocs(bytes32 groupIdHash) view returns(bytes[])
func (_EhrIndexer *EhrIndexerCallerSession) DocGroupGetDocs(groupIdHash [32]byte) ([][]byte, error) {
return _EhrIndexer.Contract.DocGroupGetDocs(&_EhrIndexer.CallOpts, groupIdHash)
}
// EhrIndex is a free data retrieval call binding the contract method 0x98655acb.
//
// Solidity: function ehrIndex() view returns(address)
func (_EhrIndexer *EhrIndexerCaller) EhrIndex(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "ehrIndex")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// EhrIndex is a free data retrieval call binding the contract method 0x98655acb.
//
// Solidity: function ehrIndex() view returns(address)
func (_EhrIndexer *EhrIndexerSession) EhrIndex() (common.Address, error) {
return _EhrIndexer.Contract.EhrIndex(&_EhrIndexer.CallOpts)
}
// EhrIndex is a free data retrieval call binding the contract method 0x98655acb.
//
// Solidity: function ehrIndex() view returns(address)
func (_EhrIndexer *EhrIndexerCallerSession) EhrIndex() (common.Address, error) {
return _EhrIndexer.Contract.EhrIndex(&_EhrIndexer.CallOpts)
}
// EhrSubject is a free data retrieval call binding the contract method 0xfe1b5580.
//
// Solidity: function ehrSubject(bytes32 ) view returns(bytes32)
func (_EhrIndexer *EhrIndexerCaller) EhrSubject(opts *bind.CallOpts, arg0 [32]byte) ([32]byte, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "ehrSubject", arg0)
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// EhrSubject is a free data retrieval call binding the contract method 0xfe1b5580.
//
// Solidity: function ehrSubject(bytes32 ) view returns(bytes32)
func (_EhrIndexer *EhrIndexerSession) EhrSubject(arg0 [32]byte) ([32]byte, error) {
return _EhrIndexer.Contract.EhrSubject(&_EhrIndexer.CallOpts, arg0)
}
// EhrSubject is a free data retrieval call binding the contract method 0xfe1b5580.
//
// Solidity: function ehrSubject(bytes32 ) view returns(bytes32)
func (_EhrIndexer *EhrIndexerCallerSession) EhrSubject(arg0 [32]byte) ([32]byte, error) {
return _EhrIndexer.Contract.EhrSubject(&_EhrIndexer.CallOpts, arg0)
}
// GetDocByTime is a free data retrieval call binding the contract method 0x4f722b16.
//
// Solidity: function getDocByTime(bytes32 ehrID, uint8 docType, uint32 timestamp) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerCaller) GetDocByTime(opts *bind.CallOpts, ehrID [32]byte, docType uint8, timestamp uint32) (IDocsDocumentMeta, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "getDocByTime", ehrID, docType, timestamp)
if err != nil {
return *new(IDocsDocumentMeta), err
}
out0 := *abi.ConvertType(out[0], new(IDocsDocumentMeta)).(*IDocsDocumentMeta)
return out0, err
}
// GetDocByTime is a free data retrieval call binding the contract method 0x4f722b16.
//
// Solidity: function getDocByTime(bytes32 ehrID, uint8 docType, uint32 timestamp) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerSession) GetDocByTime(ehrID [32]byte, docType uint8, timestamp uint32) (IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetDocByTime(&_EhrIndexer.CallOpts, ehrID, docType, timestamp)
}
// GetDocByTime is a free data retrieval call binding the contract method 0x4f722b16.
//
// Solidity: function getDocByTime(bytes32 ehrID, uint8 docType, uint32 timestamp) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerCallerSession) GetDocByTime(ehrID [32]byte, docType uint8, timestamp uint32) (IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetDocByTime(&_EhrIndexer.CallOpts, ehrID, docType, timestamp)
}
// GetDocByVersion is a free data retrieval call binding the contract method 0x179fcacf.
//
// Solidity: function getDocByVersion(bytes32 ehrId, uint8 docType, bytes32 docBaseUIDHash, bytes32 version) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerCaller) GetDocByVersion(opts *bind.CallOpts, ehrId [32]byte, docType uint8, docBaseUIDHash [32]byte, version [32]byte) (IDocsDocumentMeta, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "getDocByVersion", ehrId, docType, docBaseUIDHash, version)
if err != nil {
return *new(IDocsDocumentMeta), err
}
out0 := *abi.ConvertType(out[0], new(IDocsDocumentMeta)).(*IDocsDocumentMeta)
return out0, err
}
// GetDocByVersion is a free data retrieval call binding the contract method 0x179fcacf.
//
// Solidity: function getDocByVersion(bytes32 ehrId, uint8 docType, bytes32 docBaseUIDHash, bytes32 version) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerSession) GetDocByVersion(ehrId [32]byte, docType uint8, docBaseUIDHash [32]byte, version [32]byte) (IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetDocByVersion(&_EhrIndexer.CallOpts, ehrId, docType, docBaseUIDHash, version)
}
// GetDocByVersion is a free data retrieval call binding the contract method 0x179fcacf.
//
// Solidity: function getDocByVersion(bytes32 ehrId, uint8 docType, bytes32 docBaseUIDHash, bytes32 version) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerCallerSession) GetDocByVersion(ehrId [32]byte, docType uint8, docBaseUIDHash [32]byte, version [32]byte) (IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetDocByVersion(&_EhrIndexer.CallOpts, ehrId, docType, docBaseUIDHash, version)
}
// GetDocLastByBaseID is a free data retrieval call binding the contract method 0x949c8e77.
//
// Solidity: function getDocLastByBaseID(bytes32 userIDHash, uint8 docType, bytes32 UIDHash) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerCaller) GetDocLastByBaseID(opts *bind.CallOpts, userIDHash [32]byte, docType uint8, UIDHash [32]byte) (IDocsDocumentMeta, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "getDocLastByBaseID", userIDHash, docType, UIDHash)
if err != nil {
return *new(IDocsDocumentMeta), err
}
out0 := *abi.ConvertType(out[0], new(IDocsDocumentMeta)).(*IDocsDocumentMeta)
return out0, err
}
// GetDocLastByBaseID is a free data retrieval call binding the contract method 0x949c8e77.
//
// Solidity: function getDocLastByBaseID(bytes32 userIDHash, uint8 docType, bytes32 UIDHash) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerSession) GetDocLastByBaseID(userIDHash [32]byte, docType uint8, UIDHash [32]byte) (IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetDocLastByBaseID(&_EhrIndexer.CallOpts, userIDHash, docType, UIDHash)
}
// GetDocLastByBaseID is a free data retrieval call binding the contract method 0x949c8e77.
//
// Solidity: function getDocLastByBaseID(bytes32 userIDHash, uint8 docType, bytes32 UIDHash) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerCallerSession) GetDocLastByBaseID(userIDHash [32]byte, docType uint8, UIDHash [32]byte) (IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetDocLastByBaseID(&_EhrIndexer.CallOpts, userIDHash, docType, UIDHash)
}
// GetEhrDocs is a free data retrieval call binding the contract method 0xeec6b331.
//
// Solidity: function getEhrDocs(bytes32 userIDHash, uint8 docType) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[])[])
func (_EhrIndexer *EhrIndexerCaller) GetEhrDocs(opts *bind.CallOpts, userIDHash [32]byte, docType uint8) ([]IDocsDocumentMeta, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "getEhrDocs", userIDHash, docType)
if err != nil {
return *new([]IDocsDocumentMeta), err
}
out0 := *abi.ConvertType(out[0], new([]IDocsDocumentMeta)).(*[]IDocsDocumentMeta)
return out0, err
}
// GetEhrDocs is a free data retrieval call binding the contract method 0xeec6b331.
//
// Solidity: function getEhrDocs(bytes32 userIDHash, uint8 docType) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[])[])
func (_EhrIndexer *EhrIndexerSession) GetEhrDocs(userIDHash [32]byte, docType uint8) ([]IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetEhrDocs(&_EhrIndexer.CallOpts, userIDHash, docType)
}
// GetEhrDocs is a free data retrieval call binding the contract method 0xeec6b331.
//
// Solidity: function getEhrDocs(bytes32 userIDHash, uint8 docType) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[])[])
func (_EhrIndexer *EhrIndexerCallerSession) GetEhrDocs(userIDHash [32]byte, docType uint8) ([]IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetEhrDocs(&_EhrIndexer.CallOpts, userIDHash, docType)
}
// GetEhrUser is a free data retrieval call binding the contract method 0xf228d6f0.
//
// Solidity: function getEhrUser(bytes32 userIDHash) view returns(bytes32)
func (_EhrIndexer *EhrIndexerCaller) GetEhrUser(opts *bind.CallOpts, userIDHash [32]byte) ([32]byte, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "getEhrUser", userIDHash)
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
}
// GetEhrUser is a free data retrieval call binding the contract method 0xf228d6f0.
//
// Solidity: function getEhrUser(bytes32 userIDHash) view returns(bytes32)
func (_EhrIndexer *EhrIndexerSession) GetEhrUser(userIDHash [32]byte) ([32]byte, error) {
return _EhrIndexer.Contract.GetEhrUser(&_EhrIndexer.CallOpts, userIDHash)
}
// GetEhrUser is a free data retrieval call binding the contract method 0xf228d6f0.
//
// Solidity: function getEhrUser(bytes32 userIDHash) view returns(bytes32)
func (_EhrIndexer *EhrIndexerCallerSession) GetEhrUser(userIDHash [32]byte) ([32]byte, error) {
return _EhrIndexer.Contract.GetEhrUser(&_EhrIndexer.CallOpts, userIDHash)
}
// GetLastEhrDocByType is a free data retrieval call binding the contract method 0x15dbcf1a.
//
// Solidity: function getLastEhrDocByType(bytes32 ehrId, uint8 docType) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerCaller) GetLastEhrDocByType(opts *bind.CallOpts, ehrId [32]byte, docType uint8) (IDocsDocumentMeta, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "getLastEhrDocByType", ehrId, docType)
if err != nil {
return *new(IDocsDocumentMeta), err
}
out0 := *abi.ConvertType(out[0], new(IDocsDocumentMeta)).(*IDocsDocumentMeta)
return out0, err
}
// GetLastEhrDocByType is a free data retrieval call binding the contract method 0x15dbcf1a.
//
// Solidity: function getLastEhrDocByType(bytes32 ehrId, uint8 docType) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerSession) GetLastEhrDocByType(ehrId [32]byte, docType uint8) (IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetLastEhrDocByType(&_EhrIndexer.CallOpts, ehrId, docType)
}
// GetLastEhrDocByType is a free data retrieval call binding the contract method 0x15dbcf1a.
//
// Solidity: function getLastEhrDocByType(bytes32 ehrId, uint8 docType) view returns((uint8,bytes,bytes,uint32,bool,(uint8,bytes)[]))
func (_EhrIndexer *EhrIndexerCallerSession) GetLastEhrDocByType(ehrId [32]byte, docType uint8) (IDocsDocumentMeta, error) {
return _EhrIndexer.Contract.GetLastEhrDocByType(&_EhrIndexer.CallOpts, ehrId, docType)
}
// Users is a free data retrieval call binding the contract method 0xf2020275.
//
// Solidity: function users() view returns(address)
func (_EhrIndexer *EhrIndexerCaller) Users(opts *bind.CallOpts) (common.Address, error) {
var out []interface{}
err := _EhrIndexer.contract.Call(opts, &out, "users")
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
return out0, err
}
// Users is a free data retrieval call binding the contract method 0xf2020275.
//
// Solidity: function users() view returns(address)
func (_EhrIndexer *EhrIndexerSession) Users() (common.Address, error) {
return _EhrIndexer.Contract.Users(&_EhrIndexer.CallOpts)
}
// Users is a free data retrieval call binding the contract method 0xf2020275.
//
// Solidity: function users() view returns(address)
func (_EhrIndexer *EhrIndexerCallerSession) Users() (common.Address, error) {
return _EhrIndexer.Contract.Users(&_EhrIndexer.CallOpts)
}
// AddEhrDoc is a paid mutator transaction binding the contract method 0xa58c2acb.
//
// Solidity: function addEhrDoc((uint8,bytes,bytes,uint32,(uint8,bytes)[],address,uint256,bytes) p) returns()
func (_EhrIndexer *EhrIndexerTransactor) AddEhrDoc(opts *bind.TransactOpts, p IDocsAddEhrDocParams) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "addEhrDoc", p)
}
// AddEhrDoc is a paid mutator transaction binding the contract method 0xa58c2acb.
//
// Solidity: function addEhrDoc((uint8,bytes,bytes,uint32,(uint8,bytes)[],address,uint256,bytes) p) returns()
func (_EhrIndexer *EhrIndexerSession) AddEhrDoc(p IDocsAddEhrDocParams) (*types.Transaction, error) {
return _EhrIndexer.Contract.AddEhrDoc(&_EhrIndexer.TransactOpts, p)
}
// AddEhrDoc is a paid mutator transaction binding the contract method 0xa58c2acb.
//
// Solidity: function addEhrDoc((uint8,bytes,bytes,uint32,(uint8,bytes)[],address,uint256,bytes) p) returns()
func (_EhrIndexer *EhrIndexerTransactorSession) AddEhrDoc(p IDocsAddEhrDocParams) (*types.Transaction, error) {
return _EhrIndexer.Contract.AddEhrDoc(&_EhrIndexer.TransactOpts, p)
}
// DeleteDoc is a paid mutator transaction binding the contract method 0x55afad99.
//
// Solidity: function deleteDoc(bytes32 ehrId, uint8 docType, bytes32 docBaseUIDHash, bytes32 version, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactor) DeleteDoc(opts *bind.TransactOpts, ehrId [32]byte, docType uint8, docBaseUIDHash [32]byte, version [32]byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "deleteDoc", ehrId, docType, docBaseUIDHash, version, signer, deadline, signature)
}
// DeleteDoc is a paid mutator transaction binding the contract method 0x55afad99.
//
// Solidity: function deleteDoc(bytes32 ehrId, uint8 docType, bytes32 docBaseUIDHash, bytes32 version, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerSession) DeleteDoc(ehrId [32]byte, docType uint8, docBaseUIDHash [32]byte, version [32]byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.DeleteDoc(&_EhrIndexer.TransactOpts, ehrId, docType, docBaseUIDHash, version, signer, deadline, signature)
}
// DeleteDoc is a paid mutator transaction binding the contract method 0x55afad99.
//
// Solidity: function deleteDoc(bytes32 ehrId, uint8 docType, bytes32 docBaseUIDHash, bytes32 version, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactorSession) DeleteDoc(ehrId [32]byte, docType uint8, docBaseUIDHash [32]byte, version [32]byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.DeleteDoc(&_EhrIndexer.TransactOpts, ehrId, docType, docBaseUIDHash, version, signer, deadline, signature)
}
// DocGroupAddDoc is a paid mutator transaction binding the contract method 0xf850642d.
//
// Solidity: function docGroupAddDoc(bytes32 groupIDHash, bytes32 docCIDHash, bytes docCIDEncr, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactor) DocGroupAddDoc(opts *bind.TransactOpts, groupIDHash [32]byte, docCIDHash [32]byte, docCIDEncr []byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "docGroupAddDoc", groupIDHash, docCIDHash, docCIDEncr, signer, deadline, signature)
}
// DocGroupAddDoc is a paid mutator transaction binding the contract method 0xf850642d.
//
// Solidity: function docGroupAddDoc(bytes32 groupIDHash, bytes32 docCIDHash, bytes docCIDEncr, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerSession) DocGroupAddDoc(groupIDHash [32]byte, docCIDHash [32]byte, docCIDEncr []byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.DocGroupAddDoc(&_EhrIndexer.TransactOpts, groupIDHash, docCIDHash, docCIDEncr, signer, deadline, signature)
}
// DocGroupAddDoc is a paid mutator transaction binding the contract method 0xf850642d.
//
// Solidity: function docGroupAddDoc(bytes32 groupIDHash, bytes32 docCIDHash, bytes docCIDEncr, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactorSession) DocGroupAddDoc(groupIDHash [32]byte, docCIDHash [32]byte, docCIDEncr []byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.DocGroupAddDoc(&_EhrIndexer.TransactOpts, groupIDHash, docCIDHash, docCIDEncr, signer, deadline, signature)
}
// DocGroupCreate is a paid mutator transaction binding the contract method 0xef96a5cd.
//
// Solidity: function docGroupCreate((bytes32,(uint8,bytes)[],address,uint256,bytes) p) returns()
func (_EhrIndexer *EhrIndexerTransactor) DocGroupCreate(opts *bind.TransactOpts, p DocGroupsDocGroupCreateParams) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "docGroupCreate", p)
}
// DocGroupCreate is a paid mutator transaction binding the contract method 0xef96a5cd.
//
// Solidity: function docGroupCreate((bytes32,(uint8,bytes)[],address,uint256,bytes) p) returns()
func (_EhrIndexer *EhrIndexerSession) DocGroupCreate(p DocGroupsDocGroupCreateParams) (*types.Transaction, error) {
return _EhrIndexer.Contract.DocGroupCreate(&_EhrIndexer.TransactOpts, p)
}
// DocGroupCreate is a paid mutator transaction binding the contract method 0xef96a5cd.
//
// Solidity: function docGroupCreate((bytes32,(uint8,bytes)[],address,uint256,bytes) p) returns()
func (_EhrIndexer *EhrIndexerTransactorSession) DocGroupCreate(p DocGroupsDocGroupCreateParams) (*types.Transaction, error) {
return _EhrIndexer.Contract.DocGroupCreate(&_EhrIndexer.TransactOpts, p)
}
// Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
//
// Solidity: function multicall(bytes[] data) returns(bytes[] results)
func (_EhrIndexer *EhrIndexerTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "multicall", data)
}
// Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
//
// Solidity: function multicall(bytes[] data) returns(bytes[] results)
func (_EhrIndexer *EhrIndexerSession) Multicall(data [][]byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.Multicall(&_EhrIndexer.TransactOpts, data)
}
// Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
//
// Solidity: function multicall(bytes[] data) returns(bytes[] results)
func (_EhrIndexer *EhrIndexerTransactorSession) Multicall(data [][]byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.Multicall(&_EhrIndexer.TransactOpts, data)
}
// SetAccess is a paid mutator transaction binding the contract method 0x04847979.
//
// Solidity: function setAccess(bytes32 accessID, (uint8,bytes32,bytes,bytes,uint8) a, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactor) SetAccess(opts *bind.TransactOpts, accessID [32]byte, a IAccessStoreAccess, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "setAccess", accessID, a, signer, deadline, signature)
}
// SetAccess is a paid mutator transaction binding the contract method 0x04847979.
//
// Solidity: function setAccess(bytes32 accessID, (uint8,bytes32,bytes,bytes,uint8) a, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerSession) SetAccess(accessID [32]byte, a IAccessStoreAccess, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.SetAccess(&_EhrIndexer.TransactOpts, accessID, a, signer, deadline, signature)
}
// SetAccess is a paid mutator transaction binding the contract method 0x04847979.
//
// Solidity: function setAccess(bytes32 accessID, (uint8,bytes32,bytes,bytes,uint8) a, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactorSession) SetAccess(accessID [32]byte, a IAccessStoreAccess, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.SetAccess(&_EhrIndexer.TransactOpts, accessID, a, signer, deadline, signature)
}
// SetAllowed is a paid mutator transaction binding the contract method 0x4697f05d.
//
// Solidity: function setAllowed(address addr, bool allowed) returns()
func (_EhrIndexer *EhrIndexerTransactor) SetAllowed(opts *bind.TransactOpts, addr common.Address, allowed bool) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "setAllowed", addr, allowed)
}
// SetAllowed is a paid mutator transaction binding the contract method 0x4697f05d.
//
// Solidity: function setAllowed(address addr, bool allowed) returns()
func (_EhrIndexer *EhrIndexerSession) SetAllowed(addr common.Address, allowed bool) (*types.Transaction, error) {
return _EhrIndexer.Contract.SetAllowed(&_EhrIndexer.TransactOpts, addr, allowed)
}
// SetAllowed is a paid mutator transaction binding the contract method 0x4697f05d.
//
// Solidity: function setAllowed(address addr, bool allowed) returns()
func (_EhrIndexer *EhrIndexerTransactorSession) SetAllowed(addr common.Address, allowed bool) (*types.Transaction, error) {
return _EhrIndexer.Contract.SetAllowed(&_EhrIndexer.TransactOpts, addr, allowed)
}
// SetEhrSubject is a paid mutator transaction binding the contract method 0x72d5313a.
//
// Solidity: function setEhrSubject(bytes32 subjectKey, bytes32 ehrId, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactor) SetEhrSubject(opts *bind.TransactOpts, subjectKey [32]byte, ehrId [32]byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "setEhrSubject", subjectKey, ehrId, signer, deadline, signature)
}
// SetEhrSubject is a paid mutator transaction binding the contract method 0x72d5313a.
//
// Solidity: function setEhrSubject(bytes32 subjectKey, bytes32 ehrId, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerSession) SetEhrSubject(subjectKey [32]byte, ehrId [32]byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.SetEhrSubject(&_EhrIndexer.TransactOpts, subjectKey, ehrId, signer, deadline, signature)
}
// SetEhrSubject is a paid mutator transaction binding the contract method 0x72d5313a.
//
// Solidity: function setEhrSubject(bytes32 subjectKey, bytes32 ehrId, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactorSession) SetEhrSubject(subjectKey [32]byte, ehrId [32]byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.SetEhrSubject(&_EhrIndexer.TransactOpts, subjectKey, ehrId, signer, deadline, signature)
}
// SetEhrUser is a paid mutator transaction binding the contract method 0x2f87519b.
//
// Solidity: function setEhrUser(bytes32 IDHash, bytes32 ehrId, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactor) SetEhrUser(opts *bind.TransactOpts, IDHash [32]byte, ehrId [32]byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "setEhrUser", IDHash, ehrId, signer, deadline, signature)
}
// SetEhrUser is a paid mutator transaction binding the contract method 0x2f87519b.
//
// Solidity: function setEhrUser(bytes32 IDHash, bytes32 ehrId, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerSession) SetEhrUser(IDHash [32]byte, ehrId [32]byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.SetEhrUser(&_EhrIndexer.TransactOpts, IDHash, ehrId, signer, deadline, signature)
}
// SetEhrUser is a paid mutator transaction binding the contract method 0x2f87519b.
//
// Solidity: function setEhrUser(bytes32 IDHash, bytes32 ehrId, address signer, uint256 deadline, bytes signature) returns()
func (_EhrIndexer *EhrIndexerTransactorSession) SetEhrUser(IDHash [32]byte, ehrId [32]byte, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error) {
return _EhrIndexer.Contract.SetEhrUser(&_EhrIndexer.TransactOpts, IDHash, ehrId, signer, deadline, signature)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_EhrIndexer *EhrIndexerTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
return _EhrIndexer.contract.Transact(opts, "transferOwnership", newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_EhrIndexer *EhrIndexerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _EhrIndexer.Contract.TransferOwnership(&_EhrIndexer.TransactOpts, newOwner)
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func (_EhrIndexer *EhrIndexerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
return _EhrIndexer.Contract.TransferOwnership(&_EhrIndexer.TransactOpts, newOwner)
}