-
Notifications
You must be signed in to change notification settings - Fork 41
/
_ide_helper_models.php
3947 lines (3851 loc) · 242 KB
/
_ide_helper_models.php
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
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
// @formatter:off
/**
* A helper file for your Eloquent Models
* Copy the phpDocs from this file to the correct Model,
* And remove them from this file, to prevent double declarations.
*
* @author Barry vd. Heuvel <[email protected]>
*/
namespace App\Models{
/**
* App\Models\Address
*
* @property int $id
* @property string $line1 Line 1 of address.
* @property string|null $line2 Line 2 of address. Optional
* @property string $state State
* @property string $zip Zip Code
* @property string $plus_four Plus four code. US specific thing
* @property int|null $city_id Address city
* @property int|null $country_id Address country
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Khsing\World\Models\City|null $city
* @property-read \Khsing\World\Models\Country|null $country
* @property-read \App\Models\Facilities\Facility $facility
* @property-read \App\Models\Patients\Patient $patient
* @property-read \App\Models\User $user
* @method static \Database\Factories\AddressFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Address newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Address newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Address query()
* @method static \Illuminate\Database\Eloquent\Builder|Address whereCityId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereCountryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereLine1($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereLine2($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address wherePlusFour($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereState($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Address whereZip($value)
*/
class Address extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Amendment
*
* @property int $id
* @property int $patient_id Patient who amendment could be for.
* @property int $created_by User who created amendment.
* @property int $modified_by User who modified amendment.
* @property string $amendment_date Amendment Date.
* @property string $from Amendment requested from.
* @property int $status Status. 0->rejected, 1->accepted, 2->null
* @property string|null $description Description
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|Amendment newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Amendment newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Amendment query()
* @method static \Illuminate\Database\Eloquent\Builder|Amendment whereAmendmentDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Amendment whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Amendment whereCreatedBy($value)
* @method static \Illuminate\Database\Eloquent\Builder|Amendment whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|Amendment whereFrom($value)
* @method static \Illuminate\Database\Eloquent\Builder|Amendment whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Amendment whereModifiedBy($value)
* @method static \Illuminate\Database\Eloquent\Builder|Amendment wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Amendment whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|Amendment whereUpdatedAt($value)
*/
class Amendment extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\AmendmentHistory
*
* @property int $id
* @property int $amendment_id Foreign key to amendments table.
* @property int $created_by User who created amendment.
* @property int $status Amendment Status.
* @property string|null $notes Amendment Notes
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory query()
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory whereAmendmentId($value)
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory whereCreatedBy($value)
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory whereNotes($value)
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory whereStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|AmendmentHistory whereUpdatedAt($value)
*/
class AmendmentHistory extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\AuditDetail
*
* @property int $id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|AuditDetail newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AuditDetail newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AuditDetail query()
* @method static \Illuminate\Database\Eloquent\Builder|AuditDetail whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditDetail whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditDetail whereUpdatedAt($value)
*/
class AuditDetail extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\AuditMaster
*
* @property int $id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|AuditMaster newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AuditMaster newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AuditMaster query()
* @method static \Illuminate\Database\Eloquent\Builder|AuditMaster whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditMaster whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|AuditMaster whereUpdatedAt($value)
*/
class AuditMaster extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\AutomaticNotification
*
* @property int $id
* @property string $sms_gateway_type Type of sms gateway.
* @property string $next_app_schedule When next notification is scheduled?
* @property string $provider_name
* @property string|null $message Message to be sent.
* @property string $email_sender Who sent email? It can be any user or any clinic.
* @property string $email_subject Subject of notification
* @property string $type Type of notification.
* @property string $notification_sent_date When notification was sent.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification query()
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereEmailSender($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereEmailSubject($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereMessage($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereNextAppSchedule($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereNotificationSentDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereProviderName($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereSmsGatewayType($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder|AutomaticNotification whereUpdatedAt($value)
*/
class AutomaticNotification extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\BackgroundService
*
* @property int $id
* @property string $name Service Name
* @property string $title Name for reports
* @property int $active Is service active or deleted. 0 -> False | 1 -> True
* @property int $running Is service running or stopped. 0 -> Stopped(False) | 1 -> Running(True)
* @property string $next_run When next run is scheduled?
* @property int $execute_interval Minimum number of minutes between function calls, 0 = Manual Mode
* @property string $function Name of background service function
* @property int $sort_order If there are multiple services, then lower number will run first.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService query()
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereActive($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereExecuteInterval($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereFunction($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereNextRun($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereRunning($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereSortOrder($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|BackgroundService whereUpdatedAt($value)
*/
class BackgroundService extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\BatchCommunication
*
* @property int $id
* @property int $patient_id Foreign key to patients table.
* @property int $sender_id Foreign key to users table.
* @property string $msg_type Message Type
* @property string|null $msg_subject Subject
* @property string|null $msg_text Message to be sent.
* @property string $msg_date_sent Timestamp when message was sent.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication query()
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication whereMsgDateSent($value)
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication whereMsgSubject($value)
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication whereMsgText($value)
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication whereMsgType($value)
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication whereSenderId($value)
* @method static \Illuminate\Database\Eloquent\Builder|BatchCommunication whereUpdatedAt($value)
*/
class BatchCommunication extends \Eloquent {}
}
namespace App\Models\Calendars{
/**
* App\Models\Calendars\CalendarCategory
*
* @property int $id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|CalendarCategory newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CalendarCategory newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CalendarCategory query()
* @method static \Illuminate\Database\Eloquent\Builder|CalendarCategory whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|CalendarCategory whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|CalendarCategory whereUpdatedAt($value)
*/
class CalendarCategory extends \Eloquent {}
}
namespace App\Models\Calendars{
/**
* App\Models\Calendars\CalendarEvent
*
* @property int $id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|CalendarEvent newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CalendarEvent newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CalendarEvent query()
* @method static \Illuminate\Database\Eloquent\Builder|CalendarEvent whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|CalendarEvent whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|CalendarEvent whereUpdatedAt($value)
*/
class CalendarEvent extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\CategoriesToDocument
*
* @property int $id
* @property int $category_id Foreign Key to categories table.
* @property int $document_id Foreign key to Documents table.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|CategoriesToDocument newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CategoriesToDocument newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|CategoriesToDocument query()
* @method static \Illuminate\Database\Eloquent\Builder|CategoriesToDocument whereCategoryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|CategoriesToDocument whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|CategoriesToDocument whereDocumentId($value)
* @method static \Illuminate\Database\Eloquent\Builder|CategoriesToDocument whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|CategoriesToDocument whereUpdatedAt($value)
*/
class CategoriesToDocument extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Category
*
* @property int $id
* @property string $name Category name.
* @property int $parent "Parent of sub directory. Category directory is root and hence it will have parent as 0.
* @property int $left Left Subtree.
* @property int $right Right Subtree
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|Category newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Category newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Category query()
* @method static \Illuminate\Database\Eloquent\Builder|Category whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereLeft($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereParent($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereRight($value)
* @method static \Illuminate\Database\Eloquent\Builder|Category whereUpdatedAt($value)
*/
class Category extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\ChartTracker
*
* @property int $id
* @property int $user_id Foreign Key to users table.
* @property string $when Timestamp when this created.
* @property string $location Location.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|ChartTracker newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ChartTracker newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ChartTracker query()
* @method static \Illuminate\Database\Eloquent\Builder|ChartTracker whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ChartTracker whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ChartTracker whereLocation($value)
* @method static \Illuminate\Database\Eloquent\Builder|ChartTracker whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ChartTracker whereUserId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ChartTracker whereWhen($value)
*/
class ChartTracker extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Currency
*
* @property int $id
* @property string $name
* @property string $code
* @property string $symbol
* @property string $format
* @property string $exchange_rate
* @property int $active
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\User[] $users
* @property-read int|null $users_count
* @method static \Illuminate\Database\Eloquent\Builder|Currency newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Currency newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Currency query()
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereActive($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereExchangeRate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereFormat($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereSymbol($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereUpdatedAt($value)
*/
class Currency extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\DatedReminder
*
* @property int $id
* @property int $from_id Who created dated reminder? Refers to users table.
* @property int $patient_id Foreign key to patients table.
* @property string $dr_message_text Message.
* @property string $dr_message_sent_date When message is sent.
* @property string $dr_message_due_date Due Date
* @property int $message_priority Priority of Message. 1 -> High | 2 -> Medium | 3 -> Low
* @property int $message_processed Is message processed? 0 -> No | 1 -> Yes
* @property string $processed_date When message is processed by respective user? Not keeping it null,
* because it can be system generated datetime, whenever message is processed.
* @property int|null $processed_by User who processed the message. It can be multiple users or a single
* user. References users table.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder query()
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereDrMessageDueDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereDrMessageSentDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereDrMessageText($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereFromId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereMessagePriority($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereMessageProcessed($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereProcessedBy($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereProcessedDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminder whereUpdatedAt($value)
*/
class DatedReminder extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\DatedReminderLink
*
* @property int $id
* @property int $dated_reminder_id Link to dated_reminders table.
* @property int $to_id Link to users table
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminderLink newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminderLink newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminderLink query()
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminderLink whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminderLink whereDatedReminderId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminderLink whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminderLink whereToId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DatedReminderLink whereUpdatedAt($value)
*/
class DatedReminderLink extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Document
*
* @property int $id
* @property int $patient_id Foreign key to patients table.
* @property int $owner_id Foreign key to users table.
* @property int|null $list_id Foreign key to lists table.
* @property int|null $encounter_id Foreign key to form_encounters table.
* @property int|null $audit_master_id Foreign key to audit_masters table.
* @property string $url Path of uploaded file.
* @property string $mimetype Type of uploaded file. Image or text.
* @property string $revision Timestamp when document was revised.
* @property string $doc_date When document was uploaded.
* @property string $hash 40 character SHA-1 hash of document.
* @property int $imported Parsing status for CCR/CCD/CCDA importing. 0 -> False | 1 -> True
* @property int $encounter_check If encounter is created while tagging. 0 -> No | 1 -> Yes
* @property string|null $notes Notes related to documents.
* @property int $audit_master_approval_status approval_status from audit_master table.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|Document newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Document newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Document query()
* @method static \Illuminate\Database\Eloquent\Builder|Document whereAuditMasterApprovalStatus($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereAuditMasterId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereDocDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereEncounterCheck($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereEncounterId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereHash($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereImported($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereListId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereMimetype($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereNotes($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereOwnerId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereRevision($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Document whereUrl($value)
*/
class Document extends \Eloquent {}
}
namespace App\Models\Drugs{
/**
* App\Models\Drugs\Drug
*
* @property int $id
* @property string $related_code Codes
* @property string $name Name of Drug.
* @property string $ndc_number NDC Number
* @property int $on_order On Order.
* @property float $reorder_point Min Global (In Form)
* @property float $max_level Max Global (In Form)
* @property string|null $reactions Reaction of drug.
* @property float $cyp_factor Quantity representing a years supply
* @property int $active Is Drug active? 0 -> No | 1 -> Yes
* @property int $allow_combining Allow filling an order from multiple lots? 0 -> No | 1 -> Yes
* @property int $allow_multiple Allow multiple lots at one warehouse? 0 -> No | 1 -> Yes
* @property string|null $drug_code Drug Code
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|Drug newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Drug newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Drug query()
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereActive($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereAllowCombining($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereAllowMultiple($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereCypFactor($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereDrugCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereMaxLevel($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereNdcNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereOnOrder($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereReactions($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereRelatedCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereReorderPoint($value)
* @method static \Illuminate\Database\Eloquent\Builder|Drug whereUpdatedAt($value)
*/
class Drug extends \Eloquent {}
}
namespace App\Models\Drugs{
/**
* App\Models\Drugs\DrugInventory
*
* @property int $id
* @property int $drug_id Foreign key to drugs table.
* @property int $warehouse_id Foreign key to product_warehouses table.
* @property string|null $lot_number LOT Number. Unique Number for drugs.
* @property string|null $expiration Expiry Date of Drug.
* @property string|null $manufacturer Manufacturer of Drug.
* @property int $on_hand Count of drug already in inventory.
* @property int $vendor_id Vendor.
* @property string|null $destroy_date Date when drug is destroyed.
* @property string|null $destroy_method Method used to destroy drug.
* @property string|null $destroy_witness Witness at the time of destruction.
* @property string|null $destroy_notes Extra information.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory query()
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereDestroyDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereDestroyMethod($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereDestroyNotes($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereDestroyWitness($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereDrugId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereExpiration($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereLotNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereManufacturer($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereOnHand($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereVendorId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugInventory whereWarehouseId($value)
*/
class DrugInventory extends \Eloquent {}
}
namespace App\Models\Drugs{
/**
* App\Models\Drugs\DrugSale
*
* @property int $id
* @property int $drug_id Foreign key to drugs table.
* @property int $inventory_id Foreign key to drug_inventories table.
* @property int|null $prescription_id Foreign key to prescriptions table.
* @property int $patient_id Foreign key to patients table.
* @property int|null $encounter_id Foreign key to form_encounters table.
* @property int $user_id Foreign key to users table.
* @property int|null $distributor_id Distributor of drug. Foreign key to users table.
* @property string $sale_date Date when drug is sold.
* @property int $quantity Quantity of drug sold
* @property float $fee Fees of Drugs.
* @property int $billed If the sale is posted to accounting? 0 -> No | 1 -> Yes
* @property string|null $notes Notes
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale query()
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereBilled($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereDistributorId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereDrugId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereEncounterId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereFee($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereInventoryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereNotes($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale wherePrescriptionId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereQuantity($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereSaleDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugSale whereUserId($value)
*/
class DrugSale extends \Eloquent {}
}
namespace App\Models\Drugs{
/**
* App\Models\Drugs\DrugTemplate
*
* @property int $id
* @property int $drug_id Foreign Key to drugs table.
* @property string $selector Selector. Name of Template.
* @property string $dosage Schedule.
* @property int $period Interval
* @property int $quantity Quantity
* @property int $refills Refills
* @property string|null $tax_rates Tax Rate.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate query()
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate whereDosage($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate whereDrugId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate wherePeriod($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate whereQuantity($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate whereRefills($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate whereSelector($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate whereTaxRates($value)
* @method static \Illuminate\Database\Eloquent\Builder|DrugTemplate whereUpdatedAt($value)
*/
class DrugTemplate extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\EHRGlobal
*
* @property int $id Primary Key. Autoincrement
* @property mixed $settings Store global settings in json format.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|EHRGlobal newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|EHRGlobal newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|EHRGlobal query()
* @method static \Illuminate\Database\Eloquent\Builder|EHRGlobal whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRGlobal whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRGlobal whereSettings($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRGlobal whereUpdatedAt($value)
*/
class EHRGlobal extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\EHRList
*
* @property int $id
* @property int $patient_id Foreign Key to patients table.
* @property int $user_id Foreign key to users table.
* @property string $date Timestamp when list created.
* @property string $type Type of list. Medications, Allergies, Surgery, Medical Problems, etc.
* @property string $title Title of that particular type.
* @property string $begin_date Beginning date of issue.
* @property string|null $end_date Date of end of this issue. Null if still active.
* @property int $occurrence Occurrence of this issue. Recurrence, First, Early Recurrence, Late Recurrence,
* and Acute on Chronic.
* @property string|null $referred_by Who referred this issue.
* @property int $activity Still Active. 0 -> No | 1 -> Yes
* @property string|null $comments Comment about that issue.
* @property int $outcome Outcome of issue.
* @property string|null $destination Destination.
* @property string $reaction Reaction of that issue.
* @property int|null $external_allergy_id External ERX Id.
* @property int $erx_source 0 -> LibreEHR | 1 -> External
* @property int $erx_uploaded 0 -> Pending to NewCrop upload | 1 -> Uploaded to NewCrop
* @property string $modified_date Timestamp when issue modified.
* @property string $severity_al Severity Level
* @property int|null $external_id To hold an ID number from some other system, such as another EHR, an assigned ID
* that exists on a proprietary medical device or the like.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|EHRList newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|EHRList newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|EHRList query()
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereActivity($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereBeginDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereComments($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereDestination($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereEndDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereErxSource($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereErxUploaded($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereExternalAllergyId($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereExternalId($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereModifiedDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereOccurrence($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereOutcome($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereReaction($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereReferredBy($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereSeverityAl($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereType($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|EHRList whereUserId($value)
*/
class EHRList extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\Encounter
*
* @property int $id
* @property int $facility_id Foreign key to facilities table.
* @property int $patient_id Foreign key to Patients table.
* @property int $provider_id Foreign key to users table.
* @property string $date Date of service.
* @property string $reason Description of this encounter.
* @property string $facility Facility Name
* @property string $onset_date The date that the patient reports current issue is linked to.
* @property string $sensitivity A flag that restrict access for VIPs or anyone who requests it.
* @property string|null $billing_note An accounting note that applies to just this encounter (but not the patient level,
* or the line-item level.)
* @property int $calendar_category_id The encounter category which is actually from the calendar categories
* for appointment type.
* @property int $last_level_billed Flag that tells you if billed to Primary, Secondary, Tertiary Insurance etc.
* This should be an incremental flag as payments get processed.
* @property int $last_level_closed Refer as above.
* @property string|null $last_stmt_date Refer as above.
* @property int $supervisor_id Supervising provider. If any for this visit.
* @property int $ordering_physician Ordering provider. If any for this visit.
* @property int $referring_physician Referring provider, if any, for this visit.
* @property string $invoice_ref_no Billing stuff.
* @property int $referral_source Should be an ID from the users table. Can be from an address book entry.
* @property int $billing_facility Facilities table billing entity.
* @property int|null $external_id External ID
* @property int|null $eft_number eft number.
* @property string|null $claim_number Claim Number, Related to insurance
* @property string|null $document_image Patient Document
* @property string|null $sequence_number Sequence Number.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|Encounter newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Encounter newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Encounter query()
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereBillingFacility($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereBillingNote($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereCalendarCategoryId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereClaimNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereDocumentImage($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereEftNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereExternalId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereFacility($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereFacilityId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereInvoiceRefNo($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereLastLevelBilled($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereLastLevelClosed($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereLastStmtDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereOnsetDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereOrderingPhysician($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereProviderId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereReason($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereReferralSource($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereReferringPhysician($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereSensitivity($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereSequenceNumber($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereSupervisorId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Encounter whereUpdatedAt($value)
*/
class Encounter extends \Eloquent {}
}
namespace App\Models{
/**
* App\Models\ExtendedLog
*
* @property int $id
* @property int $patient_id Foreign Key to patients table.
* @property int $user_id Foreign Key to users table.
* @property string $event Type of Disclosure
* @property string|null $recipient Recipient of disclosure.
* @property string|null $description Description of Disclosure.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog query()
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog whereEvent($value)
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog whereRecipient($value)
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|ExtendedLog whereUserId($value)
*/
class ExtendedLog extends \Eloquent {}
}
namespace App\Models\Facilities{
/**
* App\Models\Facilities\Facility
*
* @property int $id
* @property int $address_id Foreign key Addresses table
* @property string $name Facility Name
* @property string $federal_ein Tax Identifier for the business.
* @property string $phone Phone Number
* @property string $fax Fax Number
* @property string $website Web Site
* @property string $email Email
* @property int $service_location Type of facility that shows up in the encounter form as a Service Location.
* @property int $billing_location Shows up in the form_encounter in the dropdown for Billing Facility.
* @property int $accept_assignment Flag to control payments processing.
* @property int $pos_code Vital code that is pulled from the Service Facility in an encounter that indicates
* what type of place of service it is, such as Office, Inpatient Hospital, Home, Mental Health Facility,
* etc.
* @property string $attn Field of value like Claims Department, or John the Billing Desk Guy
* @property string $domain_identifier
* @property string $facility_npi Defines Group National Provider Identifier, or a kind of UUID.
* @property string $tax_id_type Indicates that if it is a Employer ID Number or Personal Tax Number.
* @property string $color To mark the physical location of a appointment is so the user can visually
* sort them.
* @property int $primary_business_entity Identifies if this facility is a listing for the actual business running
* everything. 0 -> False | 1 -> True
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property-read \App\Models\Address $address
* @method static \Database\Factories\Facilities\FacilityFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|Facility newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Facility newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Facility query()
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereAcceptAssignment($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereAddressId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereAttn($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereBillingLocation($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereColor($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereDomainIdentifier($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereEmail($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereFacilityNpi($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereFax($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereFederalEin($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility wherePhone($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility wherePosCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility wherePrimaryBusinessEntity($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereServiceLocation($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereTaxIdType($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Facility whereWebsite($value)
*/
class Facility extends \Eloquent {}
}
namespace App\Models\Facilities{
/**
* App\Models\Facilities\FacilityUser
*
* @property int $id
* @property int $is_default Is the current facility default? Note that it must be updated if any edit in UI.
* @property int $user_id User Id
* @property int $facility_id Facility Id
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Database\Factories\Facilities\FacilityUserFactory factory(...$parameters)
* @method static \Illuminate\Database\Eloquent\Builder|FacilityUser newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|FacilityUser newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|FacilityUser query()
* @method static \Illuminate\Database\Eloquent\Builder|FacilityUser whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|FacilityUser whereFacilityId($value)
* @method static \Illuminate\Database\Eloquent\Builder|FacilityUser whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|FacilityUser whereIsDefault($value)
* @method static \Illuminate\Database\Eloquent\Builder|FacilityUser whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|FacilityUser whereUserId($value)
*/
class FacilityUser extends \Eloquent {}
}
namespace App\Models\Forms{
/**
* App\Models\Forms\Form
*
* @property int $id
* @property int $encounter_id Foreign key to encounters table.
* @property int $patient_id Foreign key to patients table.
* @property int $user_id Foreign key to users table. User who is registering form.
* @property int $form_id Id of form which is related to that encounter.
* Basically this is like, an encounter for a particular patient can have many forms and a single
* form can be related to other patient as well.
* @property string $form_name Name of form, like bronchitis, ankle injury, etc.
* @property int $is_authorized Is form authorized by physician or doctor? 0 -> No, 1 -> yes
* @property int $is_deleted Is form deleted from patient encounter? 0 -> No, 1 -> yes
* @property string|null $form_directory Directory of form.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|Form newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Form newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Form query()
* @method static \Illuminate\Database\Eloquent\Builder|Form whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form whereEncounterId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form whereFormDirectory($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form whereFormId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form whereFormName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form whereIsAuthorized($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form whereIsDeleted($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Form whereUserId($value)
*/
class Form extends \Eloquent {}
}
namespace App\Models\Forms{
/**
* App\Models\Forms\FormAftercarePlan
*
* @property int $id
* @property int $encounter_id Foreign key to form_encounters table.
* @property int $patient_id Foreign Key to patients table.
* @property int $user_id Foreign key to users table.
* @property int $provider_id Initially provider is set to be
* user, but when an encounter has a fee sheet filled out (billing table items are associated with that encounter
* number) then the fee sheet sets the Provider fields to equal the Rendering Provider choice in the fee sheet
* @property string $date Date when this form filled.
* @property int $is_authorized Means a clinician (physician, etc...)
* has verified this form as part of the client record
* @property int $activity A delete flag. 0 -> Yes | 1 -> No
* @property string $client_name Name of Patient.
* @property string $admit_date Date when patient is admitted
* @property string|null $discharged Date when patient is discharged.
* @property string|null $goal_a_acute_intoxication Look at form UI.
* @property string|null $goal_a_acute_intoxication_I Look at form UI.
* @property string|null $goal_a_acute_intoxication_II Look at form UI.
* @property string|null $goal_b_emotional_behavioral_conditions Look at form UI.
* @property string|null $goal_b_emotional_behavioral_conditions_I Look at form UI.
* @property string|null $goal_c_relapse_potential Look at form UI.
* @property string|null $goal_c_relapse_potential_I Look at form UI.
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan query()
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereActivity($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereAdmitDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereClientName($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereDischarged($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereEncounterId($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereGoalAAcuteIntoxication($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereGoalAAcuteIntoxicationI($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereGoalAAcuteIntoxicationII($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereGoalBEmotionalBehavioralConditions($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereGoalBEmotionalBehavioralConditionsI($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereGoalCRelapsePotential($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereGoalCRelapsePotentialI($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereIsAuthorized($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan wherePatientId($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereProviderId($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|FormAftercarePlan whereUserId($value)
*/
class FormAftercarePlan extends \Eloquent {}
}
namespace App\Models\Forms{
/**
* App\Models\Forms\FormAnkleInjury
*
* @property int $id
* @property int $encounter_id Foreign key to form_encounters table.
* @property int $patient_id Foreign Key to patients table.
* @property int $user_id Foreign key to users table.
* @property int $provider_id Initially provider is set to
* be user, but when an encounter has a fee sheet filled out (billing table items are associated with that
* encounter number) then the fee sheet sets the Provider fields to equal the Rendering
* Provider choice in the fee sheet
* @property int $is_authorized Means a clinician (physician, etc...) has verified this form as part of the client
* record
* @property int $activity A delete flag. 0 -> Yes | 1 -> No
* @property string $date Date when this form filled.
* @property string $ankle_date_of_injury Date of Injury.
* @property int $ankle_work_related O -> Off, 1 -> On
* @property string|null $ankle_foot Which foot is? Left or right?
* @property string|null $ankle_severity_of_pain Pain Severity
* @property int $ankle_significant_swelling 0 -> no significant swelling | 1 -> There is significant swelling.
* @property string|null $ankle_onset_of_swelling When swelling happened? Like within minutes or hours
* @property string|null $ankle_how_did_injury_occur Reason for injury.
* @property string|null $ankle_ottawa_bone_tenderness Bone Tenderness
* @property int $ankle_able_to_bear_weight_steps Whether able to bear weight? 0 -> No | 1 -> Yes
* @property string $ankle_x_ray_interpretation Interpretation of X-Ray
* @property string|null $ankle_additional_x_ray_notes Additional X-Ray Notes.
* @property string|null $ankle_diagnosis_1 Further Diagnosis.
* @property string|null $ankle_diagnosis_2 Further Diagnosis.
* @property string|null $ankle_diagnosis_3 Further Diagnosis.
* @property string|null $ankle_diagnosis_4 Further Diagnosis.
* @property string $ankle_plan Prescription by doctor
* @property string|null $ankle_additional_diagnosis Additional Diagnosis.
* @property string|null $cpt_codes CPT Code