bdt

package
v0.0.0-...-d8b21ba Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Street string `json:"street"`
	Zip    string `json:"zip"`
	City   string `json:"city"`
}

func (*Address) Equals

func (a *Address) Equals(o Address) bool

type Patient

type Patient struct {
	Id          string     `json:"id"`
	FirstName   string     `json:"firstName"`
	LastName    string     `json:"lastName"`
	BirthDate   *time.Time `json:"birthDate"`
	PhoneNumber string     `json:"phoneNumber"`
	Address     Address    `json:"address"`
}

func Parse

func Parse(data io.Reader) (*Patient, error)

Parse BDT file Format: - first three numbers define the field length, i.e 9 + length of value - next 4 numbers defining the field id - then the actual value (length as defined above)

func (*Patient) Equals

func (p *Patient) Equals(o Patient) bool

Jump to

Keyboard shortcuts

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