Package elasticsearch provides primitives to interact the openapi HTTP API.

    Code generated by DO NOT EDIT.



    This section is empty.


    This section is empty.


    func GetSwagger

    func GetSwagger() (*openapi3.Swagger, error)

      GetSwagger returns the Swagger specification corresponding to the generated code in this file.

      func NewPostConsultersRequest

      func NewPostConsultersRequest(server string, body PostConsultersJSONRequestBody) (*http.Request, error)

        NewPostConsultersRequest calls the generic PostConsulters builder with application/json body

        func NewPostConsultersRequestWithBody

        func NewPostConsultersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

          NewPostConsultersRequestWithBody generates requests for PostConsulters with any type of body

          func RegisterHandlers

          func RegisterHandlers(router EchoRouter, si ServerInterface)

            RegisterHandlers adds each server route to the EchoRouter.


            type Client

            type Client struct {
            	// The endpoint of the server conforming to this interface, with scheme,
            	// for example.
            	Server string
            	// Doer for performing requests, typically a *http.Client with any
            	// customized settings, such as certificate chains.
            	Client HttpRequestDoer
            	// A callback for modifying requests which are generated before sending over
            	// the network.
            	RequestEditor RequestEditorFn

              Client which conforms to the OpenAPI3 specification for this service.

              func NewClient

              func NewClient(server string, opts ...ClientOption) (*Client, error)

                Creates a new Client, with reasonable defaults

                func (*Client) PostConsulters

                func (c *Client) PostConsulters(ctx context.Context, body PostConsultersJSONRequestBody) (*http.Response, error)

                func (*Client) PostConsultersWithBody

                func (c *Client) PostConsultersWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

                type ClientInterface

                type ClientInterface interface {
                	// PostConsulters request  with any body
                	PostConsultersWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
                	PostConsulters(ctx context.Context, body PostConsultersJSONRequestBody) (*http.Response, error)

                  The interface specification for the client above.

                  type ClientOption

                  type ClientOption func(*Client) error

                    ClientOption allows setting custom parameters during construction

                    func WithBaseURL

                    func WithBaseURL(baseURL string) ClientOption

                      WithBaseURL overrides the baseURL.

                      func WithHTTPClient

                      func WithHTTPClient(doer HttpRequestDoer) ClientOption

                        WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

                        func WithRequestEditorFn

                        func WithRequestEditorFn(fn RequestEditorFn) ClientOption

                          WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

                          type ClientWithResponses

                          type ClientWithResponses struct {

                            ClientWithResponses builds on ClientInterface to offer response payloads

                            func NewClientWithResponses

                            func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

                              NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

                              func (*ClientWithResponses) PostConsultersWithBodyWithResponse

                              func (c *ClientWithResponses) PostConsultersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostConsultersResponse, error)

                                PostConsultersWithBodyWithResponse request with arbitrary body returning *PostConsultersResponse

                                func (*ClientWithResponses) PostConsultersWithResponse

                                type ClientWithResponsesInterface

                                type ClientWithResponsesInterface interface {
                                	// PostConsulters request  with any body
                                	PostConsultersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*PostConsultersResponse, error)
                                	PostConsultersWithResponse(ctx context.Context, body PostConsultersJSONRequestBody) (*PostConsultersResponse, error)

                                  ClientWithResponsesInterface is the interface specification for the client with responses above.

                                  type Consulter

                                  type Consulter struct {
                                  	// FHIR Encounter
                                  	Consultation *FhirEncounter `json:"consultation,omitempty"`
                                  	// consulter article count
                                  	ConsultationArticleCount *float32 `json:"consultationArticleCount,omitempty"`
                                  	// FHIR Patient
                                  	Consulter *FhirPatient `json:"consulter,omitempty"`

                                    Consulter defines model for consulter.

                                    type ConsulterCreateRequest

                                    type ConsulterCreateRequest struct {
                                    	Consulters *[]CreateConsulter `json:"consulters,omitempty"`

                                      ConsulterCreateRequest defines model for consulter-create-request.

                                      type ConsulterCreateResponse

                                      type ConsulterCreateResponse ConsulterPerPage

                                        ConsulterCreateResponse defines model for consulter-create-response.

                                        type ConsulterPerPage

                                        type ConsulterPerPage struct {
                                        	// consulter list
                                        	Consulters *[]Consulter `json:"consulters,omitempty"`

                                          ConsulterPerPage defines model for consulter-per-page.

                                          type CreateConsulter

                                          type CreateConsulter struct {
                                          	Codesystem *FhirCodeSystem `json:"codesystem,omitempty"`
                                          	// FHIR Encounter
                                          	Consultation *FhirEncounter `json:"consultation,omitempty"`
                                          	// FHIR Patient
                                          	Consulter *FhirPatient `json:"consulter,omitempty"`

                                            CreateConsulter defines model for create-consulter.

                                            type EchoRouter

                                            type EchoRouter interface {
                                            	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
                                            	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
                                            	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
                                            	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
                                            	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
                                            	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
                                            	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
                                            	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
                                            	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route

                                              This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

                                              type FhirAddress

                                              type FhirAddress struct {
                                              	Country    *string `json:"country" validate:"omitempty,max=1048576,fhirString"`
                                              	PostalCode *string `json:"postalCode" validate:"omitempty,max=1048576,fhirString"`
                                              	Text       *string `json:"text" validate:"omitempty,max=1048576,fhirString"`

                                                FhirAddress defines model for fhir-address.

                                                type FhirAttachment

                                                type FhirAttachment struct {
                                                	// Mime type of the content, with charset etc.
                                                	ContentType *string `json:"contentType" validate:"omitempty,fhirCode"`
                                                	// The date that the attachment was first created.
                                                	Creation *string `json:"creation" validate:"omitempty,fhirDateTime"`
                                                	// The actual data of the attachment - a sequence of bytes, base64 encoded.
                                                	Data *string `json:"data" validate:"omitempty,fhirBase64Binary"`
                                                	// The calculated hash of the data using SHA-1. Represented using base64.
                                                	Hash *string `json:"hash" validate:"omitempty,fhirBase64Binary"`
                                                	// The human language of the content. The value can be any valid value according to BCP 47.
                                                	Language *string `json:"language" validate:"omitempty,fhirCode"`
                                                	// The number of bytes of data that make up this attachment (before base64 encoding, if that is done).Number of bytes of content (if url provided)
                                                	Size *int `json:"size,omitempty" validate:"omitempty,fhirUnsignedInt"`
                                                	// A label or set of text to display in place of the data.
                                                	Title *string `json:"title" validate:"omitempty,max=1048576,fhirString"`
                                                	// Uri where the data can be found
                                                	Url *string `json:"url"`

                                                  FhirAttachment defines model for fhir-attachment.

                                                  type FhirCodeSystem

                                                  type FhirCodeSystem struct {
                                                  	Concept *[]FhirConcept `json:"concept,omitempty"`
                                                  	Content string         `json:"content" validate:"oneof=complete "`
                                                  	Id      *string        `json:"id,omitempty" validate:"omitempty,fhirID"`
                                                  	Name    *string        `json:"name,omitempty" validate:"omitempty,max=1048576,fhirString"`
                                                  	Status  string         `json:"status" validate:"oneof=active "`
                                                  	Title   *string        `json:"title,omitempty" validate:"omitempty,max=1048576,fhirString"`

                                                    FhirCodeSystem defines model for fhir-code-system.

                                                    type FhirCodeableConcept

                                                    type FhirCodeableConcept struct {
                                                    	Coding *[]FhirCoding `json:"coding,omitempty"`

                                                      FhirCodeableConcept defines model for fhir-codeable-concept.

                                                      type FhirCoding

                                                      type FhirCoding struct {
                                                      	Code   *string `json:"code" validate:"omitempty,fhirCode"`
                                                      	System *string `json:"system" validate:"omitempty,fhirUri"`

                                                        FhirCoding defines model for fhir-coding.

                                                        type FhirConcept

                                                        type FhirConcept struct {
                                                        	Code    string         `json:"code" validate:"fhirCode"`
                                                        	Concept *[]FhirConcept `json:"concept,omitempty"`
                                                        	Display *string        `json:"display,omitempty" validate:"omitempty,max=1048576,fhirString"`

                                                          FhirConcept defines model for fhir-concept.

                                                          type FhirContactPoint

                                                          type FhirContactPoint struct {
                                                          	System *string `json:"system" validate:"omitempty,oneof=phone email "`
                                                          	Value  *string `json:"value" validate:"omitempty,max=1048576,fhirString"`

                                                            FhirContactPoint defines model for fhir-contact-point.

                                                            type FhirEncounter

                                                            type FhirEncounter struct {
                                                            	// FHIR Coding
                                                            	Class FhirCoding `json:"class"`
                                                            	Id    *string    `json:"id" validate:"omitempty,fhirID"`
                                                            	// FHIR Meta
                                                            	Meta        *FhirMeta `json:"meta"`
                                                            	Participant *[]struct {
                                                            		// FHIR Reference
                                                            		Individual *FhirReference         `json:"individual"`
                                                            		Type       *[]FhirCodeableConcept `json:"type,omitempty"`
                                                            	} `json:"participant,omitempty"`
                                                            	// planned | arrived | triaged | in-progress | onleave | finished | cancelled | entered-in-error | unknown
                                                            	Status string `json:"status" validate:"oneof=planned arrived triaged in-progress onleave finished cancelled entered-in-error unknown "`

                                                              FhirEncounter defines model for fhir-encounter.

                                                              type FhirExtension

                                                              type FhirExtension struct {
                                                              	Url             string `json:"url" validate:"fhirUri"`
                                                              	ValueAttachment *struct {
                                                              		// Embedded struct due to allOf(#/components/schemas/fhir-attachment)
                                                              	} `json:"valueAttachment" validate:"omitempty,fhirValueX"`
                                                              	ValueCode      *string `json:"valueCode" validate:"omitempty,fhirCode,fhirValueX"`
                                                              	ValueInstant   *string `json:"valueInstant" validate:"omitempty,fhirInstant,fhirValueX"`
                                                              	ValueReference *struct {
                                                              		// Embedded struct due to allOf(#/components/schemas/fhir-reference)
                                                              	} `json:"valueReference" validate:"omitempty,fhirValueX"`
                                                              	ValueString *string `json:"valueString" validate:"omitempty,fhirString,fhirValueX,max=1048576"`

                                                                FhirExtension defines model for fhir-extension.

                                                                type FhirHumanName

                                                                type FhirHumanName struct {
                                                                	Extension *[]FhirExtension `json:"extension,omitempty"`
                                                                	Text      *string          `json:"text" validate:"omitempty,max=1048576,fhirString"`
                                                                	Use       *string          `json:"use" validate:"omitempty,oneof=usual official "`

                                                                  FhirHumanName defines model for fhir-human-name.

                                                                  type FhirIdentifier

                                                                  type FhirIdentifier struct {
                                                                  	System *string `json:"system" validate:"omitempty,fhirUri"`
                                                                  	Use    *string `json:"use" validate:"omitempty,oneof=usual official "`
                                                                  	Value  *string `json:"value" validate:"omitempty,fhirString,max=1048576"`

                                                                    FhirIdentifier defines model for fhir-identifier.

                                                                    type FhirMeta

                                                                    type FhirMeta struct {
                                                                    	Extension   *[]FhirExtension `json:"extension,omitempty"`
                                                                    	LastUpdated *string          `json:"lastUpdated" validate:"omitempty,fhirInstant"`
                                                                    	Security    *[]FhirCoding    `json:"security,omitempty"`
                                                                    	Tag         *[]FhirCoding    `json:"tag,omitempty"`
                                                                    	VersionId   *string          `json:"versionId,omitempty" validate:"omitempty,fhirID"`

                                                                      FhirMeta defines model for fhir-meta.

                                                                      type FhirPatient

                                                                      type FhirPatient struct {
                                                                      	// active status of patient
                                                                      	Active *bool `json:"active"`
                                                                      	// list address of patient
                                                                      	Address *[]FhirAddress `json:"address,omitempty"`
                                                                      	// birth date of patient
                                                                      	BirthDate *string `json:"birthDate" validate:"omitempty,fhirDate"`
                                                                      	// Additional contents of patient
                                                                      	Extension *[]FhirExtension `json:"extension,omitempty"`
                                                                      	// gender of patient: male | female | other | unknown
                                                                      	Gender *string `json:"gender" validate:"omitempty,oneof=male female other unknown "`
                                                                      	// list general practitioner
                                                                      	GeneralPractitioner *[]FhirReference `json:"generalPractitioner,omitempty"`
                                                                      	// id of patient
                                                                      	Id *string `json:"id" validate:"omitempty,fhirID"`
                                                                      	// list identifier of patient
                                                                      	Identifier *[]FhirIdentifier `json:"identifier,omitempty"`
                                                                      	// Link to another patient resource that concerns the same actual person
                                                                      	Link *[]struct {
                                                                      		// FHIR Reference
                                                                      		Other *FhirReference `json:"other"`
                                                                      		// type reference: replaced-by | replaces
                                                                      		Type string `json:"type" validate:"oneof=replaced-by replaces "`
                                                                      	} `json:"link,omitempty"`
                                                                      	// FHIR Meta
                                                                      	Meta *FhirMeta `json:"meta"`
                                                                      	// name of patient
                                                                      	Name *[]FhirHumanName `json:"name,omitempty"`
                                                                      	// telecom of patient
                                                                      	Telecom *[]FhirContactPoint `json:"telecom,omitempty"`

                                                                        FhirPatient defines model for fhir-patient.

                                                                        type FhirReference

                                                                        type FhirReference struct {
                                                                        	Extension *[]FhirExtension `json:"extension,omitempty"`
                                                                        	Reference *string          `json:"reference" validate:"omitempty,fhirString,max=1048576"`
                                                                        	Type      *string          `json:"type" validate:"omitempty,fhirUri"`

                                                                          FhirReference defines model for fhir-reference.

                                                                          type HttpRequestDoer

                                                                          type HttpRequestDoer interface {
                                                                          	Do(req *http.Request) (*http.Response, error)

                                                                            Doer performs HTTP requests.

                                                                            The standard http.Client implements this interface.

                                                                            type PostConsultersJSONBody

                                                                            type PostConsultersJSONBody ConsulterCreateRequest

                                                                              PostConsultersJSONBody defines parameters for PostConsulters.

                                                                              type PostConsultersJSONRequestBody

                                                                              type PostConsultersJSONRequestBody PostConsultersJSONBody

                                                                                PostConsultersRequestBody defines body for PostConsulters for application/json ContentType.

                                                                                type PostConsultersResponse

                                                                                type PostConsultersResponse struct {
                                                                                	Body         []byte
                                                                                	HTTPResponse *http.Response
                                                                                	JSON200      *ConsulterCreateResponse

                                                                                func ParsePostConsultersResponse

                                                                                func ParsePostConsultersResponse(rsp *http.Response) (*PostConsultersResponse, error)

                                                                                  ParsePostConsultersResponse parses an HTTP response from a PostConsultersWithResponse call

                                                                                  func (PostConsultersResponse) Status

                                                                                  func (r PostConsultersResponse) Status() string

                                                                                    Status returns HTTPResponse.Status

                                                                                    func (PostConsultersResponse) StatusCode

                                                                                    func (r PostConsultersResponse) StatusCode() int

                                                                                      StatusCode returns HTTPResponse.StatusCode

                                                                                      type RequestEditorFn

                                                                                      type RequestEditorFn func(ctx context.Context, req *http.Request) error

                                                                                        RequestEditorFn is the function signature for the RequestEditor callback function

                                                                                        type ServerInterface

                                                                                        type ServerInterface interface {
                                                                                        	// Post Consulters
                                                                                        	// (POST /consulters)
                                                                                        	PostConsulters(ctx echo.Context) error

                                                                                          ServerInterface represents all server handlers.

                                                                                          type ServerInterfaceWrapper

                                                                                          type ServerInterfaceWrapper struct {
                                                                                          	Handler ServerInterface

                                                                                            ServerInterfaceWrapper converts echo contexts to parameters.

                                                                                            func (*ServerInterfaceWrapper) PostConsulters

                                                                                            func (w *ServerInterfaceWrapper) PostConsulters(ctx echo.Context) error

                                                                                              PostConsulters converts echo context to params.