client

package
v0.0.0-...-b841c22 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenderFemale = "FEMENINO"
	Male         = "MALE"
	Female       = "FEMALE"
)

Variables

This section is empty.

Functions

func GetProfessional

func GetProfessional(ctx context.Context, document string) (map[string]interface{}, error)

Types

type Professional

type Professional struct {
	XMLName           xml.Name `xml:"Professional"`
	Text              string   `xml:",chardata"`
	Resultado         string   `xml:"resultado"`
	Apellido          string   `xml:"apellido"`
	Codigo            string   `xml:"codigo"`
	FechaModificacion string   `xml:"fechaModificacion"`
	FechaRegistro     string   `xml:"fechaRegistro"`
	Matriculas        struct {
		Text      string `xml:",chardata"`
		Matricula struct {
			Text           string `xml:",chardata"`
			Especialidades struct {
				Text         string `xml:",chardata"`
				Especialidad []struct {
					Text               string `xml:",chardata"`
					Especialidad       string `xml:"especialidad"`
					FechaCertificacion string `xml:"fechaCertificacion"`
					Ministerio         string `xml:"ministerio"`
					TipoCertificacion  string `xml:"tipoCertificacion"`
				} `xml:"especialidad"`
			} `xml:"especialidades"`
			Estado            string `xml:"estado"`
			FechaMatricula    string `xml:"fechaMatricula"`
			FechaModificacion string `xml:"fechaModificacion"`
			FechaRegistro     string `xml:"fechaRegistro"`
			Jurisdiccion      string `xml:"jurisdiccion"`
			Matricula         string `xml:"matricula"`
			Profesion         string `xml:"profesion"`
			Provincia         string `xml:"provincia"`
		} `xml:"matricula"`
	} `xml:"matriculas"`
	Nombre          string `xml:"nombre"`
	NumeroDocumento string `xml:"numeroDocumento"`
	TipoDocumento   string `xml:"tipoDocumento"`
}

type ScrapData

type ScrapData struct {
	CompanyID   int    `json:"company_id,omitempty"`
	CompanyName string `json:"company_name,omitempty"`
	Document    string `json:"document"`
}

type UserAFJP

type UserAFJP struct {
	ScrapperID     int    `json:"scrapper_id,omitempty"`
	CompanyID      int    `json:"company_id,omitempty"`
	Document       string `json:"document,omitempty"`
	Member         string `json:"member"`
	MemberName     string `json:"member_name"`
	MemberLastName string `json:"member_last_name"`
	MemberNumber   string `json:"member_number"`
	GradeParent    string `json:"grade_parent"`
	CreatedAt      string `json:"created_at"`
	RemovedAt      string `json:"removed_at"`

	// Full Data
	MemberType        string   `json:"member_type"`
	Birthday          string   `json:"birthday"`
	Nationality       string   `json:"nationality"`
	Country           string   `json:"country"`
	Ugl               string   `json:"ugl"`
	Gender            string   `json:"gender"`
	MaritalStatus     string   `json:"marital_status"`
	MemberExpiration  string   `json:"member_expiration"`
	MemberSince       string   `json:"member_since"`
	MemberStatus      bool     `json:"member_status"`
	OperativeUnit     string   `json:"operative_unit"`
	AnotherHealthCare string   `json:"another_health_care"`
	HeadDoctor        string   `json:"head_doctor"`
	HeadDoctorNetwork string   `json:"head_doctor_network"`
	IsCompanyProvider bool     `json:"is_company_provider"`
	LastUpdated       string   `json:"last_updated"`
	Modalities        []string `json:"modalities"`
}

func GetMemberDataAFJP

func GetMemberDataAFJP(data ScrapData) (UserAFJP, error)

I.N.S.S.J.P

Jump to

Keyboard shortcuts

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