public org.hl7.fhir.instance.model.Money convertMoney(org.hl7.fhir.r4.model.Money src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Money tgt = new org.hl7.fhir.instance.model.Money(); copyElement(src, tgt); tgt.setValue(src.getValue()); tgt.setCode(src.getCurrency()); return tgt; }
public static org.hl7.fhir.dstu2016may.model.Money convertMoney(org.hl7.fhir.r4.model.Money src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Money tgt = new org.hl7.fhir.dstu2016may.model.Money(); copyElement(src, tgt); if (src.hasValue()) tgt.setValue(src.getValue()); if (src.hasCurrency()) tgt.setCode(src.getCurrency()); return tgt; }
public org.hl7.fhir.instance.model.Money convertMoney(org.hl7.fhir.r4.model.Money src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Money tgt = new org.hl7.fhir.instance.model.Money(); copyElement(src, tgt); tgt.setValue(src.getValue()); tgt.setCode(src.getCurrency()); return tgt; }
public static org.hl7.fhir.dstu2016may.model.Money convertMoney(org.hl7.fhir.r4.model.Money src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Money tgt = new org.hl7.fhir.dstu2016may.model.Money(); copyElement(src, tgt); if (src.hasValue()) tgt.setValue(src.getValue()); if (src.hasCurrency()) tgt.setCode(src.getCurrency()); return tgt; }