dicomuid

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package dicomuid defines standard UIDs, as defined in P3.6.

http://dicom.nema.org/medical/dicom/current/output/pdf/part06.pdf

Index

Constants

This section is empty.

Variables

View Source
var (
	PatientRootQRFind = standardUID("1.2.840.10008.5.1.4.1.2.1.1")
	StudyRootQRFind   = standardUID("1.2.840.10008.5.1.4.1.2.2.1")
	PatientRootQRGet  = standardUID("1.2.840.10008.5.1.4.1.2.1.3")
	StudyRootQRGet    = standardUID("1.2.840.10008.5.1.4.1.2.2.3")
	PatientRootQRMove = standardUID("1.2.840.10008.5.1.4.1.2.1.2")
	StudyRootQRMove   = standardUID("1.2.840.10008.5.1.4.1.2.2.2")

	ModalityWorklistInformationFind = standardUID("1.2.840.10008.5.1.4.31")
	VerificationSOPClass            = standardUID("1.2.840.10008.1.1")

	// https://www.dicomlibrary.com/dicom/transfer-syntax/
	ImplicitVRLittleEndian         = standardUID("1.2.840.10008.1.2")
	ExplicitVRLittleEndian         = standardUID("1.2.840.10008.1.2.1")
	ExplicitVRBigEndian            = standardUID("1.2.840.10008.1.2.2")
	DeflatedExplicitVRLittleEndian = standardUID("1.2.840.10008.1.2.1.99")
)

Commonly used UID constants.

Functions

func UIDString

func UIDString(uid string) string

UidString returns a human-readable diagnostic string for a DICOM UID.

Types

type UIDInfo

type UIDInfo struct {
	UID    string  // "1.2.840.10008.x.y.z"
	Name   string  // The UID string, e.g.,"1.2.840.10008.1.2.1".
	Type   UIDType // "SOP Class", "Transfer Syntax", etc.
	Part   string  // Not used.
	Status string  // "" if active. "Retired", if netired.
}

func Lookup

func Lookup(uid string) (UIDInfo, error)

Find information about the given uid (string starting with 1.2.840). Returns an error unless uid is the one defined in the DICOM standard, P3.6.

func MustLookup

func MustLookup(uid string) UIDInfo

Similar to LookupUID, but crashes the process on error.

type UIDType

type UIDType string
const (
	TypeSOPClass                  UIDType = "SOP Class"
	TypeTransferSyntax            UIDType = "Transfer Syntax"
	TypeWellKnownFrameOfReference UIDType = "Well-known frame of reference"
	TypeWellKnownSOPInstance      UIDType = "Well-known SOP instance"
	TypeCodingScheme              UIDType = "Coding Scheme"
)

Jump to

Keyboard shortcuts

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