* @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); } /**
if (name.equals("identifier")) { this.getIdentifier().add(castToIdentifier(value)); } else if (name.equals("active")) { this.active = castToBoolean(value); // BooleanType } else if (name.equals("name")) { this.getName().add(castToHumanName(value)); } else if (name.equals("telecom")) { this.getTelecom().add(castToContactPoint(value)); } else if (name.equals("address")) { this.getAddress().add(castToAddress(value)); } else if (name.equals("gender")) { value = new AdministrativeGenderEnumFactory().fromType(castToCode(value)); this.gender = (Enumeration) value; // Enumeration<AdministrativeGender> } else if (name.equals("birthDate")) { this.birthDate = castToDate(value); // DateType } else if (name.equals("photo")) { this.getPhoto().add(castToAttachment(value)); } else if (name.equals("qualification")) { this.getQualification().add((PractitionerQualificationComponent) value); } else if (name.equals("communication")) { this.getCommunication().add(castToCodeableConcept(value)); } else return super.setProperty(name, value); return value; } @Override public Base makeProperty(int hash, String name) throws FHIRException {
this.getTelecom().add(castToContactPoint(value)); // ContactPoint return value; case -1147692044: // address this.getAddress().add(castToAddress(value)); // Address return value;
* @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.instance.model.Practitioner convertPractitioner(org.hl7.fhir.r4.model.Practitioner src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Practitioner tgt = new org.hl7.fhir.instance.model.Practitioner(); copyDomainResource(src, tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); for (org.hl7.fhir.r4.model.HumanName t : src.getName()) tgt.setName(convertHumanName(t)); 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.setGender(convertAdministrativeGender(src.getGender())); tgt.setBirthDate(src.getBirthDate()); for (org.hl7.fhir.r4.model.Attachment t : src.getPhoto()) tgt.addPhoto(convertAttachment(t)); // for (org.hl7.fhir.r4.model.Practitioner.PractitionerRoleComponent t : src.getRole()) // tgt.addPractitionerRole(convertPractitionerPractitionerRoleComponent(t)); for (org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(convertCodeableConcept(t)); return tgt; }
if (name.equals("identifier")) { this.getIdentifier().add(castToIdentifier(value)); } else if (name.equals("active")) { this.active = castToBoolean(value); // BooleanType } else if (name.equals("name")) { this.getName().add(castToHumanName(value)); } else if (name.equals("telecom")) { this.getTelecom().add(castToContactPoint(value)); } else if (name.equals("address")) { this.getAddress().add(castToAddress(value)); } else if (name.equals("gender")) { value = new AdministrativeGenderEnumFactory().fromType(castToCode(value)); this.gender = (Enumeration) value; // Enumeration<AdministrativeGender> } else if (name.equals("birthDate")) { this.birthDate = castToDate(value); // DateType } else if (name.equals("photo")) { this.getPhoto().add(castToAttachment(value)); } else if (name.equals("qualification")) { this.getQualification().add((PractitionerQualificationComponent) value); } else if (name.equals("communication")) { this.getCommunication().add(castToCodeableConcept(value)); } else return super.setProperty(name, value); return value; } @Override public Base makeProperty(int hash, String name) throws FHIRException {
this.getTelecom().add(castToContactPoint(value)); // ContactPoint return value; case -1147692044: // address this.getAddress().add(castToAddress(value)); // Address return value;
public org.hl7.fhir.instance.model.Practitioner convertPractitioner(org.hl7.fhir.r4.model.Practitioner src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Practitioner tgt = new org.hl7.fhir.instance.model.Practitioner(); copyDomainResource(src, tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); for (org.hl7.fhir.r4.model.HumanName t : src.getName()) tgt.setName(convertHumanName(t)); 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.setGender(convertAdministrativeGender(src.getGender())); tgt.setBirthDate(src.getBirthDate()); for (org.hl7.fhir.r4.model.Attachment t : src.getPhoto()) tgt.addPhoto(convertAttachment(t)); // for (org.hl7.fhir.r4.model.Practitioner.PractitionerRoleComponent t : src.getRole()) // tgt.addPractitionerRole(convertPractitionerPractitionerRoleComponent(t)); for (org.hl7.fhir.r4.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(convertCodeableConcept(t)); return tgt; }