public MedicationDispenseSubstitutionComponent copy() { MedicationDispenseSubstitutionComponent dst = new MedicationDispenseSubstitutionComponent(); copyValues(dst); dst.wasSubstituted = wasSubstituted == null ? null : wasSubstituted.copy(); dst.type = type == null ? null : type.copy(); if (reason != null) { dst.reason = new ArrayList<CodeableConcept>(); for (CodeableConcept i : reason) dst.reason.add(i.copy()); }; if (responsibleParty != null) { dst.responsibleParty = new ArrayList<Reference>(); for (Reference i : responsibleParty) dst.responsibleParty.add(i.copy()); }; return dst; }
this.substitution = new MedicationDispenseSubstitutionComponent(); return this.substitution;
/** * @return {@link #substitution} (Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but does not happen, in other cases substitution is not expected but does happen. This block explains what substitution did or did not happen and why. If nothing is specified, substitution was not done.) */ public MedicationDispenseSubstitutionComponent getSubstitution() { if (this.substitution == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationDispense.substitution"); else if (Configuration.doAutoCreate()) this.substitution = new MedicationDispenseSubstitutionComponent(); // cc return this.substitution; }
public org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent convertMedicationDispenseSubstitutionComponent(org.hl7.fhir.instance.model.MedicationDispense.MedicationDispenseSubstitutionComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); copyElement(src, tgt); tgt.setType(convertCodeableConcept(src.getType())); for (org.hl7.fhir.instance.model.CodeableConcept t : src.getReason()) tgt.addReason(convertCodeableConcept(t)); for (org.hl7.fhir.instance.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(convertReference(t)); return tgt; }
public org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent convertMedicationDispenseSubstitutionComponent(org.hl7.fhir.instance.model.MedicationDispense.MedicationDispenseSubstitutionComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent tgt = new org.hl7.fhir.dstu3.model.MedicationDispense.MedicationDispenseSubstitutionComponent(); copyElement(src, tgt); tgt.setType(convertCodeableConcept(src.getType())); for (org.hl7.fhir.instance.model.CodeableConcept t : src.getReason()) tgt.addReason(convertCodeableConcept(t)); for (org.hl7.fhir.instance.model.Reference t : src.getResponsibleParty()) tgt.addResponsibleParty(convertReference(t)); return tgt; }