@@ -21,58 +21,61 @@ type BillService struct {
21
21
}
22
22
23
23
type Bill struct {
24
- ID int64 `json:"id"` //: 65099661468,
25
- RefNumber * string `json:"ref_number"` //: null, // string(50). required for PATCH that marks bill as processed.
26
- ServiceDate time.Time `json:"service_date"` //: "2016-10-12T12:00:00Z",
27
- BillingDate * time.Time `json:"billing_date"` //: null, // datetime(iso8601). required for PATCH that marks bill as processed.
28
- BillingStatus string `json:"billing_status"` //: "Unbilled",
29
- BillingError * string `json:"billing_error"` //: null, // string(200). required for PATCH that marks bill as failed.
30
- BillingRawError * string `json:"billing_raw_error"` //: null, // longtext. optional for PATCH that marks bill as failed.
31
- Notes string `json:"notes"` //: "patient has not paid yet",
32
- CPTs []* BillCPT `json:"cpts"` //: [{}],
33
- Payment * BillPayment `json:"payment"` //: {} ,
34
- VisitNoteID int64 `json:"visit_note_id"` //: 64409108504,
35
- VisitNoteSignedDate time.Time `json:"visit_note_signed_date"` //: "2016-10-12T22:11:01Z",
36
- VisitNoteDeletedDate * time.Time `json:"visit_note_deleted_date"` //: null,
37
- ReferringProvider * BillProvider `json:"referring_provider"` //: {},
38
- BillingProvider int64 `json:"billing_provider"` //: 42120898,
39
- RenderingProvider int64 `json:"rendering_provider"` //: 68382673,
40
- SupervisingProvider int64 `json:"supervising_provider"` //: 52893234,
41
- OrderingProvider * BillProvider `json:"ordering_provider"` //: {}
42
- ServiceLocation * BillServiceLocation `json:"service_location"` //: {}
43
- Physician int64 `json:"physician"` //: 64811630594,
44
- Practice int64 `json:"practice"` //: 65540,
45
- Patient int64 `json:"patient"` //: 64901939201,
46
- PriorAuthorization string `json:"prior_authorization"` //: "1234-ABC",
47
- Metadata any `json:"metadata"` //: null,
48
- CreatedDate time.Time `json:"created_date"` //: "2016-05-23T17:50:50Z",
49
- LastModifiedDate time.Time `json:"last_modified_date"` //: "2016-10-12T22:39:46Z"
24
+ ID int64 `json:"id"` //: 65099661468,
25
+ RefNumber * string `json:"ref_number"` //: null, // string(50). required for PATCH that marks bill as processed.
26
+ ServiceDate time.Time `json:"service_date"` //: "2016-10-12T12:00:00Z",
27
+ BillingDate * time.Time `json:"billing_date"` //: null, // datetime(iso8601). required for PATCH that marks bill as processed.
28
+ BillingStatus string `json:"billing_status"` //: "Unbilled",
29
+ BillingError * string `json:"billing_error"` //: null, // string(200). required for PATCH that marks bill as failed.
30
+ BillingRawError * string `json:"billing_raw_error"` //: null, // longtext. optional for PATCH that marks bill as failed.
31
+ Notes string `json:"notes"` //: "patient has not paid yet",
32
+ CPTs []* BillCPT `json:"cpts"` //: [{}],
33
+ Payment int64 `json:"payment"` //: 142502884606313 ,
34
+ VisitNote int64 `json:"visit_note"` //: 64409108504,
35
+ VisitNoteSignedDate time.Time `json:"visit_note_signed_date"` //: "2016-10-12T22:11:01Z",
36
+ VisitNoteDeletedDate * time.Time `json:"visit_note_deleted_date"` //: null,
37
+ ReferringProvider * BillProvider `json:"referring_provider"` //: {},
38
+ BillingProvider * int64 `json:"billing_provider"` //: 42120898,
39
+ RenderingProvider * int64 `json:"rendering_provider"` //: 68382673,
40
+ SupervisingProvider * int64 `json:"supervising_provider"` //: 52893234,
41
+ OrderingProvider * BillProvider `json:"ordering_provider"` //: {}
42
+ ServiceLocation int64 `json:"service_location"` //: 141103949480183,
43
+ Physician int64 `json:"physician"` //: 64811630594,
44
+ Practice int64 `json:"practice"` //: 65540,
45
+ Patient int64 `json:"patient"` //: 64901939201,
46
+ PriorAuthorization * string `json:"prior_authorization"` //: "1234-ABC",
47
+ Metadata any `json:"metadata"` //: null,
48
+ CreatedDate time.Time `json:"created_date"` //: "2016-05-23T17:50:50Z",
49
+ LastModifiedDate time.Time `json:"last_modified_date"` //: "2016-10-12T22:39:46Z"
50
50
}
51
51
52
52
type BillCreate struct {
53
- ServiceLocation int64 `json:"service_location"` //: 10 // required
54
- VisitNoteID int64 `json:"visit_note_id"` //: 64409108504, // required
55
- Patient int64 `json:"patient"` //: 64901939201, // required
56
- Practice int64 `json:"practice"` //: 65540, // required
57
- Physician int64 `json:"physician"` //: 64811630594, // required
58
- CPTs []* BillCPT `json:"cpts"` //: [{}],
59
- BillingProvider int64 `json:"billing_provider"` //: 42120898,
60
- RenderingProvider int64 `json:"rendering_provider"` //: 68382673,
61
- SupervisingProvider int64 `json:"supervising_provider"` //: 52893234,
62
- ReferringProvider * BillProvider `json:"referring_provider"` //: {},
63
- OrderingProvider * BillProvider `json:"ordering_provider"` //: {},
64
- PriorAuthorization string `json:"prior_authorization"` //: "1234-ABC",
65
- PaymentAmount float64 `json:"payment_amount"` //: 10.00,
66
- Notes string `json:"notes"` //: "patient has not paid yet",
53
+ ServiceLocation int64 `json:"service_location"` //: 10 // required
54
+ VisitNote int64 `json:"visit_note"` //: 64409108504, // required
55
+ Patient int64 `json:"patient"` //: 64901939201, // required
56
+ Practice int64 `json:"practice"` //: 65540, // required
57
+ Physician int64 `json:"physician"` //: 64811630594, // required
58
+ CPTs []* BillCPT `json:"cpts,omitempty "` //: [{}],
59
+ BillingProvider int64 `json:"billing_provider,omitempty "` //: 42120898,
60
+ RenderingProvider int64 `json:"rendering_provider,omitempty "` //: 68382673,
61
+ SupervisingProvider int64 `json:"supervising_provider,omitempty "` //: 52893234,
62
+ ReferringProvider * BillProvider `json:"referring_provider,omitempty "` //: {},
63
+ OrderingProvider * BillProvider `json:"ordering_provider,omitempty "` //: {},
64
+ PriorAuthorization string `json:"prior_authorization,omitempty "` //: "1234-ABC",
65
+ PaymentAmount float64 `json:"payment_amount,omitempty "` //: 10.00,
66
+ Notes string `json:"notes,omitempty "` //: "patient has not paid yet",
67
67
}
68
68
69
+ type BillDX struct {
70
+ ICD10Code string `json:"icd10_code"`
71
+ }
69
72
type BillCPT struct {
70
- CPT int64 `json:"cpt"` //: "99213",
71
- Modifiers []string `json:"modifiers"` //: ["10"],
72
- DXs []string `json:"dxs"` //: ["D23.4"],
73
- AltDXs []string `json:"alt_dxs"` //: ["216.4"],
74
- UnitCharge any `json:"unit_charge"` //: null ,
75
- Units any `json:"units"` //: null
73
+ CPT string `json:"cpt"` //: "99213",
74
+ Modifiers []string `json:"modifiers,omitempty"` //: ["10"],
75
+ DXs []BillDX `json:"dxs"` //: ["D23.4"],
76
+ AltDXs []string `json:"alt_dxs,omitempty"` //: ["216.4"],
77
+ UnitCharge string `json:"unit_charge"` //: "10.0" ,
78
+ Units string `json:"units"` //: "1.0"
76
79
}
77
80
78
81
type BillPayment struct {
0 commit comments