model

package
v2.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 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,
}

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 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"`
	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 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 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 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 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 {
	Code             string                 `json:"code" bson:"code"`
	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" bson:"trust_device_id"`
}

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 {
	Name            string   `json:"name" bson:"name"`
	Unit            *string  `json:"unit,omitempty" 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            string   `json:"type" bson:"type"`
	Content         string   `json:"content" bson:"content"`
	Quantity        int      `json:"quantity" bson:"quantity"`
}

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 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 {
	Diseases          []*SessionDiseasesInput `json:"diseases" bson:"diseases"`
	Symptoms          []*SessionSymptomInput  `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              []*LogsInput            `json:"logs" bson:"logs"`
	HereditaryDisease []string                `json:"hereditary_disease" bson:"hereditary_disease"`
	Alerts            []string                `json:"alerts" bson:"alerts"`
}

type CreateSymptomInput

type CreateSymptomInput struct {
	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 CreateTreatmentInput

type CreateTreatmentInput 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"`
	StartDate  int      `json:"start_date" bson:"start_date"`
	EndDate    int      `json:"end_date" bson:"end_date"`
}

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"`
	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"`
	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"`
	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 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"`
	Medicines     []*Treatment `json:"medicines" bson:"medicines"`
	StillRelevant bool         `json:"still_relevant" bson:"still_relevant"`
	CreatedAt     int          `json:"createdAt" bson:"createdAt"`
	UpdatedAt     int          `json:"updatedAt" bson:"updatedAt"`
}

type MedicalAntecedentsInput

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"`
	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"`
	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            string       `json:"type" bson:"type"`
	Content         string       `json:"content" bson:"content"`
	Quantity        int          `json:"quantity" bson:"quantity"`
	CreatedAt       int          `json:"createdAt" bson:"createdAt"`
	UpdatedAt       int          `json:"updatedAt" bson:"updatedAt"`
}

type MedicineInput

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            string       `json:"type" bson:"type"`
	Content         string       `json:"content" bson:"content"`
	Quantity        int          `json:"quantity" bson:"quantity"`
}

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

type TreatmentInput

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"`
	StartDate  int       `json:"start_date" bson:"start_date"`
	EndDate    int       `json:"end_date" bson:"end_date"`
}

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 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 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 {
	Code             *string                `json:"code,omitempty" bson:"code"`
	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"`
	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 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 UpdateNotificationInput

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

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 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"`
	AnteChirs         []string                `json:"ante_chirs,omitempty" bson:"ante_chirs"`
	AnteDiseases      []string                `json:"ante_diseases,omitempty" bson:"ante_diseases"`
	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 {
	Code             *string  `json:"code,omitempty" bson:"code"`
	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 UpdateTreatmentInput

type UpdateTreatmentInput struct {
	Period     []Period `json:"period,omitempty" bson:"period"`
	Day        []Day    `json:"day,omitempty" bson:"day"`
	Quantity   *int     `json:"quantity,omitempty" bson:"quantity"`
	MedicineID *string  `json:"medicine_id,omitempty" bson:"medicine_id"`
	StartDate  *int     `json:"start_date,omitempty" bson:"start_date"`
	EndDate    *int     `json:"end_date,omitempty" bson:"end_date"`
}

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