Exemplo n.º 1
0
 public Ratio copy() {
   Ratio dst = new Ratio();
   copyValues(dst);
   dst.numerator = numerator == null ? null : numerator.copy();
   dst.denominator = denominator == null ? null : denominator.copy();
   return dst;
 }
Exemplo n.º 2
0
 public SpecimenContainerComponent copy(Specimen e) {
   SpecimenContainerComponent dst = e.new SpecimenContainerComponent();
   dst.identifier = new ArrayList<Identifier>();
   for (Identifier i : identifier) dst.identifier.add(i.copy());
   dst.description = description == null ? null : description.copy();
   dst.type = type == null ? null : type.copy();
   dst.capacity = capacity == null ? null : capacity.copy();
   dst.specimenQuantity = specimenQuantity == null ? null : specimenQuantity.copy();
   dst.additive = additive == null ? null : additive.copy();
   return dst;
 }
Exemplo n.º 3
0
 public SpecimenCollectionComponent copy(Specimen e) {
   SpecimenCollectionComponent dst = e.new SpecimenCollectionComponent();
   dst.collector = collector == null ? null : collector.copy();
   dst.comments = new ArrayList<String_>();
   for (String_ i : comments) dst.comments.add(i.copy());
   dst.collectedTime = collectedTime == null ? null : collectedTime.copy();
   dst.quantity = quantity == null ? null : quantity.copy();
   return dst;
 }
Exemplo n.º 4
0
 public SpecimenCollectionComponent copy(Specimen e) {
   SpecimenCollectionComponent dst = e.new SpecimenCollectionComponent();
   dst.collector = collector == null ? null : collector.copy();
   dst.comment = new ArrayList<String_>();
   for (String_ i : comment) dst.comment.add(i.copy());
   dst.collectedTime = collectedTime == null ? null : collectedTime.copy();
   dst.quantity = quantity == null ? null : quantity.copy();
   dst.method = method == null ? null : method.copy();
   dst.sourceSite = sourceSite == null ? null : sourceSite.copy();
   return dst;
 }
 public MedicationAdministrationDosageComponent copy(MedicationAdministration e) {
   MedicationAdministrationDosageComponent dst = new MedicationAdministrationDosageComponent();
   dst.timing = timing == null ? null : timing.copy();
   dst.asNeeded = asNeeded == null ? null : asNeeded.copy();
   dst.site = site == null ? null : site.copy();
   dst.route = route == null ? null : route.copy();
   dst.method = method == null ? null : method.copy();
   dst.quantity = quantity == null ? null : quantity.copy();
   dst.rate = rate == null ? null : rate.copy();
   dst.maxDosePerPeriod = maxDosePerPeriod == null ? null : maxDosePerPeriod.copy();
   return dst;
 }
Exemplo n.º 6
0
 public SupplyDispenseComponent copy(Supply e) {
   SupplyDispenseComponent dst = e.new SupplyDispenseComponent();
   dst.identifier = identifier == null ? null : identifier.copy();
   dst.status = status == null ? null : status.copy();
   dst.type = type == null ? null : type.copy();
   dst.quantity = quantity == null ? null : quantity.copy();
   dst.suppliedItem = suppliedItem == null ? null : suppliedItem.copy();
   dst.supplier = supplier == null ? null : supplier.copy();
   dst.whenPrepared = whenPrepared == null ? null : whenPrepared.copy();
   dst.whenHandedOver = whenHandedOver == null ? null : whenHandedOver.copy();
   dst.destination = destination == null ? null : destination.copy();
   dst.receiver = new ArrayList<ResourceReference>();
   for (ResourceReference i : receiver) dst.receiver.add(i.copy());
   return dst;
 }
Exemplo n.º 7
0
 public Quantity copy() {
   Quantity dst = new Quantity();
   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;
 }
Exemplo n.º 8
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (numerator == null || numerator.isEmpty())
       && (denominator == null || denominator.isEmpty());
 }