/** * @return {@link #net} (Expresses the product of the Contract Valued Item unitQuantity and the unitPriceAmt. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied.) */ public Money getNet() { if (this.net == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ValuedItemComponent.net"); else if (Configuration.doAutoCreate()) this.net = new Money(); // cc return this.net; }
public boolean hasBalance() { return this.balance != null && !this.balance.isEmpty(); }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof Money)) return false; Money o = (Money) other; return compareDeep(value, o.value, true) && compareDeep(comparator, o.comparator, true) && compareDeep(unit, o.unit, true) && compareDeep(system, o.system, true) && compareDeep(code, o.code, true); }
public org.hl7.fhir.dstu3.model.Money convertMoney(org.hl7.fhir.instance.model.Money src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Money tgt = new org.hl7.fhir.dstu3.model.Money(); copyElement(src, tgt); tgt.setValue(src.getValue()); tgt.setComparator(convertQuantityComparator(src.getComparator())); tgt.setUnit(src.getUnit()); tgt.setSystem(src.getSystem()); tgt.setCode(src.getCode()); return tgt; }
public org.hl7.fhir.r4.model.Money convertMoney(org.hl7.fhir.instance.model.Money src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Money tgt = new org.hl7.fhir.r4.model.Money(); copyElement(src, tgt); tgt.setValue(src.getValue()); tgt.setCurrency(src.getCode()); 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 org.hl7.fhir.instance.model.Money convertMoney(org.hl7.fhir.dstu3.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.setComparator(convertQuantityComparator(src.getComparator())); tgt.setUnit(src.getUnit()); tgt.setSystem(src.getSystem()); tgt.setCode(src.getCode()); return tgt; }
protected Money typedCopy() { return copy(); }
public Money copy() { Money dst = new Money(); copyValues(dst); dst.value = value == null ? null : value.copy(); dst.comparator = comparator == null ? null : comparator.copy(); dst.unit = unit == null ? null : unit.copy(); dst.system = system == null ? null : system.copy(); dst.code = code == null ? null : code.copy(); return dst; }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof Money)) return false; Money o = (Money) other; return compareValues(value, o.value, true) && compareValues(comparator, o.comparator, true) && compareValues(unit, o.unit, true) && compareValues(system, o.system, true) && compareValues(code, o.code, true); }
public org.hl7.fhir.dstu3.model.Money convertMoney(org.hl7.fhir.instance.model.Money src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Money tgt = new org.hl7.fhir.dstu3.model.Money(); copyElement(src, tgt); tgt.setValue(src.getValue()); tgt.setComparator(convertQuantityComparator(src.getComparator())); tgt.setUnit(src.getUnit()); tgt.setSystem(src.getSystem()); tgt.setCode(src.getCode()); return tgt; }
public org.hl7.fhir.r4.model.Money convertMoney(org.hl7.fhir.instance.model.Money src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Money tgt = new org.hl7.fhir.r4.model.Money(); copyElement(src, tgt); tgt.setValue(src.getValue()); tgt.setCurrency(src.getCode()); return tgt; }
public AddedItemsDetailComponent copy() { AddedItemsDetailComponent dst = new AddedItemsDetailComponent(); copyValues(dst); dst.service = service == null ? null : service.copy(); dst.fee = fee == null ? null : fee.copy(); if (adjudication != null) { dst.adjudication = new ArrayList<AddedItemDetailAdjudicationComponent>(); for (AddedItemDetailAdjudicationComponent i : adjudication) dst.adjudication.add(i.copy()); }; return dst; }
public Money copy() { Money dst = new Money(); copyValues(dst); dst.value = value == null ? null : value.copy(); dst.comparator = comparator == null ? null : comparator.copy(); dst.unit = unit == null ? null : unit.copy(); dst.system = system == null ? null : system.copy(); dst.code = code == null ? null : code.copy(); return dst; }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof Money)) return false; Money o = (Money) other; return compareValues(value, o.value, true) && compareValues(comparator, o.comparator, true) && compareValues(unit, o.unit, true) && compareValues(system, o.system, true) && compareValues(code, o.code, true); }
public boolean hasNet() { return this.net != null && !this.net.isEmpty(); }
/** * @return {@link #amount} (Monetary amount associated with the code.) */ public Money getAmount() { if (this.amount == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SubdetailAdjudicationComponent.amount"); else if (Configuration.doAutoCreate()) this.amount = new Money(); // cc return this.amount; }
public AddedItemComponent copy() { AddedItemComponent dst = new AddedItemComponent(); copyValues(dst); if (sequenceLinkId != null) { dst.sequenceLinkId = new ArrayList<PositiveIntType>(); for (PositiveIntType i : sequenceLinkId) dst.sequenceLinkId.add(i.copy()); }; dst.service = service == null ? null : service.copy(); dst.fee = fee == null ? null : fee.copy(); if (noteNumberLinkId != null) { dst.noteNumberLinkId = new ArrayList<PositiveIntType>(); for (PositiveIntType i : noteNumberLinkId) dst.noteNumberLinkId.add(i.copy()); }; if (adjudication != null) { dst.adjudication = new ArrayList<AddedItemAdjudicationComponent>(); for (AddedItemAdjudicationComponent i : adjudication) dst.adjudication.add(i.copy()); }; if (detail != null) { dst.detail = new ArrayList<AddedItemsDetailComponent>(); for (AddedItemsDetailComponent i : detail) dst.detail.add(i.copy()); }; return dst; }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof Money)) return false; Money o = (Money) other; return compareDeep(value, o.value, true) && compareDeep(comparator, o.comparator, true) && compareDeep(unit, o.unit, true) && compareDeep(system, o.system, true) && compareDeep(code, o.code, true); }
public boolean hasNet() { return this.net != null && !this.net.isEmpty(); }