Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Reception) predicate.Reception
- func CreatedAt(v time.Time) predicate.Reception
- func CreatedAtEQ(v time.Time) predicate.Reception
- func CreatedAtGT(v time.Time) predicate.Reception
- func CreatedAtGTE(v time.Time) predicate.Reception
- func CreatedAtIn(vs ...time.Time) predicate.Reception
- func CreatedAtLT(v time.Time) predicate.Reception
- func CreatedAtLTE(v time.Time) predicate.Reception
- func CreatedAtNEQ(v time.Time) predicate.Reception
- func CreatedAtNotIn(vs ...time.Time) predicate.Reception
- func DeletedAt(v time.Time) predicate.Reception
- func DeletedAtEQ(v time.Time) predicate.Reception
- func DeletedAtGT(v time.Time) predicate.Reception
- func DeletedAtGTE(v time.Time) predicate.Reception
- func DeletedAtIn(vs ...time.Time) predicate.Reception
- func DeletedAtIsNil() predicate.Reception
- func DeletedAtLT(v time.Time) predicate.Reception
- func DeletedAtLTE(v time.Time) predicate.Reception
- func DeletedAtNEQ(v time.Time) predicate.Reception
- func DeletedAtNotIn(vs ...time.Time) predicate.Reception
- func DeletedAtNotNil() predicate.Reception
- func Description(v string) predicate.Reception
- func DescriptionContains(v string) predicate.Reception
- func DescriptionContainsFold(v string) predicate.Reception
- func DescriptionEQ(v string) predicate.Reception
- func DescriptionEqualFold(v string) predicate.Reception
- func DescriptionGT(v string) predicate.Reception
- func DescriptionGTE(v string) predicate.Reception
- func DescriptionHasPrefix(v string) predicate.Reception
- func DescriptionHasSuffix(v string) predicate.Reception
- func DescriptionIn(vs ...string) predicate.Reception
- func DescriptionIsNil() predicate.Reception
- func DescriptionLT(v string) predicate.Reception
- func DescriptionLTE(v string) predicate.Reception
- func DescriptionNEQ(v string) predicate.Reception
- func DescriptionNotIn(vs ...string) predicate.Reception
- func DescriptionNotNil() predicate.Reception
- func HasPatient() predicate.Reception
- func HasPatientWith(preds ...predicate.Patient) predicate.Reception
- func HasVisit() predicate.Reception
- func HasVisitWith(preds ...predicate.Visit) predicate.Reception
- func ID(id int) predicate.Reception
- func IDEQ(id int) predicate.Reception
- func IDGT(id int) predicate.Reception
- func IDGTE(id int) predicate.Reception
- func IDIn(ids ...int) predicate.Reception
- func IDLT(id int) predicate.Reception
- func IDLTE(id int) predicate.Reception
- func IDNEQ(id int) predicate.Reception
- func IDNotIn(ids ...int) predicate.Reception
- func InsuranceCode(v string) predicate.Reception
- func InsuranceCodeContains(v string) predicate.Reception
- func InsuranceCodeContainsFold(v string) predicate.Reception
- func InsuranceCodeEQ(v string) predicate.Reception
- func InsuranceCodeEqualFold(v string) predicate.Reception
- func InsuranceCodeGT(v string) predicate.Reception
- func InsuranceCodeGTE(v string) predicate.Reception
- func InsuranceCodeHasPrefix(v string) predicate.Reception
- func InsuranceCodeHasSuffix(v string) predicate.Reception
- func InsuranceCodeIn(vs ...string) predicate.Reception
- func InsuranceCodeIsNil() predicate.Reception
- func InsuranceCodeLT(v string) predicate.Reception
- func InsuranceCodeLTE(v string) predicate.Reception
- func InsuranceCodeNEQ(v string) predicate.Reception
- func InsuranceCodeNotIn(vs ...string) predicate.Reception
- func InsuranceCodeNotNil() predicate.Reception
- func Not(p predicate.Reception) predicate.Reception
- func Or(predicates ...predicate.Reception) predicate.Reception
- func ReceptionFor(v time.Time) predicate.Reception
- func ReceptionForEQ(v time.Time) predicate.Reception
- func ReceptionForGT(v time.Time) predicate.Reception
- func ReceptionForGTE(v time.Time) predicate.Reception
- func ReceptionForIn(vs ...time.Time) predicate.Reception
- func ReceptionForLT(v time.Time) predicate.Reception
- func ReceptionForLTE(v time.Time) predicate.Reception
- func ReceptionForNEQ(v time.Time) predicate.Reception
- func ReceptionForNotIn(vs ...time.Time) predicate.Reception
- func UpdatedAt(v time.Time) predicate.Reception
- func UpdatedAtEQ(v time.Time) predicate.Reception
- func UpdatedAtGT(v time.Time) predicate.Reception
- func UpdatedAtGTE(v time.Time) predicate.Reception
- func UpdatedAtIn(vs ...time.Time) predicate.Reception
- func UpdatedAtIsNil() predicate.Reception
- func UpdatedAtLT(v time.Time) predicate.Reception
- func UpdatedAtLTE(v time.Time) predicate.Reception
- func UpdatedAtNEQ(v time.Time) predicate.Reception
- func UpdatedAtNotIn(vs ...time.Time) predicate.Reception
- func UpdatedAtNotNil() predicate.Reception
- func ValidColumn(column string) bool
- func VisitDuration(v int) predicate.Reception
- func VisitDurationEQ(v int) predicate.Reception
- func VisitDurationGT(v int) predicate.Reception
- func VisitDurationGTE(v int) predicate.Reception
- func VisitDurationIn(vs ...int) predicate.Reception
- func VisitDurationLT(v int) predicate.Reception
- func VisitDurationLTE(v int) predicate.Reception
- func VisitDurationNEQ(v int) predicate.Reception
- func VisitDurationNotIn(vs ...int) predicate.Reception
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInsuranceCode(opts ...sql.OrderTermOption) OrderOption
- func ByPatientField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByReceptionFor(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVisit(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVisitCount(opts ...sql.OrderTermOption) OrderOption
- func ByVisitDuration(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the reception type in the database. Label = "reception" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldReceptionFor holds the string denoting the reception_for field in the database. FieldReceptionFor = "reception_for" // FieldVisitDuration holds the string denoting the visit_duration field in the database. FieldVisitDuration = "visit_duration" // FieldInsuranceCode holds the string denoting the insurance_code field in the database. FieldInsuranceCode = "insurance_code" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // EdgePatient holds the string denoting the patient edge name in mutations. EdgePatient = "patient" // EdgeVisit holds the string denoting the visit edge name in mutations. EdgeVisit = "visit" // Table holds the table name of the reception in the database. Table = "receptions" // PatientTable is the table that holds the patient relation/edge. PatientTable = "receptions" // PatientInverseTable is the table name for the Patient entity. // It exists in this package in order to avoid circular dependency with the "patient" package. PatientInverseTable = "patients" // PatientColumn is the table column denoting the patient relation/edge. PatientColumn = "patient_reception" // VisitTable is the table that holds the visit relation/edge. VisitTable = "visits" // VisitInverseTable is the table name for the Visit entity. // It exists in this package in order to avoid circular dependency with the "visit" package. VisitInverseTable = "visits" // VisitColumn is the table column denoting the visit relation/edge. VisitColumn = "reception_visit" )
Variables ¶
var ( // VisitDurationValidator is a validator for the "visit_duration" field. It is called by the builders before save. VisitDurationValidator func(int) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time )
var Columns = []string{ FieldID, FieldReceptionFor, FieldVisitDuration, FieldInsuranceCode, FieldDescription, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for reception fields.
var ForeignKeys = []string{
"patient_reception",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "receptions" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasPatient ¶
HasPatient applies the HasEdge predicate on the "patient" edge.
func HasPatientWith ¶
HasPatientWith applies the HasEdge predicate on the "patient" edge with a given conditions (other predicates).
func HasVisitWith ¶
HasVisitWith applies the HasEdge predicate on the "visit" edge with a given conditions (other predicates).
func InsuranceCode ¶
InsuranceCode applies equality check predicate on the "insurance_code" field. It's identical to InsuranceCodeEQ.
func InsuranceCodeContains ¶
InsuranceCodeContains applies the Contains predicate on the "insurance_code" field.
func InsuranceCodeContainsFold ¶
InsuranceCodeContainsFold applies the ContainsFold predicate on the "insurance_code" field.
func InsuranceCodeEQ ¶
InsuranceCodeEQ applies the EQ predicate on the "insurance_code" field.
func InsuranceCodeEqualFold ¶
InsuranceCodeEqualFold applies the EqualFold predicate on the "insurance_code" field.
func InsuranceCodeGT ¶
InsuranceCodeGT applies the GT predicate on the "insurance_code" field.
func InsuranceCodeGTE ¶
InsuranceCodeGTE applies the GTE predicate on the "insurance_code" field.
func InsuranceCodeHasPrefix ¶
InsuranceCodeHasPrefix applies the HasPrefix predicate on the "insurance_code" field.
func InsuranceCodeHasSuffix ¶
InsuranceCodeHasSuffix applies the HasSuffix predicate on the "insurance_code" field.
func InsuranceCodeIn ¶
InsuranceCodeIn applies the In predicate on the "insurance_code" field.
func InsuranceCodeIsNil ¶
InsuranceCodeIsNil applies the IsNil predicate on the "insurance_code" field.
func InsuranceCodeLT ¶
InsuranceCodeLT applies the LT predicate on the "insurance_code" field.
func InsuranceCodeLTE ¶
InsuranceCodeLTE applies the LTE predicate on the "insurance_code" field.
func InsuranceCodeNEQ ¶
InsuranceCodeNEQ applies the NEQ predicate on the "insurance_code" field.
func InsuranceCodeNotIn ¶
InsuranceCodeNotIn applies the NotIn predicate on the "insurance_code" field.
func InsuranceCodeNotNil ¶
InsuranceCodeNotNil applies the NotNil predicate on the "insurance_code" field.
func ReceptionFor ¶
ReceptionFor applies equality check predicate on the "reception_for" field. It's identical to ReceptionForEQ.
func ReceptionForEQ ¶
ReceptionForEQ applies the EQ predicate on the "reception_for" field.
func ReceptionForGT ¶
ReceptionForGT applies the GT predicate on the "reception_for" field.
func ReceptionForGTE ¶
ReceptionForGTE applies the GTE predicate on the "reception_for" field.
func ReceptionForIn ¶
ReceptionForIn applies the In predicate on the "reception_for" field.
func ReceptionForLT ¶
ReceptionForLT applies the LT predicate on the "reception_for" field.
func ReceptionForLTE ¶
ReceptionForLTE applies the LTE predicate on the "reception_for" field.
func ReceptionForNEQ ¶
ReceptionForNEQ applies the NEQ predicate on the "reception_for" field.
func ReceptionForNotIn ¶
ReceptionForNotIn applies the NotIn predicate on the "reception_for" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VisitDuration ¶
VisitDuration applies equality check predicate on the "visit_duration" field. It's identical to VisitDurationEQ.
func VisitDurationEQ ¶
VisitDurationEQ applies the EQ predicate on the "visit_duration" field.
func VisitDurationGT ¶
VisitDurationGT applies the GT predicate on the "visit_duration" field.
func VisitDurationGTE ¶
VisitDurationGTE applies the GTE predicate on the "visit_duration" field.
func VisitDurationIn ¶
VisitDurationIn applies the In predicate on the "visit_duration" field.
func VisitDurationLT ¶
VisitDurationLT applies the LT predicate on the "visit_duration" field.
func VisitDurationLTE ¶
VisitDurationLTE applies the LTE predicate on the "visit_duration" field.
func VisitDurationNEQ ¶
VisitDurationNEQ applies the NEQ predicate on the "visit_duration" field.
func VisitDurationNotIn ¶
VisitDurationNotIn applies the NotIn predicate on the "visit_duration" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Reception queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInsuranceCode ¶
func ByInsuranceCode(opts ...sql.OrderTermOption) OrderOption
ByInsuranceCode orders the results by the insurance_code field.
func ByPatientField ¶
func ByPatientField(field string, opts ...sql.OrderTermOption) OrderOption
ByPatientField orders the results by patient field.
func ByReceptionFor ¶
func ByReceptionFor(opts ...sql.OrderTermOption) OrderOption
ByReceptionFor orders the results by the reception_for field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVisit ¶
func ByVisit(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVisit orders the results by visit terms.
func ByVisitCount ¶
func ByVisitCount(opts ...sql.OrderTermOption) OrderOption
ByVisitCount orders the results by visit count.
func ByVisitDuration ¶
func ByVisitDuration(opts ...sql.OrderTermOption) OrderOption
ByVisitDuration orders the results by the visit_duration field.