Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
var StandardTransferSyntaxes = []string{ ImplicitVRLittleEndian, ExplicitVRLittleEndian, ExplicitVRBigEndian, DeflatedExplicitVRLittleEndian, }
Standard list of transfer syntaxes.
Functions ¶
func CanonicalTransferSyntaxUID ¶
CanonicalTransferSyntaxUID return the canonical transfer syntax UID (e.g., dicomuid.ExplicitVRLittleEndian or dicomuid.ImplicitVRLittleEndian), given an UID that represents any transfer syntax. Returns an error if the uid is not defined in DICOM standard, or if the uid does not represent a transfer syntax.
TODO(saito) Check the standard to see if we need to accept unknown UIDS as explicit little endian.
func ParseTransferSyntaxUID ¶
ParseTransferSyntaxUID parses a transfer syntax uid and returns its byteorder and implicitVR/explicitVR type. TrasnferSyntaxUID can be any UID that refers to a transfer syntax. It can be, e.g., 1.2.840.10008.1.2 (it will return LittleEndian, ImplicitVR) or 1.2.840.10008.1.2.4.54 (it will return (LittleEndian, ExplicitVR).
Types ¶
type Info ¶
type Info 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 Type // "SOP Class", "Transfer Syntax", etc. Part string // Not used. Status string // "" if active. "Retired", if retired. }
Info holds detailed information about a DICOM UID
func Lookup ¶
Lookup finds 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 ¶
MustLookup is similar to LookupUID, but crashes the process on error.