/** * Returns the first security label (if any) that has the given system and code, or returns <code> * null</code> if none */ public Coding getSecurity(String theSystem, String theCode) { for (Coding next : getTag()) { if (ca.uhn.fhir.util.ObjectUtil.equals(next.getSystem(), theSystem) && ca.uhn.fhir.util.ObjectUtil.equals(next.getCode(), theCode)) { return next; } } return null; }
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; }
public Meta copy() { Meta dst = new Meta(); copyValues(dst); dst.versionId = versionId == null ? null : versionId.copy(); dst.lastUpdated = lastUpdated == null ? null : lastUpdated.copy(); if (profile != null) { dst.profile = new ArrayList<UriType>(); for (UriType i : profile) dst.profile.add(i.copy()); } ; if (security != null) { dst.security = new ArrayList<Coding>(); for (Coding i : security) dst.security.add(i.copy()); } ; if (tag != null) { dst.tag = new ArrayList<Coding>(); for (Coding i : tag) dst.tag.add(i.copy()); } ; return dst; }
public boolean hasTag() { if (this.tag == null) return false; for (Coding item : this.tag) if (!item.isEmpty()) return true; return false; }
public boolean hasSecurity() { if (this.security == null) return false; for (Coding item : this.security) if (!item.isEmpty()) return true; return false; }