Class DicomUid
DICOM unique identifiers (PS3.5 chapter 9).
[Experimental("EGAMIX001", UrlFormat = "https://github.com/inexin/Egami/blob/main/docs/articles/formats/dicom.md")]
public static class DicomUid
- Inheritance
-
DicomUid
- Inherited Members
Examples
// Any raster saves as a Secondary Capture image: gray as MONOCHROME2, colour as RGB, 8 or 16 bits.
using (FileStream output = File.Create("capture.dcm"))
{
raster.Save(output, DicomFormat.Info, new DicomWriterOptions
{
TransferSyntax = DicomTransferSyntax.JpegLsLossless,
Attributes = new Dictionary<string, string>
{
["PatientName"] = "Doe^Jane",
["PatientID"] = "12345",
["StudyInstanceUID"] = DicomUid.Generate(),
},
});
}
Properties
ImplementationClassUid
Gets the Implementation Class UID Egami writes in the file meta information (0002,0012).
public static string ImplementationClassUid { get; }
Property Value
Methods
Generate()
Returns a new UID made from a random UUID, as PS3.5 section B.2 gives: 2.25. and the UUID's 128 bits as a decimal
number, such as 2.25.329800735698586629295641978511506172918. Up to 44 characters, under the 64 a UID may have.
public static string Generate()
Returns
- string
The UID.