dataup

package module
v0.0.0-...-cabe210 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: MIT Imports: 3 Imported by: 0

README

dataup

Dataup is a uS related to save and process data coming from another services that collect from health of patients

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataService

type DataService struct {
	Port string `env:"PORT" envDefault:"8080"`
	Host string `env:"ASSISTANCE_HOST" envDefault:"assistance"`
	// contains filtered or unexported fields
}

func NewDataService

func NewDataService() (*DataService, error)

func (*DataService) Run

func (data *DataService) Run() error

type DiseasesPayload

type DiseasesPayload struct {
	MusclePain      float64 `json:"muscle_pain"`
	Breath          float64 `json:"breath"`
	NasalCongestion float64 `json:"nasal_congestion"`
	Headache        float64 `json:"head_ache"`
	BoneAche        float64 `json:"bone_ache"`
	SoreThroat      float64 `json:"sore_throat"`
	Tiredness       float64 `json:"tiredness"`
	DryCaught       float64 `json:"dry_cought"`
}

type DiseasesWeight

type DiseasesWeight struct {
	MusclePain      float64 `json:"muscle_pain"`
	Breath          float64 `json:"breath"`
	NasalCongestion float64 `json:"nasal_congestion"`
	Headache        float64 `json:"head_ache"`
	BoneAche        float64 `json:"bone_ache"`
	SoreThroat      float64 `json:"sore_throat"`
	Tiredness       float64 `json:"tiredness"`
	DryCaught       float64 `json:"dry_cought"`
}

type PatientProfile

type PatientProfile struct {
	ID      string          `json:"id"`
	DNI     string          `json:"dni"`
	Phone   string          `json:"phone"`
	Email   string          `json:"email"`
	Records []PatientRecord `json:"records"`
}

type PatientRecord

type PatientRecord struct {
	ID               string          `json:"id"`
	CreatedAt        time.Time       `json:"created_at"`
	PatientID        string          `json:"patient_id"`
	Input            DiseasesPayload `json:"input"`
	EvaluatedWeight  DiseasesWeight  `json:"evaluated_weight"`
	EvaluationResult float64         `json:"evaluation_result"`
}

type Service

type Service interface {
	Run() error
}

Jump to

Keyboard shortcuts

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