nha

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package nha includes solutions that are specific to Norway Health Authority.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameInfo

type NameInfo struct {
	// journalidentifikator (UUID) or avleveringsidentifikator (?).
	Identifier string

	// Type of NHA SIP.
	Type TransferType

	// Date, only included when using avleveringsidentifikator.
	Date time.Time

	// File extension, optional.
	Extension string

	// Original value as matched.
	Value string
}

NameInfo captures attributes from NHA SIP obtained from its name.

func ParseName

func ParseName(name string) (*NameInfo, error)

ParseName extracts relevant information from NHA SIPs.

func (NameInfo) String

func (i NameInfo) String() string

type TransferType

type TransferType int
const (
	TransferTypeUnknown TransferType = iota
	TransferTypeDPJ
	TransferTypeEPJ
	TransferTypeOther
	TransferTypeAVLXML
)

func (TransferType) Lower

func (t TransferType) Lower() string

func (TransferType) String

func (t TransferType) String() string

Directories

Path Synopsis
Package activities implements workflow activities specific to Norway Health Authority.
Package activities implements workflow activities specific to Norway Health Authority.

Jump to

Keyboard shortcuts

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