Documentation ¶
Overview ¶
Package api provides primitives to interact the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Index ¶
- func RegisterHandlers(router runtime.EchoRouter, si ServerInterface)
- type ActorURI
- type ConsentRecord
- type CreateConsentRequest
- type CreateOrUpdateConsentJSONRequestBody
- type CustodianURI
- type DataClassification
- type DocumentReference
- type IdentifierURI
- type JobCreatedResponse
- type Period
- type ServerInterface
- type ServerInterfaceWrapper
- type SubjectURI
- type Wrapper
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 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 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 JobCreatedResponse ¶
type JobCreatedResponse struct { JobId *string `json:"jobId,omitempty"` ResultCode string `json:"resultCode"` }
JobCreatedResponse defines model for JobCreatedResponse.
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 Wrapper ¶
type Wrapper struct {
Cl *pkg.ConsentLogic
}
Wrapper provides the implementation of the generated ServerInterface
func (Wrapper) CreateOrUpdateConsent ¶
NutsConsentLogicCreateConsent Creates the consent FHIR resource, validate it and sends it to the consent-bridge.