Beispiel #1
0
 /**
  * @param value {@link #profile} (A list of profiles (references to [[[StructureDefinition]]]
  *     resources) that this resource claims to conform to. The URL is a reference to
  *     [[[StructureDefinition.url]]].)
  */
 public boolean hasProfile(String value) {
   if (this.profile == null) return false;
   for (UriType v : this.profile)
     if (v.equals(value)) // uri
     return true;
   return false;
 }
Beispiel #2
0
 /**
  * @param value {@link #profile} (A list of profiles (references to [[[StructureDefinition]]]
  *     resources) that this resource claims to conform to. The URL is a reference to
  *     [[[StructureDefinition.url]]].)
  */
 public Meta addProfile(String value) { // 1
   UriType t = new UriType();
   t.setValue(value);
   if (this.profile == null) this.profile = new ArrayList<UriType>();
   this.profile.add(t);
   return this;
 }
Beispiel #3
0
 public boolean isEmpty() {
   return super.isEmpty()
       && (value == null || value.isEmpty())
       && (comparator == null || comparator.isEmpty())
       && (units == null || units.isEmpty())
       && (system == null || system.isEmpty())
       && (code == null || code.isEmpty());
 }
Beispiel #4
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;
 }
Beispiel #5
0
 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;
 }
Beispiel #6
0
 public boolean hasProfile() {
   if (this.profile == null) return false;
   for (UriType item : this.profile) if (!item.isEmpty()) return true;
   return false;
 }