hl7tofhirutils

package
v0.0.0-...-e69eef7 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package hl7tofhirutils contains standalone functions for converting HL7v2 fields to FHIR.

Index

Constants

View Source
const ComparatorExtensionURI = "comparator"

Variables

This section is empty.

Functions

func IsNewerMessage

func IsNewerMessage(extensions []*pb.Extension, dateExtURL string, hl7MsgTime time.Time) bool

IsNewerMessage checks if the provided extensions contains a DateTime extension with the provided URL, and if it does, whether the provided hl7MsgTime is more recent. Sometimes HL7 messages should only be taken into account if they are newer than the information that we already have.

func ToQuantity

func ToQuantity(ctx context.Context, str string) (*pb.Quantity, error)

ToQuantity returns the *pb.Quantity representation of the given string. This function returns an error if it fails to parse the provided string as a Decimal.

func ToReferenceRange

ToReferenceRange returns the ReferenceRange representation of the given string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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