i2b2client

package
v1.0.1-ti4health Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

Package pkg/i2b2client

This package exposes a client for the i2b2 XML API. It implements a selection of requests for the ONT and CRC cells.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {

	// Logger is the Logger from GeCo
	Logger logrus.FieldLogger

	// Ci contains the connection information to the i2b2 instance
	Ci models.ConnectionInfo
}

Client is an i2b2 client for its XML API.

func (Client) CrcPdoReqFromInputList

func (c Client) CrcPdoReqFromInputList(reqMsgBody *models.CrcPdoReqFromInputListMessageBody) (*models.CrcPdoRespMessageBody, error)

CrcPdoReqFromInputList makes an i2b2 API request to /QueryToolService/pdorequest for CRC PDO from input list.

func (Client) CrcPsmReqFromQueryDef

func (c Client) CrcPsmReqFromQueryDef(reqMsgBody *models.CrcPsmReqFromQueryDefMessageBody) (*models.CrcPsmRespMessageBody, error)

CrcPsmReqFromQueryDef makes an i2b2 API request to /QueryToolService/request for CRC PSM from query definition.

func (Client) OntGetCategories

OntGetCategories makes an i2b2 API request to /OntologyService/getCategories.

func (Client) OntGetChildren

OntGetChildren makes an i2b2 API request to /OntologyService/getChildren.

func (Client) OntGetModifierChildren

OntGetModifierChildren makes an i2b2 API request to /OntologyService/getModifierChildren.

func (Client) OntGetModifierInfo

OntGetModifierInfo makes an i2b2 API request to /OntologyService/getModifierInfo.

func (Client) OntGetModifiers

OntGetModifiers makes an i2b2 API request to /OntologyService/getModifiers.

func (Client) OntGetTermInfo

OntGetTermInfo makes an i2b2 API request to /OntologyService/getTermInfo.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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