Search in sources :

Example 1 with SchematizedData

use of com.google.api.services.healthcare.v1.model.SchematizedData in project beam by apache.

the class HL7v2Message method toModel.

/**
 * To model message.
 *
 * @return the message
 */
public Message toModel() {
    Message out = new Message();
    out.setName(this.getName());
    out.setMessageType(this.getMessageType());
    out.setSendTime(this.getSendTime());
    out.setCreateTime(this.getCreateTime());
    out.setData(this.getData());
    out.setSendFacility(this.getSendFacility());
    if (this.schematizedData != null) {
        out.setSchematizedData(new SchematizedData().setData(this.schematizedData));
    }
    out.setLabels(this.labels);
    return out;
}
Also used : SchematizedData(com.google.api.services.healthcare.v1.model.SchematizedData) Message(com.google.api.services.healthcare.v1.model.Message)

Aggregations

Message (com.google.api.services.healthcare.v1.model.Message)1 SchematizedData (com.google.api.services.healthcare.v1.model.SchematizedData)1