Versions in this module Expand all Collapse all v1 v1.0.10 Oct 16, 2022 v1.0.9 Oct 15, 2022 Changes in this version + const LOCKFILE + func DB() gorose.IOrm + func InstancesAnalysis(connector *dcm4chee.Connector, studiesId, seriesId string) (instanceInfo []global.Dcm4cheInstanceInfo, err error) + func LoadDbFile(dbfile string) (err error) + func SeriesAnalysis(connector *dcm4chee.Connector, data map[string]dcm4chee.DicomItem) (seriesInfo global.Dcm4cheSeriesInfo, pid string, pn string, err error) + func StudiesAnalysis(connector *dcm4chee.Connector, studiesId string) (studiesInfo global.Dcm4cheStudiesInfo, err error) + type FeedInfo struct + Start int + Step int + type ImportDetails struct + CountInstance int + CountSeries int + CountStudies int + ImportStudies []string + type PacsManager struct + func NewPacsDbManager(dbFile string, enableLog bool) (dm *PacsManager, err error) + func (dm *PacsManager) AutoSync(sec int) + func (dm *PacsManager) AutoSyncOff() + func (dm *PacsManager) GetServer(serverName string) (pi *PacsServer, err error) + func (dm *PacsManager) GetServerAll() (data []PacsServer, err error) + func (dm *PacsManager) GetServerNameAll() (names []string) + func (dm *PacsManager) Log(msg ...interface{}) + func (dm *PacsManager) Sync(chkMedia bool, syncStep int, quickMode bool) (stat ImportDetails) + type PacsServer struct + CacheRoot string + ID string + OnlyHidden bool + ServerAETs string + ServerHost string + ServerName string + ServerType string + ShowDelete bool + ShowHidden bool + TableTitle string + func (pi *PacsServer) CheckSeriesPermissionAuthor(id string, uid int) (ok bool, err error) + func (pi *PacsServer) CheckSeriesPermissionReview(id string, uid int) (ok bool, err error) + func (pi *PacsServer) DbInstanceHandler() (h gorose.IOrm) + func (pi *PacsServer) DbSeriesHandler() (h gorose.IOrm) + func (pi *PacsServer) DbStudiesHandler() (h gorose.IOrm) + func (pi *PacsServer) ExportInstances(studiesIds []string) (err error) + func (pi *PacsServer) FindInstanceByIdLocal(id string) (info global.InstanceInfo, err error) + func (pi *PacsServer) FindInstanceByIdsLocal(ids []string, step int) (infos []global.InstanceInfo, err error) + func (pi *PacsServer) FindInstancesByView(view string) (infos []global.InstanceInfo, err error) + func (pi *PacsServer) FindInstancesByViewFuzzy(view string) (infos []global.InstanceInfo, err error) + func (pi *PacsServer) FindSeriesByIdLocal(seriesId string) (info global.SeriesInfo, err error) + func (pi *PacsServer) FindSeriesByIdsLocal(seriesIds []string) (infos []global.SeriesInfo, err error) + func (pi *PacsServer) FindStudiesById(studiesId string) (info global.StudiesInfo, err error) + func (pi *PacsServer) FindStudiesByIdLocal(studiesId string) (info global.StudiesInfo, err error) + func (pi *PacsServer) FindStudiesByIdWithHiddenLocal(studiesId string) (info global.StudiesInfo, err error) + func (pi *PacsServer) FindStudiesByPatientId(pid string) (infos []global.StudiesInfo, err error) + func (pi *PacsServer) FindStudiesByPatientName(pn string) (infos []global.StudiesInfo, err error) + func (pi *PacsServer) FindStudiesByStudiesDatetime(tStart, tEnd time.Time) (infos []global.StudiesInfo, err error) + func (pi *PacsServer) FindStudiesByUpdateDatetime(tStart, tEnd time.Time) (infos []global.StudiesInfo, err error) + func (pi *PacsServer) FuzzyFindInstanceById(instanceId string) (cnt int, instanceIds []string, err error) + func (pi *PacsServer) FuzzyFindInstanceCustomField(field, keyword string) (cnt int, instanceIds []string, err error) + func (pi *PacsServer) FuzzyFindPatientId(pid string) (cnt int, studiesIds []string, err error) + func (pi *PacsServer) FuzzyFindPatientName(pn string) (cnt int, studiesIds []string, err error) + func (pi *PacsServer) FuzzyFindSeriesById(seriesId string) (cnt int, seriesIds []string, err error) + func (pi *PacsServer) FuzzyFindSeriesCustomField(field, keyword string) (cnt int, seriesIds []string, err error) + func (pi *PacsServer) FuzzyFindStudiesCustomField(field, keyword string) (cnt int, studiesIds []string, err error) + func (pi *PacsServer) FuzzyFindStudiesId(studiesId string) (cnt int, studiesIds []string, err error) + func (pi *PacsServer) GetStudiesIds() (ids []string) + func (pi *PacsServer) ImportInstance(data global.Dcm4cheInstanceInfo, studiesId string, seriesId string) (detail ImportDetails, err error) + func (pi *PacsServer) ImportSeries(data global.Dcm4cheSeriesInfo, studiesId string) (detail ImportDetails, err error) + func (pi *PacsServer) ImportStudies(data global.Dcm4cheStudiesInfo) (detail ImportDetails, err error) + func (pi *PacsServer) Init(prefix string, enableLog bool) + func (pi *PacsServer) InstanceMediaCheck(id string, targetType string) error + func (pi *PacsServer) InstanceMediaGenerate(id string, force bool) (global.InstanceInfo, error) + func (pi *PacsServer) InstanceMediaGet(id string, targetType string) (bs []byte, mediaType string, err error) + func (pi *PacsServer) InstanceMediaGetFrame(id string, frame int, imageType string) (bs []byte, err error) + func (pi *PacsServer) InstanceMediaGetThumb(id string) (bs []byte, err error) + func (pi *PacsServer) InstanceUpdateAll(id string, info global.InstanceInfo) (err error) + func (pi *PacsServer) InstanceUpdateLabel(instanceId string, label global.LabelInstance) (err error) + func (pi *PacsServer) InstanceUpdateLabelCore(instanceId string, data map[string]interface{}) (err error) + func (pi *PacsServer) InstanceUpdateLabelMemo(instanceId string, memo string) (err error) + func (pi *PacsServer) InstanceUpdateLabelTag(id, key, value string) (err error) + func (pi *PacsServer) Log(msg ...interface{}) + func (pi *PacsServer) Logf(format string, msg ...interface{}) + func (pi *PacsServer) ProcessPacsDcm4cheeServer(step, workers int, quickMode bool) (stat ImportDetails) + func (pi *PacsServer) RemoveInstance(instanceId string) (err error) + func (pi *PacsServer) RemoveSeries(studiesId string, seriesId string, isRemoveInstances bool) (err error) + func (pi *PacsServer) RemoveStudies(studiesId string, isRemoveChild bool) (err error) + func (pi *PacsServer) SeriesRemoveInstanceId(seriesId, instanceId string) (err error) + func (pi *PacsServer) SeriesUpdateAll(seriesId string, info global.SeriesInfo) (err error) + func (pi *PacsServer) SeriesUpdateInsertInstanceId(seriesId, instanceId string) (err error) + func (pi *PacsServer) SeriesUpdateLabel(seriesId string, label global.LabelSeries) (err error) + func (pi *PacsServer) SeriesUpdateLabelCore(seriesId string, data map[string]interface{}) (err error) + func (pi *PacsServer) SeriesUpdateLabelMemo(seriesId string, memo string) (err error) + func (pi *PacsServer) SeriesUpdateLabelTag(seriesId string, key, value string) (err error) + func (pi *PacsServer) SeriesUpdateTag(seriesId string, key, value string) (err error) + func (pi *PacsServer) StudiesCheckPermissionAuthor(id string, uid int) (ok bool, err error) + func (pi *PacsServer) StudiesCheckPermissionReview(id string, uid int) (ok bool, err error) + func (pi *PacsServer) StudiesInsertSeriesId(studiesId, seriesId string) (err error) + func (pi *PacsServer) StudiesRemoveSeriesId(studiesId, seriesId string) (err error) + func (pi *PacsServer) StudiesSetTagDelete(id string, delete bool) (err error) + func (pi *PacsServer) StudiesSetTagHidden(id string, hidden bool) (err error) + func (pi *PacsServer) StudiesUpdateAll(id string, info global.StudiesInfo) (err error) + func (pi *PacsServer) StudiesUpdateLabel(id string, label global.LabelStudies) (err error) + func (pi *PacsServer) StudiesUpdateLabelHisInformation(id string, info string) (err error) + func (pi *PacsServer) StudiesUpdateLabelInfoAttend(id string, info string) (err error) + func (pi *PacsServer) StudiesUpdateLabelMemo(id string, info string) (err error) + func (pi *PacsServer) StudiesUpdateLabelProgress(id string, progress int) (err error) + func (pi *PacsServer) StudiesUpdateLabelUidAuthor(id string, uid int) (err error) + func (pi *PacsServer) StudiesUpdateLabelUidReview(id string, uid int) (err error) + func (pi *PacsServer) StudiesUpdateTag(id string, key, value string) (err error) + type SyncWorker struct + Id int + Stat ImportDetails + func NewSyncWorker(pi *PacsServer, id int, enableLog bool, chanFree chan int) *SyncWorker + func (s *SyncWorker) Logf(format string, msg ...interface{}) + func (worker *SyncWorker) ClearStatus() (status ImportDetails) + func (worker *SyncWorker) Feed(start, step int) + func (worker *SyncWorker) IsBusy() bool + func (worker *SyncWorker) Start() + func (worker *SyncWorker) Stop() + func (worker *SyncWorker) UseQuickMode()