model

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllSex = []Sex{
	SexMale,
	SexFemale,
	SexOther,
}

Functions

This section is empty.

Types

type Admin

type Admin struct {
	ID       string `json:"id" bson:"_id"`
	Email    string `json:"email" bson:"email"`
	Password string `json:"password" bson:"password"`
	Name     string `json:"name" bson:"name"`
	LastName string `json:"last_name" bson:"last_name"`
}

type Alert

type Alert struct {
	ID       string   `json:"id" bson:"_id"`
	Name     string   `json:"name" bson:"name"`
	Sex      *string  `json:"sex,omitempty" bson:"sex"`
	Height   *int     `json:"height,omitempty" bson:"height"`
	Weight   *int     `json:"weight,omitempty" bson:"weight"`
	Symptoms []string `json:"symptoms" bson:"symptoms"`
	Comment  string   `json:"comment" bson:"comment"`
}

type AnteChir

type AnteChir struct {
	ID              string   `json:"id" bson:"_id"`
	Name            string   `json:"name" bson:"name"`
	Localisation    string   `json:"localisation" bson:"localisation"`
	InducedSymptoms []string `json:"induced_symptoms,omitempty" bson:"induced_symptoms"`
}

type AnteDisease

type AnteDisease struct {
	ID         string   `json:"id" bson:"_id"`
	Name       string   `json:"name" bson:"name"`
	Chronicity float64  `json:"chronicity" bson:"chronicity"`
	Chir       *string  `json:"chir,omitempty" bson:"chir"`
	Treatment  []string `json:"treatment,omitempty" bson:"treatment"`
	Symptoms   []string `json:"symptoms,omitempty" bson:"symptoms"`
}

type AnteFamily

type AnteFamily struct {
	ID      string   `json:"id" bson:"_id"`
	Name    string   `json:"name" bson:"name"`
	Disease []string `json:"disease" bson:"disease"`
}

type Category

type Category string
const (
	CategoryGeneral Category = "GENERAL"
	CategoryFinance Category = "FINANCE"
)

func (Category) IsValid

func (e Category) IsValid() bool

func (Category) MarshalGQL

func (e Category) MarshalGQL(w io.Writer)

func (Category) String

func (e Category) String() string

func (*Category) UnmarshalGQL

func (e *Category) UnmarshalGQL(v interface{}) error

type DemoAccount

type DemoAccount struct {
	ID       string `json:"id" bson:"_id"`
	Email    string `json:"email" bson:"email"`
	Password string `json:"password" bson:"password"`
}

type Disease

type Disease struct {
	ID               string           `json:"id" bson:"_id"`
	Code             string           `json:"code" bson:"code"`
	Name             string           `json:"name" bson:"name"`
	Symptoms         []string         `json:"symptoms" bson:"symptoms"`
	SymptomsAcute    []*SymptomWeight `json:"symptoms_acute,omitempty" bson:"symptoms_acute"`
	SymptomsSubacute []*SymptomWeight `json:"symptoms_subacute,omitempty" bson:"symptoms_subacute"`
	SymptomsChronic  []*SymptomWeight `json:"symptoms_chronic,omitempty" bson:"symptoms_chronic"`
	Advice           *string          `json:"advice,omitempty" bson:"advice"`
}

type Doctor

type Doctor struct {
	ID            string    `json:"id" bson:"_id"`
	Email         string    `json:"email" bson:"email"`
	Password      string    `json:"password" bson:"password"`
	RendezVousIds []*string `json:"rendez_vous_ids,omitempty" bson:"rendez_vous_ids"`
	PatientIds    []*string `json:"patient_ids,omitempty" bson:"patient_ids"`
}

type Document

type Document struct {
	ID           string       `json:"id" bson:"_id"`
	OwnerID      string       `json:"owner_id" bson:"owner_id"`
	Name         string       `json:"name" bson:"name"`
	DocumentType DocumentType `json:"document_type" bson:"document_type"`
	Category     Category     `json:"category" bson:"category"`
	IsFavorite   bool         `json:"is_favorite" bson:"is_favorite"`
	DownloadURL  string       `json:"download_url" bson:"download_url"`
}

type DocumentType

type DocumentType string
const (
	DocumentTypeXray         DocumentType = "XRAY"
	DocumentTypePrescription DocumentType = "PRESCRIPTION"
	DocumentTypeOther        DocumentType = "OTHER"
	DocumentTypeCertificate  DocumentType = "CERTIFICATE"
)

func (DocumentType) IsValid

func (e DocumentType) IsValid() bool

func (DocumentType) MarshalGQL

func (e DocumentType) MarshalGQL(w io.Writer)

func (DocumentType) String

func (e DocumentType) String() string

func (*DocumentType) UnmarshalGQL

func (e *DocumentType) UnmarshalGQL(v interface{}) error

type Health

type Health struct {
	ID                    string   `json:"id" bson:"_id"`
	PatientsAllergies     []string `json:"patients_allergies,omitempty" bson:"patients_allergies"`
	PatientsIllness       []string `json:"patients_illness,omitempty" bson:"patients_illness"`
	PatientsTreatments    []string `json:"patients_treatments,omitempty" bson:"patients_treatments"`
	PatientsPrimaryDoctor string   `json:"patients_primary_doctor" bson:"patients_primary_doctor"`
}

type Info

type Info struct {
	ID        string `json:"id" bson:"_id"`
	Name      string `json:"name" bson:"name"`
	Birthdate string `json:"birthdate" bson:"birthdate"`
	Height    int    `json:"height" bson:"height"`
	Weight    int    `json:"weight" bson:"weight"`
	Sex       Sex    `json:"sex" bson:"sex"`
	Surname   string `json:"surname" bson:"surname"`
}

type Logs

type Logs struct {
	Question string `json:"question" bson:"question"`
	Answer   string `json:"answer" bson:"answer"`
}

type LogsInput

type LogsInput struct {
	Question string `json:"question" bson:"question"`
	Answer   string `json:"answer" bson:"answer"`
}

type MedicalInfo

type MedicalInfo struct {
	Info   *string `json:"Info,omitempty" bson:"Info"`
	Health *string `json:"Health,omitempty" bson:"Health"`
}

type Mutation

type Mutation struct {
}

type Notification

type Notification struct {
	ID      string `json:"id" bson:"_id"`
	Token   string `json:"token" bson:"token"`
	Title   string `json:"title" bson:"title"`
	Message string `json:"message" bson:"message"`
}

type OnboardingStatus

type OnboardingStatus string
const (
	OnboardingStatusNotStarted OnboardingStatus = "NOT_STARTED"
	OnboardingStatusStarted    OnboardingStatus = "STARTED"
	OnboardingStatusFinished   OnboardingStatus = "FINISHED"
)

func (OnboardingStatus) IsValid

func (e OnboardingStatus) IsValid() bool

func (OnboardingStatus) MarshalGQL

func (e OnboardingStatus) MarshalGQL(w io.Writer)

func (OnboardingStatus) String

func (e OnboardingStatus) String() string

func (*OnboardingStatus) UnmarshalGQL

func (e *OnboardingStatus) UnmarshalGQL(v interface{}) error

type Patient

type Patient struct {
	ID                 string    `json:"id" bson:"_id"`
	Email              string    `json:"email" bson:"email"`
	Password           string    `json:"password" bson:"password"`
	RendezVousIds      []*string `json:"rendez_vous_ids,omitempty" bson:"rendez_vous_ids"`
	OnboardingInfoID   *string   `json:"onboarding_info_id,omitempty" bson:"onboarding_info_id"`
	OnboardingHealthID *string   `json:"onboarding_health_id,omitempty" bson:"onboarding_health_id"`
	DocumentIds        []*string `json:"document_ids,omitempty" bson:"document_ids"`
}

type Query

type Query struct {
}

type Rdv

type Rdv struct {
	ID                string  `json:"id" bson:"_id"`
	DoctorID          string  `json:"doctor_id" bson:"doctor_id"`
	IDPatient         string  `json:"id_patient" bson:"id_patient"`
	StartDate         int     `json:"start_date" bson:"start_date"`
	EndDate           int     `json:"end_date" bson:"end_date"`
	CancelationReason *string `json:"cancelation_reason,omitempty" bson:"cancelation_reason"`
}

type Session

type Session struct {
	ID           string   `json:"id" bson:"_id"`
	Symptoms     []string `json:"symptoms" bson:"symptoms"`
	Age          int      `json:"age" bson:"age"`
	Height       int      `json:"height" bson:"height"`
	Weight       int      `json:"weight" bson:"weight"`
	Sex          string   `json:"sex" bson:"sex"`
	LastQuestion string   `json:"last_question" bson:"last_question"`
	Logs         []*Logs  `json:"logs" bson:"logs"`
	Alerts       []string `json:"alerts" bson:"alerts"`
}

type Sex

type Sex string
const (
	SexMale   Sex = "MALE"
	SexFemale Sex = "FEMALE"
	SexOther  Sex = "OTHER"
)

func (Sex) IsValid

func (e Sex) IsValid() bool

func (Sex) MarshalGQL

func (e Sex) MarshalGQL(w io.Writer)

func (Sex) String

func (e Sex) String() string

func (*Sex) UnmarshalGQL

func (e *Sex) UnmarshalGQL(v interface{}) error

type Symptom

type Symptom struct {
	ID       string   `json:"id" bson:"_id"`
	Code     string   `json:"code" bson:"code"`
	Name     string   `json:"name" bson:"name"`
	Location *string  `json:"location,omitempty" bson:"location"`
	Duration *int     `json:"duration,omitempty" bson:"duration"`
	Acute    *int     `json:"acute,omitempty" bson:"acute"`
	Subacute *int     `json:"subacute,omitempty" bson:"subacute"`
	Chronic  *int     `json:"chronic,omitempty" bson:"chronic"`
	Symptom  []string `json:"symptom" bson:"symptom"`
	Advice   *string  `json:"advice,omitempty" bson:"advice"`
	Question string   `json:"question" bson:"question"`
}

type SymptomWeight

type SymptomWeight struct {
	Key   string  `json:"key" bson:"key"`
	Value float64 `json:"value" bson:"value"`
}

type SymptomWeightInput

type SymptomWeightInput struct {
	Key   string  `json:"key" bson:"key"`
	Value float64 `json:"value" bson:"value"`
}

type TestAccount

type TestAccount struct {
	ID       string `json:"id" bson:"_id"`
	Email    string `json:"email" bson:"email"`
	Password string `json:"password" bson:"password"`
}

type Treatment

type Treatment struct {
	ID          string   `json:"id" bson:"_id"`
	Name        string   `json:"name" bson:"name"`
	Disease     string   `json:"disease" bson:"disease"`
	Symptoms    []string `json:"symptoms,omitempty" bson:"symptoms"`
	SideEffects []string `json:"side_effects,omitempty" bson:"side_effects"`
}

Jump to

Keyboard shortcuts

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