public Address makeAddressFromAD(Element e) { if (e == null) return null; Address a = new Address(); String use = e.getAttribute("use"); if (use != null) {
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 #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} (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; }
/** * @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; }
public org.hl7.fhir.dstu3.model.Address convertAddress(org.hl7.fhir.instance.model.Address src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Address tgt = new org.hl7.fhir.dstu3.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; }
@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); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.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); }
@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); }
public static org.hl7.fhir.dstu3.model.Address convertAddress(org.hl7.fhir.dstu2016may.model.Address src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Address tgt = new org.hl7.fhir.dstu3.model.Address(); copyElement(src, tgt); tgt.setUse(convertAddressUse(src.getUse())); tgt.setType(convertAddressType(src.getType())); if (src.hasText()) tgt.setText(src.getText()); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getLine()) tgt.addLine(t.getValue()); if (src.hasCity()) tgt.setCity(src.getCity()); if (src.hasDistrict()) tgt.setDistrict(src.getDistrict()); if (src.hasState()) tgt.setState(src.getState()); if (src.hasPostalCode()) tgt.setPostalCode(src.getPostalCode()); if (src.hasCountry()) tgt.setCountry(src.getCountry()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("relationship")) { return addRelationship(); } 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 if (name.equals("gender")) { throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); } else if (name.equals("organization")) { this.organization = new Reference(); return this.organization; } else if (name.equals("period")) { this.period = new Period(); return this.period; } else return super.addChild(name); }
public Address makeAddressFromAD(Element e) { if (e == null) return null; Address a = new Address(); String use = e.getAttribute("use"); if (use != null) {
this.address = new Address(); return this.address;
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.dstu3.model.Address convertAddress(org.hl7.fhir.instance.model.Address src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Address tgt = new org.hl7.fhir.dstu3.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; }
public static org.hl7.fhir.dstu3.model.Address convertAddress(org.hl7.fhir.dstu2016may.model.Address src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Address tgt = new org.hl7.fhir.dstu3.model.Address(); copyElement(src, tgt); tgt.setUse(convertAddressUse(src.getUse())); tgt.setType(convertAddressType(src.getType())); if (src.hasText()) tgt.setText(src.getText()); for (org.hl7.fhir.dstu2016may.model.StringType t : src.getLine()) tgt.addLine(t.getValue()); if (src.hasCity()) tgt.setCity(src.getCity()); if (src.hasDistrict()) tgt.setDistrict(src.getDistrict()); if (src.hasState()) tgt.setState(src.getState()); if (src.hasPostalCode()) tgt.setPostalCode(src.getPostalCode()); if (src.hasCountry()) tgt.setCountry(src.getCountry()); tgt.setPeriod(convertPeriod(src.getPeriod())); return tgt; }