Versions in this module Expand all Collapse all v0 v0.230213.1 Feb 13, 2023 v0.230213.0 Feb 13, 2023 Changes in this version + const HasValue + const SpecificValue + func Marshal(m *Message, it interface{}) ([]byte, error) + func Split(buf []byte) [][]byte + type ACK struct + Code string + ErrMsg string + OrgControlID string + type Component struct + SubComponents []SubComponent + Value []rune + func (c *Component) Get(l *Location) (string, error) + func (c *Component) Set(l *Location, val string, seps *Delimeters) error + func (c *Component) String() string + func (c *Component) SubComponent(i int) (*SubComponent, error) + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Messages() ([]*Message, error) + type Delimeters struct + Component rune + DelimeterField string + Escape rune + Field rune + LFTermMsg bool + Repetition rune + SubComponent rune + Truncate rune + func NewDelimeters() *Delimeters + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(it interface{}) error + type Field struct + Components []Component + SegName string + SeqNum int + Value []rune + func (f *Field) Component(i int) (*Component, error) + func (f *Field) Get(l *Location) (string, error) + func (f *Field) NumSubFields() int + func (f *Field) Set(l *Location, val string, seps *Delimeters) error + func (f *Field) String() string + type Location struct + Comp int + FieldSeq int + Segment string + SubComp int + func NewLocation(l string) *Location + type Message struct + Delimeters Delimeters + Segments []Segment + Value []rune + func Acknowledge(mi MsgInfo, st error) *Message + func NewMessage(v []byte) *Message + func StartMessage(info MsgInfo) (*Message, error) + func (m *Message) AllSegments(s string) ([]*Segment, error) + func (m *Message) Find(loc string) (string, error) + func (m *Message) FindAll(loc string) ([]string, error) + func (m *Message) Get(l *Location) (string, error) + func (m *Message) GetAll(l *Location) ([]string, error) + func (m *Message) Info() (MsgInfo, error) + func (m *Message) IsValid(val []Validation) (bool, []Validation) + func (m *Message) ScanSegments() bool + func (m *Message) Segment(s string) (*Segment, error) + func (m *Message) Set(l *Location, val string) error + func (m *Message) String() string + func (m *Message) Unmarshal(it interface{}) error + type MessageScanner struct + func NewMessageScanner(r io.Reader) *MessageScanner + func (ms *MessageScanner) Err() error + func (ms *MessageScanner) Message() *Message + func (ms *MessageScanner) Scan() (gotOne bool) + type MsgInfo struct + ControlID string + MessageType string + MsgDate string + ProcessingID string + ReceivingApp string + ReceivingFacility string + SendingApp string + SendingFacility string + VersionID string + func NewMsgInfo() *MsgInfo + func NewMsgInfoAck(mi *MsgInfo) *MsgInfo + type Segment struct + Fields []Field + Value []rune + func (s *Segment) AllFields(i int) ([]*Field, error) + func (s *Segment) Field(i int) (*Field, error) + func (s *Segment) Get(l *Location) (string, error) + func (s *Segment) GetAll(l *Location) ([]string, error) + func (s *Segment) GetNumFields() int + func (s *Segment) Set(l *Location, val string, seps *Delimeters) error + func (s *Segment) String() string + type SubComponent struct + Value []rune + type VCheck int + type Validation struct + Err error + Location string + VCheck VCheck + Value string + func NewValidMSH24() []Validation + func NewValidODS24() []Validation + func NewValidORC24() []Validation + func NewValidORMDietaryOrder24() []Validation + func NewValidPID24() []Validation + func NewValidPV124() []Validation