001package org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50;
002
003import org.hl7.fhir.exceptions.FHIRException;
004
005public class Distance43_50 {
006  public static org.hl7.fhir.r5.model.Distance convertDistance(org.hl7.fhir.r4b.model.Distance src) throws FHIRException {
007    if (src == null) return null;
008    org.hl7.fhir.r5.model.Distance tgt = new org.hl7.fhir.r5.model.Distance();
009    Quantity43_50.copyQuantity(src, tgt);
010    return tgt;
011  }
012
013  public static org.hl7.fhir.r4b.model.Distance convertDistance(org.hl7.fhir.r5.model.Distance src) throws FHIRException {
014    if (src == null) return null;
015    org.hl7.fhir.r4b.model.Distance tgt = new org.hl7.fhir.r4b.model.Distance();
016    Quantity43_50.copyQuantity(src, tgt);
017    return tgt;
018  }
019}