001package org.hl7.fhir.convertors.conv30_50.datatypes30_50;
002
003import org.hl7.fhir.convertors.context.ConversionContext30_50;
004import org.hl7.fhir.exceptions.FHIRException;
005
006public class BackboneElement30_50 {
007  static public void copyBackboneElement(org.hl7.fhir.dstu3.model.BackboneElement src, org.hl7.fhir.r5.model.BackboneElement tgt, String ... var) throws FHIRException {
008    ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src,tgt, var);
009    for (org.hl7.fhir.dstu3.model.Extension e : src.getModifierExtension()) {
010      tgt.addModifierExtension(Extension30_50.convertExtension(e));
011    }
012  }
013
014  static public void copyBackboneElement(org.hl7.fhir.r5.model.BackboneElement src, org.hl7.fhir.dstu3.model.BackboneElement tgt, String ... var) throws FHIRException {
015    ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt, var);
016    for (org.hl7.fhir.r5.model.Extension e : src.getModifierExtension()) {
017      tgt.addModifierExtension(Extension30_50.convertExtension(e));
018    }
019  }
020}