public boolean hasExtension() { if (this.extension == null) return false; for (Extension item : this.extension) if (!item.isEmpty()) return true; return false; }
public boolean hasModifierExtension() { if (this.modifierExtension == null) return false; for (Extension item : this.modifierExtension) if (!item.isEmpty()) return true; return false; }
public boolean hasExtension() { if (this.extension == null) return false; for (Extension item : this.extension) if (!item.isEmpty()) return true; return false; }
public boolean hasModifierExtension() { if (this.modifierExtension == null) return false; for (Extension item : this.modifierExtension) if (!item.isEmpty()) return true; return false; }
public boolean hasModifierExtension() { if (this.modifierExtension == null) return false; for (Extension item : this.modifierExtension) if (!item.isEmpty()) return true; return false; }
public boolean hasModifierExtension() { if (this.modifierExtension == null) return false; for (Extension item : this.modifierExtension) if (!item.isEmpty()) return true; return false; }
public static org.hl7.fhir.dstu2016may.model.Extension convertExtension(org.hl7.fhir.r4.model.Extension src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Extension tgt = new org.hl7.fhir.dstu2016may.model.Extension(); copyElement(src, tgt); tgt.setUrl(src.getUrl()); if (src.hasValue()) if (CANONICAL_URLS.contains(src.getUrl()) && src.getValue() instanceof org.hl7.fhir.r4.model.CanonicalType) tgt.setValue(convertCanonicalToReference((CanonicalType)src.getValue())); else tgt.setValue(convertType(src.getValue())); return tgt; }
public boolean hasModifierExtension() { if (this.modifierExtension == null) return false; for (Extension item : this.modifierExtension) if (!item.isEmpty()) return true; return false; }
public boolean hasExtension() { if (this.extension == null) return false; for (Extension item : this.extension) if (!item.isEmpty()) return true; return false; }
public boolean hasModifierExtension() { if (this.modifierExtension == null) return false; for (Extension item : this.modifierExtension) if (!item.isEmpty()) return true; return false; }
public boolean hasExtension() { if (this.extension == null) return false; for (Extension item : this.extension) if (!item.isEmpty()) return true; return false; }
public org.hl7.fhir.instance.model.Extension convertExtension(org.hl7.fhir.r4.model.Extension src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Extension tgt = new org.hl7.fhir.instance.model.Extension(); copyElement(src, tgt); tgt.setUrl(src.getUrl()); if (src.hasValue()) if (CANONICAL_URLS.contains(src.getUrl()) && src.getValue() instanceof org.hl7.fhir.r4.model.CanonicalType) tgt.setValue(convertCanonicalToReference((CanonicalType)src.getValue())); else tgt.setValue(convertType(src.getValue())); tgt.setValue(convertType(src.getValue())); return tgt; }
public org.hl7.fhir.instance.model.Patient.AnimalComponent convertAnimalComponent(org.hl7.fhir.r4.model.Extension src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Patient.AnimalComponent tgt = new org.hl7.fhir.instance.model.Patient.AnimalComponent(); copyElement(src, tgt); if (src.hasExtension("species")) tgt.setSpecies(convertCodeableConcept((org.hl7.fhir.r4.model.CodeableConcept) src.getExtensionByUrl("species").getValue())); if (src.hasExtension("breed")) tgt.setBreed(convertCodeableConcept((org.hl7.fhir.r4.model.CodeableConcept) src.getExtensionByUrl("breed").getValue())); if (src.hasExtension("genderStatus")) tgt.setGenderStatus(convertCodeableConcept((org.hl7.fhir.r4.model.CodeableConcept) src.getExtensionByUrl("genderStatus").getValue())); return tgt; }
public static org.hl7.fhir.dstu2016may.model.Extension convertExtension(org.hl7.fhir.r4.model.Extension src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Extension tgt = new org.hl7.fhir.dstu2016may.model.Extension(); copyElement(src, tgt); tgt.setUrl(src.getUrl()); if (src.hasValue()) if (CANONICAL_URLS.contains(src.getUrl()) && src.getValue() instanceof org.hl7.fhir.r4.model.CanonicalType) tgt.setValue(convertCanonicalToReference((CanonicalType)src.getValue())); else tgt.setValue(convertType(src.getValue())); return tgt; }
public org.hl7.fhir.instance.model.Extension convertExtension(org.hl7.fhir.r4.model.Extension src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Extension tgt = new org.hl7.fhir.instance.model.Extension(); copyElement(src, tgt); tgt.setUrl(src.getUrl()); if (src.hasValue()) if (CANONICAL_URLS.contains(src.getUrl()) && src.getValue() instanceof org.hl7.fhir.r4.model.CanonicalType) tgt.setValue(convertCanonicalToReference((CanonicalType)src.getValue())); else tgt.setValue(convertType(src.getValue())); tgt.setValue(convertType(src.getValue())); return tgt; }
public org.hl7.fhir.instance.model.Patient.AnimalComponent convertAnimalComponent(org.hl7.fhir.r4.model.Extension src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Patient.AnimalComponent tgt = new org.hl7.fhir.instance.model.Patient.AnimalComponent(); copyElement(src, tgt); if (src.hasExtension("species")) tgt.setSpecies(convertCodeableConcept((org.hl7.fhir.r4.model.CodeableConcept) src.getExtensionByUrl("species").getValue())); if (src.hasExtension("breed")) tgt.setBreed(convertCodeableConcept((org.hl7.fhir.r4.model.CodeableConcept) src.getExtensionByUrl("breed").getValue())); if (src.hasExtension("genderStatus")) tgt.setGenderStatus(convertCodeableConcept((org.hl7.fhir.r4.model.CodeableConcept) src.getExtensionByUrl("genderStatus").getValue())); return tgt; }