model

package
v2.4.14 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllSex = []Sex{
	SexMale,
	SexFemale,
	SexOther,
}
View Source
var AllSortOrder = []SortOrder{
	SortOrderAsc,
	SortOrderDesc,
}
View Source
var AllUnitEnum = []UnitEnum{
	UnitEnumMl,
	UnitEnumMg,
	UnitEnumG,
}

Functions

This section is empty.

Types

type Address

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

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"`
	CreatedAt int    `json:"createdAt" bson:"createdAt"`
	UpdatedAt int    `json:"updatedAt" bson:"updatedAt"`
}

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"`
	CreatedAt int      `json:"createdAt" bson:"createdAt"`
	UpdatedAt int      `json:"updatedAt" bson:"updatedAt"`
}

type AnteChir

type AnteChir struct {
	ID              string                `json:"id" bson:"_id"`
	Name            string                `json:"name" bson:"name"`
	InducedSymptoms []*ChirInducedSymptom `json:"induced_symptoms,omitempty" bson:"induced_symptoms"`
	CreatedAt       int                   `json:"createdAt" bson:"createdAt"`
	UpdatedAt       int                   `json:"updatedAt" bson:"updatedAt"`
}

type AnteFamily

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

type AntecedentPeriod added in v2.3.0

type AntecedentPeriod struct {
	Quantity       int           `json:"quantity" bson:"quantity"`
	Frequency      int           `json:"frequency" bson:"frequency"`
	FrequencyRatio int           `json:"frequency_ratio" bson:"frequency_ratio"`
	FrequencyUnit  TimeUnitEnum  `json:"frequency_unit" bson:"frequency_unit"`
	PeriodLength   *int          `json:"period_length,omitempty" bson:"period_length"`
	PeriodUnit     *TimeUnitEnum `json:"period_unit,omitempty" bson:"period_unit"`
}

type AntecedentTreatment added in v2.3.0

type AntecedentTreatment struct {
	ID        string                  `json:"id" bson:"_id"`
	CreatedBy string                  `json:"created_by" bson:"created_by"`
	StartDate int                     `json:"start_date" bson:"start_date"`
	EndDate   *int                    `json:"end_date,omitempty" bson:"end_date"`
	Medicines []*AntecedentsMedicines `json:"medicines" bson:"medicines"`
}

type AntecedentsMedicines added in v2.3.0

type AntecedentsMedicines struct {
	MedicineID string              `json:"medicine_id" bson:"medicine_id"`
	Comment    *string             `json:"comment,omitempty" bson:"comment"`
	Period     []*AntecedentPeriod `json:"period" bson:"period"`
}

type AppointmentStatus

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

func (e AppointmentStatus) IsValid() bool

func (AppointmentStatus) MarshalGQL

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

func (AppointmentStatus) String

func (e AppointmentStatus) String() string

func (*AppointmentStatus) UnmarshalGQL

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

type AutoAnswer added in v2.1.11

type AutoAnswer struct {
	ID        string         `json:"id" bson:"_id"`
	Name      string         `json:"name" bson:"name"`
	Values    []*string      `json:"values" bson:"values"`
	Type      AutoAnswerType `json:"type" bson:"type"`
	CreatedAt int            `json:"createdAt" bson:"createdAt"`
	UpdatedAt int            `json:"updatedAt" bson:"updatedAt"`
}

type AutoAnswerType added in v2.1.11

type AutoAnswerType string
const (
	AutoAnswerTypeUniqueChoice   AutoAnswerType = "UNIQUE_CHOICE"
	AutoAnswerTypeMultipleChoice AutoAnswerType = "MULTIPLE_CHOICE"
)

func (AutoAnswerType) IsValid added in v2.1.11

func (e AutoAnswerType) IsValid() bool

func (AutoAnswerType) MarshalGQL added in v2.1.11

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

func (AutoAnswerType) String added in v2.1.11

func (e AutoAnswerType) String() string

func (*AutoAnswerType) UnmarshalGQL added in v2.1.11

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

type BlackList

type BlackList struct {
	ID        string   `json:"id" bson:"_id"`
	Token     []string `json:"token" bson:"token"`
	CreatedAt int      `json:"createdAt" bson:"createdAt"`
	UpdatedAt int      `json:"updatedAt" bson:"updatedAt"`
}

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 Chat

type Chat struct {
	ID           string              `json:"id" bson:"_id"`
	Participants []*ChatParticipants `json:"participants" bson:"participants"`
	Messages     []*ChatMessages     `json:"messages" bson:"messages"`
	CreatedAt    int                 `json:"createdAt" bson:"createdAt"`
	UpdatedAt    int                 `json:"updatedAt" bson:"updatedAt"`
}

type ChatMessages

type ChatMessages struct {
	OwnerID    string `json:"owner_id" bson:"owner_id"`
	Message    string `json:"message" bson:"message"`
	SendedTime int    `json:"sended_time" bson:"sended_time"`
}

type ChatMessagesInput

type ChatMessagesInput struct {
	OwnerID    string `json:"owner_id" bson:"owner_id"`
	Message    string `json:"message" bson:"message"`
	SendedTime int    `json:"sended_time" bson:"sended_time"`
}

type ChatParticipants

type ChatParticipants struct {
	ParticipantID string `json:"participant_id" bson:"participant_id"`
	LastSeen      int    `json:"last_seen" bson:"last_seen"`
}

type ChatParticipantsInput

type ChatParticipantsInput struct {
	ParticipantID string `json:"participant_id" bson:"participant_id"`
	LastSeen      int    `json:"last_seen" bson:"last_seen"`
}

type ChirInducedSymptom

type ChirInducedSymptom struct {
	Symptom string  `json:"symptom" bson:"symptom"`
	Factor  float64 `json:"factor" bson:"factor"`
}

type ChirInducedSymptomInput

type ChirInducedSymptomInput struct {
	Symptom string  `json:"symptom" bson:"symptom"`
	Factor  float64 `json:"factor" bson:"factor"`
}

type ContainerEnum added in v2.1.9

type ContainerEnum string
const (
	ContainerEnumFlacon  ContainerEnum = "FLACON"
	ContainerEnumTube    ContainerEnum = "TUBE"
	ContainerEnumBoite   ContainerEnum = "BOITE"
	ContainerEnumAmpoule ContainerEnum = "AMPOULE"
)

func (ContainerEnum) IsValid added in v2.1.9

func (e ContainerEnum) IsValid() bool

func (ContainerEnum) MarshalGQL added in v2.1.9

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

func (ContainerEnum) String added in v2.1.9

func (e ContainerEnum) String() string

func (*ContainerEnum) UnmarshalGQL added in v2.1.9

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

type CreateAdminInput

type CreateAdminInput struct {
	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 CreateAlertInput

type CreateAlertInput struct {
	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 CreateAnteChirInput

type CreateAnteChirInput struct {
	Name            string                     `json:"name" bson:"name"`
	InducedSymptoms []*ChirInducedSymptomInput `json:"induced_symptoms,omitempty" bson:"induced_symptoms"`
}

type CreateAnteDiseaseInput

type CreateAnteDiseaseInput struct {
	Name          string   `json:"name" bson:"name"`
	Chronicity    *float64 `json:"chronicity,omitempty" 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 CreateAnteFamilyInput

type CreateAnteFamilyInput struct {
	Name    string   `json:"name" bson:"name"`
	Disease []string `json:"disease" bson:"disease"`
}

type CreateAntecedentPeriodInput added in v2.3.0

type CreateAntecedentPeriodInput struct {
	Quantity       int           `json:"quantity" bson:"quantity"`
	Frequency      int           `json:"frequency" bson:"frequency"`
	FrequencyRatio int           `json:"frequency_ratio" bson:"frequency_ratio"`
	FrequencyUnit  TimeUnitEnum  `json:"frequency_unit" bson:"frequency_unit"`
	PeriodLength   *int          `json:"period_length,omitempty" bson:"period_length"`
	PeriodUnit     *TimeUnitEnum `json:"period_unit,omitempty" bson:"period_unit"`
}

type CreateAntecedentTreatmentInput added in v2.3.0

type CreateAntecedentTreatmentInput struct {
	CreatedBy string                             `json:"created_by" bson:"created_by"`
	StartDate int                                `json:"start_date" bson:"start_date"`
	EndDate   *int                               `json:"end_date,omitempty" bson:"end_date"`
	Medicines []*CreateAntecedentsMedicinesInput `json:"medicines" bson:"medicines"`
}

type CreateAntecedentsMedicinesInput added in v2.3.0

type CreateAntecedentsMedicinesInput struct {
	MedicineID string                         `json:"medicine_id" bson:"medicine_id"`
	Comment    *string                        `json:"comment,omitempty" bson:"comment"`
	Period     []*CreateAntecedentPeriodInput `json:"period" bson:"period"`
}

type CreateAutoAnswerInput added in v2.1.11

type CreateAutoAnswerInput struct {
	Name   string         `json:"name" bson:"name"`
	Values []*string      `json:"values" bson:"values"`
	Type   AutoAnswerType `json:"type" bson:"type"`
}

type CreateBlackListInput

type CreateBlackListInput struct {
	Token []string `json:"token" bson:"token"`
}

type CreateChatInput

type CreateChatInput struct {
	Participants []*ChatParticipantsInput `json:"participants" bson:"participants"`
	Messages     []*ChatMessagesInput     `json:"messages" bson:"messages"`
}

type CreateDeviceConnectInput

type CreateDeviceConnectInput struct {
	DeviceType  string `json:"device_type" bson:"device_type"`
	Browser     string `json:"browser" bson:"browser"`
	IPAddress   string `json:"ip_address" bson:"ip_address"`
	City        string `json:"city" bson:"city"`
	Country     string `json:"country" bson:"country"`
	Date        int    `json:"date" bson:"date"`
	TrustDevice bool   `json:"trust_device" bson:"trust_device"`
}

type CreateDiseaseInput

type CreateDiseaseInput struct {
	Name             string                 `json:"name" bson:"name"`
	Symptoms         []string               `json:"symptoms" bson:"symptoms"`
	SymptomsWeight   []*SymptomsWeightInput `json:"symptoms_weight,omitempty" bson:"symptoms_weight"`
	OverweightFactor float64                `json:"overweight_factor" bson:"overweight_factor"`
	HeredityFactor   float64                `json:"heredity_factor" bson:"heredity_factor"`
	Advice           *string                `json:"advice,omitempty" bson:"advice"`
}

type CreateDoctorInput

type CreateDoctorInput struct {
	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   *AddressInput `json:"address" bson:"address"`
	Status    bool          `json:"status" bson:"status"`
}

type CreateDocumentInput

type CreateDocumentInput struct {
	OwnerID      string `json:"owner_id" bson:"owner_id"`
	Name         string `json:"name" bson:"name"`
	DocumentType string `json:"document_type" bson:"document_type"`
	Category     string `json:"category" bson:"category"`
	IsFavorite   bool   `json:"is_favorite" bson:"is_favorite"`
	DownloadURL  string `json:"download_url" bson:"download_url"`
	UploaderID   string `json:"uploader_id" bson:"uploader_id"`
}

type CreateDoubleAuthInput

type CreateDoubleAuthInput struct {
	Methods       []string `json:"methods" bson:"methods"`
	Secret        string   `json:"secret" bson:"secret"`
	Code          string   `json:"code" bson:"code"`
	TrustDeviceID []string `json:"trust_device_id,omitempty" bson:"trust_device_id"`
}

type CreateMedicalAntecedentsInput added in v2.3.0

type CreateMedicalAntecedentsInput struct {
	Name       string                            `json:"name" bson:"name"`
	Symptoms   []string                          `json:"symptoms" bson:"symptoms"`
	Treatments []*CreateAntecedentTreatmentInput `json:"treatments" bson:"treatments"`
}

type CreateMedicalFolderInput

type CreateMedicalFolderInput struct {
	Name                   string   `json:"name" bson:"name"`
	Firstname              string   `json:"firstname" bson:"firstname"`
	Birthdate              int      `json:"birthdate" bson:"birthdate"`
	Sex                    string   `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"`
	AntecedentDiseaseIds   []string `json:"antecedent_disease_ids,omitempty" bson:"antecedent_disease_ids"`
	OnboardingStatus       string   `json:"onboarding_status" bson:"onboarding_status"`
	FamilyMembersMedInfoID []string `json:"family_members_med_info_id" bson:"family_members_med_info_id"`
}

type CreateMedicineInput

type CreateMedicineInput struct {
	Dci             string        `json:"dci" bson:"dci"`
	TargetDiseases  []string      `json:"target_diseases" bson:"target_diseases"`
	TreatedSymptoms []string      `json:"treated_symptoms" bson:"treated_symptoms"`
	SideEffects     []string      `json:"side_effects" bson:"side_effects"`
	Dosage          float64       `json:"dosage" bson:"dosage"`
	DosageUnit      UnitEnum      `json:"dosage_unit" bson:"dosage_unit"`
	Container       ContainerEnum `json:"container" bson:"container"`
	Name            string        `json:"name" bson:"name"`
	DosageForm      FormEnum      `json:"dosage_form" bson:"dosage_form"`
}

type CreateNlpReportInput

type CreateNlpReportInput struct {
	Version         int                     `json:"version" bson:"version"`
	InputSymptoms   []string                `json:"input_symptoms" bson:"input_symptoms"`
	InputSentence   string                  `json:"input_sentence" bson:"input_sentence"`
	Output          []*NlpReportOutputInput `json:"output" bson:"output"`
	ComputationTime int                     `json:"computation_time" bson:"computation_time"`
}

type CreateNotificationInput

type CreateNotificationInput struct {
	Token   string `json:"token" bson:"token"`
	Message string `json:"message" bson:"message"`
	Title   string `json:"title" bson:"title"`
}

type CreateOrdonnanceInput added in v2.1.9

type CreateOrdonnanceInput struct {
	CreatedBy string                     `json:"created_by" bson:"created_by"`
	PatientID string                     `json:"patient_id" bson:"patient_id"`
	Medicines []*MedicineOrdonnanceInput `json:"medicines" bson:"medicines"`
}

type CreatePatientInput

type CreatePatientInput struct {
	Email               string    `json:"email" bson:"email"`
	Password            string    `json:"password" bson:"password"`
	Status              bool      `json:"status" bson:"status"`
	DeviceConnect       []*string `json:"device_connect,omitempty" bson:"device_connect"`
	DoubleAuthMethodsID *string   `json:"double_auth_methods_id,omitempty" bson:"double_auth_methods_id"`
	TrustDevices        []*string `json:"trust_devices,omitempty" bson:"trust_devices"`
}

type CreateRdvInput

type CreateRdvInput struct {
	IDPatient         string            `json:"id_patient" bson:"id_patient"`
	DoctorID          string            `json:"doctor_id" bson:"doctor_id"`
	StartDate         int               `json:"start_date" bson:"start_date"`
	EndDate           int               `json:"end_date" bson:"end_date"`
	AppointmentStatus AppointmentStatus `json:"appointment_status" bson:"appointment_status"`
	SessionID         string            `json:"session_id" bson:"session_id"`
}

type CreateSaveCodeInput

type CreateSaveCodeInput struct {
	Code []string `json:"code" bson:"code"`
}

type CreateSessionInput

type CreateSessionInput struct {
	Age                int      `json:"age" bson:"age"`
	Height             int      `json:"height" bson:"height"`
	Weight             int      `json:"weight" bson:"weight"`
	Sex                string   `json:"sex" bson:"sex"`
	MedicalAntecedents []string `json:"medical_antecedents" bson:"medical_antecedents"`
	Medicine           []string `json:"medicine" bson:"medicine"`
	HereditaryDisease  []string `json:"hereditary_disease" bson:"hereditary_disease"`
}

type CreateSymptomInput

type CreateSymptomInput struct {
	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"`
	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 CreateTreatmentsFollowUpInput

type CreateTreatmentsFollowUpInput struct {
	TreatmentID string   `json:"treatment_id" bson:"treatment_id"`
	Date        int      `json:"date" bson:"date"`
	Period      []Period `json:"period" bson:"period"`
}

type Day

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

func (e Day) IsValid() bool

func (Day) MarshalGQL

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

func (Day) String

func (e Day) String() string

func (*Day) UnmarshalGQL

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

type DeviceConnect

type DeviceConnect struct {
	ID          string `json:"id" bson:"_id"`
	DeviceType  string `json:"device_type" bson:"device_type"`
	Browser     string `json:"browser" bson:"browser"`
	IPAddress   string `json:"ip_address" bson:"ip_address"`
	City        string `json:"city" bson:"city"`
	Country     string `json:"country" bson:"country"`
	Date        int    `json:"date" bson:"date"`
	TrustDevice bool   `json:"trust_device" bson:"trust_device"`
	CreatedAt   int    `json:"createdAt" bson:"createdAt"`
	UpdatedAt   int    `json:"updatedAt" bson:"updatedAt"`
}

type Disease

type Disease struct {
	ID               string            `json:"id" bson:"_id"`
	Name             string            `json:"name" bson:"name"`
	Symptoms         []string          `json:"symptoms" bson:"symptoms"`
	SymptomsWeight   []*SymptomsWeight `json:"symptoms_weight,omitempty" bson:"symptoms_weight"`
	OverweightFactor float64           `json:"overweight_factor" bson:"overweight_factor"`
	HeredityFactor   float64           `json:"heredity_factor" bson:"heredity_factor"`
	Advice           *string           `json:"advice,omitempty" bson:"advice"`
	CreatedAt        int               `json:"createdAt" bson:"createdAt"`
	UpdatedAt        int               `json:"updatedAt" bson:"updatedAt"`
}

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"`
	ChatIds             []*string `json:"chat_ids,omitempty" bson:"chat_ids"`
	DoubleAuthMethodsID *string   `json:"double_auth_methods_id,omitempty" bson:"double_auth_methods_id"`
	DeviceConnect       []*string `json:"device_connect,omitempty" bson:"device_connect"`
	TrustDevices        []*string `json:"trust_devices,omitempty" bson:"trust_devices"`
	OrdonnanceIds       []*string `json:"ordonnance_ids,omitempty" bson:"ordonnance_ids"`
	Status              bool      `json:"status" bson:"status"`
	CreatedAt           int       `json:"createdAt" bson:"createdAt"`
	UpdatedAt           int       `json:"updatedAt" bson:"updatedAt"`
}

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"`
	UploaderID   string       `json:"uploader_id" bson:"uploader_id"`
	CreatedAt    int          `json:"createdAt" bson:"createdAt"`
	UpdatedAt    int          `json:"updatedAt" bson:"updatedAt"`
}

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 DoubleAuth

type DoubleAuth struct {
	ID            string   `json:"id" bson:"_id"`
	Methods       []string `json:"methods" bson:"methods"`
	Secret        string   `json:"secret" bson:"secret"`
	Code          string   `json:"code" bson:"code"`
	TrustDeviceID []string `json:"trust_device_id" bson:"trust_device_id"`
	CreatedAt     int      `json:"createdAt" bson:"createdAt"`
	UpdatedAt     int      `json:"updatedAt" bson:"updatedAt"`
}

type FormEnum added in v2.1.9

type FormEnum string
const (
	FormEnumCreme                  FormEnum = "CREME"
	FormEnumPommade                FormEnum = "POMMADE"
	FormEnumGelule                 FormEnum = "GELULE"
	FormEnumComprime               FormEnum = "COMPRIME"
	FormEnumGele                   FormEnum = "GELE"
	FormEnumSolutionBuvable        FormEnum = "SOLUTION_BUVABLE"
	FormEnumPoudre                 FormEnum = "POUDRE"
	FormEnumSuppositoire           FormEnum = "SUPPOSITOIRE"
	FormEnumAmpoule                FormEnum = "AMPOULE"
	FormEnumSuspensionNasale       FormEnum = "SUSPENSION_NASALE"
	FormEnumSpray                  FormEnum = "SPRAY"
	FormEnumCollutoire             FormEnum = "COLLUTOIRE"
	FormEnumShampooing             FormEnum = "SHAMPOOING"
	FormEnumSolutionInjectable     FormEnum = "SOLUTION_INJECTABLE"
	FormEnumComprimerEfervescent   FormEnum = "COMPRIMER_EFERVESCENT"
	FormEnumGranulerEnSachet       FormEnum = "GRANULER_EN_SACHET"
	FormEnumPastille               FormEnum = "PASTILLE"
	FormEnumSirop                  FormEnum = "SIROP"
	FormEnumCapsuleMolle           FormEnum = "CAPSULE_MOLLE"
	FormEnumComprimeOrodispersible FormEnum = "COMPRIME_ORODISPERSIBLE"
	FormEnumSolutionInhalation     FormEnum = "SOLUTION_INHALATION"
	FormEnumComprimePellicule      FormEnum = "COMPRIME_PELLICULE"
	FormEnumComprimeSublingual     FormEnum = "COMPRIME_SUBLINGUAL"
	FormEnumComprimeEnrobe         FormEnum = "COMPRIME_ENROBE"
)

func (FormEnum) IsValid added in v2.1.9

func (e FormEnum) IsValid() bool

func (FormEnum) MarshalGQL added in v2.1.9

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

func (FormEnum) String added in v2.1.9

func (e FormEnum) String() string

func (*FormEnum) UnmarshalGQL added in v2.1.9

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

type GraphQLError

type GraphQLError struct {
	Message string   `json:"message"`
	Path    []string `json:"path"`
}

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

type MedicalAntecedents struct {
	ID         string                 `json:"id" bson:"_id"`
	Name       string                 `json:"name" bson:"name"`
	Symptoms   []string               `json:"symptoms" bson:"symptoms"`
	Treatments []*AntecedentTreatment `json:"treatments" bson:"treatments"`
	CreatedAt  int                    `json:"createdAt" bson:"createdAt"`
	UpdatedAt  int                    `json:"updatedAt" bson:"updatedAt"`
}

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"`
	FamilyMembersMedInfoID []string         `json:"family_members_med_info_id" bson:"family_members_med_info_id"`
	CreatedAt              int              `json:"createdAt" bson:"createdAt"`
	UpdatedAt              int              `json:"updatedAt" bson:"updatedAt"`
}

type Medicine

type Medicine struct {
	ID              string        `json:"id" bson:"_id"`
	Dci             string        `json:"dci" bson:"dci"`
	TargetDiseases  []string      `json:"target_diseases" bson:"target_diseases"`
	TreatedSymptoms []string      `json:"treated_symptoms" bson:"treated_symptoms"`
	SideEffects     []string      `json:"side_effects" bson:"side_effects"`
	Dosage          float64       `json:"dosage" bson:"dosage"`
	DosageUnit      UnitEnum      `json:"dosage_unit" bson:"dosage_unit"`
	Container       ContainerEnum `json:"container" bson:"container"`
	Name            string        `json:"name" bson:"name"`
	DosageForm      FormEnum      `json:"dosage_form" bson:"dosage_form"`
	CreatedAt       int           `json:"createdAt" bson:"createdAt"`
	UpdatedAt       int           `json:"updatedAt" bson:"updatedAt"`
	Symptoms        []*Symptom    `json:"symptoms,omitempty" bson:"symptoms"`
}

type MedicineInput

type MedicineInput struct {
	Dci             string        `json:"dci" bson:"dci"`
	TargetDiseases  []string      `json:"target_diseases" bson:"target_diseases"`
	TreatedSymptoms []string      `json:"treated_symptoms" bson:"treated_symptoms"`
	SideEffects     []string      `json:"side_effects" bson:"side_effects"`
	Dosage          float64       `json:"dosage" bson:"dosage"`
	DosageUnit      UnitEnum      `json:"dosage_unit" bson:"dosage_unit"`
	Container       ContainerEnum `json:"container" bson:"container"`
	Name            string        `json:"name" bson:"name"`
	DosageForm      FormEnum      `json:"dosage_form" bson:"dosage_form"`
}

type MedicineOrdonnance added in v2.1.9

type MedicineOrdonnance struct {
	MedicineID string              `json:"medicine_id" bson:"medicine_id"`
	Qsp        int                 `json:"qsp" bson:"qsp"`
	QspUnit    TimeUnitEnum        `json:"qsp_unit" bson:"qsp_unit"`
	Comment    *string             `json:"comment,omitempty" bson:"comment"`
	Periods    []*PeriodOrdonnance `json:"periods" bson:"periods"`
}

type MedicineOrdonnanceInput added in v2.1.9

type MedicineOrdonnanceInput struct {
	MedicineID string                   `json:"medicine_id" bson:"medicine_id"`
	Qsp        int                      `json:"qsp" bson:"qsp"`
	QspUnit    TimeUnitEnum             `json:"qsp_unit" bson:"qsp_unit"`
	Comment    *string                  `json:"comment,omitempty" bson:"comment"`
	Periods    []*PeriodOrdonnanceInput `json:"periods" bson:"periods"`
}

type MedicineUnit

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

func (MedicineUnit) IsValid

func (e MedicineUnit) IsValid() bool

func (MedicineUnit) MarshalGQL

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

func (MedicineUnit) String

func (e MedicineUnit) String() string

func (*MedicineUnit) UnmarshalGQL

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

type Mutation

type Mutation struct {
}

type NlpReport

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"`
	CreatedAt       int                `json:"createdAt" bson:"createdAt"`
	UpdatedAt       int                `json:"updatedAt" bson:"updatedAt"`
}

type NlpReportOutput

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

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"`
	CreatedAt int    `json:"createdAt" bson:"createdAt"`
	UpdatedAt int    `json:"updatedAt" bson:"updatedAt"`
}

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 Options

type Options struct {
	Sort   *SortingOptions `json:"sort" bson:"sort"`
	Limit  int             `json:"limit" bson:"limit"`
	Offset int             `json:"offset" bson:"offset"`
}

type Ordonnance added in v2.1.9

type Ordonnance struct {
	ID        string                `json:"id" bson:"_id"`
	CreatedBy string                `json:"created_by" bson:"created_by"`
	PatientID string                `json:"patient_id" bson:"patient_id"`
	Medicines []*MedicineOrdonnance `json:"medicines" bson:"medicines"`
	CreatedAt int                   `json:"createdAt" bson:"createdAt"`
	UpdatedAt int                   `json:"updatedAt" bson:"updatedAt"`
}

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"`
	ChatIds              []*string `json:"chat_ids,omitempty" bson:"chat_ids"`
	DoubleAuthMethodsID  *string   `json:"double_auth_methods_id,omitempty" bson:"double_auth_methods_id"`
	DeviceConnect        []*string `json:"device_connect,omitempty" bson:"device_connect"`
	TrustDevices         []*string `json:"trust_devices,omitempty" bson:"trust_devices"`
	Status               bool      `json:"status" bson:"status"`
	CreatedAt            int       `json:"createdAt" bson:"createdAt"`
	UpdatedAt            int       `json:"updatedAt" bson:"updatedAt"`
}

type Period

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

func (Period) IsValid

func (e Period) IsValid() bool

func (Period) MarshalGQL

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

func (Period) String

func (e Period) String() string

func (*Period) UnmarshalGQL

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

type PeriodOrdonnance added in v2.1.9

type PeriodOrdonnance struct {
	Quantity       int           `json:"quantity" bson:"quantity"`
	Frequency      int           `json:"frequency" bson:"frequency"`
	FrequencyRatio int           `json:"frequency_ratio" bson:"frequency_ratio"`
	FrequencyUnit  TimeUnitEnum  `json:"frequency_unit" bson:"frequency_unit"`
	PeriodLength   *int          `json:"period_length,omitempty" bson:"period_length"`
	PeriodUnit     *TimeUnitEnum `json:"period_unit,omitempty" bson:"period_unit"`
}

type PeriodOrdonnanceInput added in v2.1.9

type PeriodOrdonnanceInput struct {
	Quantity       int           `json:"quantity" bson:"quantity"`
	Frequency      int           `json:"frequency" bson:"frequency"`
	FrequencyRatio int           `json:"frequency_ratio" bson:"frequency_ratio"`
	FrequencyUnit  TimeUnitEnum  `json:"frequency_unit" bson:"frequency_unit"`
	PeriodLength   *int          `json:"period_length,omitempty" bson:"period_length"`
	PeriodUnit     *TimeUnitEnum `json:"period_unit,omitempty" bson:"period_unit"`
}

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"`
	HealthMethod      *string           `json:"health_method,omitempty" bson:"health_method"`
	CreatedAt         int               `json:"createdAt" bson:"createdAt"`
	UpdatedAt         int               `json:"updatedAt" bson:"updatedAt"`
}

type SaveCode

type SaveCode struct {
	ID        string   `json:"id" bson:"_id"`
	Code      []string `json:"code" bson:"code"`
	CreatedAt int      `json:"createdAt" bson:"createdAt"`
	UpdatedAt int      `json:"updatedAt" bson:"updatedAt"`
}

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"`
	MedicalAntecedents []string           `json:"medical_antecedents" bson:"medical_antecedents"`
	Medicine           []string           `json:"medicine" bson:"medicine"`
	LastQuestion       string             `json:"last_question" bson:"last_question"`
	Logs               []*Logs            `json:"logs" bson:"logs"`
	HereditaryDisease  []string           `json:"hereditary_disease" bson:"hereditary_disease"`
	Alerts             []string           `json:"alerts" bson:"alerts"`
	CreatedAt          int                `json:"createdAt" bson:"createdAt"`
	UpdatedAt          int                `json:"updatedAt" bson:"updatedAt"`
}

type SessionDiseases

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

type SessionDiseasesInput

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

type SessionSymptom

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

type SessionSymptomInput

type SessionSymptomInput struct {
	Name     string   `json:"name" bson:"name"`
	Presence int      `json:"presence" 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 SortOrder

type SortOrder string
const (
	SortOrderAsc  SortOrder = "ASC"
	SortOrderDesc SortOrder = "DESC"
)

func (SortOrder) IsValid

func (e SortOrder) IsValid() bool

func (SortOrder) MarshalGQL

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

func (SortOrder) String

func (e SortOrder) String() string

func (*SortOrder) UnmarshalGQL

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

type SortingOptions

type SortingOptions struct {
	Order SortOrder `json:"order" bson:"order"`
	Key   string    `json:"key" bson:"key"`
}

type Symptom

type Symptom struct {
	ID               string   `json:"id" bson:"_id"`
	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,omitempty" 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"`
	CreatedAt        int      `json:"createdAt" bson:"createdAt"`
	UpdatedAt        int      `json:"updatedAt" bson:"updatedAt"`
}

type SymptomsWeight

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

type SymptomsWeightInput

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

type TimeUnitEnum added in v2.1.9

type TimeUnitEnum string
const (
	TimeUnitEnumJour    TimeUnitEnum = "JOUR"
	TimeUnitEnumSemaine TimeUnitEnum = "SEMAINE"
	TimeUnitEnumMois    TimeUnitEnum = "MOIS"
	TimeUnitEnumAnnee   TimeUnitEnum = "ANNEE"
)

func (TimeUnitEnum) IsValid added in v2.1.9

func (e TimeUnitEnum) IsValid() bool

func (TimeUnitEnum) MarshalGQL added in v2.1.9

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

func (TimeUnitEnum) String added in v2.1.9

func (e TimeUnitEnum) String() string

func (*TimeUnitEnum) UnmarshalGQL added in v2.1.9

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

type TreatmentsFollowUp

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"`
	CreatedAt   int      `json:"createdAt" bson:"createdAt"`
	UpdatedAt   int      `json:"updatedAt" bson:"updatedAt"`
}

type UnitEnum added in v2.1.9

type UnitEnum string
const (
	UnitEnumMl UnitEnum = "ml"
	UnitEnumMg UnitEnum = "mg"
	UnitEnumG  UnitEnum = "g"
)

func (UnitEnum) IsValid added in v2.1.9

func (e UnitEnum) IsValid() bool

func (UnitEnum) MarshalGQL added in v2.1.9

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

func (UnitEnum) String added in v2.1.9

func (e UnitEnum) String() string

func (*UnitEnum) UnmarshalGQL added in v2.1.9

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

type UpdateAccountMedicalFolder added in v2.0.8

type UpdateAccountMedicalFolder struct {
	AntecedentDiseaseIds []*string `json:"antecedent_disease_ids,omitempty" bson:"antecedent_disease_ids"`
}

type UpdateAdminInput

type UpdateAdminInput struct {
	Email    *string `json:"email,omitempty" bson:"email"`
	Password *string `json:"password,omitempty" bson:"password"`
	Name     *string `json:"name,omitempty" bson:"name"`
	LastName *string `json:"last_name,omitempty" bson:"last_name"`
}

type UpdateAlertInput

type UpdateAlertInput struct {
	Name     *string  `json:"name,omitempty" 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,omitempty" bson:"symptoms"`
	Comment  *string  `json:"comment,omitempty" bson:"comment"`
}

type UpdateAnteChirInput

type UpdateAnteChirInput struct {
	Name            *string                    `json:"name,omitempty" bson:"name"`
	InducedSymptoms []*ChirInducedSymptomInput `json:"induced_symptoms,omitempty" bson:"induced_symptoms"`
}

type UpdateAnteDiseaseInput

type UpdateAnteDiseaseInput struct {
	Name          *string  `json:"name,omitempty" bson:"name"`
	Chronicity    *float64 `json:"chronicity,omitempty" 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,omitempty" bson:"still_relevant"`
}

type UpdateAnteFamilyInput

type UpdateAnteFamilyInput struct {
	Name    *string  `json:"name,omitempty" bson:"name"`
	Disease []string `json:"disease,omitempty" bson:"disease"`
}

type UpdateAntecedentPeriodInput added in v2.3.0

type UpdateAntecedentPeriodInput struct {
	Quantity       *int          `json:"quantity,omitempty" bson:"quantity"`
	Frequency      *int          `json:"frequency,omitempty" bson:"frequency"`
	FrequencyRatio *int          `json:"frequency_ratio,omitempty" bson:"frequency_ratio"`
	FrequencyUnit  *TimeUnitEnum `json:"frequency_unit,omitempty" bson:"frequency_unit"`
	PeriodLength   *int          `json:"period_length,omitempty" bson:"period_length"`
	PeriodUnit     *TimeUnitEnum `json:"period_unit,omitempty" bson:"period_unit"`
}

type UpdateAntecedentTreatmentInput added in v2.3.0

type UpdateAntecedentTreatmentInput struct {
	StartDate *int                               `json:"start_date,omitempty" bson:"start_date"`
	EndDate   *int                               `json:"end_date,omitempty" bson:"end_date"`
	Medicines []*UpdateAntecedentsMedicinesInput `json:"medicines,omitempty" bson:"medicines"`
}

type UpdateAntecedentsMedicinesInput added in v2.3.0

type UpdateAntecedentsMedicinesInput struct {
	MedicineID *string                        `json:"medicine_id,omitempty" bson:"medicine_id"`
	Comment    *string                        `json:"comment,omitempty" bson:"comment"`
	Period     []*UpdateAntecedentPeriodInput `json:"period,omitempty" bson:"period"`
}

type UpdateAutoAnswerInput added in v2.1.11

type UpdateAutoAnswerInput struct {
	Name   *string         `json:"name,omitempty" bson:"name"`
	Values []*string       `json:"values,omitempty" bson:"values"`
	Type   *AutoAnswerType `json:"type,omitempty" bson:"type"`
}

type UpdateBlackListInput

type UpdateBlackListInput struct {
	Token []string `json:"token,omitempty" bson:"token"`
}

type UpdateChatInput

type UpdateChatInput struct {
	Participants []*ChatParticipantsInput `json:"participants,omitempty" bson:"participants"`
	Messages     []*ChatMessagesInput     `json:"messages,omitempty" bson:"messages"`
}

type UpdateDeviceConnectInput

type UpdateDeviceConnectInput struct {
	DeviceType  *string `json:"device_type,omitempty" bson:"device_type"`
	Browser     *string `json:"browser,omitempty" bson:"browser"`
	IPAddress   *string `json:"ip_address,omitempty" bson:"ip_address"`
	City        *string `json:"city,omitempty" bson:"city"`
	Country     *string `json:"country,omitempty" bson:"country"`
	Date        *int    `json:"date,omitempty" bson:"date"`
	TrustDevice *bool   `json:"trust_device,omitempty" bson:"trust_device"`
}

type UpdateDiseaseInput

type UpdateDiseaseInput struct {
	Name             *string                `json:"name,omitempty" bson:"name"`
	Symptoms         []string               `json:"symptoms,omitempty" bson:"symptoms"`
	SymptomsWeight   []*SymptomsWeightInput `json:"symptoms_weight,omitempty" bson:"symptoms_weight"`
	OverweightFactor *float64               `json:"overweight_factor,omitempty" bson:"overweight_factor"`
	HeredityFactor   *float64               `json:"heredity_factor,omitempty" bson:"heredity_factor"`
	Advice           *string                `json:"advice,omitempty" bson:"advice"`
}

type UpdateDoctorInput

type UpdateDoctorInput struct {
	Email               *string       `json:"email,omitempty" bson:"email"`
	Password            *string       `json:"password,omitempty" bson:"password"`
	Name                *string       `json:"name,omitempty" bson:"name"`
	Firstname           *string       `json:"firstname,omitempty" bson:"firstname"`
	RendezVousIds       []*string     `json:"rendez_vous_ids,omitempty" bson:"rendez_vous_ids"`
	PatientIds          []*string     `json:"patient_ids,omitempty" bson:"patient_ids"`
	Address             *AddressInput `json:"address,omitempty" bson:"address"`
	ChatIds             []*string     `json:"chat_ids,omitempty" bson:"chat_ids"`
	DeviceConnect       []*string     `json:"device_connect,omitempty" bson:"device_connect"`
	DoubleAuthMethodsID *string       `json:"double_auth_methods_id,omitempty" bson:"double_auth_methods_id"`
	TrustDevices        []*string     `json:"trust_devices,omitempty" bson:"trust_devices"`
	OrdonnanceIds       []*string     `json:"ordonnance_ids,omitempty" bson:"ordonnance_ids"`
	Status              *bool         `json:"status,omitempty" bson:"status"`
}

type UpdateDoctorsDeviceConnectInput added in v2.0.2

type UpdateDoctorsDeviceConnectInput struct {
	DeviceConnect []*string `json:"device_connect,omitempty" bson:"device_connect"`
	TrustDevices  []*string `json:"trust_devices,omitempty" bson:"trust_devices"`
}

type UpdateDoctorsPatientIDsInput

type UpdateDoctorsPatientIDsInput struct {
	PatientIds []*string `json:"patient_ids,omitempty" bson:"patient_ids"`
}

type UpdateDoctorsTrustDeviceInput added in v2.0.2

type UpdateDoctorsTrustDeviceInput struct {
	TrustDevices []*string `json:"trust_devices,omitempty" bson:"trust_devices"`
}

type UpdateDocumentInput

type UpdateDocumentInput struct {
	Name       *string `json:"name,omitempty" bson:"name"`
	IsFavorite *bool   `json:"is_favorite,omitempty" bson:"is_favorite"`
}

type UpdateDoubleAuthInput

type UpdateDoubleAuthInput struct {
	Methods       []string `json:"methods,omitempty" bson:"methods"`
	Secret        *string  `json:"secret,omitempty" bson:"secret"`
	Code          *string  `json:"code,omitempty" bson:"code"`
	URL           *string  `json:"url,omitempty" bson:"url"`
	TrustDeviceID []string `json:"trust_device_id,omitempty" bson:"trust_device_id"`
}

type UpdateMedicalAntecedentsInput added in v2.3.0

type UpdateMedicalAntecedentsInput struct {
	Name     *string  `json:"name,omitempty" bson:"name"`
	Symptoms []string `json:"symptoms,omitempty" bson:"symptoms"`
}

type UpdateMedicalFOlderAntedisease added in v2.3.4

type UpdateMedicalFOlderAntedisease struct {
	AntecedentDiseaseIds []*string `json:"antecedent_disease_ids,omitempty" bson:"antecedent_disease_ids"`
}

type UpdateMedicalFolderInput

type UpdateMedicalFolderInput struct {
	Name                   *string           `json:"name,omitempty" bson:"name"`
	Firstname              *string           `json:"firstname,omitempty" bson:"firstname"`
	Birthdate              *int              `json:"birthdate,omitempty" bson:"birthdate"`
	Sex                    *string           `json:"sex,omitempty" bson:"sex"`
	Height                 *int              `json:"height,omitempty" bson:"height"`
	Weight                 *int              `json:"weight,omitempty" bson:"weight"`
	PrimaryDoctorID        *string           `json:"primary_doctor_id,omitempty" bson:"primary_doctor_id"`
	AntecedentDiseaseIds   []string          `json:"antecedent_disease_ids,omitempty" bson:"antecedent_disease_ids"`
	OnboardingStatus       *OnboardingStatus `json:"onboarding_status,omitempty" bson:"onboarding_status"`
	FamilyMembersMedInfoID []string          `json:"family_members_med_info_id,omitempty" bson:"family_members_med_info_id"`
}

type UpdateMedicineOrdonnanceInput added in v2.1.9

type UpdateMedicineOrdonnanceInput struct {
	MedicineID *string                        `json:"medicine_id,omitempty" bson:"medicine_id"`
	Qsp        *int                           `json:"qsp,omitempty" bson:"qsp"`
	QspUnit    *TimeUnitEnum                  `json:"qsp_unit,omitempty" bson:"qsp_unit"`
	Comment    *string                        `json:"comment,omitempty" bson:"comment"`
	Periods    []*UpdatePeriodOrdonnanceInput `json:"periods,omitempty" bson:"periods"`
}

type UpdateNotificationInput

type UpdateNotificationInput struct {
	Token   string `json:"token" bson:"token"`
	Message string `json:"message" bson:"message"`
	Title   string `json:"title" bson:"title"`
}

type UpdateOrdonnanceInput added in v2.1.9

type UpdateOrdonnanceInput struct {
	CreatedBy *string                    `json:"created_by,omitempty" bson:"created_by"`
	PatientID *string                    `json:"patient_id,omitempty" bson:"patient_id"`
	Medicines []*MedicineOrdonnanceInput `json:"medicines,omitempty" bson:"medicines"`
}

type UpdatePatientAntediseaseInput added in v2.2.2

type UpdatePatientAntediseaseInput struct {
	TreatmentIds []*string `json:"treatment_ids,omitempty" bson:"treatment_ids"`
}

type UpdatePatientFollowTreatmentInput added in v2.2.2

type UpdatePatientFollowTreatmentInput struct {
	TreatmentFollowUpIds []*string `json:"treatment_follow_up_ids,omitempty" bson:"treatment_follow_up_ids"`
}

type UpdatePatientInput

type UpdatePatientInput struct {
	Email                *string   `json:"email,omitempty" bson:"email"`
	Password             *string   `json:"password,omitempty" bson:"password"`
	MedicalInfoID        *string   `json:"medical_info_id,omitempty" bson:"medical_info_id"`
	RendezVousIds        []*string `json:"rendez_vous_ids,omitempty" bson:"rendez_vous_ids"`
	DocumentIds          []*string `json:"document_ids,omitempty" bson:"document_ids"`
	TreatmentFollowUpIds []*string `json:"treatment_follow_up_ids,omitempty" bson:"treatment_follow_up_ids"`
	ChatIds              []*string `json:"chat_ids,omitempty" bson:"chat_ids"`
	Status               *bool     `json:"status,omitempty" bson:"status"`
	DeviceConnect        []*string `json:"device_connect,omitempty" bson:"device_connect"`
	DoubleAuthMethodsID  *string   `json:"double_auth_methods_id,omitempty" bson:"double_auth_methods_id"`
	TrustDevices         []*string `json:"trust_devices,omitempty" bson:"trust_devices"`
}

type UpdatePatientRendezVousIdsInput added in v2.0.5

type UpdatePatientRendezVousIdsInput struct {
	RendezVousIds []*string `json:"rendez_vous_ids,omitempty" bson:"rendez_vous_ids"`
}

type UpdatePatientTrustDeviceInput added in v2.0.2

type UpdatePatientTrustDeviceInput struct {
	TrustDevices []*string `json:"trust_devices,omitempty" bson:"trust_devices"`
}

type UpdatePatientsDeviceConnectInput added in v2.0.2

type UpdatePatientsDeviceConnectInput struct {
	DeviceConnect []*string `json:"device_connect,omitempty" bson:"device_connect"`
	TrustDevices  []*string `json:"trust_devices,omitempty" bson:"trust_devices"`
}

type UpdatePeriodOrdonnanceInput added in v2.1.9

type UpdatePeriodOrdonnanceInput struct {
	Quantity       *int          `json:"quantity,omitempty" bson:"quantity"`
	Frequency      *int          `json:"frequency,omitempty" bson:"frequency"`
	FrequencyRatio *string       `json:"frequency_ratio,omitempty" bson:"frequency_ratio"`
	FrequencyUnit  *TimeUnitEnum `json:"frequency_unit,omitempty" bson:"frequency_unit"`
	PeriodLength   *int          `json:"period_length,omitempty" bson:"period_length"`
	PeriodUnit     *TimeUnitEnum `json:"period_unit,omitempty" bson:"period_unit"`
}

type UpdateRdvInput

type UpdateRdvInput struct {
	IDPatient         *string            `json:"id_patient,omitempty" bson:"id_patient"`
	DoctorID          *string            `json:"doctor_id,omitempty" bson:"doctor_id"`
	StartDate         *int               `json:"start_date,omitempty" bson:"start_date"`
	EndDate           *int               `json:"end_date,omitempty" bson:"end_date"`
	CancelationReason *string            `json:"cancelation_reason,omitempty" bson:"cancelation_reason"`
	AppointmentStatus *AppointmentStatus `json:"appointment_status,omitempty" bson:"appointment_status"`
	SessionID         *string            `json:"session_id,omitempty" bson:"session_id"`
	HealthMethod      *string            `json:"health_method,omitempty" bson:"health_method"`
}

type UpdateSaveCodeInput

type UpdateSaveCodeInput struct {
	Code []string `json:"code,omitempty" bson:"code"`
}

type UpdateSessionInput

type UpdateSessionInput struct {
	Diseases           []*SessionDiseasesInput `json:"diseases,omitempty" bson:"diseases"`
	Symptoms           []*SessionSymptomInput  `json:"symptoms,omitempty" bson:"symptoms"`
	Age                *int                    `json:"age,omitempty" bson:"age"`
	Height             *int                    `json:"height,omitempty" bson:"height"`
	Weight             *int                    `json:"weight,omitempty" bson:"weight"`
	Sex                *string                 `json:"sex,omitempty" bson:"sex"`
	MedicalAntecedents []string                `json:"medical_antecedents,omitempty" bson:"medical_antecedents"`
	Medicine           []string                `json:"medicine,omitempty" bson:"medicine"`
	LastQuestion       *string                 `json:"last_question,omitempty" bson:"last_question"`
	Logs               []*LogsInput            `json:"logs,omitempty" bson:"logs"`
	HereditaryDisease  []string                `json:"hereditary_disease,omitempty" bson:"hereditary_disease"`
	Alerts             []string                `json:"alerts,omitempty" bson:"alerts"`
}

type UpdateSymptomInput

type UpdateSymptomInput struct {
	Name             *string  `json:"name,omitempty" bson:"name"`
	Chronic          *int     `json:"chronic,omitempty" bson:"chronic"`
	Symptom          []string `json:"symptom,omitempty" bson:"symptom"`
	Advice           *string  `json:"advice,omitempty" bson:"advice"`
	Question         *string  `json:"question,omitempty" bson:"question"`
	QuestionBasic    *string  `json:"question_basic,omitempty" bson:"question_basic"`
	QuestionDuration *string  `json:"question_duration,omitempty" bson:"question_duration"`
	QuestionAnte     *string  `json:"question_ante,omitempty" bson:"question_ante"`
}

type UpdateTreatmentMedicalAntecedentsInput added in v2.3.4

type UpdateTreatmentMedicalAntecedentsInput struct {
	Treatments []*UpdateTreatmentMedicalInfoInput `json:"treatments,omitempty" bson:"treatments"`
}

type UpdateTreatmentMedicalInfoInput added in v2.3.4

type UpdateTreatmentMedicalInfoInput struct {
	ID        *string                                `json:"id,omitempty" bson:"_id"`
	CreatedBy *string                                `json:"created_by,omitempty" bson:"created_by"`
	StartDate *int                                   `json:"start_date,omitempty" bson:"start_date"`
	EndDate   *int                                   `json:"end_date,omitempty" bson:"end_date"`
	Medicines []*UpdateTreatmentMedicineMedicalInput `json:"medicines,omitempty" bson:"medicines"`
}

type UpdateTreatmentMedicineMedicalInput added in v2.3.4

type UpdateTreatmentMedicineMedicalInput struct {
	MedicineID *string                              `json:"medicine_id,omitempty" bson:"medicine_id"`
	Comment    *string                              `json:"comment,omitempty" bson:"comment"`
	Period     []*UpdateTreatmentPeriodMedicalInput `json:"period,omitempty" bson:"period"`
}

type UpdateTreatmentPeriodMedicalInput added in v2.3.4

type UpdateTreatmentPeriodMedicalInput struct {
	Quantity       *int          `json:"quantity,omitempty" bson:"quantity"`
	Frequency      *int          `json:"frequency,omitempty" bson:"frequency"`
	FrequencyRatio *int          `json:"frequency_ratio,omitempty" bson:"frequency_ratio"`
	FrequencyUnit  *TimeUnitEnum `json:"frequency_unit,omitempty" bson:"frequency_unit"`
	PeriodLength   *int          `json:"period_length,omitempty" bson:"period_length"`
	PeriodUnit     *TimeUnitEnum `json:"period_unit,omitempty" bson:"period_unit"`
}

type UpdateTreatmentsFollowUpInput

type UpdateTreatmentsFollowUpInput struct {
	TreatmentID *string  `json:"treatment_id,omitempty" bson:"treatment_id"`
	Date        *int     `json:"date,omitempty" bson:"date"`
	Period      []Period `json:"period,omitempty" bson:"period"`
}

Jump to

Keyboard shortcuts

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