model

package
v1.15.15 Latest Latest
Warning

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

Go to latest
Published: May 15, 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 Address added in v1.3.2

type Address struct {
	Street  string `json:"street" bson:"street"`
	ZipCode string `json:"zip_code" bson:"zip_code"`
	Country string `json:"country" bson:"country"`
	City    string `json:"city" bson:"city"`
}

type AddressInput added in v1.3.2

type AddressInput struct {
	Street  string `json:"street" bson:"street"`
	ZipCode string `json:"zip_code" bson:"zip_code"`
	Country string `json:"country" bson:"country"`
	City    string `json:"city" bson:"city"`
}

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"`
	SurgeryIds    []string `json:"surgery_ids,omitempty" bson:"surgery_ids"`
	Symptoms      []string `json:"symptoms,omitempty" bson:"symptoms"`
	TreatmentIds  []string `json:"treatment_ids,omitempty" bson:"treatment_ids"`
	StillRelevant bool     `json:"still_relevant" bson:"still_relevant"`
}

type AnteFamily

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

type AppointmentStatus added in v1.4.0

type AppointmentStatus string
const (
	AppointmentStatusWaitingForReview    AppointmentStatus = "WAITING_FOR_REVIEW"
	AppointmentStatusAcceptedDueToReview AppointmentStatus = "ACCEPTED_DUE_TO_REVIEW"
	AppointmentStatusCanceledDueToReview AppointmentStatus = "CANCELED_DUE_TO_REVIEW"
	AppointmentStatusCanceled            AppointmentStatus = "CANCELED"
	AppointmentStatusOpened              AppointmentStatus = "OPENED"
)

func (AppointmentStatus) IsValid added in v1.4.0

func (e AppointmentStatus) IsValid() bool

func (AppointmentStatus) MarshalGQL added in v1.4.0

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

func (AppointmentStatus) String added in v1.4.0

func (e AppointmentStatus) String() string

func (*AppointmentStatus) UnmarshalGQL added in v1.4.0

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

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 Day added in v1.3.2

type Day string
const (
	DayMonday    Day = "MONDAY"
	DayTuesday   Day = "TUESDAY"
	DayWednesday Day = "WEDNESDAY"
	DayThursday  Day = "THURSDAY"
	DayFriday    Day = "FRIDAY"
	DaySaturday  Day = "SATURDAY"
	DaySunday    Day = "SUNDAY"
)

func (Day) IsValid added in v1.3.2

func (e Day) IsValid() bool

func (Day) MarshalGQL added in v1.3.2

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

func (Day) String added in v1.3.2

func (e Day) String() string

func (*Day) UnmarshalGQL added in v1.3.2

func (e *Day) 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"`
	SymptomsWeight []*SymptomsWeight `json:"symptoms_weight,omitempty" bson:"symptoms_weight"`
	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"`
	Name          string    `json:"name" bson:"name"`
	Firstname     string    `json:"firstname" bson:"firstname"`
	Address       *Address  `json:"address" bson:"address"`
	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 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 MedicalAntecedents added in v1.3.2

type MedicalAntecedents struct {
	ID            string       `json:"id" bson:"_id"`
	Name          string       `json:"name" bson:"name"`
	Medicines     []*Treatment `json:"medicines" bson:"medicines"`
	StillRelevant bool         `json:"still_relevant" bson:"still_relevant"`
}

type MedicalAntecedentsInput added in v1.3.2

type MedicalAntecedentsInput struct {
	Name          string            `json:"name" bson:"name"`
	Medicines     []*TreatmentInput `json:"medicines" bson:"medicines"`
	StillRelevant bool              `json:"still_relevant" bson:"still_relevant"`
}

type MedicalInfo

type MedicalInfo struct {
	ID                   string           `json:"id" bson:"_id"`
	Name                 string           `json:"name" bson:"name"`
	Firstname            string           `json:"firstname" bson:"firstname"`
	Birthdate            int              `json:"birthdate" bson:"birthdate"`
	Sex                  Sex              `json:"sex" bson:"sex"`
	Height               int              `json:"height" bson:"height"`
	Weight               int              `json:"weight" bson:"weight"`
	PrimaryDoctorID      string           `json:"primary_doctor_id" bson:"primary_doctor_id"`
	OnboardingStatus     OnboardingStatus `json:"onboarding_status" bson:"onboarding_status"`
	AntecedentDiseaseIds []string         `json:"antecedent_disease_ids" bson:"antecedent_disease_ids"`
}

type Medicine added in v1.5.1

type Medicine struct {
	ID              string       `json:"id" bson:"_id"`
	Name            string       `json:"name" bson:"name"`
	Unit            MedicineUnit `json:"unit" bson:"unit"`
	TargetDiseases  []string     `json:"target_diseases" bson:"target_diseases"`
	TreatedSymptoms []string     `json:"treated_symptoms" bson:"treated_symptoms"`
	SideEffects     []string     `json:"side_effects" bson:"side_effects"`
}

type MedicineInput added in v1.5.1

type MedicineInput struct {
	Name            string       `json:"name" bson:"name"`
	Unit            MedicineUnit `json:"unit" bson:"unit"`
	TargetDiseases  []string     `json:"target_diseases" bson:"target_diseases"`
	TreatedSymptoms []string     `json:"treated_symptoms" bson:"treated_symptoms"`
	SideEffects     []string     `json:"side_effects" bson:"side_effects"`
}

type MedicineUnit added in v1.4.2

type MedicineUnit string
const (
	MedicineUnitApplication MedicineUnit = "APPLICATION"
	MedicineUnitTablet      MedicineUnit = "TABLET"
	MedicineUnitTablespoon  MedicineUnit = "TABLESPOON"
	MedicineUnitCoffeespoon MedicineUnit = "COFFEESPOON"
)

func (MedicineUnit) IsValid added in v1.4.2

func (e MedicineUnit) IsValid() bool

func (MedicineUnit) MarshalGQL added in v1.4.2

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

func (MedicineUnit) String added in v1.4.2

func (e MedicineUnit) String() string

func (*MedicineUnit) UnmarshalGQL added in v1.4.2

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

type Mutation

type Mutation struct {
}

type NlpReport added in v1.5.5

type NlpReport struct {
	ID              string             `json:"id" bson:"_id"`
	Version         int                `json:"version" bson:"version"`
	InputSymptoms   []string           `json:"input_symptoms" bson:"input_symptoms"`
	InputSentence   string             `json:"input_sentence" bson:"input_sentence"`
	Output          []*NlpReportOutput `json:"output" bson:"output"`
	ComputationTime int                `json:"computation_time" bson:"computation_time"`
}

type NlpReportOutput added in v1.5.5

type NlpReportOutput struct {
	Symptom string `json:"symptom" bson:"symptom"`
	Present *bool  `json:"present,omitempty" bson:"present"`
	Days    *int   `json:"days,omitempty" bson:"days"`
}

type NlpReportOutputInput added in v1.5.5

type NlpReportOutputInput struct {
	Symptom string `json:"symptom" bson:"symptom"`
	Present *bool  `json:"present,omitempty" bson:"present"`
	Days    *int   `json:"days,omitempty" bson:"days"`
}

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"
	OnboardingStatusInProgress OnboardingStatus = "IN_PROGRESS"
	OnboardingStatusDone       OnboardingStatus = "DONE"
)

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"`
	MedicalInfoID        *string   `json:"medical_info_id,omitempty" bson:"medical_info_id"`
	DocumentIds          []*string `json:"document_ids,omitempty" bson:"document_ids"`
	TreatmentFollowUpIds []*string `json:"treatment_follow_up_ids,omitempty" bson:"treatment_follow_up_ids"`
}

type Period added in v1.3.2

type Period string
const (
	PeriodMorning Period = "MORNING"
	PeriodNoon    Period = "NOON"
	PeriodEvening Period = "EVENING"
	PeriodNight   Period = "NIGHT"
)

func (Period) IsValid added in v1.3.2

func (e Period) IsValid() bool

func (Period) MarshalGQL added in v1.3.2

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

func (Period) String added in v1.3.2

func (e Period) String() string

func (*Period) UnmarshalGQL added in v1.3.2

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

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"`
	AppointmentStatus AppointmentStatus `json:"appointment_status" bson:"appointment_status"`
	SessionID         string            `json:"session_id" bson:"session_id"`
}

type Session

type Session struct {
	ID           string             `json:"id" bson:"_id"`
	Diseases     []*SessionDiseases `json:"diseases" bson:"diseases"`
	Symptoms     []*SessionSymptom  `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"`
	AnteChirs    []string           `json:"ante_chirs" bson:"ante_chirs"`
	AnteDiseases []string           `json:"ante_diseases" bson:"ante_diseases"`
	Medicine     []string           `json:"medicine" bson:"medicine"`
	LastQuestion string             `json:"last_question" bson:"last_question"`
	Logs         []*Logs            `json:"logs" bson:"logs"`
	Alerts       []string           `json:"alerts" bson:"alerts"`
}

type SessionDiseases added in v1.4.6

type SessionDiseases struct {
	Name     string  `json:"name" bson:"name"`
	Presence float64 `json:"presence" bson:"presence"`
}

type SessionDiseasesInput added in v1.4.6

type SessionDiseasesInput struct {
	Name     string  `json:"name" bson:"name"`
	Presence float64 `json:"presence" bson:"presence"`
}

type SessionSymptom added in v1.3.4

type SessionSymptom struct {
	Name     string   `json:"name" bson:"name"`
	Presence *bool    `json:"presence,omitempty" bson:"presence"`
	Duration *int     `json:"duration,omitempty" bson:"duration"`
	Treated  []string `json:"treated,omitempty" bson:"treated"`
}

type SessionSymptomInput added in v1.3.4

type SessionSymptomInput struct {
	Name     string   `json:"name" bson:"name"`
	Presence *bool    `json:"presence,omitempty" bson:"presence"`
	Duration *int     `json:"duration,omitempty" bson:"duration"`
	Treated  []string `json:"treated,omitempty" bson:"treated"`
}

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"`
	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"`
	QuestionBasic    string   `json:"question_basic" bson:"question_basic"`
	QuestionDuration string   `json:"question_duration" bson:"question_duration"`
	QuestionAnte     string   `json:"question_ante" bson:"question_ante"`
}

type SymptomsWeight added in v1.5.7

type SymptomsWeight struct {
	Symptom string  `json:"symptom" bson:"symptom"`
	Value   float64 `json:"value" bson:"value"`
	Chronic bool    `json:"chronic" bson:"chronic"`
}

type SymptomsWeightInput added in v1.5.7

type SymptomsWeightInput struct {
	Symptom string  `json:"symptom" bson:"symptom"`
	Value   float64 `json:"value" bson:"value"`
	Chronic bool    `json:"chronic" bson:"chronic"`
}

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"`
	Period     []Period `json:"period" bson:"period"`
	Day        []Day    `json:"day" bson:"day"`
	Quantity   int      `json:"quantity" bson:"quantity"`
	MedicineID string   `json:"medicine_id" bson:"medicine_id"`
}

type TreatmentInput added in v1.5.0

type TreatmentInput struct {
	Period     []*Period `json:"period" bson:"period"`
	Day        []*Day    `json:"day" bson:"day"`
	Quantity   int       `json:"quantity" bson:"quantity"`
	MedicineID string    `json:"medicine_id" bson:"medicine_id"`
}

type TreatmentsFollowUp added in v1.5.1

type TreatmentsFollowUp struct {
	ID          string   `json:"id" bson:"_id"`
	TreatmentID string   `json:"treatment_id" bson:"treatment_id"`
	Date        int      `json:"date" bson:"date"`
	Period      []Period `json:"period" bson:"period"`
}

Jump to

Keyboard shortcuts

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