public org.hl7.fhir.instance.model.Media convertMedia(org.hl7.fhir.dstu3.model.Media src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Media tgt = new org.hl7.fhir.instance.model.Media(); copyDomainResource(src, tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setType(convertDigitalMediaType(src.getType())); tgt.setSubtype(convertCodeableConcept(src.getSubtype())); tgt.setView(convertCodeableConcept(src.getView())); tgt.setSubject(convertReference(src.getSubject())); tgt.setOperator(convertReference(src.getOperator())); tgt.setDeviceName(src.getDevice().getDisplay()); tgt.setHeight(src.getHeight()); tgt.setWidth(src.getWidth()); tgt.setFrames(src.getFrames()); tgt.setDuration(src.getDuration()); tgt.setContent(convertAttachment(src.getContent())); return tgt; }
public org.hl7.fhir.instance.model.Media convertMedia(org.hl7.fhir.dstu3.model.Media src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Media tgt = new org.hl7.fhir.instance.model.Media(); copyDomainResource(src, tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setType(convertDigitalMediaType(src.getType())); tgt.setSubtype(convertCodeableConcept(src.getSubtype())); tgt.setView(convertCodeableConcept(src.getView())); tgt.setSubject(convertReference(src.getSubject())); tgt.setOperator(convertReference(src.getOperator())); tgt.setDeviceName(src.getDevice().getDisplay()); tgt.setHeight(src.getHeight()); tgt.setWidth(src.getWidth()); tgt.setFrames(src.getFrames()); tgt.setDuration(src.getDuration()); tgt.setContent(convertAttachment(src.getContent())); return tgt; }