public Address addAddress() { //3 Address t = new Address(); if (this.address == null) this.address = new ArrayList<Address>(); this.address.add(t); return t; }
public Address addAddress() { //3 Address t = new Address(); if (this.address == null) this.address = new ArrayList<Address>(); this.address.add(t); return t; }
public Address addAddress() { //3 Address t = new Address(); if (this.address == null) this.address = new ArrayList<Address>(); this.address.add(t); return t; }
if (this.address == null) this.address = new ArrayList<Address>(); this.address.add(t); return t; } public Practitioner addAddress(Address t) { //3 if (t == null)
public Address addAddress() { //3 Address t = new Address(); if (this.address == null) this.address = new ArrayList<Address>(); this.address.add(t); return t; }
/** * @return {@link #location} (Where the product or service was provided.) */ public Address getLocationAddress() throws FHIRException { if (this.location == null) this.location = new Address(); if (!(this.location instanceof Address)) throw new FHIRException("Type mismatch: the type Address was expected, but "+this.location.getClass().getName()+" was encountered"); return (Address) this.location; }
/** * @return {@link #location} (Where the product or service was provided.) */ public Address getLocationAddress() throws FHIRException { if (this.location == null) this.location = new Address(); if (!(this.location instanceof Address)) throw new FHIRException("Type mismatch: the type Address was expected, but "+this.location.getClass().getName()+" was encountered"); return (Address) this.location; }
/** * @return {@link #location} (Where the product or service was provided.) */ public Address getLocationAddress() throws FHIRException { if (this.location == null) this.location = new Address(); if (!(this.location instanceof Address)) throw new FHIRException("Type mismatch: the type Address was expected, but "+this.location.getClass().getName()+" was encountered"); return (Address) this.location; }
/** * @return {@link #location} (The physical location of the accident event.) */ public Address getLocationAddress() throws FHIRException { if (this.location == null) this.location = new Address(); if (!(this.location instanceof Address)) throw new FHIRException("Type mismatch: the type Address was expected, but "+this.location.getClass().getName()+" was encountered"); return (Address) this.location; }
/** * @return {@link #location} (The physical location of the accident event.) */ public Address getLocationAddress() throws FHIRException { if (this.location == null) this.location = new Address(); if (!(this.location instanceof Address)) throw new FHIRException("Type mismatch: the type Address was expected, but "+this.location.getClass().getName()+" was encountered"); return (Address) this.location; }
/** * @return {@link #location} (Where the product or service was provided.) */ public Address getLocationAddress() throws FHIRException { if (this.location == null) this.location = new Address(); if (!(this.location instanceof Address)) throw new FHIRException("Type mismatch: the type Address was expected, but "+this.location.getClass().getName()+" was encountered"); return (Address) this.location; }
/** * @return {@link #address} (Visiting or postal addresses for the contact.) */ public Address getAddress() { if (this.address == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create OrganizationContactComponent.address"); else if (Configuration.doAutoCreate()) this.address = new Address(); // cc return this.address; }
/** * @return {@link #address} (Visiting or postal addresses for the contact.) */ public Address getAddress() { if (this.address == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create InsurancePlanContactComponent.address"); else if (Configuration.doAutoCreate()) this.address = new Address(); // cc return this.address; }
/** * @return {@link #address} (Physical location.) */ public Address getAddress() { if (this.address == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Location.address"); else if (Configuration.doAutoCreate()) this.address = new Address(); // cc return this.address; }
/** * @return {@link #address} (Address for the contact person.) */ public Address getAddress() { if (this.address == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ContactComponent.address"); else if (Configuration.doAutoCreate()) this.address = new Address(); // cc return this.address; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("purpose")) { this.purpose = new CodeableConcept(); return this.purpose; } else if (name.equals("name")) { this.name = new HumanName(); return this.name; } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("address")) { this.address = new Address(); return this.address; } else return super.addChild(name); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("purpose")) { this.purpose = new CodeableConcept(); return this.purpose; } else if (name.equals("name")) { this.name = new HumanName(); return this.name; } else if (name.equals("telecom")) { return addTelecom(); } else if (name.equals("address")) { this.address = new Address(); return this.address; } else return super.addChild(name); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { throw new FHIRException("Cannot call addChild on a primitive type Claim.date"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("locationAddress")) { this.location = new Address(); return this.location; } else if (name.equals("locationReference")) { this.location = new Reference(); return this.location; } else return super.addChild(name); }
public Address copy() { Address dst = new Address(); copyValues(dst); dst.use = use == null ? null : use.copy(); dst.type = type == null ? null : type.copy(); dst.text = text == null ? null : text.copy(); if (line != null) { dst.line = new ArrayList<StringType>(); for (StringType i : line) dst.line.add(i.copy()); }; dst.city = city == null ? null : city.copy(); dst.district = district == null ? null : district.copy(); dst.state = state == null ? null : state.copy(); dst.postalCode = postalCode == null ? null : postalCode.copy(); dst.country = country == null ? null : country.copy(); dst.period = period == null ? null : period.copy(); return dst; }
public org.hl7.fhir.r4.model.Address convertAddress(org.hl7.fhir.instance.model.Address src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Address tgt = new org.hl7.fhir.r4.model.Address(); copyElement(src, tgt); tgt.setUse(convertAddressUse(src.getUse())); tgt.setType(convertAddressType(src.getType())); tgt.setText(src.getText()); for (org.hl7.fhir.instance.model.StringType t : src.getLine()) tgt.addLine(t.getValue()); tgt.setCity(src.getCity()); tgt.setDistrict(src.getDistrict()); tgt.setState(src.getState()); tgt.setPostalCode(src.getPostalCode()); tgt.setCountry(src.getCountry()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }