charts

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultChartEntry = ChartEntry{}

Functions

This section is empty.

Types

type Chart

type Chart struct {
	ChartEntries []ChartEntry `json:"chart_entries"`
	PerPage      int          `json:"per_page"`
	TotalEntries int          `json:"total_entries"`
}

type ChartEntry

type ChartEntry struct {
	ID            int                  `json:"id"`
	Title         string               `json:"title"`
	SignedState   string               `json:"signed_state"`
	PatientID     int                  `json:"patient_id"`
	AuthorID      int                  `json:"author_id"`
	AppointmentID int                  `json:"appointment_id"`
	Appointment   schedule.Appointment `json:"appointment"` //TODO: populate cache
	TreatmentID   int                  `json:"treatment_id"`
	CreatedAt     schedule.JaneTime    `json:"create_at"`
	EnteredOn     schedule.JaneTime    `json:"entered_on"`
	ChartParts    []ChartPart          `json:"chart_parts"`
	Snippet       string               `json:"snippet"`
}

func (ChartEntry) PrintSelector

func (entry ChartEntry) PrintSelector() string

type ChartPart

type ChartPart struct {
	ID int `json:"id"`
}

type ChartPartUpdate

type ChartPartUpdate struct {
	ID        int
	TextDelta TextDelta `json:"text_delta"`
	Text      string    `json:"text"`
	Label     string    `json:"note"`
}

type Ops

type Ops struct {
	Insert string `json:"insert"`
}

type TextDelta

type TextDelta struct {
	Ops []Ops `json:"ops"`
}

Jump to

Keyboard shortcuts

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