business

package
v3.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgErrCannotParse = "cannotParse"
)

Variables

View Source
var (
	ErrGLNNotFound     error
	ErrGLNDoesNotMatch error
)

Functions

This section is empty.

Types

type GlnLookupProvider

type GlnLookupProvider interface {
	Lookup(gln string) GlnSearchResult
}

func NewMedRegOmLookup

func NewMedRegOmLookup(baseURL string, httpTimeout time.Duration, logger keycloakb.Logger) (GlnLookupProvider, error)

NewMedRegOmLookup creates a GLN lookup tool using medregom.admin.ch

func NewNaRegLookup

func NewNaRegLookup(baseURL string, httpTimeout time.Duration, logger keycloakb.Logger) (GlnLookupProvider, error)

func NewPsyRegLookup

func NewPsyRegLookup(baseURL string, httpTimeout time.Duration, logger keycloakb.Logger) (GlnLookupProvider, error)

NewPsyRegLookup creates a GLN lookup tool using psyreg.admin.ch

func NewRefDataLookup

func NewRefDataLookup(baseURL string, httpTimeout time.Duration, logger keycloakb.Logger) (GlnLookupProvider, error)

NewRefDataLookup creates a GLN lookup tool using refdata.ch

type GlnPerson

type GlnPerson struct {
	Active     *bool
	Number     *string
	FirstName  *string
	LastName   *string
	Canton     *string
	ZipCode    *string
	City       *string
	Country    *string
	Profession *string
}

type GlnSearchResult

type GlnSearchResult struct {
	Persons []GlnPerson
	Error   error
}

type GlnVerifier

type GlnVerifier interface {
	ValidateGLN(firstName, lastName, gln string) error
}

func NewGlnVerifier

func NewGlnVerifier(providers ...GlnLookupProvider) GlnVerifier

type MedRegPerson

type MedRegPerson struct {
	ID         *int     `json:"Id"`
	FirstName  *string  `json:"FirstName"`
	LastName   *string  `json:"LastName"`
	Profession *string  `json:"Beruf"`
	Street     []string `json:"Strasse"`
	ZipCode    []string `json:"Plz"`
	Location   []string `json:"Ort"`
	Score      *int     `json:"Score"`
	Education  *string  `json:"Weiterbildungen"`
}

type MedRegResponse

type MedRegResponse struct {
	EmptyRowData   interface{}    `json:"emptyrowdata"`
	Rows           []MedRegPerson `json:"rows"`
	Settings       interface{}    `json:"settings"`
	AdditionalInfo interface{}    `json:"additionalInfo"`
}

type NaRegAddress

type NaRegAddress struct {
	ID     *int    `json:"Id"`
	Street *string `json:"Street"`
	Zip    *string `json:"Zip"`
	Place  *string `json:"Place"`
}

type NaRegData

type NaRegData struct {
	Addresses                             []NaRegAddress `json:"Addresses"`
	PersonLastName                        *string        `json:"PersonLastName"`
	PersonIsAnonymized                    *bool          `json:"PersonIsAnonymized"`
	PersonID                              *int           `json:"PersonId"`
	DuplicatePersonId                     interface{}    `json:"DuplicatePersonId"`
	DuplicateMode                         *bool          `json:"DuplicateMode"`
	PersonGlnNumber                       *string        `json:"PersonGlnNumber"`
	PersonFirstName                       *string        `json:"PersonFirstName"`
	LicenceID                             *int           `json:"LicenceId"`
	CodeTranslationLicenceCantonLabel     *string        `json:"CodeTranslationLicenceCantonLabel"`
	CodeTranslationDiplomaProfessionLabel *string        `json:"CodeTranslationDiplomaProfessionLabel"`
	CodePersonSexID                       *int           `json:"CodePersonSexId"`
	CodeLicenceStatusID                   interface{}    `json:"CodeLicenceStatusId"`
	CodeLicenceProfessionId               interface{}    `json:"CodeLicenceProfessionId"`
	CodeLicenceLicenceTypeID              interface{}    `json:"CodeLicenceLicenceTypeId"`
	CodeLicenceCantonID                   *int           `json:"CodeLicenceCantonId"`
	CodeDiplomaProfessionID               *int           `json:"CodeDiplomaProfessionId"`
	AddressZip                            interface{}    `json:"AddressZip"`
	AddressStreet                         interface{}    `json:"AddressStreet"`
	AddressPlace                          interface{}    `json:"AddressPlace"`
	AddressID                             interface{}    `json:"AddressId"`
}

type NaRegResult

type NaRegResult struct {
	Data             []NaRegData `json:"Data"`
	Total            *int        `json:"Total"`
	AggregateResults interface{} `json:"AggregateResults"`
	Errors           interface{} `json:"Errors"`
}

type PsyRegLocation

type PsyRegLocation struct {
	ZipCode *string `json:"plz"`
	City    *string `json:"ort"`
}

type PsyRegPerson

type PsyRegPerson struct {
	ID               *int             `json:"personId"`
	FirstName        *string          `json:"vorname"`
	LastName         *string          `json:"name"`
	ProfessionID     *int             `json:"berufsbezeichnungId"`
	Languages        []int            `json:"sprachIds"`
	Locations        []PsyRegLocation `json:"plzOrtCollection"`
	CantonID         *int             `json:"kantonId"`
	ApprovalStatusID *int             `json:"bewilligungsstatusId"`
	TooLongName      interface{}      `json:"isMeldungNeunzigTageDienstleisterCurrentYear"`
}

type PsyRegResponse

type PsyRegResponse struct {
	Count             *int           `json:"personenCount"`
	MaxResultExceeded *bool          `json:"maxResultExceeded"`
	Persons           []PsyRegPerson `json:"personen"`
}

Jump to

Keyboard shortcuts

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