Package com.pixelmed.dose
Class DeviceParticipant
java.lang.Object
com.pixelmed.dose.DeviceParticipant
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeviceParticipant
(ContentItem parent) DeviceParticipant
(String manufacturer, String modelName, String serialNumber, String uid) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
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.getUID()
-
Field Details
-
manufacturer
-
modelName
-
serialNumber
-
uid
-
-
Constructor Details
-
DeviceParticipant
-
DeviceParticipant
-
-
Method Details
-
getManufacturer
-
getModelName
-
getSerialNumber
-
getUID
-
getStructuredReportFragment
- Throws:
DicomException
-
getDeviceSerialNumberOrSuitableAlternative
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.
- Parameters:
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)- Returns:
- a string containing either the DeviceSerialNumber from the list or a suitable alternate if available, else null
-
getDeviceObserverUIDOrSuitableAlternative
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.
- Parameters:
list
- the list of attributes- Returns:
- a string containing a suitable UID if available, else null
-