Search in sources :

Example 6 with Device

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;
}
Also used : MCCIMT000100UV01Device(net.ihe.gazelle.hl7v3.mccimt000100UV01.MCCIMT000100UV01Device) Device(org.openehealth.ipf.commons.ihe.hl7v3.core.metadata.Device) MCCIMT000100UV01Device(net.ihe.gazelle.hl7v3.mccimt000100UV01.MCCIMT000100UV01Device)

Aggregations

Device (org.openehealth.ipf.commons.ihe.hl7v3.core.metadata.Device)6 MCCIMT000100UV01Device (net.ihe.gazelle.hl7v3.mccimt000100UV01.MCCIMT000100UV01Device)2 PixV3QueryRequest (org.openehealth.ipf.commons.ihe.hl7v3.core.requests.PixV3QueryRequest)2 II (net.ihe.gazelle.hl7v3.datatypes.II)1 Test (org.junit.jupiter.api.Test)1