Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateScore ¶
func CalculateScore(v VitalSigns, scale1 bool) int
CalculateScore computes the NEWS2 score from vital signs.
Types ¶
type ConsciousnessLevel ¶
type ConsciousnessLevel int
ConsciousnessLevel represents the level of consciousness using ACVPU.
const ( Alert ConsciousnessLevel = iota Confused Voice Pain Unresponsive )
func (ConsciousnessLevel) String ¶
func (c ConsciousnessLevel) String() string
String returns the string representation of the ConsciousnessLevel. Returns "Unknown" if the level is not recognized.
type VitalSigns ¶
type VitalSigns struct {
RespRate int
OxygenSat int
SystolicBP int
Pulse int
Temp float64
ConsciousnessLevel ConsciousnessLevel
OnOxygen bool
}
VitalSigns holds the input data for NEWS2 scoring.
func (VitalSigns) String ¶
func (v VitalSigns) String() string
String returns a string representation of the VitalSigns struct. It formats the vital signs in a human-readable way.
Click to show internal directories.
Click to hide internal directories.