Documentation
¶
Index ¶
- Variables
- type Address
- type AddressInput
- type Admin
- type Alert
- type AnteChir
- type AnteDisease
- type AnteFamily
- type Category
- type Day
- type DemoAccount
- type Disease
- type Doctor
- type Document
- type DocumentType
- type Logs
- type LogsInput
- type MedicalAntecedents
- type MedicalAntecedentsInput
- type MedicalInfo
- type Medicament
- type MedicamentInput
- type Medicines
- type MedicinesInput
- type Mutation
- type Notification
- type OnboardingStatus
- type Patient
- type Period
- type Query
- type Rdv
- type Session
- type SessionSymptom
- type SessionSymptomInput
- type Sex
- type Symptom
- type SymptomWeight
- type SymptomWeightInput
- type TestAccount
- type Treatment
- type Unit
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCategory = []Category{ CategoryGeneral, CategoryFinance, }
View Source
var AllDay = []Day{ DayMonday, DayTuesday, DayWednesday, DayThursday, DayFriday, DaySaturday, DaySunday, }
View Source
var AllDocumentType = []DocumentType{ DocumentTypeXray, DocumentTypePrescription, DocumentTypeOther, DocumentTypeCertificate, }
View Source
var AllOnboardingStatus = []OnboardingStatus{ OnboardingStatusNotStarted, OnboardingStatusInProgress, OnboardingStatusDone, }
View Source
var AllPeriod = []Period{ PeriodMorning, PeriodNoon, PeriodEvening, PeriodNight, }
View Source
var AllSex = []Sex{ SexMale, SexFemale, SexOther, }
View Source
var AllUnit = []Unit{ UnitApplication, UnitTablet, UnitTablespoon, UnitCoffeespoon, }
Functions ¶
This section is empty.
Types ¶
type AddressInput ¶ added in v1.3.2
type Alert ¶
type Alert struct { ID string `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` Sex *string `json:"sex,omitempty" bson:"sex"` Height *int `json:"height,omitempty" bson:"height"` Weight *int `json:"weight,omitempty" bson:"weight"` Symptoms []string `json:"symptoms" bson:"symptoms"` Comment string `json:"comment" bson:"comment"` }
type AnteDisease ¶
type AnteDisease struct { ID string `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` Chronicity float64 `json:"chronicity" bson:"chronicity"` Chir *string `json:"chir,omitempty" bson:"chir"` Treatment []string `json:"treatment,omitempty" bson:"treatment"` Symptoms []string `json:"symptoms,omitempty" bson:"symptoms"` }
type AnteFamily ¶
type Day ¶ added in v1.3.2
type Day string
func (Day) MarshalGQL ¶ added in v1.3.2
func (*Day) UnmarshalGQL ¶ added in v1.3.2
type DemoAccount ¶
type Disease ¶
type Disease struct { ID string `json:"id" bson:"_id"` Code string `json:"code" bson:"code"` Name string `json:"name" bson:"name"` Symptoms []string `json:"symptoms" bson:"symptoms"` SymptomsAcute []*SymptomWeight `json:"symptoms_acute,omitempty" bson:"symptoms_acute"` SymptomsSubacute []*SymptomWeight `json:"symptoms_subacute,omitempty" bson:"symptoms_subacute"` SymptomsChronic []*SymptomWeight `json:"symptoms_chronic,omitempty" bson:"symptoms_chronic"` Advice *string `json:"advice,omitempty" bson:"advice"` }
type Doctor ¶
type Doctor struct { ID string `json:"id" bson:"_id"` Email string `json:"email" bson:"email"` Password string `json:"password" bson:"password"` Name string `json:"name" bson:"name"` Firstname string `json:"firstname" bson:"firstname"` Address *Address `json:"address" bson:"address"` RendezVousIds []*string `json:"rendez_vous_ids,omitempty" bson:"rendez_vous_ids"` PatientIds []*string `json:"patient_ids,omitempty" bson:"patient_ids"` }
type Document ¶
type Document struct { ID string `json:"id" bson:"_id"` OwnerID string `json:"owner_id" bson:"owner_id"` Name string `json:"name" bson:"name"` DocumentType DocumentType `json:"document_type" bson:"document_type"` Category Category `json:"category" bson:"category"` IsFavorite bool `json:"is_favorite" bson:"is_favorite"` DownloadURL string `json:"download_url" bson:"download_url"` }
type DocumentType ¶
type DocumentType string
const ( DocumentTypeXray DocumentType = "XRAY" DocumentTypePrescription DocumentType = "PRESCRIPTION" DocumentTypeOther DocumentType = "OTHER" DocumentTypeCertificate DocumentType = "CERTIFICATE" )
func (DocumentType) IsValid ¶
func (e DocumentType) IsValid() bool
func (DocumentType) MarshalGQL ¶
func (e DocumentType) MarshalGQL(w io.Writer)
func (DocumentType) String ¶
func (e DocumentType) String() string
func (*DocumentType) UnmarshalGQL ¶
func (e *DocumentType) UnmarshalGQL(v interface{}) error
type MedicalAntecedents ¶ added in v1.3.2
type MedicalAntecedentsInput ¶ added in v1.3.2
type MedicalAntecedentsInput struct { Name string `json:"name" bson:"name"` Medicines []*MedicinesInput `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"` StillRelevant bool `json:"still_relevant" bson:"still_relevant"` OnboardingStatus OnboardingStatus `json:"onboarding_status" bson:"onboarding_status"` MedicalAntecedents []*MedicalAntecedents `json:"medical_antecedents" bson:"medical_antecedents"` }
type Medicament ¶ added in v1.3.2
type Medicament struct { ID string `json:"id" bson:"_id"` Name string `json:"name" bson:"name"` Unit Unit `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 MedicamentInput ¶ added in v1.3.2
type MedicamentInput struct { Name string `json:"name" bson:"name"` Unit Unit `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 MedicinesInput ¶ added in v1.3.2
type Notification ¶
type OnboardingStatus ¶
type OnboardingStatus string
const ( OnboardingStatusNotStarted OnboardingStatus = "NOT_STARTED" OnboardingStatusInProgress OnboardingStatus = "IN_PROGRESS" OnboardingStatusDone OnboardingStatus = "DONE" )
func (OnboardingStatus) IsValid ¶
func (e OnboardingStatus) IsValid() bool
func (OnboardingStatus) MarshalGQL ¶
func (e OnboardingStatus) MarshalGQL(w io.Writer)
func (OnboardingStatus) String ¶
func (e OnboardingStatus) String() string
func (*OnboardingStatus) UnmarshalGQL ¶
func (e *OnboardingStatus) UnmarshalGQL(v interface{}) error
type Patient ¶
type Patient struct { ID string `json:"id" bson:"_id"` Email string `json:"email" bson:"email"` Password string `json:"password" bson:"password"` RendezVousIds []*string `json:"rendez_vous_ids,omitempty" bson:"rendez_vous_ids"` MedicalInfoID *string `json:"medical_info_id,omitempty" bson:"medical_info_id"` DocumentIds []*string `json:"document_ids,omitempty" bson:"document_ids"` }
type Period ¶ added in v1.3.2
type Period string
func (Period) MarshalGQL ¶ added in v1.3.2
func (*Period) UnmarshalGQL ¶ added in v1.3.2
type Rdv ¶
type Rdv struct { ID string `json:"id" bson:"_id"` DoctorID string `json:"doctor_id" bson:"doctor_id"` IDPatient string `json:"id_patient" bson:"id_patient"` StartDate int `json:"start_date" bson:"start_date"` EndDate int `json:"end_date" bson:"end_date"` CancelationReason *string `json:"cancelation_reason,omitempty" bson:"cancelation_reason"` }
type Session ¶
type Session struct { ID string `json:"id" bson:"_id"` Symptoms []*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"` Treatments []string `json:"treatments" bson:"treatments"` LastQuestion string `json:"last_question" bson:"last_question"` Logs []*Logs `json:"logs" bson:"logs"` Alerts []string `json:"alerts" bson:"alerts"` }
type SessionSymptom ¶ added in v1.3.4
type SessionSymptomInput ¶ added in v1.3.4
type Symptom ¶
type Symptom struct { ID string `json:"id" bson:"_id"` Code string `json:"code" bson:"code"` Name string `json:"name" bson:"name"` Location *string `json:"location,omitempty" bson:"location"` Duration *int `json:"duration,omitempty" bson:"duration"` Acute *int `json:"acute,omitempty" bson:"acute"` Subacute *int `json:"subacute,omitempty" bson:"subacute"` Chronic *int `json:"chronic,omitempty" bson:"chronic"` Symptom []string `json:"symptom" bson:"symptom"` Advice *string `json:"advice,omitempty" bson:"advice"` Question string `json:"question" bson:"question"` }
type SymptomWeight ¶
type SymptomWeightInput ¶
type TestAccount ¶
type Unit ¶ added in v1.3.2
type Unit string
func (Unit) MarshalGQL ¶ added in v1.3.2
func (*Unit) UnmarshalGQL ¶ added in v1.3.2
Click to show internal directories.
Click to hide internal directories.