Documentation ¶
Index ¶
Constants ¶
View Source
const ProtoHeader = "syntax = \"proto3\";\noption go_package = \"github.com/gradienthealth/dicom-protos/protos\";"
ProtoHeader represents the protocol buffer header for all protos
Variables ¶
SetComplete holds on to attributes that have been generated already
View Source
var VRToProto = map[string]string{
"UT": "string",
"US": "uint32",
"UN": "bytes",
"UL": "uint32",
"UI": "string",
"TM": "int64",
"ST": "string",
"SS": "int32",
"SQ": "bytes",
"SL": "int32",
"SH": "string",
"PN": "string",
"OW": "bytes",
"OF": "string",
"OD": "string",
"OB": "string",
"LT": "string",
"LO": "string",
"IS": "int32",
"FD": "double",
"FL": "float",
"DT": "int64",
"DS": "float",
"DA": "string",
"CS": "string",
"AT": "string",
"AS": "string",
"AE": "string",
"UC": "string",
"UR": "string",
"": "bytes",
"OL": "int32",
"US or SS": "int64",
"US or OW": "bytes",
"OB or OW": "bytes",
}
VRToProto maps a DICOM VR to the corresponding proto type (Part 5 6.2)
Functions ¶
func AttributeProto ¶
AttributeProto generates the protocol message for an attribute and returns it as a string
func ModuleProto ¶
ModuleProto generates the corresponding protocol buffer for the module and writes it to w
func ProtosToFile ¶
ProtosToFile generates ALL protos from the provided modules to the directory path specified
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.