fhirbundle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJWSPayload

func NewJWSPayload(fb FHIRBundle, issuer string) jwsPayload

Types

type FHIRBundle

type FHIRBundle struct {
	Patient
	Immunizations []Immunization
}

func (FHIRBundle) MarshalJSON

func (f FHIRBundle) MarshalJSON() ([]byte, error)

type Immunization

type Immunization struct {
	DatePerformed time.Time
	Performer     string
	LotNumber     string
	VaccineType
}

type Name

type Name struct {
	Family string   `json:"family"`
	Givens []string `json:"given"`
}

type Patient

type Patient struct {
	Name
	BirthDate time.Time
}

type VaccineType

type VaccineType string
const (
	Pfizer            VaccineType = "Pfizer"
	Moderna           VaccineType = "Moderna"
	JohnsonAndJohnson VaccineType = "JohnsonAndJohnson"
	AstraZeneca       VaccineType = "AstraZeneca"
	Sinopharm         VaccineType = "Sinopharm"
	COVAXIN           VaccineType = "COVAXIN"
)

Jump to

Keyboard shortcuts

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