use of org.openehealth.ipf.commons.ihe.hl7v3.core.metadata.Device in project ipf by oehf.
the class PixV3QueryRequestTransformer method fromReceiver.
public Device fromReceiver(final MCCIMT000100UV01Receiver receiver) {
if (receiver == null) {
return null;
}
final Device simpleDevice = new Device();
simpleDevice.setTelecom(receiver.getTelecom());
final MCCIMT000100UV01Device device = receiver.getDevice();
if (device != null) {
simpleDevice.getIds().addAll(device.getId());
simpleDevice.getNames().addAll(device.getName());
simpleDevice.setDesc(device.getDesc());
simpleDevice.getDeviceTelecom().addAll(device.getTelecom());
simpleDevice.setManufacturerModelName(device.getManufacturerModelName());
simpleDevice.setSoftwareName(device.getSoftwareName());
}
return simpleDevice;
}
Aggregations