001package org.hl7.fhir.convertors.conv30_50.resources30_50; 002 003import org.hl7.fhir.convertors.context.ConversionContext30_50; 004import org.hl7.fhir.exceptions.FHIRException; 005 006public class Media30_50 { 007 008 public static org.hl7.fhir.r5.model.DocumentReference convertMedia(org.hl7.fhir.dstu3.model.Media src) throws FHIRException { 009 if (src == null) 010 return null; 011 org.hl7.fhir.r5.model.DocumentReference tgt = new org.hl7.fhir.r5.model.DocumentReference(); 012 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyDomainResource(src, tgt); 013 return tgt; 014 } 015 016 public static org.hl7.fhir.dstu3.model.Media convertMedia(org.hl7.fhir.r5.model.DocumentReference src) throws FHIRException { 017 if (src == null) 018 return null; 019 org.hl7.fhir.dstu3.model.Media tgt = new org.hl7.fhir.dstu3.model.Media(); 020 ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyDomainResource(src, tgt); 021 return tgt; 022 } 023}