Example #1
0
 public Coverage copy() {
   Coverage dst = new Coverage();
   copyValues(dst);
   dst.issuer = issuer == null ? null : issuer.copy();
   dst.bin = bin == null ? null : bin.copy();
   dst.period = period == null ? null : period.copy();
   dst.type = type == null ? null : type.copy();
   dst.subscriberId = subscriberId == null ? null : subscriberId.copy();
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.group = group == null ? null : group.copy();
   dst.plan = plan == null ? null : plan.copy();
   dst.subPlan = subPlan == null ? null : subPlan.copy();
   dst.dependent = dependent == null ? null : dependent.copy();
   dst.sequence = sequence == null ? null : sequence.copy();
   dst.subscriber = subscriber == null ? null : subscriber.copy();
   dst.network = network == null ? null : network.copy();
   if (contract != null) {
     dst.contract = new ArrayList<Reference>();
     for (Reference i : contract) dst.contract.add(i.copy());
   }
   ;
   return dst;
 }
Example #2
0
 public DocumentReference copy() {
   DocumentReference dst = new DocumentReference();
   dst.masterIdentifier = masterIdentifier == null ? null : masterIdentifier.copy();
   dst.identifier = new ArrayList<Identifier>();
   for (Identifier i : identifier) dst.identifier.add(i.copy());
   dst.subject = subject == null ? null : subject.copy();
   dst.type = type == null ? null : type.copy();
   dst.subtype = subtype == null ? null : subtype.copy();
   dst.author = new ArrayList<ResourceReference>();
   for (ResourceReference i : author) dst.author.add(i.copy());
   dst.custodian = custodian == null ? null : custodian.copy();
   dst.authenticator = authenticator == null ? null : authenticator.copy();
   dst.created = created == null ? null : created.copy();
   dst.indexed = indexed == null ? null : indexed.copy();
   dst.status = status == null ? null : status.copy();
   dst.docStatus = docStatus == null ? null : docStatus.copy();
   dst.supercedes = supercedes == null ? null : supercedes.copy();
   dst.description = description == null ? null : description.copy();
   dst.confidentiality = confidentiality == null ? null : confidentiality.copy();
   dst.primaryLanguage = primaryLanguage == null ? null : primaryLanguage.copy();
   dst.mimeType = mimeType == null ? null : mimeType.copy();
   dst.format = format == null ? null : format.copy();
   dst.size = size == null ? null : size.copy();
   dst.hash = hash == null ? null : hash.copy();
   dst.location = location == null ? null : location.copy();
   dst.service = service == null ? null : service.copy(dst);
   dst.context = context == null ? null : context.copy(dst);
   return dst;
 }
 public DiagnosticReportRequestDetailComponent copy(DiagnosticReport e) {
   DiagnosticReportRequestDetailComponent dst = new DiagnosticReportRequestDetailComponent();
   dst.encounter = encounter == null ? null : encounter.copy();
   dst.requestOrderId = requestOrderId == null ? null : requestOrderId.copy();
   dst.receiverOrderId = receiverOrderId == null ? null : receiverOrderId.copy();
   dst.requestTest = new ArrayList<CodeableConcept>();
   for (CodeableConcept i : requestTest) dst.requestTest.add(i.copy());
   dst.bodySite = bodySite == null ? null : bodySite.copy();
   dst.requester = requester == null ? null : requester.copy();
   dst.clinicalInfo = clinicalInfo == null ? null : clinicalInfo.copy();
   return dst;
 }
Example #4
0
 public Specimen copy() {
   Specimen dst = new Specimen();
   dst.identifier = identifier == null ? null : identifier.copy();
   dst.type = type == null ? null : type.copy();
   dst.source = new ArrayList<SpecimenSourceComponent>();
   for (SpecimenSourceComponent i : source) dst.source.add(i.copy(dst));
   dst.subject = subject == null ? null : subject.copy();
   dst.accessionIdentifier = new ArrayList<Identifier>();
   for (Identifier i : accessionIdentifier) dst.accessionIdentifier.add(i.copy());
   dst.collection = collection == null ? null : collection.copy(dst);
   return dst;
 }
 public ProcessResponse copy() {
   ProcessResponse dst = new ProcessResponse();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.request = request == null ? null : request.copy();
   dst.outcome = outcome == null ? null : outcome.copy();
   dst.disposition = disposition == null ? null : disposition.copy();
   dst.ruleset = ruleset == null ? null : ruleset.copy();
   dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
   dst.created = created == null ? null : created.copy();
   dst.organization = organization == null ? null : organization.copy();
   dst.requestProvider = requestProvider == null ? null : requestProvider.copy();
   dst.requestOrganization = requestOrganization == null ? null : requestOrganization.copy();
   dst.form = form == null ? null : form.copy();
   if (notes != null) {
     dst.notes = new ArrayList<ProcessResponseNotesComponent>();
     for (ProcessResponseNotesComponent i : notes) dst.notes.add(i.copy());
   }
   ;
   if (error != null) {
     dst.error = new ArrayList<Coding>();
     for (Coding i : error) dst.error.add(i.copy());
   }
   ;
   return dst;
 }
Example #6
0
 public Group copy() {
   Group dst = new Group();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.type = type == null ? null : type.copy();
   dst.actual = actual == null ? null : actual.copy();
   dst.code = code == null ? null : code.copy();
   dst.name = name == null ? null : name.copy();
   dst.quantity = quantity == null ? null : quantity.copy();
   if (characteristic != null) {
     dst.characteristic = new ArrayList<GroupCharacteristicComponent>();
     for (GroupCharacteristicComponent i : characteristic) dst.characteristic.add(i.copy());
   }
   ;
   if (member != null) {
     dst.member = new ArrayList<GroupMemberComponent>();
     for (GroupMemberComponent i : member) dst.member.add(i.copy());
   }
   ;
   return dst;
 }
Example #7
0
 public Supply copy() {
   Supply dst = new Supply();
   dst.name = name == null ? null : name.copy();
   dst.identifier = identifier == null ? null : identifier.copy();
   dst.status = status == null ? null : status.copy();
   dst.orderedItem = orderedItem == null ? null : orderedItem.copy();
   dst.patient = patient == null ? null : patient.copy();
   dst.dispense = new ArrayList<SupplyDispenseComponent>();
   for (SupplyDispenseComponent i : dispense) dst.dispense.add(i.copy(dst));
   return dst;
 }
Example #8
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;
 }
Example #9
0
 public SecurityEventObjectComponent copy(SecurityEvent e) {
   SecurityEventObjectComponent dst = e.new SecurityEventObjectComponent();
   dst.identifier = identifier == null ? null : identifier.copy();
   dst.reference = reference == null ? null : reference.copy();
   dst.type = type == null ? null : type.copy();
   dst.role = role == null ? null : role.copy();
   dst.lifecycle = lifecycle == null ? null : lifecycle.copy();
   dst.sensitivity = sensitivity == null ? null : sensitivity.copy();
   dst.name = name == null ? null : name.copy();
   dst.query = query == null ? null : query.copy();
   dst.detail = new ArrayList<SecurityEventObjectDetailComponent>();
   for (SecurityEventObjectDetailComponent i : detail) dst.detail.add(i.copy(e));
   return dst;
 }
 public RelatedPerson copy() {
   RelatedPerson dst = new RelatedPerson();
   dst.identifier = new ArrayList<Identifier>();
   for (Identifier i : identifier) dst.identifier.add(i.copy());
   dst.patient = patient == null ? null : patient.copy();
   dst.relationship = relationship == null ? null : relationship.copy();
   dst.name = name == null ? null : name.copy();
   dst.telecom = new ArrayList<Contact>();
   for (Contact i : telecom) dst.telecom.add(i.copy());
   dst.gender = gender == null ? null : gender.copy();
   dst.address = address == null ? null : address.copy();
   dst.photo = new ArrayList<Attachment>();
   for (Attachment i : photo) dst.photo.add(i.copy());
   return dst;
 }
Example #11
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;
 }
Example #12
0
 public DiagnosticOrder copy() {
   DiagnosticOrder dst = new DiagnosticOrder();
   dst.subject = subject == null ? null : subject.copy();
   dst.orderer = orderer == null ? null : orderer.copy();
   dst.identifier = new ArrayList<Identifier>();
   for (Identifier i : identifier) dst.identifier.add(i.copy());
   dst.encounter = encounter == null ? null : encounter.copy();
   dst.clinicalNotes = clinicalNotes == null ? null : clinicalNotes.copy();
   dst.specimen = new ArrayList<ResourceReference>();
   for (ResourceReference i : specimen) dst.specimen.add(i.copy());
   dst.status = status == null ? null : status.copy();
   dst.event = new ArrayList<DiagnosticOrderEventComponent>();
   for (DiagnosticOrderEventComponent i : event) dst.event.add(i.copy(dst));
   dst.item = new ArrayList<DiagnosticOrderItemComponent>();
   for (DiagnosticOrderItemComponent i : item) dst.item.add(i.copy(dst));
   return dst;
 }
Example #13
0
 public Device copy() {
   Device dst = new Device();
   dst.type = type == null ? null : type.copy();
   dst.manufacturer = manufacturer == null ? null : manufacturer.copy();
   dst.model = model == null ? null : model.copy();
   dst.version = version == null ? null : version.copy();
   dst.expiry = expiry == null ? null : expiry.copy();
   dst.identity = identity == null ? null : identity.copy(dst);
   dst.owner = owner == null ? null : owner.copy();
   dst.assignedId = new ArrayList<Identifier>();
   for (Identifier i : assignedId) dst.assignedId.add(i.copy());
   dst.location = location == null ? null : location.copy();
   dst.patient = patient == null ? null : patient.copy();
   dst.contact = new ArrayList<Contact>();
   for (Contact i : contact) dst.contact.add(i.copy());
   dst.url = url == null ? null : url.copy();
   return dst;
 }
 public EnrollmentRequest copy() {
   EnrollmentRequest dst = new EnrollmentRequest();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.ruleset = ruleset == null ? null : ruleset.copy();
   dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
   dst.created = created == null ? null : created.copy();
   dst.target = target == null ? null : target.copy();
   dst.provider = provider == null ? null : provider.copy();
   dst.organization = organization == null ? null : organization.copy();
   dst.subject = subject == null ? null : subject.copy();
   dst.coverage = coverage == null ? null : coverage.copy();
   dst.relationship = relationship == null ? null : relationship.copy();
   return dst;
 }
Example #15
0
 public Goal copy() {
   Goal dst = new Goal();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.patient = patient == null ? null : patient.copy();
   dst.description = description == null ? null : description.copy();
   dst.status = status == null ? null : status.copy();
   dst.notes = notes == null ? null : notes.copy();
   if (concern != null) {
     dst.concern = new ArrayList<Reference>();
     for (Reference i : concern) dst.concern.add(i.copy());
   }
   ;
   return dst;
 }
 public EnrollmentResponse copy() {
   EnrollmentResponse dst = new EnrollmentResponse();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.request = request == null ? null : request.copy();
   dst.outcome = outcome == null ? null : outcome.copy();
   dst.disposition = disposition == null ? null : disposition.copy();
   dst.ruleset = ruleset == null ? null : ruleset.copy();
   dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
   dst.created = created == null ? null : created.copy();
   dst.organization = organization == null ? null : organization.copy();
   dst.requestProvider = requestProvider == null ? null : requestProvider.copy();
   dst.requestOrganization = requestOrganization == null ? null : requestOrganization.copy();
   return dst;
 }
 public MedicationAdministration copy() {
   MedicationAdministration dst = new MedicationAdministration();
   dst.identifier = new ArrayList<Identifier>();
   for (Identifier i : identifier) dst.identifier.add(i.copy());
   dst.status = status == null ? null : status.copy();
   dst.patient = patient == null ? null : patient.copy();
   dst.practitioner = practitioner == null ? null : practitioner.copy();
   dst.encounter = encounter == null ? null : encounter.copy();
   dst.prescription = prescription == null ? null : prescription.copy();
   dst.wasNotGiven = wasNotGiven == null ? null : wasNotGiven.copy();
   dst.reasonNotGiven = new ArrayList<CodeableConcept>();
   for (CodeableConcept i : reasonNotGiven) dst.reasonNotGiven.add(i.copy());
   dst.whenGiven = whenGiven == null ? null : whenGiven.copy();
   dst.medication = medication == null ? null : medication.copy();
   dst.device = new ArrayList<ResourceReference>();
   for (ResourceReference i : device) dst.device.add(i.copy());
   dst.dosage = new ArrayList<MedicationAdministrationDosageComponent>();
   for (MedicationAdministrationDosageComponent i : dosage) dst.dosage.add(i.copy(dst));
   return dst;
 }
 public Account copy() {
   Account dst = new Account();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.name = name == null ? null : name.copy();
   dst.type = type == null ? null : type.copy();
   dst.status = status == null ? null : status.copy();
   dst.activePeriod = activePeriod == null ? null : activePeriod.copy();
   dst.currency = currency == null ? null : currency.copy();
   dst.balance = balance == null ? null : balance.copy();
   dst.coveragePeriod = coveragePeriod == null ? null : coveragePeriod.copy();
   dst.subject = subject == null ? null : subject.copy();
   dst.owner = owner == null ? null : owner.copy();
   dst.description = description == null ? null : description.copy();
   return dst;
 }
Example #19
0
 public PaymentNotice copy() {
   PaymentNotice dst = new PaymentNotice();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.ruleset = ruleset == null ? null : ruleset.copy();
   dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
   dst.created = created == null ? null : created.copy();
   dst.target = target == null ? null : target.copy();
   dst.provider = provider == null ? null : provider.copy();
   dst.organization = organization == null ? null : organization.copy();
   dst.request = request == null ? null : request.copy();
   dst.response = response == null ? null : response.copy();
   dst.paymentStatus = paymentStatus == null ? null : paymentStatus.copy();
   dst.statusDate = statusDate == null ? null : statusDate.copy();
   return dst;
 }
Example #20
0
 public Media copy() {
   Media dst = new Media();
   copyValues(dst);
   dst.type = type == null ? null : type.copy();
   dst.subtype = subtype == null ? null : subtype.copy();
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.subject = subject == null ? null : subject.copy();
   dst.operator = operator == null ? null : operator.copy();
   dst.view = view == null ? null : view.copy();
   dst.deviceName = deviceName == null ? null : deviceName.copy();
   dst.height = height == null ? null : height.copy();
   dst.width = width == null ? null : width.copy();
   dst.frames = frames == null ? null : frames.copy();
   dst.duration = duration == null ? null : duration.copy();
   dst.content = content == null ? null : content.copy();
   return dst;
 }
 public DiagnosticReport copy() {
   DiagnosticReport dst = new DiagnosticReport();
   dst.status = status == null ? null : status.copy();
   dst.issued = issued == null ? null : issued.copy();
   dst.subject = subject == null ? null : subject.copy();
   dst.performer = performer == null ? null : performer.copy();
   dst.reportId = reportId == null ? null : reportId.copy();
   dst.requestDetail = new ArrayList<DiagnosticReportRequestDetailComponent>();
   for (DiagnosticReportRequestDetailComponent i : requestDetail)
     dst.requestDetail.add(i.copy(dst));
   dst.serviceCategory = serviceCategory == null ? null : serviceCategory.copy();
   dst.diagnostic = diagnostic == null ? null : diagnostic.copy();
   dst.results = results == null ? null : results.copy(dst);
   dst.image = new ArrayList<ResourceReference>();
   for (ResourceReference i : image) dst.image.add(i.copy());
   dst.conclusion = conclusion == null ? null : conclusion.copy();
   dst.codedDiagnosis = new ArrayList<CodeableConcept>();
   for (CodeableConcept i : codedDiagnosis) dst.codedDiagnosis.add(i.copy());
   dst.representation = new ArrayList<Attachment>();
   for (Attachment i : representation) dst.representation.add(i.copy());
   return dst;
 }
Example #22
0
 public ProcessRequest copy() {
   ProcessRequest dst = new ProcessRequest();
   copyValues(dst);
   dst.action = action == null ? null : action.copy();
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.ruleset = ruleset == null ? null : ruleset.copy();
   dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
   dst.created = created == null ? null : created.copy();
   dst.target = target == null ? null : target.copy();
   dst.provider = provider == null ? null : provider.copy();
   dst.organization = organization == null ? null : organization.copy();
   dst.request = request == null ? null : request.copy();
   dst.response = response == null ? null : response.copy();
   dst.nullify = nullify == null ? null : nullify.copy();
   dst.reference = reference == null ? null : reference.copy();
   if (item != null) {
     dst.item = new ArrayList<ItemsComponent>();
     for (ItemsComponent i : item) dst.item.add(i.copy());
   }
   ;
   if (include != null) {
     dst.include = new ArrayList<StringType>();
     for (StringType i : include) dst.include.add(i.copy());
   }
   ;
   if (exclude != null) {
     dst.exclude = new ArrayList<StringType>();
     for (StringType i : exclude) dst.exclude.add(i.copy());
   }
   ;
   dst.period = period == null ? null : period.copy();
   return dst;
 }
 public FamilyMemberHistory copy() {
   FamilyMemberHistory dst = new FamilyMemberHistory();
   copyValues(dst);
   if (identifier != null) {
     dst.identifier = new ArrayList<Identifier>();
     for (Identifier i : identifier) dst.identifier.add(i.copy());
   }
   ;
   dst.patient = patient == null ? null : patient.copy();
   dst.date = date == null ? null : date.copy();
   dst.name = name == null ? null : name.copy();
   dst.relationship = relationship == null ? null : relationship.copy();
   dst.gender = gender == null ? null : gender.copy();
   dst.born = born == null ? null : born.copy();
   dst.age = age == null ? null : age.copy();
   dst.deceased = deceased == null ? null : deceased.copy();
   dst.note = note == null ? null : note.copy();
   if (condition != null) {
     dst.condition = new ArrayList<FamilyMemberHistoryConditionComponent>();
     for (FamilyMemberHistoryConditionComponent i : condition) dst.condition.add(i.copy());
   }
   ;
   return dst;
 }