Skip to content

Commit

Permalink
Release v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 31, 2023
1 parent bc3acac commit 4dc2a38
Show file tree
Hide file tree
Showing 5 changed files with 516 additions and 42 deletions.
2 changes: 0 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ type Client struct {
Team *team.Client
Providers *providers.Client
Physician *physician.Client
Labtests *labtests.Client
LabTests *labtests.Client
Order *order.Client
AthomePhlebotomy *athomephlebotomy.Client
Expand Down Expand Up @@ -80,7 +79,6 @@ func NewClient(opts ...core.ClientOption) *Client {
Team: team.NewClient(opts...),
Providers: providers.NewClient(opts...),
Physician: physician.NewClient(opts...),
Labtests: labtests.NewClient(opts...),
LabTests: labtests.NewClient(opts...),
Order: order.NewClient(opts...),
AthomePhlebotomy: athomephlebotomy.NewClient(opts...),
Expand Down
2 changes: 1 addition & 1 deletion core/client_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ func (c *ClientOptions) cloneHeader() http.Header {
headers := c.HTTPHeader.Clone()
headers.Set("X-Fern-Language", "Go")
headers.Set("X-Fern-SDK-Name", "github.com/fern-vital/vital-go")
headers.Set("X-Fern-SDK-Version", "0.1.0")
headers.Set("X-Fern-SDK-Version", "0.1.1")
return headers
}
32 changes: 32 additions & 0 deletions lab_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ type CreateLabTestRequest struct {
Fasting *core.Optional[bool] `json:"fasting,omitempty"`
}

type CreateOrderRequestCompatible struct {
UserId string `json:"user_id"`
LabTestId string `json:"lab_test_id"`
Physician *core.Optional[PhysicianCreateRequest] `json:"physician,omitempty"`
HealthInsurance *core.Optional[HealthInsuranceCreateRequest] `json:"health_insurance,omitempty"`
// Defines whether order is priority or not. Only available for Labcorp. For Labcorp, this corresponds to a STAT order.
Priority *core.Optional[bool] `json:"priority,omitempty"`
Consents []*Consent `json:"consents,omitempty"`
PatientDetails *PatientDetailsCompatible `json:"patient_details,omitempty"`
PatientAddress *PatientAddressCompatible `json:"patient_address,omitempty"`
}

type CreateRegistrableTestkitOrderRequest struct {
UserId string `json:"user_id"`
LabTestId string `json:"lab_test_id"`
ShippingDetails *ShippingAddress `json:"shipping_details,omitempty"`
}

type GetMarkersV3LabTestsMarkersGetRequest struct {
// The identifier Vital assigned to a lab partner.
LabId *int `json:"-"`
Expand All @@ -24,3 +42,17 @@ type GetMarkersV3LabTestsMarkersGetRequest struct {
Page *int `json:"-"`
Size *int `json:"-"`
}

type LabTestsGetAreaInfoRequest struct {
// Zip code of the area to check
ZipCode string `json:"-"`
}

type LabTestsSearchDiagnosisRequest struct {
DiagnosisQuery string `json:"-"`
}

type PayorSearchRequest struct {
InsuranceName string `json:"insurance_name"`
InsuranceState *core.Optional[string] `json:"insurance_state,omitempty"`
}
39 changes: 0 additions & 39 deletions labtests.go

This file was deleted.

Loading

0 comments on commit 4dc2a38

Please sign in to comment.