001package org.hl7.fhir.convertors.conv30_50.datatypes30_50.complextypes30_50;
002
003import org.hl7.fhir.exceptions.FHIRException;
004
005public class Duration30_50 {
006  public static org.hl7.fhir.r5.model.Duration convertDuration(org.hl7.fhir.dstu3.model.Duration src) throws FHIRException {
007    if (src == null) return null;
008    org.hl7.fhir.r5.model.Duration tgt = new org.hl7.fhir.r5.model.Duration();
009    Quantity30_50.copyQuantity(src, tgt);
010    return tgt;
011  }
012
013  public static org.hl7.fhir.dstu3.model.Duration convertDuration(org.hl7.fhir.r5.model.Duration src) throws FHIRException {
014    if (src == null) return null;
015    org.hl7.fhir.dstu3.model.Duration tgt = new org.hl7.fhir.dstu3.model.Duration();
016    Quantity30_50.copyQuantity(src, tgt);
017    return tgt;
018  }
019}