Example #1
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 boolean isEmpty() {
   return super.isEmpty()
       && (type == null || type.isEmpty())
       && (outcome == null || outcome.isEmpty())
       && (onset == null || onset.isEmpty())
       && (note == null || note.isEmpty());
 }
 public CodeableConcept copy() {
   CodeableConcept dst = new CodeableConcept();
   dst.coding = new ArrayList<Coding>();
   for (Coding i : coding) dst.coding.add(i.copy());
   dst.text = text == null ? null : text.copy();
   dst.primary = primary == null ? null : primary.copy();
   return dst;
 }
Example #4
0
 public DocumentReferenceContextComponent copy(DocumentReference e) {
   DocumentReferenceContextComponent dst = e.new DocumentReferenceContextComponent();
   dst.code = new ArrayList<CodeableConcept>();
   for (CodeableConcept i : code) dst.code.add(i.copy());
   dst.period = period == null ? null : period.copy();
   dst.facilityType = facilityType == null ? null : facilityType.copy();
   return dst;
 }
 public FamilyMemberHistoryConditionComponent copy() {
   FamilyMemberHistoryConditionComponent dst = new FamilyMemberHistoryConditionComponent();
   copyValues(dst);
   dst.type = type == null ? null : type.copy();
   dst.outcome = outcome == null ? null : outcome.copy();
   dst.onset = onset == null ? null : onset.copy();
   dst.note = note == null ? null : note.copy();
   return dst;
 }
Example #6
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;
 }
Example #7
0
 public SecurityEventEventComponent copy(SecurityEvent e) {
   SecurityEventEventComponent dst = e.new SecurityEventEventComponent();
   dst.type = type == null ? null : type.copy();
   dst.subtype = new ArrayList<CodeableConcept>();
   for (CodeableConcept i : subtype) dst.subtype.add(i.copy());
   dst.action = action == null ? null : action.copy();
   dst.dateTime = dateTime == null ? null : dateTime.copy();
   dst.outcome = outcome == null ? null : outcome.copy();
   dst.outcomeDesc = outcomeDesc == null ? null : outcomeDesc.copy();
   return dst;
 }
Example #8
0
 public DiagnosticOrderItemComponent copy(DiagnosticOrder e) {
   DiagnosticOrderItemComponent dst = e.new DiagnosticOrderItemComponent();
   dst.code = code == null ? null : code.copy();
   dst.specimen = new ArrayList<ResourceReference>();
   for (ResourceReference i : specimen) dst.specimen.add(i.copy());
   dst.bodySite = bodySite == null ? null : bodySite.copy();
   dst.status = status == null ? null : status.copy();
   dst.event = new ArrayList<DiagnosticOrderEventComponent>();
   for (DiagnosticOrderEventComponent i : event) dst.event.add(i.copy(e));
   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;
 }
 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;
 }
Example #11
0
 public SecurityEventParticipantComponent copy(SecurityEvent e) {
   SecurityEventParticipantComponent dst = e.new SecurityEventParticipantComponent();
   dst.role = new ArrayList<CodeableConcept>();
   for (CodeableConcept i : role) dst.role.add(i.copy());
   dst.reference = reference == null ? null : reference.copy();
   dst.userId = userId == null ? null : userId.copy();
   dst.authId = authId == null ? null : authId.copy();
   dst.name = name == null ? null : name.copy();
   dst.requestor = requestor == null ? null : requestor.copy();
   dst.media = media == null ? null : media.copy();
   dst.network = network == null ? null : network.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 #13
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (type == null || type.isEmpty())
       && (subtype == null || subtype.isEmpty())
       && (identifier == null || identifier.isEmpty())
       && (subject == null || subject.isEmpty())
       && (operator == null || operator.isEmpty())
       && (view == null || view.isEmpty())
       && (deviceName == null || deviceName.isEmpty())
       && (height == null || height.isEmpty())
       && (width == null || width.isEmpty())
       && (frames == null || frames.isEmpty())
       && (duration == null || duration.isEmpty())
       && (content == null || content.isEmpty());
 }
 public boolean isEmpty() {
   return super.isEmpty()
       && (severity == null || severity.isEmpty())
       && (code == null || code.isEmpty())
       && (details == null || details.isEmpty())
       && (location == null || location.isEmpty());
 }
Example #15
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (code == null || code.isEmpty())
       && (value == null || value.isEmpty())
       && (exclude == null || exclude.isEmpty())
       && (period == null || period.isEmpty());
 }
Example #16
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 #17
0
 public SpecimenTreatmentComponent copy(Specimen e) {
   SpecimenTreatmentComponent dst = e.new SpecimenTreatmentComponent();
   dst.description = description == null ? null : description.copy();
   dst.procedure = procedure == null ? null : procedure.copy();
   dst.additive = new ArrayList<ResourceReference>();
   for (ResourceReference i : additive) dst.additive.add(i.copy());
   return dst;
 }
Example #18
0
 public DocumentReferenceServiceComponent copy(DocumentReference e) {
   DocumentReferenceServiceComponent dst = e.new DocumentReferenceServiceComponent();
   dst.type = type == null ? null : type.copy();
   dst.address = address == null ? null : address.copy();
   dst.parameter = new ArrayList<DocumentReferenceServiceParameterComponent>();
   for (DocumentReferenceServiceParameterComponent i : parameter) dst.parameter.add(i.copy(e));
   return dst;
 }
Example #19
0
 public GroupCharacteristicComponent copy() {
   GroupCharacteristicComponent dst = new GroupCharacteristicComponent();
   copyValues(dst);
   dst.code = code == null ? null : code.copy();
   dst.value = value == null ? null : value.copy();
   dst.exclude = exclude == null ? null : exclude.copy();
   dst.period = period == null ? null : period.copy();
   return dst;
 }
 public ResultGroupComponent copy(DiagnosticReport e) {
   ResultGroupComponent dst = new ResultGroupComponent();
   dst.name = name == null ? null : name.copy();
   dst.specimen = specimen == null ? null : specimen.copy();
   dst.group = new ArrayList<ResultGroupComponent>();
   for (ResultGroupComponent i : group) dst.group.add(i.copy(e));
   dst.result = new ArrayList<ResourceReference>();
   for (ResourceReference i : result) dst.result.add(i.copy());
   return dst;
 }
Example #21
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 #22
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (identifier == null || identifier.isEmpty())
       && (type == null || type.isEmpty())
       && (actual == null || actual.isEmpty())
       && (code == null || code.isEmpty())
       && (name == null || name.isEmpty())
       && (quantity == null || quantity.isEmpty())
       && (characteristic == null || characteristic.isEmpty())
       && (member == null || member.isEmpty());
 }
 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;
 }
Example #24
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 #25
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;
 }
Example #26
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 OperationOutcomeIssueComponent copy() {
   OperationOutcomeIssueComponent dst = new OperationOutcomeIssueComponent();
   copyValues(dst);
   dst.severity = severity == null ? null : severity.copy();
   dst.code = code == null ? null : code.copy();
   dst.details = details == null ? null : details.copy();
   if (location != null) {
     dst.location = new ArrayList<StringType>();
     for (StringType i : location) dst.location.add(i.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;
 }
 public boolean isEmpty() {
   return super.isEmpty()
       && (identifier == null || identifier.isEmpty())
       && (patient == null || patient.isEmpty())
       && (date == null || date.isEmpty())
       && (name == null || name.isEmpty())
       && (relationship == null || relationship.isEmpty())
       && (gender == null || gender.isEmpty())
       && (born == null || born.isEmpty())
       && (age == null || age.isEmpty())
       && (deceased == null || deceased.isEmpty())
       && (note == null || note.isEmpty())
       && (condition == null || condition.isEmpty());
 }
Example #30
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;
 }