reception

package
v0.0.0-...-61914f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for reception fields.

View Source
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 And

func And(predicates ...predicate.Reception) predicate.Reception

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Reception

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Reception

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Reception

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Reception

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Reception

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Reception

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Reception

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Reception

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Reception

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Reception

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Reception

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Reception

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Reception

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Reception

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Reception

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Reception

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Reception

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Reception

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Reception

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Reception

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.Reception

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Reception

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Reception

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Reception

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Reception

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Reception

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Reception

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Reception

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Reception

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Reception

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Reception

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Reception

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Reception

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Reception

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Reception

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Reception

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasPatient

func HasPatient() predicate.Reception

HasPatient applies the HasEdge predicate on the "patient" edge.

func HasPatientWith

func HasPatientWith(preds ...predicate.Patient) predicate.Reception

HasPatientWith applies the HasEdge predicate on the "patient" edge with a given conditions (other predicates).

func HasVisit

func HasVisit() predicate.Reception

HasVisit applies the HasEdge predicate on the "visit" edge.

func HasVisitWith

func HasVisitWith(preds ...predicate.Visit) predicate.Reception

HasVisitWith applies the HasEdge predicate on the "visit" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Reception

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Reception

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Reception

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Reception

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Reception

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Reception

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Reception

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Reception

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Reception

IDNotIn applies the NotIn predicate on the ID field.

func InsuranceCode

func InsuranceCode(v string) predicate.Reception

InsuranceCode applies equality check predicate on the "insurance_code" field. It's identical to InsuranceCodeEQ.

func InsuranceCodeContains

func InsuranceCodeContains(v string) predicate.Reception

InsuranceCodeContains applies the Contains predicate on the "insurance_code" field.

func InsuranceCodeContainsFold

func InsuranceCodeContainsFold(v string) predicate.Reception

InsuranceCodeContainsFold applies the ContainsFold predicate on the "insurance_code" field.

func InsuranceCodeEQ

func InsuranceCodeEQ(v string) predicate.Reception

InsuranceCodeEQ applies the EQ predicate on the "insurance_code" field.

func InsuranceCodeEqualFold

func InsuranceCodeEqualFold(v string) predicate.Reception

InsuranceCodeEqualFold applies the EqualFold predicate on the "insurance_code" field.

func InsuranceCodeGT

func InsuranceCodeGT(v string) predicate.Reception

InsuranceCodeGT applies the GT predicate on the "insurance_code" field.

func InsuranceCodeGTE

func InsuranceCodeGTE(v string) predicate.Reception

InsuranceCodeGTE applies the GTE predicate on the "insurance_code" field.

func InsuranceCodeHasPrefix

func InsuranceCodeHasPrefix(v string) predicate.Reception

InsuranceCodeHasPrefix applies the HasPrefix predicate on the "insurance_code" field.

func InsuranceCodeHasSuffix

func InsuranceCodeHasSuffix(v string) predicate.Reception

InsuranceCodeHasSuffix applies the HasSuffix predicate on the "insurance_code" field.

func InsuranceCodeIn

func InsuranceCodeIn(vs ...string) predicate.Reception

InsuranceCodeIn applies the In predicate on the "insurance_code" field.

func InsuranceCodeIsNil

func InsuranceCodeIsNil() predicate.Reception

InsuranceCodeIsNil applies the IsNil predicate on the "insurance_code" field.

func InsuranceCodeLT

func InsuranceCodeLT(v string) predicate.Reception

InsuranceCodeLT applies the LT predicate on the "insurance_code" field.

func InsuranceCodeLTE

func InsuranceCodeLTE(v string) predicate.Reception

InsuranceCodeLTE applies the LTE predicate on the "insurance_code" field.

func InsuranceCodeNEQ

func InsuranceCodeNEQ(v string) predicate.Reception

InsuranceCodeNEQ applies the NEQ predicate on the "insurance_code" field.

func InsuranceCodeNotIn

func InsuranceCodeNotIn(vs ...string) predicate.Reception

InsuranceCodeNotIn applies the NotIn predicate on the "insurance_code" field.

func InsuranceCodeNotNil

func InsuranceCodeNotNil() predicate.Reception

InsuranceCodeNotNil applies the NotNil predicate on the "insurance_code" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Reception) predicate.Reception

Or groups predicates with the OR operator between them.

func ReceptionFor

func ReceptionFor(v time.Time) predicate.Reception

ReceptionFor applies equality check predicate on the "reception_for" field. It's identical to ReceptionForEQ.

func ReceptionForEQ

func ReceptionForEQ(v time.Time) predicate.Reception

ReceptionForEQ applies the EQ predicate on the "reception_for" field.

func ReceptionForGT

func ReceptionForGT(v time.Time) predicate.Reception

ReceptionForGT applies the GT predicate on the "reception_for" field.

func ReceptionForGTE

func ReceptionForGTE(v time.Time) predicate.Reception

ReceptionForGTE applies the GTE predicate on the "reception_for" field.

func ReceptionForIn

func ReceptionForIn(vs ...time.Time) predicate.Reception

ReceptionForIn applies the In predicate on the "reception_for" field.

func ReceptionForLT

func ReceptionForLT(v time.Time) predicate.Reception

ReceptionForLT applies the LT predicate on the "reception_for" field.

func ReceptionForLTE

func ReceptionForLTE(v time.Time) predicate.Reception

ReceptionForLTE applies the LTE predicate on the "reception_for" field.

func ReceptionForNEQ

func ReceptionForNEQ(v time.Time) predicate.Reception

ReceptionForNEQ applies the NEQ predicate on the "reception_for" field.

func ReceptionForNotIn

func ReceptionForNotIn(vs ...time.Time) predicate.Reception

ReceptionForNotIn applies the NotIn predicate on the "reception_for" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Reception

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Reception

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Reception

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Reception

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Reception

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Reception

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Reception

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Reception

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Reception

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Reception

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Reception

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func VisitDuration

func VisitDuration(v int) predicate.Reception

VisitDuration applies equality check predicate on the "visit_duration" field. It's identical to VisitDurationEQ.

func VisitDurationEQ

func VisitDurationEQ(v int) predicate.Reception

VisitDurationEQ applies the EQ predicate on the "visit_duration" field.

func VisitDurationGT

func VisitDurationGT(v int) predicate.Reception

VisitDurationGT applies the GT predicate on the "visit_duration" field.

func VisitDurationGTE

func VisitDurationGTE(v int) predicate.Reception

VisitDurationGTE applies the GTE predicate on the "visit_duration" field.

func VisitDurationIn

func VisitDurationIn(vs ...int) predicate.Reception

VisitDurationIn applies the In predicate on the "visit_duration" field.

func VisitDurationLT

func VisitDurationLT(v int) predicate.Reception

VisitDurationLT applies the LT predicate on the "visit_duration" field.

func VisitDurationLTE

func VisitDurationLTE(v int) predicate.Reception

VisitDurationLTE applies the LTE predicate on the "visit_duration" field.

func VisitDurationNEQ

func VisitDurationNEQ(v int) predicate.Reception

VisitDurationNEQ applies the NEQ predicate on the "visit_duration" field.

func VisitDurationNotIn

func VisitDurationNotIn(vs ...int) predicate.Reception

VisitDurationNotIn applies the NotIn predicate on the "visit_duration" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL