models

package
v0.0.0-...-eee7865 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DcmDataset

type DcmDataset struct {
	PatientName    string
	PatientID      string
	Modality       string
	SOPInstanceUID string
	Rows           string
	Columns        string
	WindowWidth    string
	WindowCenter   string
	PixelData      string
	//	PixelWidth     string
	//	PixelHeight    string
	BitsAllocated             string
	BitsStored                string
	HighBit                   string
	PhotometricInterpretation string
	SamplesPerPixel           string
	PixelRepresentation       string
	NumberOfFrames            string
	RescaleIntercept          string
	RescaleSlope              string
}

DcmDataset contains all the dicom elements

type MetaInfo

type MetaInfo struct {
	FileMetaInformationGroupLength  string
	FileMetaInformationVersion      string
	MediaStorageSOPClassUID         string
	MediaStorageSOPInstanceUID      string
	TransferSyntaxUID               string
	ImplementationClassUID          string
	ImplementationVersionName       string
	SourceApplicationEntityTitle    string
	SendingApplicationEntityTitle   string
	ReceivingApplicationEntityTitle string
	PrivateInformationCreatorUID    string
	PrivateInformation              string
}

MetaInfo contains the dicom meta tags

type Patient

type Patient struct {
	ID int64 `orm:"pk;auto;column(id)"`
	dcmmodel.Patient
	Created time.Time `orm:"auto_now_add;type(datetime)"`
	Updated time.Time `orm:"auto_now;type(datetime)"`
	Study   []Study   `orm:"-"`
}

func GetPatients

func GetPatients() []Patient

func (Patient) Get

func (p Patient) Get() error

func (*Patient) Insert

func (p *Patient) Insert() error

func (*Patient) Parse

func (p *Patient) Parse(dataset core.DcmDataset) error

type Series

type Series struct {
	ID int64 `orm:"pk;auto;column(id)"`
	dcmmodel.Series
	StudyUID int64     `orm:"column(studyuid)"`
	Created  time.Time `orm:"auto_now_add;type(datetime)"`
	Updated  time.Time `orm:"auto_now;type(datetime)"`
	Slice    []Slice   `orm:"-"`
}

func GetSeries

func GetSeries(studyuid string) []Series

func (Series) Get

func (s Series) Get() error

func (*Series) Insert

func (s *Series) Insert() error

func (*Series) Parse

func (s *Series) Parse(dataset core.DcmDataset) error

type Slice

type Slice struct {
	ID int64 `orm:"pk;auto;column(id)"`
	dcmmodel.Slice
	SeriesUID int64 `orm:"column(seriesuid)"`
	Filepath  string
	Created   time.Time `orm:"auto_now_add;type(datetime)"`
	Updated   time.Time `orm:"auto_now;type(datetime)"`
}

func GetSlices

func GetSlices(seriesuid string) []Slice

func (*Slice) Get

func (s *Slice) Get() error

func (*Slice) Insert

func (s *Slice) Insert() error

func (Slice) Update

func (s Slice) Update() error

func (Slice) UpdateFilepathBySOP

func (s Slice) UpdateFilepathBySOP() error

type Study

type Study struct {
	ID int64 `orm:"pk;auto;column(id)"`
	dcmmodel.Study
	PatientUID int64     `orm:"column(patientuid)"`
	Created    time.Time `orm:"auto_now_add;type(datetime)"`
	Updated    time.Time `orm:"auto_now;type(datetime)"`
	Series     []Series  `orm:"-"`
}

func GetStudies

func GetStudies(patientuid string) []Study

func (Study) Get

func (s Study) Get() error

func (*Study) Insert

func (s *Study) Insert() error

func (*Study) Parse

func (s *Study) Parse(dataset core.DcmDataset) error

type UploadFile

type UploadFile struct {
	ID       int64 `orm:"pk;auto;column(id)"`
	Filepath string
	Status   UploadStatus
	Created  time.Time `orm:"auto_now_add;type(datetime)"`
	Updated  time.Time `orm:"auto_now;type(datetime)"`
}

func (*UploadFile) Insert

func (f *UploadFile) Insert() error

func (*UploadFile) TableName

func (f *UploadFile) TableName() string

type UploadStatus

type UploadStatus int64
const (
	UPLOADED UploadStatus = iota
	IMPORTING
	IMPORTED
	FAILED
)

Jump to

Keyboard shortcuts

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