Documentation ¶
Index ¶
- Constants
- Variables
- type GlnLookupProvider
- func NewMedRegOmLookup(baseURL string, httpTimeout time.Duration, logger keycloakb.Logger) (GlnLookupProvider, error)
- func NewNaRegLookup(baseURL string, httpTimeout time.Duration, logger keycloakb.Logger) (GlnLookupProvider, error)
- func NewPsyRegLookup(baseURL string, httpTimeout time.Duration, logger keycloakb.Logger) (GlnLookupProvider, error)
- func NewRefDataLookup(baseURL string, httpTimeout time.Duration, logger keycloakb.Logger) (GlnLookupProvider, error)
- type GlnPerson
- type GlnSearchResult
- type GlnVerifier
- type MedRegPerson
- type MedRegResponse
- type NaRegAddress
- type NaRegData
- type NaRegResult
- type PsyRegLocation
- type PsyRegPerson
- type PsyRegResponse
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 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 GlnSearchResult ¶
type GlnVerifier ¶
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 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 PsyRegLocation ¶
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"` }
Click to show internal directories.
Click to hide internal directories.