Documentation ¶
Index ¶
- Constants
- 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
- type ImportDetails
- type PacsManager
- 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
- 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 SessionLogger
- type SyncWorker
- func (worker *SyncWorker) ClearStatus() (status ImportDetails)
- func (worker *SyncWorker) Feed(start, step int)
- func (worker *SyncWorker) IsBusy() bool
- func (s *SyncWorker) Logf(format string, msg ...interface{})
- func (worker *SyncWorker) Start()
- func (worker *SyncWorker) Stop()
- func (worker *SyncWorker) UseQuickMode()
Constants ¶
View Source
const LOCKFILE = "_locked"
Variables ¶
This section is empty.
Functions ¶
func InstancesAnalysis ¶
func LoadDbFile ¶
func SeriesAnalysis ¶
func StudiesAnalysis ¶
Types ¶
type ImportDetails ¶
type PacsManager ¶
type PacsManager struct { SessionLogger // contains filtered or unexported fields }
func NewPacsDbManager ¶
func NewPacsDbManager(dbFile string, enableLog bool) (dm *PacsManager, err error)
func (*PacsManager) AutoSync ¶
func (dm *PacsManager) AutoSync(sec int)
func (*PacsManager) AutoSyncOff ¶
func (dm *PacsManager) AutoSyncOff()
func (*PacsManager) GetServer ¶
func (dm *PacsManager) GetServer(serverName string) (pi *PacsServer, err error)
func (*PacsManager) GetServerAll ¶
func (dm *PacsManager) GetServerAll() (data []PacsServer, err error)
func (*PacsManager) GetServerNameAll ¶
func (dm *PacsManager) GetServerNameAll() (names []string)
func (*PacsManager) Log ¶
func (dm *PacsManager) Log(msg ...interface{})
func (*PacsManager) Sync ¶
func (dm *PacsManager) Sync(chkMedia bool, syncStep int, quickMode bool) (stat ImportDetails)
type PacsServer ¶
type PacsServer struct { ServerName string `gorose:"server_name" json:"server_name,omitempty"` ServerType string `gorose:"server_type" json:"server_type,omitempty"` ServerHost string `gorose:"server_host" json:"server_host,omitempty"` ServerAETs string `gorose:"server_aets" json:"server_aets,omitempty"` TableTitle string `gorose:"table_title" json:"table_title,omitempty"` CacheRoot string `gorose:"cache_root" json:"cache_root"` ShowHidden bool OnlyHidden bool ShowDelete bool SessionLogger // contains filtered or unexported fields }
func (*PacsServer) CheckSeriesPermissionAuthor ¶
func (pi *PacsServer) CheckSeriesPermissionAuthor(id string, uid int) (ok bool, err error)
func (*PacsServer) CheckSeriesPermissionReview ¶
func (pi *PacsServer) CheckSeriesPermissionReview(id string, uid int) (ok bool, err error)
func (*PacsServer) DbInstanceHandler ¶
func (pi *PacsServer) DbInstanceHandler() (h gorose.IOrm)
func (*PacsServer) DbSeriesHandler ¶
func (pi *PacsServer) DbSeriesHandler() (h gorose.IOrm)
func (*PacsServer) DbStudiesHandler ¶
func (pi *PacsServer) DbStudiesHandler() (h gorose.IOrm)
func (*PacsServer) ExportInstances ¶
func (pi *PacsServer) ExportInstances(studiesIds []string) (err error)
func (*PacsServer) FindInstanceByIdLocal ¶
func (pi *PacsServer) FindInstanceByIdLocal(id string) (info global.InstanceInfo, err error)
func (*PacsServer) FindInstanceByIdsLocal ¶
func (pi *PacsServer) FindInstanceByIdsLocal(ids []string, step int) (infos []global.InstanceInfo, err error)
防止数据查询参数过多,sql异常,明确step
func (*PacsServer) FindInstancesByView ¶
func (pi *PacsServer) FindInstancesByView(view string) (infos []global.InstanceInfo, err error)
func (*PacsServer) FindInstancesByViewFuzzy ¶
func (pi *PacsServer) FindInstancesByViewFuzzy(view string) (infos []global.InstanceInfo, err error)
func (*PacsServer) FindSeriesByIdLocal ¶
func (pi *PacsServer) FindSeriesByIdLocal(seriesId string) (info global.SeriesInfo, err error)
func (*PacsServer) FindSeriesByIdsLocal ¶
func (pi *PacsServer) FindSeriesByIdsLocal(seriesIds []string) (infos []global.SeriesInfo, err error)
func (*PacsServer) FindStudiesById ¶
func (pi *PacsServer) FindStudiesById(studiesId string) (info global.StudiesInfo, err error)
func (*PacsServer) FindStudiesByIdLocal ¶
func (pi *PacsServer) FindStudiesByIdLocal(studiesId string) (info global.StudiesInfo, err error)
func (*PacsServer) FindStudiesByIdWithHiddenLocal ¶
func (pi *PacsServer) FindStudiesByIdWithHiddenLocal(studiesId string) (info global.StudiesInfo, err error)
func (*PacsServer) FindStudiesByPatientId ¶
func (pi *PacsServer) FindStudiesByPatientId(pid string) (infos []global.StudiesInfo, err error)
func (*PacsServer) FindStudiesByPatientName ¶
func (pi *PacsServer) FindStudiesByPatientName(pn string) (infos []global.StudiesInfo, err error)
func (*PacsServer) FindStudiesByStudiesDatetime ¶
func (pi *PacsServer) FindStudiesByStudiesDatetime(tStart, tEnd time.Time) (infos []global.StudiesInfo, err error)
func (*PacsServer) FindStudiesByUpdateDatetime ¶
func (pi *PacsServer) FindStudiesByUpdateDatetime(tStart, tEnd time.Time) (infos []global.StudiesInfo, err error)
func (*PacsServer) FuzzyFindInstanceById ¶
func (pi *PacsServer) FuzzyFindInstanceById(instanceId string) (cnt int, instanceIds []string, err error)
func (*PacsServer) FuzzyFindInstanceCustomField ¶
func (pi *PacsServer) FuzzyFindInstanceCustomField(field, keyword string) (cnt int, instanceIds []string, err error)
func (*PacsServer) FuzzyFindPatientId ¶
func (pi *PacsServer) FuzzyFindPatientId(pid string) (cnt int, studiesIds []string, err error)
func (*PacsServer) FuzzyFindPatientName ¶
func (pi *PacsServer) FuzzyFindPatientName(pn string) (cnt int, studiesIds []string, err error)
func (*PacsServer) FuzzyFindSeriesById ¶
func (pi *PacsServer) FuzzyFindSeriesById(seriesId string) (cnt int, seriesIds []string, err error)
func (*PacsServer) FuzzyFindSeriesCustomField ¶
func (pi *PacsServer) FuzzyFindSeriesCustomField(field, keyword string) (cnt int, seriesIds []string, err error)
func (*PacsServer) FuzzyFindStudiesCustomField ¶
func (pi *PacsServer) FuzzyFindStudiesCustomField(field, keyword string) (cnt int, studiesIds []string, err error)
func (*PacsServer) FuzzyFindStudiesId ¶
func (pi *PacsServer) FuzzyFindStudiesId(studiesId string) (cnt int, studiesIds []string, err error)
func (*PacsServer) GetStudiesIds ¶
func (pi *PacsServer) GetStudiesIds() (ids []string)
func (*PacsServer) ImportInstance ¶
func (pi *PacsServer) ImportInstance(data global.Dcm4cheInstanceInfo, studiesId string, seriesId string) (detail ImportDetails, err error)
func (*PacsServer) ImportSeries ¶
func (pi *PacsServer) ImportSeries(data global.Dcm4cheSeriesInfo, studiesId string) (detail ImportDetails, err error)
func (*PacsServer) ImportStudies ¶
func (pi *PacsServer) ImportStudies(data global.Dcm4cheStudiesInfo) (detail ImportDetails, err error)
func (*PacsServer) Init ¶
func (pi *PacsServer) Init(prefix string, enableLog bool)
func (*PacsServer) InstanceMediaCheck ¶
func (pi *PacsServer) InstanceMediaCheck(id string, targetType string) error
InstanceMediaCheck targetType=image | thumb | video/
func (*PacsServer) InstanceMediaGenerate ¶
func (pi *PacsServer) InstanceMediaGenerate(id string, force bool) (global.InstanceInfo, error)
func (*PacsServer) InstanceMediaGet ¶
func (*PacsServer) InstanceMediaGetFrame ¶
func (*PacsServer) InstanceMediaGetThumb ¶
func (pi *PacsServer) InstanceMediaGetThumb(id string) (bs []byte, err error)
func (*PacsServer) InstanceUpdateAll ¶
func (pi *PacsServer) InstanceUpdateAll(id string, info global.InstanceInfo) (err error)
func (*PacsServer) InstanceUpdateLabel ¶
func (pi *PacsServer) InstanceUpdateLabel(instanceId string, label global.LabelInstance) (err error)
func (*PacsServer) InstanceUpdateLabelCore ¶
func (pi *PacsServer) InstanceUpdateLabelCore(instanceId string, data map[string]interface{}) (err error)
func (*PacsServer) InstanceUpdateLabelMemo ¶ added in v1.0.8
func (pi *PacsServer) InstanceUpdateLabelMemo(instanceId string, memo string) (err error)
func (*PacsServer) InstanceUpdateLabelTag ¶
func (pi *PacsServer) InstanceUpdateLabelTag(id, key, value string) (err error)
func (*PacsServer) Log ¶
func (pi *PacsServer) Log(msg ...interface{})
func (*PacsServer) Logf ¶
func (pi *PacsServer) Logf(format string, msg ...interface{})
func (*PacsServer) ProcessPacsDcm4cheeServer ¶
func (pi *PacsServer) ProcessPacsDcm4cheeServer(step, workers int, quickMode bool) (stat ImportDetails)
ProcessPacsDcm4cheeServer 拉取PACS数据
步进step,协进workers
func (*PacsServer) RemoveInstance ¶
func (pi *PacsServer) RemoveInstance(instanceId string) (err error)
func (*PacsServer) RemoveSeries ¶
func (pi *PacsServer) RemoveSeries(studiesId string, seriesId string, isRemoveInstances bool) (err error)
func (*PacsServer) RemoveStudies ¶
func (pi *PacsServer) RemoveStudies(studiesId string, isRemoveChild bool) (err error)
func (*PacsServer) SeriesRemoveInstanceId ¶
func (pi *PacsServer) SeriesRemoveInstanceId(seriesId, instanceId string) (err error)
func (*PacsServer) SeriesUpdateAll ¶ added in v1.0.8
func (pi *PacsServer) SeriesUpdateAll(seriesId string, info global.SeriesInfo) (err error)
func (*PacsServer) SeriesUpdateInsertInstanceId ¶ added in v1.0.8
func (pi *PacsServer) SeriesUpdateInsertInstanceId(seriesId, instanceId string) (err error)
func (*PacsServer) SeriesUpdateLabel ¶ added in v1.0.8
func (pi *PacsServer) SeriesUpdateLabel(seriesId string, label global.LabelSeries) (err error)
func (*PacsServer) SeriesUpdateLabelCore ¶ added in v1.0.8
func (pi *PacsServer) SeriesUpdateLabelCore(seriesId string, data map[string]interface{}) (err error)
func (*PacsServer) SeriesUpdateLabelMemo ¶ added in v1.0.8
func (pi *PacsServer) SeriesUpdateLabelMemo(seriesId string, memo string) (err error)
func (*PacsServer) SeriesUpdateLabelTag ¶ added in v1.0.8
func (pi *PacsServer) SeriesUpdateLabelTag(seriesId string, key, value string) (err error)
func (*PacsServer) SeriesUpdateTag ¶ added in v1.0.8
func (pi *PacsServer) SeriesUpdateTag(seriesId string, key, value string) (err error)
func (*PacsServer) StudiesCheckPermissionAuthor ¶
func (pi *PacsServer) StudiesCheckPermissionAuthor(id string, uid int) (ok bool, err error)
func (*PacsServer) StudiesCheckPermissionReview ¶
func (pi *PacsServer) StudiesCheckPermissionReview(id string, uid int) (ok bool, err error)
func (*PacsServer) StudiesInsertSeriesId ¶
func (pi *PacsServer) StudiesInsertSeriesId(studiesId, seriesId string) (err error)
func (*PacsServer) StudiesRemoveSeriesId ¶
func (pi *PacsServer) StudiesRemoveSeriesId(studiesId, seriesId string) (err error)
func (*PacsServer) StudiesSetTagDelete ¶
func (pi *PacsServer) StudiesSetTagDelete(id string, delete bool) (err error)
func (*PacsServer) StudiesSetTagHidden ¶
func (pi *PacsServer) StudiesSetTagHidden(id string, hidden bool) (err error)
func (*PacsServer) StudiesUpdateAll ¶
func (pi *PacsServer) StudiesUpdateAll(id string, info global.StudiesInfo) (err error)
func (*PacsServer) StudiesUpdateLabel ¶
func (pi *PacsServer) StudiesUpdateLabel(id string, label global.LabelStudies) (err error)
func (*PacsServer) StudiesUpdateLabelHisInformation ¶
func (pi *PacsServer) StudiesUpdateLabelHisInformation(id string, info string) (err error)
func (*PacsServer) StudiesUpdateLabelInfoAttend ¶
func (pi *PacsServer) StudiesUpdateLabelInfoAttend(id string, info string) (err error)
func (*PacsServer) StudiesUpdateLabelMemo ¶
func (pi *PacsServer) StudiesUpdateLabelMemo(id string, info string) (err error)
func (*PacsServer) StudiesUpdateLabelProgress ¶
func (pi *PacsServer) StudiesUpdateLabelProgress(id string, progress int) (err error)
func (*PacsServer) StudiesUpdateLabelUidAuthor ¶
func (pi *PacsServer) StudiesUpdateLabelUidAuthor(id string, uid int) (err error)
func (*PacsServer) StudiesUpdateLabelUidReview ¶
func (pi *PacsServer) StudiesUpdateLabelUidReview(id string, uid int) (err error)
func (*PacsServer) StudiesUpdateTag ¶
func (pi *PacsServer) StudiesUpdateTag(id string, key, value string) (err error)
type SessionLogger ¶
type SessionLogger struct {
// contains filtered or unexported fields
}
type SyncWorker ¶
type SyncWorker struct { Id int Stat ImportDetails SessionLogger // contains filtered or unexported fields }
func NewSyncWorker ¶
func NewSyncWorker(pi *PacsServer, id int, enableLog bool, chanFree chan int) *SyncWorker
func (*SyncWorker) ClearStatus ¶
func (worker *SyncWorker) ClearStatus() (status ImportDetails)
func (*SyncWorker) Feed ¶
func (worker *SyncWorker) Feed(start, step int)
func (*SyncWorker) IsBusy ¶
func (worker *SyncWorker) IsBusy() bool
func (*SyncWorker) Logf ¶
func (s *SyncWorker) Logf(format string, msg ...interface{})
func (*SyncWorker) Start ¶
func (worker *SyncWorker) Start()
func (*SyncWorker) Stop ¶
func (worker *SyncWorker) Stop()
func (*SyncWorker) UseQuickMode ¶ added in v1.0.5
func (worker *SyncWorker) UseQuickMode()
Click to show internal directories.
Click to hide internal directories.