bridge

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	GetRoomAssignments(string, ...uint) ([]*bridgeModel.RoomAssignment, error)
}

DB interface

type DefaultBridge

type DefaultBridge struct {
	// contains filtered or unexported fields
}

DefaultBridge struct encapsulates the surgery software bridge

func NewBridge

func NewBridge(db DB) *DefaultBridge

NewBridge returns a surgery software bridge struct

func (*DefaultBridge) GetExaminedPatients

func (b *DefaultBridge) GetExaminedPatients() ([]*model.Patient, error)

GetExaminedPatients returns all patients that have been examined and are finished now since last call

func (*DefaultBridge) GetToBeExaminedPatients

func (b *DefaultBridge) GetToBeExaminedPatients() ([]*model.Patient, error)

GetToBeExaminedPatients returns all patients that are queued to be examined next

type MockDB

type MockDB struct {
	mock.Mock
}

MockDB is an autogenerated mock type for the DB type

func (*MockDB) GetRoomAssignments added in v1.2.0

func (_m *MockDB) GetRoomAssignments(_a0 string, _a1 ...uint) ([]*model.RoomAssignment, error)

GetRoomAssignments provides a mock function with given fields: _a0, _a1

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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