text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func withNametitle(node *Nametitle) nametitleOption {
return func(m *NametitleMutation) {
m.oldValue = func(context.Context) (*Nametitle, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.3757520318031311,
-0.21602031588554382,
0.5482670664787292,
-0.30363088846206665,
-1.0170025825500488,
-0.7545830011367798,
-0.6071627140045166,
-1.0547806024551392,
0.5854179859161377,
0.7596280574798584,
-1.1880062818527222,
-0.2271042913198471,
0.45363688468933105,
-0.046719245612621... |
func (m NametitleMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.4795830249786377,
-0.35594677925109863,
0.0009944699704647064,
0.12413259595632553,
-1.3101575374603271,
0.17425230145454407,
0.08617501705884933,
-0.738084077835083,
0.21012920141220093,
-0.1475285291671753,
-0.9188946485519409,
0.3203980028629303,
-0.24375104904174805,
-0.841440856456... |
func (m NametitleMutation) Tx() (*Tx, error) {
if _, ok := m.driver.(*txDriver); !ok {
return nil, fmt.Errorf("ent: mutation is not running in a transaction")
}
tx := &Tx{config: m.config}
tx.init()
return tx, nil
} | [
-0.12191179394721985,
0.29049766063690186,
0.33995917439460754,
0.28019267320632935,
-0.38802698254585266,
0.12408647686243057,
-0.7364141345024109,
-0.11756347119808197,
0.4550589919090271,
0.3028888404369354,
-0.6243051886558533,
-0.37491512298583984,
-0.7578161358833313,
-0.823824524879... |
func (m *NametitleMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.7923859357833862,
-0.26124879717826843,
0.49040713906288147,
0.46134623885154724,
-0.5615801215171814,
0.31581351161003113,
-0.5250080823898315,
-0.26544061303138733,
0.9715019464492798,
0.5043795108795166,
-0.7594067454338074,
-0.7309065461158752,
-1.3124322891235352,
0.558787226676940... |
func (m *NametitleMutation) SetTitle(s string) {
m._Title = &s
} | [
-0.8637595176696777,
1.155726432800293,
0.019787050783634186,
1.0413569211959839,
-0.9129209518432617,
-0.5271908044815063,
-0.1999378502368927,
0.074347585439682,
0.029740510508418083,
-0.8907257914543152,
-1.191153645515442,
-0.7072705030441284,
-0.7998442649841309,
-0.022551240399479866... |
func (m *NametitleMutation) Title() (r string, exists bool) {
v := m._Title
if v == nil {
return
}
return *v, true
} | [
-1.5597293376922607,
1.3150557279586792,
0.35436367988586426,
0.53594571352005,
-0.5567783117294312,
-0.6064984202384949,
-0.6525274515151978,
-0.9442089796066284,
0.019426191225647926,
0.2189045250415802,
-0.406556636095047,
-1.274389624595642,
-1.0547386407852173,
-0.6854237914085388,
... |
func (m *NametitleMutation) OldTitle(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldTitle is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldTitle requires an ID field in the mutation")
}
oldValue, err := ... | [
-0.439489483833313,
0.09699025005102158,
0.17499791085720062,
0.4100208580493927,
-0.7751094102859497,
-0.2378414273262024,
-0.7483255863189697,
-1.0563229322433472,
0.4323388338088989,
0.47798600792884827,
-0.07850105315446854,
-0.3332660496234894,
-1.0650780200958252,
0.18995307385921478... |
func (m *NametitleMutation) ResetTitle() {
m._Title = nil
} | [
-0.584457516670227,
0.8439785838127136,
0.03525671362876892,
1.1585159301757812,
-0.32246828079223633,
-0.9395091533660889,
-0.4710533022880554,
0.013568060472607613,
-0.34224921464920044,
-0.28535035252571106,
-0.8176352977752686,
-0.120811328291893,
-1.416849970817566,
-0.357888638973236... |
func (m *NametitleMutation) AddEmployeeIDs(ids ...int) {
if m.employee == nil {
m.employee = make(map[int]struct{})
}
for i := range ids {
m.employee[ids[i]] = struct{}{}
}
} | [
-2.030344009399414,
-0.28600433468818665,
0.2750154435634613,
-0.6343151926994324,
-0.20003437995910645,
0.42491045594215393,
-1.0070425271987915,
0.6958521604537964,
-0.16554109752178192,
0.8620058298110962,
-0.9436326026916504,
-0.3883831202983856,
-0.9099997878074646,
0.5259348750114441... |
func (m *NametitleMutation) RemoveEmployeeIDs(ids ...int) {
if m.removedemployee == nil {
m.removedemployee = make(map[int]struct{})
}
for i := range ids {
m.removedemployee[ids[i]] = struct{}{}
}
} | [
-1.7240660190582275,
-0.7160648107528687,
0.2678373157978058,
-0.7384660840034485,
-1.0557456016540527,
0.13097523152828217,
-0.46111413836479187,
0.9400963187217712,
-0.2923974096775055,
1.1353938579559326,
-1.7789140939712524,
-0.28920820355415344,
-1.3731553554534912,
0.3115999698638916... |
func (m *NametitleMutation) RemovedEmployeeIDs() (ids []int) {
for id := range m.removedemployee {
ids = append(ids, id)
}
return
} | [
-1.0369535684585571,
-1.0764331817626953,
0.24810729920864105,
-0.22106105089187622,
-0.675463080406189,
0.4002244174480438,
-0.3265320062637329,
0.9648303389549255,
0.19722291827201843,
0.5108208656311035,
-1.7635362148284912,
0.8038896918296814,
-1.4077726602554321,
0.8736180067062378,
... |
func (m *NametitleMutation) EmployeeIDs() (ids []int) {
for id := range m.employee {
ids = append(ids, id)
}
return
} | [
-1.6369798183441162,
-0.6505813598632812,
0.09086725115776062,
-0.2715182602405548,
-0.6346161365509033,
0.6080091595649719,
-1.1724648475646973,
0.42849409580230713,
0.08806803077459335,
1.088767170906067,
-0.8030808568000793,
1.010793924331665,
-1.0548967123031616,
0.4397791922092438,
... |
func (m *NametitleMutation) ResetEmployee() {
m.employee = nil
m.removedemployee = nil
} | [
-0.3141421973705292,
-0.10958319902420044,
0.1757776439189911,
0.26433849334716797,
-0.20100393891334534,
0.20787352323532104,
0.1765729933977127,
0.7769469022750854,
-1.1528525352478027,
0.05349893122911453,
-0.7418825626373291,
-0.036671001464128494,
-1.165919542312622,
-0.14195959270000... |
func (m *NametitleMutation) AddPatientIDs(ids ...int) {
if m.patient == nil {
m.patient = make(map[int]struct{})
}
for i := range ids {
m.patient[ids[i]] = struct{}{}
}
} | [
-1.6581168174743652,
-0.06487958133220673,
0.2225886434316635,
-0.5784487724304199,
-0.7039768695831299,
0.10362552106380463,
-1.3356080055236816,
0.30999860167503357,
-0.1025255098938942,
0.3607800602912903,
-0.35544338822364807,
-0.24659931659698486,
-0.5884101390838623,
-0.1544255465269... |
func (m *NametitleMutation) RemovePatientIDs(ids ...int) {
if m.removedpatient == nil {
m.removedpatient = make(map[int]struct{})
}
for i := range ids {
m.removedpatient[ids[i]] = struct{}{}
}
} | [
-1.499137282371521,
-0.25920429825782776,
0.15769127011299133,
-0.5157380104064941,
-1.4266175031661987,
-0.16404086351394653,
-0.8639956712722778,
0.706061840057373,
-0.1597485989332199,
0.5830276608467102,
-0.8871580958366394,
-0.23496440052986145,
-1.2186977863311768,
-0.156365618109703... |
func (m *NametitleMutation) RemovedPatientIDs() (ids []int) {
for id := range m.removedpatient {
ids = append(ids, id)
}
return
} | [
-0.5854965448379517,
-0.7239903211593628,
0.22584210336208344,
-0.47051382064819336,
-1.3475677967071533,
-0.0033560022711753845,
-1.0119068622589111,
0.5684597492218018,
0.49800628423690796,
0.18630856275558472,
-0.973838210105896,
1.0243916511535645,
-1.1345443725585938,
0.31100839376449... |
func (m *NametitleMutation) PatientIDs() (ids []int) {
for id := range m.patient {
ids = append(ids, id)
}
return
} | [
-1.1373803615570068,
-0.5991758108139038,
0.05736273527145386,
-0.06696251779794693,
-0.6824201345443726,
0.020934613421559334,
-1.083579182624817,
0.24842329323291779,
0.27181535959243774,
0.6607683300971985,
-0.34624841809272766,
0.9749971628189087,
-0.6322507858276367,
-0.26120936870574... |
func (m *NametitleMutation) ResetPatient() {
m.patient = nil
m.removedpatient = nil
} | [
-0.5993577837944031,
0.33136090636253357,
0.11847507953643799,
-0.09660807996988297,
-0.4954473376274109,
0.013335439376533031,
-0.35796085000038147,
0.3220941424369812,
-0.4458305239677429,
-0.6031512022018433,
0.0034478805027902126,
0.5003288388252258,
-0.8596680164337158,
-0.85675173997... |
func (m *NametitleMutation) Op() Op {
return m.op
} | [
-1.1418907642364502,
-0.11886124312877655,
0.1165238618850708,
0.738711953163147,
-1.1892571449279785,
0.9196170568466187,
0.13714994490146637,
-0.17239831387996674,
0.36389026045799255,
0.6335195899009705,
-0.43478113412857056,
-0.6847939491271973,
-0.2701033353805542,
-0.807162344455719,... |
func (m *NametitleMutation) Type() string {
return m.typ
} | [
-0.7664157748222351,
-0.4411775469779968,
0.043235957622528076,
0.49570995569229126,
-0.226408451795578,
0.5317745208740234,
-0.011001797392964363,
-1.6186355352401733,
0.778552234172821,
0.49549588561058044,
-0.4465307891368866,
-0.2178245335817337,
-0.8314543962478638,
0.2588362693786621... |
func (m *NametitleMutation) Fields() []string {
fields := make([]string, 0, 1)
if m._Title != nil {
fields = append(fields, nametitle.FieldTitle)
}
return fields
} | [
-1.3635071516036987,
0.3367253243923187,
0.0846201628446579,
-0.5364491939544678,
-0.3684066832065582,
-0.026469238102436066,
-1.2607290744781494,
-0.6402162909507751,
0.6938231587409973,
0.11045782268047333,
-0.9056650400161743,
-0.6113966107368469,
-0.6744731664657593,
-0.133133441209793... |
func (m *NametitleMutation) Field(name string) (ent.Value, bool) {
switch name {
case nametitle.FieldTitle:
return m.Title()
}
return nil, false
} | [
-1.4457658529281616,
0.40839073061943054,
0.5361904501914978,
-0.2441149353981018,
-0.9188699722290039,
0.44371894001960754,
-1.6223089694976807,
-0.690436840057373,
0.41615626215934753,
0.14071856439113617,
-0.8837611079216003,
-0.7474991083145142,
-0.25989142060279846,
0.2306087017059326... |
func (m *NametitleMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case nametitle.FieldTitle:
return m.OldTitle(ctx)
}
return nil, fmt.Errorf("unknown Nametitle field %s", name)
} | [
-0.5166675448417664,
0.41465386748313904,
0.23015934228897095,
-0.7703849673271179,
-0.43372267484664917,
0.3272678852081299,
-0.9372048377990723,
-0.9023974537849426,
0.3044189512729645,
0.14268600940704346,
-0.8413424491882324,
-0.19500300288200378,
-0.44309043884277344,
0.17107149958610... |
func (m *NametitleMutation) SetField(name string, value ent.Value) error {
switch name {
case nametitle.FieldTitle:
v, ok := value.(string)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetTitle(v)
return nil
}
return fmt.Errorf("unknown Nametitle field %s", name)
} | [
-1.2658965587615967,
0.5781809091567993,
0.3444427251815796,
-0.13560061156749725,
-1.0613735914230347,
0.7135903239250183,
-1.4453024864196777,
-0.4683190882205963,
0.0488920621573925,
0.28946730494499207,
-0.9314247369766235,
-0.40654993057250977,
-0.2675645053386688,
0.6382348537445068,... |
func (m *NametitleMutation) AddedFields() []string {
return nil
} | [
-0.6284449696540833,
0.49504533410072327,
0.4907979369163513,
-0.12675140798091888,
-0.5084802508354187,
0.8056864738464355,
-0.5244396328926086,
-0.38608700037002563,
1.0217117071151733,
-0.867103099822998,
-0.9343402981758118,
-0.505442202091217,
-1.5953973531723022,
0.1940106898546219,
... |
func (m *NametitleMutation) AddedField(name string) (ent.Value, bool) {
return nil, false
} | [
-1.7248128652572632,
0.5496560335159302,
0.730593740940094,
-0.31184762716293335,
-0.8746451139450073,
1.1505361795425415,
-0.938791036605835,
-0.30365288257598877,
0.6785171031951904,
-0.2939966320991516,
-1.0451631546020508,
-1.2279284000396729,
-1.649389386177063,
0.15568950772285461,
... |
func (m *NametitleMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown Nametitle numeric field %s", name)
} | [
-1.0871764421463013,
0.430337518453598,
0.5677129626274109,
0.04833424836397171,
-0.7250137329101562,
1.3130483627319336,
-1.6865037679672241,
-0.5014876127243042,
-0.2883801758289337,
0.2488400936126709,
-0.34094560146331787,
-1.1126632690429688,
-0.20920540392398834,
0.2693401277065277,
... |
func (m *NametitleMutation) ClearedFields() []string {
return nil
} | [
-0.5327915549278259,
0.8834630250930786,
0.4081953465938568,
-0.14708730578422546,
-1.1430208683013916,
0.6179941296577454,
-0.5757970213890076,
-0.744184672832489,
0.7324745655059814,
0.581111490726471,
-0.7977237105369568,
-0.3246815502643585,
-1.224835991859436,
-0.6756256222724915,
-... |
func (m *NametitleMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.9607201814651489,
0.10702037066221237,
0.7784860730171204,
-0.19643008708953857,
-0.7241414189338684,
0.4769911468029022,
-1.1032813787460327,
-0.09365636110305786,
-0.04539794474840164,
-0.10463249683380127,
-1.2482253313064575,
-0.5101206302642822,
0.3666856288909912,
-0.3840543925762... |
func (m *NametitleMutation) ClearField(name string) error {
return fmt.Errorf("unknown Nametitle nullable field %s", name)
} | [
-0.6434577107429504,
0.6708520650863647,
0.4418775737285614,
-0.479437917470932,
-1.238219976425171,
0.7866753935813904,
-1.3559491634368896,
-0.7618386745452881,
0.1260181963443756,
1.0973968505859375,
-0.9056307077407837,
-0.6467112898826599,
-0.21521125733852386,
0.0028648260049521923,
... |
func (m *NametitleMutation) ResetField(name string) error {
switch name {
case nametitle.FieldTitle:
m.ResetTitle()
return nil
}
return fmt.Errorf("unknown Nametitle field %s", name)
} | [
-0.9030191898345947,
1.022757887840271,
0.2118156999349594,
-0.0034568309783935547,
-0.4569239914417267,
0.21082919836044312,
-0.6732420921325684,
-0.4685014486312866,
-0.03395858407020569,
0.4204578995704651,
-0.9750588536262512,
-0.4134317636489868,
-0.7623971104621887,
-0.15221302211284... |
func (m *NametitleMutation) AddedEdges() []string {
edges := make([]string, 0, 2)
if m.employee != nil {
edges = append(edges, nametitle.EdgeEmployee)
}
if m.patient != nil {
edges = append(edges, nametitle.EdgePatient)
}
return edges
} | [
-0.5533862113952637,
-0.4673211872577667,
0.23368410766124725,
0.024723760783672333,
-0.40094950795173645,
0.40273043513298035,
-1.9064152240753174,
-0.16511249542236328,
0.8537489175796509,
0.46891912817955017,
0.3335112929344177,
0.514846682548523,
-0.9020364880561829,
0.2856298089027405... |
func (m *NametitleMutation) AddedIDs(name string) []ent.Value {
switch name {
case nametitle.EdgeEmployee:
ids := make([]ent.Value, 0, len(m.employee))
for id := range m.employee {
ids = append(ids, id)
}
return ids
case nametitle.EdgePatient:
ids := make([]ent.Value, 0, len(m.patient))
for id := rang... | [
-0.847817063331604,
-0.4376629889011383,
0.3332515358924866,
-0.8781027793884277,
-0.5881773233413696,
0.4064261317253113,
-1.4317736625671387,
-0.19806209206581116,
0.5840005278587341,
0.3470863699913025,
0.155772864818573,
0.4638878405094147,
-0.8772732615470886,
0.2743552327156067,
-0... |
func (m *NametitleMutation) RemovedEdges() []string {
edges := make([]string, 0, 2)
if m.removedemployee != nil {
edges = append(edges, nametitle.EdgeEmployee)
}
if m.removedpatient != nil {
edges = append(edges, nametitle.EdgePatient)
}
return edges
} | [
-0.23395435512065887,
-0.479045033454895,
0.43940553069114685,
-0.03877151012420654,
-0.70375657081604,
-0.029314562678337097,
-1.2689212560653687,
0.4774639904499054,
0.7770009636878967,
0.44006067514419556,
-0.43521368503570557,
0.5055531859397888,
-1.1609455347061157,
0.1505074352025985... |
func (m *NametitleMutation) RemovedIDs(name string) []ent.Value {
switch name {
case nametitle.EdgeEmployee:
ids := make([]ent.Value, 0, len(m.removedemployee))
for id := range m.removedemployee {
ids = append(ids, id)
}
return ids
case nametitle.EdgePatient:
ids := make([]ent.Value, 0, len(m.removedpat... | [
-0.4684162139892578,
-0.5386127233505249,
0.48008742928504944,
-0.8144852519035339,
-0.6479448676109314,
0.08357778936624527,
-1.2630575895309448,
0.3119303286075592,
0.4526691436767578,
0.5558995604515076,
-0.7246300578117371,
0.5077688097953796,
-1.0789644718170166,
0.06159526854753494,
... |
func (m *NametitleMutation) ClearedEdges() []string {
edges := make([]string, 0, 2)
return edges
} | [
-0.9312182664871216,
-0.26066574454307556,
0.4179219603538513,
0.45362725853919983,
-1.2101229429244995,
0.07863450050354004,
-1.4151618480682373,
-0.8152002692222595,
0.5865478515625,
1.5848361253738403,
-0.19289632141590118,
0.8077185750007629,
-0.72353595495224,
-0.6748412251472473,
-... |
func (m *NametitleMutation) EdgeCleared(name string) bool {
switch name {
}
return false
} | [
-1.3590669631958008,
-0.23833873867988586,
0.5695028901100159,
-0.32099106907844543,
-1.1278177499771118,
0.6983078718185425,
-1.1458206176757812,
-0.47491195797920227,
0.1054687649011612,
0.6385671496391296,
-0.4632318317890167,
-0.670762836933136,
-0.8139418959617615,
-0.0363407060503959... |
func (m *NametitleMutation) ClearEdge(name string) error {
switch name {
}
return fmt.Errorf("unknown Nametitle unique edge %s", name)
} | [
-1.1613293886184692,
0.7252227067947388,
0.3602731227874756,
0.6552904844284058,
-1.0140020847320557,
0.27514147758483887,
-1.1165363788604736,
0.21777071058750153,
0.057682644575834274,
1.1825904846191406,
-0.3032778799533844,
-0.2542959749698639,
-0.49490049481391907,
0.3791186213493347,... |
func (m *NametitleMutation) ResetEdge(name string) error {
switch name {
case nametitle.EdgeEmployee:
m.ResetEmployee()
return nil
case nametitle.EdgePatient:
m.ResetPatient()
return nil
}
return fmt.Errorf("unknown Nametitle edge %s", name)
} | [
-1.1479309797286987,
0.35142841935157776,
0.2584149241447449,
0.5994395613670349,
-0.09528272598981857,
-0.2301701158285141,
-0.7843004465103149,
0.49393197894096375,
-0.3770238757133484,
1.076125144958496,
-0.2798974812030792,
0.1765945553779602,
-1.2834630012512207,
-0.15169158577919006,... |
func newPatientMutation(c config, op Op, opts ...patientOption) *PatientMutation {
m := &PatientMutation{
config: c,
op: op,
typ: TypePatient,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-0.9476867318153381,
-0.2492341846227646,
0.29515063762664795,
0.5752735137939453,
-0.8837549090385437,
-0.6365183591842651,
0.5516400933265686,
0.16883224248886108,
0.4991978108882904,
0.6095196008682251,
-0.4079235792160034,
-0.12439600378274918,
-0.49988994002342224,
-0.8780408501625061... |
func withPatientID(id int) patientOption {
return func(m *PatientMutation) {
var (
err error
once sync.Once
value *Patient
)
m.oldValue = func(ctx context.Context) (*Patient, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed")
} e... | [
0.2686242461204529,
-0.5425868034362793,
0.3704394996166229,
-0.38917431235313416,
-0.37788155674934387,
0.6086398363113403,
-0.02211877331137657,
-0.5616989135742188,
0.796180009841919,
0.45072051882743835,
0.5948954224586487,
0.2973516881465912,
0.07486210763454437,
0.10279366374015808,
... |
func withPatient(node *Patient) patientOption {
return func(m *PatientMutation) {
m.oldValue = func(context.Context) (*Patient, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.4594059884548187,
-0.019472191110253334,
0.3921161890029907,
-0.6536418199539185,
-0.3798184394836426,
0.18265751004219055,
0.28589561581611633,
-0.5069860816001892,
0.49568596482276917,
-0.3924933075904846,
0.3256748914718628,
0.13769805431365967,
0.9362784624099731,
-0.624787211418151... |
func (m PatientMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.07408963143825531,
-0.5799469351768494,
0.017282575368881226,
0.36052894592285156,
-0.2936544120311737,
0.3458043038845062,
0.8599284291267395,
-0.05068626627326012,
0.38142576813697815,
-0.48434609174728394,
-0.5271387696266174,
0.7852861285209656,
0.21166659891605377,
-1.0740933418273... |
func (m PatientMutation) Tx() (*Tx, error) {
if _, ok := m.driver.(*txDriver); !ok {
return nil, fmt.Errorf("ent: mutation is not running in a transaction")
}
tx := &Tx{config: m.config}
tx.init()
return tx, nil
} | [
0.1965360939502716,
0.18918173015117645,
0.3678712248802185,
0.5960854887962341,
0.2996179759502411,
-0.025183148682117462,
0.019651196897029877,
0.5079366564750671,
0.524487316608429,
-0.021226130425930023,
-0.009251214563846588,
-0.14877234399318695,
-0.3154061436653137,
-0.9449329376220... |
func (m *PatientMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.3907608687877655,
-0.4107683598995209,
0.6700782179832458,
0.5019225478172302,
0.34180137515068054,
0.21321164071559906,
0.257540225982666,
0.5029556155204773,
1.0410503149032593,
0.4196908175945282,
-0.25258541107177734,
-0.42448052763938904,
-0.7571747303009033,
0.32457834482192993,
... |
func (m *PatientMutation) SetIdcard(s string) {
m._Idcard = &s
} | [
-0.5006157755851746,
0.35739225149154663,
0.21162019670009613,
-0.5496670603752136,
-0.05910641700029373,
0.4049622118473053,
0.36103031039237976,
0.2345263808965683,
0.4598107933998108,
-0.8256008625030518,
-1.036680817604065,
0.4148581624031067,
-0.34419646859169006,
0.32152485847473145,... |
func (m *PatientMutation) Idcard() (r string, exists bool) {
v := m._Idcard
if v == nil {
return
}
return *v, true
} | [
-1.1008024215698242,
0.6510108113288879,
0.6490364074707031,
-0.4390549659729004,
-0.0659097284078598,
0.207441508769989,
-0.11169982701539993,
0.040307819843292236,
0.8690122365951538,
-0.11040081828832626,
-0.40878942608833313,
-0.5451764464378357,
-0.6974535584449768,
-0.171107739210128... |
func (m *PatientMutation) OldIdcard(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldIdcard is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldIdcard requires an ID field in the mutation")
}
oldValue, err :=... | [
-0.5734532475471497,
-0.4932313561439514,
0.5590140223503113,
-0.951831042766571,
-0.08011361956596375,
-0.04257442429661751,
-0.20933882892131805,
-0.25900301337242126,
0.6559527516365051,
0.20785290002822876,
-0.10004810988903046,
0.3193003833293915,
-0.5394006967544556,
0.24613457918167... |
func (m *PatientMutation) ResetIdcard() {
m._Idcard = nil
} | [
-0.5162162184715271,
0.10583557933568954,
0.18473678827285767,
-0.2494673728942871,
0.5258232355117798,
-0.3670658469200134,
0.17800113558769226,
-0.02486228011548519,
0.0648740828037262,
-0.13100281357765198,
-0.9333125948905945,
0.902620792388916,
-1.0174410343170166,
-0.2564613819122314... |
func (m *PatientMutation) SetPatientName(s string) {
m._PatientName = &s
} | [
-0.6733690500259399,
0.4753988981246948,
0.05687316879630089,
0.5919393301010132,
-1.0187870264053345,
-0.23870934545993805,
0.40099695324897766,
0.8048902750015259,
-0.2508842349052429,
-0.26778072118759155,
-0.09002366662025452,
-0.6556537747383118,
0.1805836707353592,
0.0212089288979768... |
func (m *PatientMutation) PatientName() (r string, exists bool) {
v := m._PatientName
if v == nil {
return
}
return *v, true
} | [
-1.5535107851028442,
0.6231341361999512,
0.6218709945678711,
0.42227333784103394,
-0.574687659740448,
-0.6126720905303955,
0.30818647146224976,
0.13793720304965973,
0.08177254348993301,
0.911548912525177,
-0.08696581423282623,
-0.96225506067276,
-0.3386864960193634,
-0.6162402629852295,
... |
func (m *PatientMutation) OldPatientName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldPatientName is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldPatientName requires an ID field in the mutation")
}
o... | [
-0.7304543256759644,
-0.2102074921131134,
0.444756418466568,
0.05070919543504715,
-0.8753633499145508,
-0.1788490265607834,
0.05675132945179939,
-0.047226522117853165,
0.23753078281879425,
0.5233182907104492,
0.5585522651672363,
-0.07442101836204529,
-0.23775270581245422,
0.240525811910629... |
func (m *PatientMutation) ResetPatientName() {
m._PatientName = nil
} | [
-0.49348780512809753,
0.13570213317871094,
-0.03863918036222458,
0.7962278127670288,
-0.6672354936599731,
-0.6577050685882568,
0.3243117332458496,
0.47145897150039673,
-0.6942498087882996,
0.09246033430099487,
0.18747428059577942,
0.44973015785217285,
-0.4767272174358368,
-0.80186104774475... |
func (m *PatientMutation) SetAddress(s string) {
m._Address = &s
} | [
-0.16918568313121796,
0.008182366378605366,
0.10370945185422897,
0.6078550815582275,
-0.01883128099143505,
0.811120331287384,
0.2325928807258606,
0.9434667825698853,
0.8408844470977783,
-0.7891618013381958,
-0.2992297112941742,
0.40887024998664856,
-0.22037065029144287,
0.02912657707929611... |
func (m *PatientMutation) Address() (r string, exists bool) {
v := m._Address
if v == nil {
return
}
return *v, true
} | [
-0.8862469792366028,
-0.2694929838180542,
0.6719163656234741,
0.2973906397819519,
0.01587807759642601,
0.14992322027683258,
0.13180074095726013,
0.19965875148773193,
0.7745018601417542,
0.5267588496208191,
0.3727477192878723,
-0.20233981311321259,
-0.6215100884437561,
-0.34513476490974426,... |
func (m *PatientMutation) OldAddress(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldAddress is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldAddress requires an ID field in the mutation")
}
oldValue, err... | [
-0.15880700945854187,
-0.5897656679153442,
0.47037118673324585,
0.23379157483577728,
0.29276302456855774,
-0.0028611216694116592,
0.32548800110816956,
0.013780509121716022,
1.1694669723510742,
0.14877420663833618,
0.5685150027275085,
0.745204508304596,
-0.6131494641304016,
0.24964179098606... |
func (m *PatientMutation) ResetAddress() {
m._Address = nil
} | [
-0.20457307994365692,
-0.2949865758419037,
0.19868147373199463,
0.7874555587768555,
0.8837136030197144,
-0.30479156970977783,
0.6252112984657288,
0.8617607951164246,
0.4210967719554901,
-0.6784564852714539,
0.14043015241622925,
1.1960539817810059,
-0.8515409231185913,
-0.509184718132019,
... |
func (m *PatientMutation) SetCongenital(s string) {
m._Congenital = &s
} | [
0.030950654298067093,
-0.012602006085216999,
0.33526524901390076,
0.2008475959300995,
-0.5356610417366028,
0.5869666934013367,
0.7729527950286865,
1.112305760383606,
-1.3349112272262573,
-0.08276282995939255,
0.0379309207201004,
0.36679959297180176,
0.21884173154830933,
-0.3740710318088531... |
func (m *PatientMutation) Congenital() (r string, exists bool) {
v := m._Congenital
if v == nil {
return
}
return *v, true
} | [
0.2499575912952423,
0.20566028356552124,
0.673061728477478,
-0.2110784649848938,
-0.08580043911933899,
0.19064077734947205,
0.1539415568113327,
0.3515911400318146,
-0.4171566665172577,
0.2560666501522064,
0.25228726863861084,
-0.1320563554763794,
-0.2957192361354828,
-1.062172293663025,
... |
func (m *PatientMutation) OldCongenital(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldCongenital is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldCongenital requires an ID field in the mutation")
}
oldV... | [
-0.05392064154148102,
-0.5529868602752686,
0.6494802832603455,
0.030288364738225937,
-0.5818615555763245,
0.08619311451911926,
0.3482171297073364,
0.3825005292892456,
-0.6296980381011963,
0.8577573299407959,
0.8440517783164978,
0.41650354862213135,
0.14427560567855835,
0.02692010998725891,... |
func (m *PatientMutation) ResetCongenital() {
m._Congenital = nil
} | [
0.13916443288326263,
-0.26015886664390564,
0.29615411162376404,
0.9646210074424744,
-0.13318423926830292,
0.3165247142314911,
1.0608214139938354,
1.1934139728546143,
-1.873134970664978,
0.037034694105386734,
0.28390491008758545,
1.0583927631378174,
-0.6496789455413818,
-0.8711234331130981,... |
func (m *PatientMutation) SetAllergic(s string) {
m._Allergic = &s
} | [
0.7601544857025146,
0.28401055932044983,
0.21128533780574799,
-0.20855695009231567,
-0.7915301322937012,
0.5070386528968811,
-0.0834205150604248,
0.5999392867088318,
-0.8532315492630005,
0.0186061542481184,
-0.1083812415599823,
0.8878369331359863,
0.927667498588562,
-0.3939204812049866,
... |
func (m *PatientMutation) Allergic() (r string, exists bool) {
v := m._Allergic
if v == nil {
return
}
return *v, true
} | [
-0.15099461376667023,
0.35291075706481934,
0.6305305361747742,
-0.4296180009841919,
-0.1456100046634674,
-0.5867569446563721,
-0.30534443259239197,
-0.21284911036491394,
-0.28213930130004883,
1.0529770851135254,
-0.04297364503145218,
-0.1935701072216034,
0.4206472337245941,
-1.042416095733... |
func (m *PatientMutation) OldAllergic(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldAllergic is allowed only on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldAllergic requires an ID field in the mutation")
}
oldValue, ... | [
0.6778417825698853,
-0.14773225784301758,
0.48831355571746826,
-0.16432933509349823,
-0.901393473148346,
-0.3535390794277191,
-0.12494786828756332,
-0.12336132675409317,
-0.38119420409202576,
1.2361693382263184,
0.7440899610519409,
0.676744818687439,
0.9474429488182068,
-0.3190153241157532... |
func (m *PatientMutation) ResetAllergic() {
m._Allergic = nil
} | [
0.8559994697570801,
-0.03508494794368744,
0.2527415454387665,
0.33838367462158203,
-0.26005396246910095,
-0.01956147700548172,
0.01201608031988144,
0.390957772731781,
-1.1257392168045044,
0.6414868235588074,
0.012747271917760372,
1.2560770511627197,
0.48967528343200684,
-0.9912883639335632... |
func (m *PatientMutation) SetEmployeeID(id int) {
m.employee = &id
} | [
-0.8940469026565552,
-0.2495030015707016,
0.12788990139961243,
0.07473606616258621,
-0.1231720894575119,
1.0369974374771118,
-0.014053331688046455,
1.2990833520889282,
-0.0075683132745325565,
0.43855929374694824,
-0.7599141001701355,
0.10326290130615234,
-0.5744291543960571,
1.608712911605... |
func (m *PatientMutation) ClearEmployee() {
m.clearedemployee = true
} | [
0.0025813006795942783,
0.24281612038612366,
0.18887144327163696,
0.6043093204498291,
-0.7306679487228394,
1.1899269819259644,
0.24897374212741852,
0.36054909229278564,
-0.587797999382019,
0.5801801085472107,
-0.0918399766087532,
-0.08636797964572906,
-0.44270822405815125,
0.305826485157012... |
func (m *PatientMutation) EmployeeCleared() bool {
return m.clearedemployee
} | [
-0.37491679191589355,
-0.3582577109336853,
0.4217114746570587,
0.09029757231473923,
-0.4726024270057678,
0.9866573214530945,
-0.5290117859840393,
0.12116910517215729,
-0.31290391087532043,
0.30246832966804504,
-0.3483215570449829,
0.21978667378425598,
-0.5899233222007751,
-0.36817184090614... |
func (m *PatientMutation) EmployeeID() (id int, exists bool) {
if m.employee != nil {
return *m.employee, true
}
return
} | [
-0.6415436863899231,
-0.5113678574562073,
0.6399983167648315,
0.18961811065673828,
-0.03554689139127731,
1.1022907495498657,
-0.00488295266404748,
0.7226407527923584,
0.6836825609207153,
1.0938488245010376,
0.08435998857021332,
-0.2675233781337738,
-0.8723962306976318,
1.005448818206787,
... |
func (m *PatientMutation) EmployeeIDs() (ids []int) {
if id := m.employee; id != nil {
ids = append(ids, *id)
}
return
} | [
-1.1010154485702515,
-0.4284747838973999,
0.13084635138511658,
0.14517925679683685,
0.20507949590682983,
0.4690035283565521,
-0.5204874277114868,
0.726693332195282,
0.5161739587783813,
0.5416349768638611,
-0.21392840147018433,
0.7092143893241882,
-0.9396690726280212,
0.7474563717842102,
... |
func (m *PatientMutation) ResetEmployee() {
m.employee = nil
m.clearedemployee = false
} | [
-0.11178279668092728,
0.032375745475292206,
0.18680202960968018,
0.5058798789978027,
0.00032964893034659326,
0.2564711570739746,
0.6553750038146973,
1.0435231924057007,
-1.1264255046844482,
-0.09966403245925903,
-0.10044039040803909,
0.1762731671333313,
-1.0738072395324707,
-0.040098890662... |
func (m *PatientMutation) SetCategoryID(id int) {
m.category = &id
} | [
-0.09219283610582352,
-0.4857627749443054,
0.12171067297458649,
0.3627959191799164,
-0.13531997799873352,
0.5931730270385742,
-0.16006967425346375,
0.7432389259338379,
0.09331119060516357,
-0.03577350452542305,
-0.025366371497511864,
-0.0017666221829131246,
-0.20784880220890045,
1.81760239... |
func (m *PatientMutation) ClearCategory() {
m.clearedcategory = true
} | [
0.13895219564437866,
0.5166400074958801,
0.2537294924259186,
0.8956526517868042,
0.10510165989398956,
0.24417053163051605,
0.13294318318367004,
-0.11780010908842087,
0.1422615945339203,
-0.05536779761314392,
0.9964703321456909,
0.4416959285736084,
0.6942728757858276,
0.9339434504508972,
... |
func (m *PatientMutation) CategoryCleared() bool {
return m.clearedcategory
} | [
-0.129276841878891,
-0.03977089002728462,
0.4008972644805908,
0.5796874165534973,
-0.5707516074180603,
0.3168800175189972,
-0.39726945757865906,
-0.3459687829017639,
0.274169385433197,
-0.5995199084281921,
0.3333617150783539,
0.11452952027320862,
0.7689168453216553,
-0.02365724928677082,
... |
func (m *PatientMutation) CategoryID() (id int, exists bool) {
if m.category != nil {
return *m.category, true
}
return
} | [
-0.22523409128189087,
-0.08676063269376755,
0.6947782039642334,
0.22066417336463928,
0.044930342584848404,
0.5882279276847839,
0.5279223322868347,
0.7916957139968872,
0.7301205396652222,
0.46374520659446716,
0.3511807918548584,
-0.3153426945209503,
-0.21961776912212372,
1.230592131614685,
... |
func (m *PatientMutation) CategoryIDs() (ids []int) {
if id := m.category; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.638144850730896,
-0.09995967894792557,
0.14306382834911346,
0.38350602984428406,
0.1919226199388504,
-0.13777945935726166,
-0.003444168483838439,
0.48837852478027344,
0.5113188028335571,
-0.22300845384597778,
0.05311977118253708,
0.34704840183258057,
-0.251833438873291,
1.02049660682678... |
func (m *PatientMutation) ResetCategory() {
m.category = nil
m.clearedcategory = false
} | [
0.02335083670914173,
0.2890356779098511,
0.13492050766944885,
0.7799278497695923,
0.823718249797821,
-0.6908923387527466,
0.8067083358764648,
0.4494348168373108,
-0.032243724912405014,
-0.6398956179618835,
0.7798410058021545,
0.9247947335243225,
-0.0733904093503952,
0.6291603446006775,
-... |
func (m *PatientMutation) SetBloodtypeID(id int) {
m.bloodtype = &id
} | [
-0.03555221110582352,
0.2751048505306244,
0.3316268026828766,
0.8705195784568787,
0.24969758093357086,
0.40705418586730957,
-0.628738284111023,
-0.5305169224739075,
0.43721890449523926,
1.1860474348068237,
-0.89493727684021,
0.30473312735557556,
-1.0669281482696533,
2.165743112564087,
-0... |
func (m *PatientMutation) ClearBloodtype() {
m.clearedbloodtype = true
} | [
0.4913201630115509,
0.9281963109970093,
0.39453136920928955,
0.93159019947052,
0.0895790308713913,
0.5106845498085022,
-0.2737521529197693,
-0.7013829946517944,
0.013693967834115028,
0.7446604371070862,
0.42197975516319275,
0.944585382938385,
-0.31363269686698914,
1.2423288822174072,
-0.... |
func (m *PatientMutation) BloodtypeCleared() bool {
return m.clearedbloodtype
} | [
0.07989443838596344,
0.48506540060043335,
0.4053269326686859,
0.6146016716957092,
0.18076379597187042,
0.1862587332725525,
-0.49543118476867676,
-0.6282452344894409,
0.1178741306066513,
1.1094447374343872,
0.08729568868875504,
0.6170469522476196,
-0.7873931527137756,
0.8877752423286438,
... |
func (m *PatientMutation) BloodtypeID() (id int, exists bool) {
if m.bloodtype != nil {
return *m.bloodtype, true
}
return
} | [
0.11566420644521713,
0.6360616683959961,
0.7784177660942078,
0.8438525199890137,
0.5657230615615845,
0.08945813030004501,
-0.6866512298583984,
-0.34485504031181335,
0.851347804069519,
1.9532852172851562,
-0.5368820428848267,
-0.17381897568702698,
-1.1768381595611572,
1.848760962486267,
-... |
func (m *PatientMutation) BloodtypeIDs() (ids []int) {
if id := m.bloodtype; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.16000042855739594,
0.5601788759231567,
0.41336414217948914,
1.1116682291030884,
1.0081887245178223,
-0.12155080586671829,
-0.6349126100540161,
-0.4673095643520355,
0.49589064717292786,
1.3108296394348145,
-0.8856278657913208,
0.5781920552253723,
-1.2601021528244019,
1.5190088748931885,
... |
func (m *PatientMutation) ResetBloodtype() {
m.bloodtype = nil
m.clearedbloodtype = false
} | [
0.6255530118942261,
0.8710595965385437,
0.38021165132522583,
0.9929822683334351,
0.5542770624160767,
-0.177371546626091,
-0.03420969098806381,
-0.235062837600708,
-0.22951680421829224,
0.426790714263916,
0.1211235448718071,
1.0792994499206543,
-1.0335686206817627,
1.2041001319885254,
0.0... |
func (m *PatientMutation) SetGenderID(id int) {
m.gender = &id
} | [
-0.8721047043800354,
0.19679008424282074,
0.055337149649858475,
0.3952774107456207,
-0.04969403147697449,
1.5103435516357422,
-0.42582350969314575,
1.0472848415374756,
-0.5647882223129272,
0.03388792648911476,
-1.2735116481781006,
0.9838434457778931,
-0.20981980860233307,
2.105296134948730... |
func (m *PatientMutation) ClearGender() {
m.clearedgender = true
} | [
-0.1705150604248047,
0.6459383964538574,
0.29582786560058594,
0.6941874027252197,
-0.10896626859903336,
1.132360816001892,
0.05646827071905136,
0.1060590147972107,
-0.7763769626617432,
-0.4364892840385437,
-0.3802618086338043,
0.6232507228851318,
-0.03263440355658531,
1.2062959671020508,
... |
func (m *PatientMutation) GenderCleared() bool {
return m.clearedgender
} | [
-0.2324034869670868,
0.3026832044124603,
0.4141438901424408,
-0.06695804744958878,
-0.43491530418395996,
0.782895028591156,
-0.8975566029548645,
-0.2615823745727539,
-1.036279559135437,
-0.3172869086265564,
-0.6222429275512695,
0.4271079897880554,
-0.08283203095197678,
0.3320668637752533,
... |
func (m *PatientMutation) GenderID() (id int, exists bool) {
if m.gender != nil {
return *m.gender, true
}
return
} | [
-0.29412105679512024,
0.4903014898300171,
0.6702671051025391,
0.31609293818473816,
0.20107966661453247,
0.8508533239364624,
-0.1630987823009491,
1.10958993434906,
-0.1099507212638855,
0.8536211252212524,
-0.7368350028991699,
-0.062440428882837296,
-0.42060616612434387,
1.4281116724014282,
... |
func (m *PatientMutation) GenderIDs() (ids []int) {
if id := m.gender; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.7637983560562134,
0.5329116582870483,
0.18812181055545807,
0.3467089831829071,
0.4737425744533539,
0.2797684669494629,
-0.6318864822387695,
0.6939437985420227,
-0.2699408233165741,
0.17966784536838531,
-1.2031314373016357,
0.7627447247505188,
-0.42902812361717224,
1.3332384824752808,
... |
func (m *PatientMutation) ResetGender() {
m.gender = nil
m.clearedgender = false
} | [
-0.4606544077396393,
0.6546503305435181,
0.32270577549934387,
0.8357030749320984,
0.5564739108085632,
0.307377427816391,
0.5068579912185669,
0.7937265634536743,
-0.9744511842727661,
-0.9034639596939087,
-0.7228782176971436,
0.9861792325973511,
-0.590468168258667,
0.8604544401168823,
1.18... |
func (m *PatientMutation) SetNametitleID(id int) {
m.nametitle = &id
} | [
-0.6417875289916992,
-0.09571292996406555,
0.08834796398878098,
-0.08365114033222198,
-1.7757349014282227,
0.08896652609109879,
-1.6536279916763306,
-0.42158767580986023,
0.20699720084667206,
1.276423692703247,
-1.610183835029602,
0.07804568856954575,
-0.6355655193328857,
1.081941962242126... |
func (m *PatientMutation) ClearNametitle() {
m.clearednametitle = true
} | [
-0.14589723944664001,
0.2528604567050934,
0.14089728891849518,
0.09274949133396149,
-1.575987458229065,
0.09514198452234268,
-1.1083393096923828,
-0.6838420033454895,
-0.22203543782234192,
1.1974941492080688,
-1.0993542671203613,
0.24740658700466156,
-0.33733025193214417,
-0.01584761403501... |
func (m *PatientMutation) NametitleCleared() bool {
return m.clearednametitle
} | [
-0.40661296248435974,
-0.1693287044763565,
0.3321031630039215,
-0.07915740460157394,
-1.431958556175232,
0.4358237385749817,
-1.4288774728775024,
-0.9819236397743225,
-0.12375523149967194,
0.3943865895271301,
-1.1141408681869507,
-0.3369646370410919,
-0.6980746388435364,
-0.442129373550415... |
func (m *PatientMutation) NametitleID() (id int, exists bool) {
if m.nametitle != nil {
return *m.nametitle, true
}
return
} | [
-0.4838012456893921,
0.08080713450908661,
0.42505067586898804,
-0.01637955568730831,
-1.144965410232544,
-0.24666160345077515,
-1.5558490753173828,
-0.6060723662376404,
0.5108803510665894,
1.6738553047180176,
-0.9930378794670105,
-0.3971671462059021,
-1.112871527671814,
0.970943808555603,
... |
func (m *PatientMutation) NametitleIDs() (ids []int) {
if id := m.nametitle; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.7490260601043701,
0.10883506387472153,
0.2048671543598175,
0.21514447033405304,
-0.97890305519104,
-0.4540155231952667,
-1.8450334072113037,
-0.515440821647644,
0.26996082067489624,
1.173223614692688,
-1.3358755111694336,
0.21308472752571106,
-1.1333197355270386,
0.2714884877204895,
-... |
func (m *PatientMutation) ResetNametitle() {
m.nametitle = nil
m.clearednametitle = false
} | [
-0.008134645409882069,
0.03758586198091507,
0.03812386840581894,
0.3934575617313385,
-0.9375618696212769,
-0.7800880670547485,
-0.6844520568847656,
-0.45454975962638855,
-0.5596622228622437,
0.7802069783210754,
-1.4595385789871216,
0.2700781524181366,
-0.9782436490058899,
-0.17516136169433... |
func (m *PatientMutation) AddDiagnosiIDs(ids ...int) {
if m.diagnosis == nil {
m.diagnosis = make(map[int]struct{})
}
for i := range ids {
m.diagnosis[ids[i]] = struct{}{}
}
} | [
-1.1671807765960693,
-0.2039223313331604,
0.32748496532440186,
0.09709648042917252,
-0.04099021479487419,
-0.11860556155443192,
-0.7563437819480896,
0.7608664631843567,
0.46194031834602356,
0.019690392538905144,
-0.7970930933952332,
-1.038040280342102,
0.48483267426490784,
0.01079863868653... |
func (m *PatientMutation) RemoveDiagnosiIDs(ids ...int) {
if m.removeddiagnosis == nil {
m.removeddiagnosis = make(map[int]struct{})
}
for i := range ids {
m.removeddiagnosis[ids[i]] = struct{}{}
}
} | [
-0.7710438966751099,
-0.6282602548599243,
0.2402171641588211,
0.16107548773288727,
-0.3810098469257355,
-0.3796524107456207,
0.06975944340229034,
1.488452672958374,
0.5976220369338989,
0.13116194307804108,
-1.3344802856445312,
-0.658299446105957,
-0.12381602078676224,
-0.29909926652908325,... |
func (m *PatientMutation) RemovedDiagnosisIDs() (ids []int) {
for id := range m.removeddiagnosis {
ids = append(ids, id)
}
return
} | [
-0.3639124929904938,
-0.6031948328018188,
0.2579405605792999,
0.07649510353803635,
-0.6810789108276367,
-0.11080974340438843,
0.36433500051498413,
0.6619769334793091,
1.3091901540756226,
-0.44390425086021423,
-0.9928950071334839,
-0.10603141784667969,
-0.012621359899640083,
0.3716609776020... |
func (m *PatientMutation) DiagnosisIDs() (ids []int) {
for id := range m.diagnosis {
ids = append(ids, id)
}
return
} | [
-1.0091735124588013,
-0.41455549001693726,
0.13628515601158142,
0.5479605793952942,
-0.02444075234234333,
-0.09747530519962311,
-0.5422829985618591,
0.9337720274925232,
0.12420501559972763,
0.6432775855064392,
-0.19068610668182373,
-0.5410724878311157,
0.2175304889678955,
0.293895989656448... |
func (m *PatientMutation) ResetDiagnosis() {
m.diagnosis = nil
m.removeddiagnosis = nil
} | [
-0.253617525100708,
0.0786145031452179,
0.08855263888835907,
1.1828579902648926,
0.5535831451416016,
-0.6233917474746704,
0.6333725452423096,
0.7293235063552856,
-0.23181167244911194,
0.18714109063148499,
-0.36123743653297424,
-0.3911983370780945,
0.35411813855171204,
-0.33992481231689453,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.