api

package
v0.0.0-...-41bf266 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: CC0-1.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributionFileStatus

type AttributionFileStatus struct {
	Timestamp time.Time `json:"timestamp"`
	Type      string    `json:"type"`
}

type AttributionFileStatusResponse

type AttributionFileStatusResponse struct {
	Data []AttributionFileStatus `json:"ingestion_dates"`
}

type BulkResponseBody

type BulkResponseBody struct {
	// Server time when the query was run
	TransactionTime time.Time `json:"transactionTime"`
	// URL of the bulk data export request
	RequestURL string `json:"request"`
	// Indicates whether an access token is required to download generated data files
	RequiresAccessToken bool `json:"requiresAccessToken"`
	// Information about generated data files, including URLs for downloading
	Files []FileItem `json:"output"`
	// Information about error files, including URLs for downloading
	Errors []FileItem `json:"error"`
	JobID  uint
}

type CompletedJobResponse

type CompletedJobResponse struct {
	// in: body
	Body BulkResponseBody
}

Data export job has completed successfully. The response body will contain a JSON object providing metadata about the transaction. swagger:response completedJobResponse

nolint

type FileItem

type FileItem struct {
	// FHIR resource type of file contents
	Type string `json:"type"`
	// URL of the file
	URL string `json:"url"`
}

swagger:model fileItem

type Handler

type Handler struct {
	JobTimeout time.Duration

	Enq queueing.Enqueuer

	Svc service.Service

	RespWriter fhirResponseWriter
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(dataTypes map[string]service.DataType, basePath string, apiVersion string) *Handler

func (*Handler) ALRRequest

func (h *Handler) ALRRequest(w http.ResponseWriter, r *http.Request)

func (*Handler) AttributionStatus

func (h *Handler) AttributionStatus(w http.ResponseWriter, r *http.Request)

func (*Handler) BulkGroupRequest

func (h *Handler) BulkGroupRequest(w http.ResponseWriter, r *http.Request)

func (*Handler) BulkPatientRequest

func (h *Handler) BulkPatientRequest(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteJob

func (h *Handler) DeleteJob(w http.ResponseWriter, r *http.Request)

func (*Handler) JobStatus

func (h *Handler) JobStatus(w http.ResponseWriter, r *http.Request)

func (*Handler) JobsStatus

func (h *Handler) JobsStatus(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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