001package org.hl7.fhir.convertors.conv30_40.datatypes30_40.complextypes30_40; 002 003import org.hl7.fhir.exceptions.FHIRException; 004 005public class Age30_40 { 006 public static org.hl7.fhir.r4.model.Age convertAge(org.hl7.fhir.dstu3.model.Age src) throws FHIRException { 007 if (src == null) return null; 008 org.hl7.fhir.r4.model.Age tgt = new org.hl7.fhir.r4.model.Age(); 009 Quantity30_40.copyQuantity(src, tgt); 010 return tgt; 011 } 012 013 public static org.hl7.fhir.dstu3.model.Age convertAge(org.hl7.fhir.r4.model.Age src) throws FHIRException { 014 if (src == null) return null; 015 org.hl7.fhir.dstu3.model.Age tgt = new org.hl7.fhir.dstu3.model.Age(); 016 Quantity30_40.copyQuantity(src, tgt); 017 return tgt; 018 } 019}