constants

package
v0.0.0-...-0da26dc Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package constants contains constant variables used in pathway definition.

Index

Constants

View Source
const (
	// EncounterStatusPlanned denotes that the Encounter has not yet started.
	EncounterStatusPlanned = "planned"
	// EncounterStatusArrived denotes that the patient is present for the Encounter, however is not currently meeting with the practicioner.
	EncounterStatusArrived = "arrived"
	// EncounterStatusInProgress denotes that the Encounter has begun and the patient is present.
	EncounterStatusInProgress = "in-progress"
	// EncounterStatusFinished denotes that the Encounter has ended.
	EncounterStatusFinished = "finished"
	// EncounterStatusCancelled denotes that the Encounter has ended before it has begun.
	EncounterStatusCancelled = "cancelled"
	// EncounterStatusUnknown denotes that the encounter status is unknown.
	EncounterStatusUnknown = "unknown"
)
View Source
const (
	// RandomString is a keyword used to indicate, that the given value
	// should be generated randomly.
	RandomString = "RANDOM"
	// NormalValue is a keyword used to indicate, that the given value
	// should be randomly chosen from a normal range.
	NormalValue = "NORMAL"
	// AbnormalHigh is a keyword used to indicate, that the given value
	// should be set to a random abnormal high value, ie: it should be above
	// the high end of the normal range.
	AbnormalHigh = "ABNORMAL_HIGH"
	// AbnormalLow is a keyword used to indicate, that the given value
	// should be set to a random abnormal low value, ie: it should be below
	// the low end of the normal range.
	AbnormalLow = "ABNORMAL_LOW"
	// EmptyString is a keyword used to indicate, that the given value
	// should be left empty.
	EmptyString = "EMPTY"

	// MidnightDate is a keyword used to indicate, that the given date
	// should be set to midnight time.
	MidnightDate = "MIDNIGHT"

	// NumericalValueType indicates that the value is numerical.
	NumericalValueType = "NM"
	// TextualValueType indicates that the value is textual.
	TextualValueType = "TX"

	// R01 is the trigger event R01.
	R01 = "R01"
	// R03 is the trigger event R03.
	R03 = "R03"
	// R32 is the trigger event R32.
	R32 = "R32"
)
View Source
const SegmentTerminator = '\r'

SegmentTerminator is the character used to terminate HL7 segments, defined in section 2.7 of the HL7 2.3 specification.

View Source
const SegmentTerminatorStr = "\r"

SegmentTerminatorStr is the string representation of SegmentTerminator.

Variables

AbnormalFlagValues is a map of valid abnormal flag values.

Functions

func IsNormalFlag

func IsNormalFlag(s AbnormalFlag) bool

IsNormalFlag returns whether s is a normal abnormal flag.

Types

type AbnormalFlag

type AbnormalFlag string

AbnormalFlag is the abnormal flag to be set on an observation. Full set of values: http://hl7-definition.caristix.com:9010/HL7%20v2.2/table/Default.aspx?version=HL7+v2.2&table=0078

const (
	// AbnormalFlagLow is an abnormal flag indicating the value is below low normal.
	AbnormalFlagLow AbnormalFlag = "LOW"
	// AbnormalFlagHigh is an abnormal flag indicating the value is above high normal.
	AbnormalFlagHigh AbnormalFlag = "HIGH"
	// AbnormalFlagEmpty represents a normal abnormal flag. Equivalent to AbnormalFlagNormal.
	AbnormalFlagEmpty AbnormalFlag = ""
	// AbnormalFlagNormal represents a normal abnormal flag. Equivalent to AbnormalFlagEmpty.
	AbnormalFlagNormal AbnormalFlag = "NORMAL"
	// AbnormalFlagDefault indicates that the abnormal flag should be derived
	// from the reference ranges and the value.
	AbnormalFlagDefault AbnormalFlag = "DEFAULT"
)

func FromRandomType

func FromRandomType(randomType string) AbnormalFlag

FromRandomType returns an abnormal flag value for the given randomType.

Jump to

Keyboard shortcuts

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