public class DeviceParticipant extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
manufacturer |
protected String |
modelName |
protected String |
serialNumber |
protected String |
uid |
Constructor and Description |
---|
DeviceParticipant(ContentItem parent) |
DeviceParticipant(String manufacturer,
String modelName,
String serialNumber)
Deprecated.
will create SR template missing Device Observer UID since CP 1065 added it as mandatory (000653)
|
DeviceParticipant(String manufacturer,
String modelName,
String serialNumber,
String uid) |
Modifier and Type | Method and Description |
---|---|
static String |
getDeviceObserverUIDOrSuitableAlternative(AttributeList list)
Extract the device observer UID information from a list of attributes, or some suitable alternate if available.
|
static String |
getDeviceSerialNumberOrSuitableAlternative(AttributeList list,
boolean insertAlternateBackInList)
Extract the device serial number information from a list of attributes, or some suitable alternate if available.
|
String |
getManufacturer() |
String |
getModelName() |
String |
getSerialNumber() |
ContentItem |
getStructuredReportFragment() |
String |
getUID() |
protected String manufacturer
protected String modelName
protected String serialNumber
protected String uid
public DeviceParticipant(String manufacturer, String modelName, String serialNumber)
public DeviceParticipant(String manufacturer, String modelName, String serialNumber, String uid)
public DeviceParticipant(ContentItem parent)
public String getManufacturer()
public String getModelName()
public String getSerialNumber()
public String getUID()
public ContentItem getStructuredReportFragment() throws DicomException
DicomException
public static String getDeviceSerialNumberOrSuitableAlternative(AttributeList list, boolean insertAlternateBackInList)
Extract the device serial number information from a list of attributes, or some suitable alternate if available.
Makes a hash of StationName and Institution as an alternate, if either or both present and not empty.
list
- the list of attributesinsertAlternateBackInList
- if true, when there is no DeviceSerialNumber or it is empty, add the alterate created back to the supplied list (side effect of call)public static String getDeviceObserverUIDOrSuitableAlternative(AttributeList list)
Extract the device observer UID information from a list of attributes, or some suitable alternate if available.
Makes a hash of DeviceSerialNumber, StationName, Institution, Manufacturer, Manufacturer Model Name as an alternate, if any are present and not empty.
list
- the list of attributes