/** * @deprecated Use Reference#setResource(IBaseResource) instead */ @Deprecated public Organization addManufacturerTarget() { Organization r = new Organization(); if (this.manufacturerTarget == null) this.manufacturerTarget = new ArrayList<Organization>(); this.manufacturerTarget.add(r); return r; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return addIdentifier(); case -1422950650: return getActiveElement(); case 3575610: return addType(); case 3373707: return getNameElement(); case 92902992: return addAliasElement(); case -1429363305: return addTelecom(); case -1147692044: return addAddress(); case -995410646: return getPartOf(); case 951526432: return addContact(); case 1741102485: return addEndpoint(); default: return super.makeProperty(hash, name); } }
switch (hash) { case -1618432855: // identifier this.getIdentifier().add(castToIdentifier(value)); // Identifier return value; case -1422950650: // active this.active = castToBoolean(value); // BooleanType return value; case 3575610: // type this.getType().add(castToCodeableConcept(value)); // CodeableConcept return value; case 3373707: // name this.name = castToString(value); // StringType return value; case 92902992: // alias this.getAlias().add(castToString(value)); // StringType return value; case -1429363305: // telecom this.getTelecom().add(castToContactPoint(value)); // ContactPoint return value; case -1147692044: // address this.getAddress().add(castToAddress(value)); // Address return value; case -995410646: // partOf this.partOf = castToReference(value); // Reference return value; case 951526432: // contact this.getContact().add((OrganizationContactComponent) value); // OrganizationContactComponent return value; case 1741102485: // endpoint
/** * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); }
/** * @return The first repetition of repeating field {@link #address}, creating it if it does not already exist */ public Address getAddressFirstRep() { if (getAddress().isEmpty()) { addAddress(); } return getAddress().get(0); }
/** * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist */ public ContactPoint getTelecomFirstRep() { if (getTelecom().isEmpty()) { addTelecom(); } return getTelecom().get(0); }
public org.hl7.fhir.r4.model.Organization convertOrganization(org.hl7.fhir.instance.model.Organization src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Organization tgt = new org.hl7.fhir.r4.model.Organization(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); tgt.addType(convertCodeableConcept(src.getType())); tgt.setName(src.getName()); for (org.hl7.fhir.instance.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); for (org.hl7.fhir.instance.model.Address t : src.getAddress()) tgt.addAddress(convertAddress(t)); tgt.setPartOf(convertReference(src.getPartOf())); for (org.hl7.fhir.instance.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t)); return tgt; }
public org.hl7.fhir.instance.model.Organization convertOrganization(org.hl7.fhir.r4.model.Organization src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Organization tgt = new org.hl7.fhir.instance.model.Organization(); copyDomainResource(src, tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); tgt.setType(convertCodeableConcept(src.getTypeFirstRep())); tgt.setName(src.getName()); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); for (org.hl7.fhir.r4.model.Address t : src.getAddress()) tgt.addAddress(convertAddress(t)); tgt.setPartOf(convertReference(src.getPartOf())); for (org.hl7.fhir.r4.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t)); return tgt; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); return addType(); return addTelecom(); return addAddress(); return addContact(); return addEndpoint();
/** * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist */ public OrganizationContactComponent getContactFirstRep() { if (getContact().isEmpty()) { addContact(); } return getContact().get(0); }
public Organization copy() { Organization dst = new Organization(); copyValues(dst); if (identifier != null) { dst.identifier = new ArrayList<Identifier>();
public org.hl7.fhir.r4.model.Organization convertOrganization(org.hl7.fhir.instance.model.Organization src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Organization tgt = new org.hl7.fhir.r4.model.Organization(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); tgt.addType(convertCodeableConcept(src.getType())); tgt.setName(src.getName()); for (org.hl7.fhir.instance.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); for (org.hl7.fhir.instance.model.Address t : src.getAddress()) tgt.addAddress(convertAddress(t)); tgt.setPartOf(convertReference(src.getPartOf())); for (org.hl7.fhir.instance.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t)); return tgt; }
public org.hl7.fhir.instance.model.Organization convertOrganization(org.hl7.fhir.r4.model.Organization src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Organization tgt = new org.hl7.fhir.instance.model.Organization(); copyDomainResource(src, tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); tgt.setType(convertCodeableConcept(src.getTypeFirstRep())); tgt.setName(src.getName()); for (org.hl7.fhir.r4.model.ContactPoint t : src.getTelecom()) tgt.addTelecom(convertContactPoint(t)); for (org.hl7.fhir.r4.model.Address t : src.getAddress()) tgt.addAddress(convertAddress(t)); tgt.setPartOf(convertReference(src.getPartOf())); for (org.hl7.fhir.r4.model.Organization.OrganizationContactComponent t : src.getContact()) tgt.addContact(convertOrganizationContactComponent(t)); return tgt; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("identifier")) { return addIdentifier(); return addType(); return addTelecom(); return addAddress(); return addContact(); return addEndpoint();
/** * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist */ public Identifier getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { addIdentifier(); } return getIdentifier().get(0); }
/** * @return The first repetition of repeating field {@link #address}, creating it if it does not already exist */ public Address getAddressFirstRep() { if (getAddress().isEmpty()) { addAddress(); } return getAddress().get(0); }
/** * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist */ public ContactPoint getTelecomFirstRep() { if (getTelecom().isEmpty()) { addTelecom(); } return getTelecom().get(0); }
/** * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist */ public OrganizationContactComponent getContactFirstRep() { if (getContact().isEmpty()) { addContact(); } return getContact().get(0); }