schema

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeLabel

func NormalizeLabel(label string) string

Types

type Definition

type Definition struct {
	Name     string              `json:"name"`
	Version  string              `json:"version"`
	Sections map[Section][]Field `json:"sections"`
}

func Default

func Default() Definition

func HealthlinkReferralV1

func HealthlinkReferralV1() Definition

func (Definition) AliasMap

func (d Definition) AliasMap() map[string]string

func (Definition) AllFields

func (d Definition) AllFields() []Field

func (Definition) ApplyOverlay added in v1.0.1

func (d Definition) ApplyOverlay(overlay Overlay) (Definition, error)

func (Definition) MultilineMap added in v1.0.1

func (d Definition) MultilineMap() map[string]bool

type Field

type Field struct {
	Key       string   `json:"key"`
	Labels    []string `json:"labels,omitempty"`
	Multiline bool     `json:"multiline,omitempty"`
}

type Overlay added in v1.0.1

type Overlay struct {
	Name     string              `json:"name,omitempty"`
	Version  string              `json:"version,omitempty"`
	Sections map[Section][]Field `json:"sections,omitempty"`
}

func LoadOverlayFile added in v1.0.1

func LoadOverlayFile(path string) (Overlay, error)

func ParseOverlay added in v1.0.1

func ParseOverlay(data []byte) (Overlay, error)

type Section

type Section string
const (
	SectionPatient     Section = "patient"
	SectionExamination Section = "examination"
	SectionHistory     Section = "history"
	SectionMetrics     Section = "metrics"
	SectionSocial      Section = "social"
	SectionMedication  Section = "medication"
)

Jump to

Keyboard shortcuts

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