api

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package api provides primitives to interact the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(router runtime.EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

Types

type ActorURI

type ActorURI string

ActorURI defines model for ActorURI.

type ConsentRecord

type ConsentRecord struct {
	ConsentProof       DocumentReference    `json:"consentProof"`
	DataClass          []DataClassification `json:"dataClass"`
	Period             Period               `json:"period"`
	PreviousRecordHash *string              `json:"previousRecordHash,omitempty"`
}

ConsentRecord defines model for ConsentRecord.

type CreateConsentRequest

type CreateConsentRequest struct {
	Actor     ActorURI        `json:"actor"`
	Custodian CustodianURI    `json:"custodian"`
	Performer *IdentifierURI  `json:"performer,omitempty"`
	Records   []ConsentRecord `json:"records"`
	Subject   SubjectURI      `json:"subject"`
}

CreateConsentRequest defines model for CreateConsentRequest.

type CreateOrUpdateConsentJSONRequestBody

type CreateOrUpdateConsentJSONRequestBody createOrUpdateConsentJSONBody

CreateOrUpdateConsentRequestBody defines body for CreateOrUpdateConsent for application/json ContentType.

type CustodianURI

type CustodianURI string

CustodianURI defines model for CustodianURI.

type DataClassification

type DataClassification string

DataClassification defines model for DataClassification.

type DocumentReference

type DocumentReference struct {
	ID          string  `json:"ID"`
	URL         *string `json:"URL,omitempty"`
	ContentType *string `json:"contentType,omitempty"`
	Hash        *string `json:"hash,omitempty"`
	Title       string  `json:"title"`
}

DocumentReference defines model for DocumentReference.

type IdentifierURI

type IdentifierURI string

IdentifierURI defines model for IdentifierURI.

type JobCreatedResponse

type JobCreatedResponse struct {
	JobId      *string `json:"jobId,omitempty"`
	ResultCode string  `json:"resultCode"`
}

JobCreatedResponse defines model for JobCreatedResponse.

type Period

type Period struct {
	End   *time.Time `json:"end,omitempty"`
	Start time.Time  `json:"start"`
}

Period defines model for Period.

type ServerInterface

type ServerInterface interface {
	// Create or update a new consent.// (POST /api/consent)
	CreateOrUpdateConsent(ctx echo.Context) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) CreateOrUpdateConsent

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

CreateOrUpdateConsent converts echo context to params.

type SubjectURI

type SubjectURI string

SubjectURI defines model for SubjectURI.

type Wrapper

type Wrapper struct {
	Cl *pkg.ConsentLogic
}

Wrapper provides the implementation of the generated ServerInterface

func (Wrapper) CreateOrUpdateConsent

func (wrapper Wrapper) CreateOrUpdateConsent(ctx echo.Context) error

NutsConsentLogicCreateConsent Creates the consent FHIR resource, validate it and sends it to the consent-bridge.

Jump to

Keyboard shortcuts

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