@Override public InputStream getInputStream() { return new ByteArrayInputStream(nextPackage.getData()); } });
@Override public InputStream getInputStream() { return new ByteArrayInputStream(nextPackage.getData()); } });
public org.hl7.fhir.instance.model.Attachment convertAttachment(org.hl7.fhir.r4.model.Attachment src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Attachment tgt = new org.hl7.fhir.instance.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 static org.hl7.fhir.dstu2016may.model.Attachment convertAttachment(org.hl7.fhir.r4.model.Attachment src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Attachment tgt = new org.hl7.fhir.dstu2016may.model.Attachment(); copyElement(src, tgt); if (src.hasContentType()) tgt.setContentType(src.getContentType()); if (src.hasLanguage()) tgt.setLanguage(src.getLanguage()); if (src.hasData()) tgt.setData(src.getData()); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasSize()) tgt.setSize(src.getSize()); if (src.hasHash()) tgt.setHash(src.getHash()); if (src.hasTitle()) tgt.setTitle(src.getTitle()); if (src.hasCreation()) tgt.setCreation(src.getCreation()); return tgt; }
public org.hl7.fhir.instance.model.Attachment convertAttachment(org.hl7.fhir.r4.model.Attachment src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Attachment tgt = new org.hl7.fhir.instance.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 static org.hl7.fhir.dstu2016may.model.Attachment convertAttachment(org.hl7.fhir.r4.model.Attachment src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Attachment tgt = new org.hl7.fhir.dstu2016may.model.Attachment(); copyElement(src, tgt); if (src.hasContentType()) tgt.setContentType(src.getContentType()); if (src.hasLanguage()) tgt.setLanguage(src.getLanguage()); if (src.hasData()) tgt.setData(src.getData()); if (src.hasUrl()) tgt.setUrl(src.getUrl()); if (src.hasSize()) tgt.setSize(src.getSize()); if (src.hasHash()) tgt.setHash(src.getHash()); if (src.hasTitle()) tgt.setTitle(src.getTitle()); if (src.hasCreation()) tgt.setCreation(src.getCreation()); return tgt; }