public org.hl7.fhir.dstu3.model.Attachment convertAttachment(org.hl7.fhir.instance.model.Attachment src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Attachment tgt = new org.hl7.fhir.dstu3.model.Attachment(); copyElement(src, tgt); tgt.setContentType(src.getContentType()); tgt.setLanguage(src.getLanguage()); tgt.setData(src.getData()); tgt.setUrl(src.getUrl()); tgt.setSize(src.getSize()); tgt.setHash(src.getHash()); tgt.setTitle(src.getTitle()); tgt.setCreation(src.getCreation()); return tgt; }
public org.hl7.fhir.r4.model.Attachment convertAttachment(org.hl7.fhir.instance.model.Attachment src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Attachment tgt = new org.hl7.fhir.r4.model.Attachment(); copyElement(src, tgt); tgt.setContentType(src.getContentType()); tgt.setLanguage(src.getLanguage()); tgt.setData(src.getData()); tgt.setUrl(src.getUrl()); tgt.setSize(src.getSize()); tgt.setHash(src.getHash()); tgt.setTitle(src.getTitle()); tgt.setCreation(src.getCreation()); return tgt; }
public org.hl7.fhir.dstu3.model.Attachment convertAttachment(org.hl7.fhir.instance.model.Attachment src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Attachment tgt = new org.hl7.fhir.dstu3.model.Attachment(); copyElement(src, tgt); tgt.setContentType(src.getContentType()); tgt.setLanguage(src.getLanguage()); tgt.setData(src.getData()); tgt.setUrl(src.getUrl()); tgt.setSize(src.getSize()); tgt.setHash(src.getHash()); tgt.setTitle(src.getTitle()); tgt.setCreation(src.getCreation()); return tgt; }
public org.hl7.fhir.r4.model.Attachment convertAttachment(org.hl7.fhir.instance.model.Attachment src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Attachment tgt = new org.hl7.fhir.r4.model.Attachment(); copyElement(src, tgt); tgt.setContentType(src.getContentType()); tgt.setLanguage(src.getLanguage()); tgt.setData(src.getData()); tgt.setUrl(src.getUrl()); tgt.setSize(src.getSize()); tgt.setHash(src.getHash()); tgt.setTitle(src.getTitle()); tgt.setCreation(src.getCreation()); return tgt; }