utils

package
v0.0.0-...-41bf266 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnrollmentPattern,
	RiskFlagsPattern,
	RiskScoresPattern,
	HccVersion,
	GroupPattern,
	CovidPattern *regexp.Regexp
)

These are regexp patterns used for mapping fields from ALR data

View Source
var GroupPatternDescriptions map[string]string

Functions

This section is empty.

Types

type Hcc

type Hcc struct {
	Flag        string
	Description string
}

func HccData

func HccData(version, column string) *Hcc

type KvArena

type KvArena struct {
	Enrollment    []KvPair
	RiskFlag      []KvPair
	RiskScore     []KvPair
	Group         []KvPair
	HccVersion    []KvPair
	CovidEpsisode []KvPair
}

func KeyValueMapper

func KeyValueMapper(alr *models.Alr) KvArena

keyValueMapper take the K:V pair from models.Alr and puts them into one of various maps in the kvArena struct. kvMap struct is then used to generate FHIR data.

type KvPair

type KvPair struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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