/** * @return {@link #practitioner} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Practitioner that is able to provide the defined services for the organization.) */ public Practitioner getPractitionerTarget() { if (this.practitionerTarget == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create PractitionerRole.practitioner"); else if (Configuration.doAutoCreate()) this.practitionerTarget = new Practitioner(); // aa return this.practitionerTarget; }
switch (hash) { case -1618432855: return addIdentifier(); case -1422950650: return getActiveElement(); case 3373707: return addName(); case -1429363305: return addTelecom(); case -1147692044: return addAddress(); case -1249512767: return getGenderElement(); case -1210031859: return getBirthDateElement(); case 106642994: return addPhoto(); case -631333393: return addQualification(); case -1035284522: return addCommunication(); default: return super.makeProperty(hash, name); } } @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException {
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 {
* @return The first repetition of repeating field {@link #name}, creating it if it does not already exist */ public HumanName getNameFirstRep() { if (getName().isEmpty()) { addName(); } return getName().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.Practitioner convertPractitioner(org.hl7.fhir.instance.model.Practitioner src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Practitioner tgt = new org.hl7.fhir.r4.model.Practitioner(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); if (src.hasName()) tgt.addName(convertHumanName(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.setGender(convertAdministrativeGender(src.getGender())); tgt.setBirthDate(src.getBirthDate()); for (org.hl7.fhir.instance.model.Attachment t : src.getPhoto()) tgt.addPhoto(convertAttachment(t)); // for (org.hl7.fhir.instance.model.Practitioner.PractitionerPractitionerRoleComponent t : src.getPractitionerRole()) // tgt.addRole(convertPractitionerPractitionerRoleComponent(t)); for (org.hl7.fhir.instance.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t)); for (org.hl7.fhir.instance.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(convertCodeableConcept(t)); return tgt; }
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")) { return addIdentifier(); else if (name.equals("active")) { throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active"); return addName(); else if (name.equals("telecom")) { return addTelecom(); else if (name.equals("address")) { return addAddress(); else if (name.equals("gender")) { throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender"); return addPhoto(); else if (name.equals("qualification")) { return addQualification(); else if (name.equals("communication")) { return addCommunication(); else return super.addChild(name);
*/ public Address getAddressFirstRep() { if (getAddress().isEmpty()) { addAddress(); } return getAddress().get(0); } /** * @return {@link #gender} (Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.). This is the underlying object with id, value and extensions. The accessor "getGender" gives direct access to the value
*/ public Attachment getPhotoFirstRep() { if (getPhoto().isEmpty()) { addPhoto(); } return getPhoto().get(0); } /** * @return {@link #qualification} (The official certifications, training, and licenses that authorize or otherwise pertain to the provision of care by the practitioner. For example, a medical license issued by a medical board authorizing the practitioner to practice medicine within a certian locality.)
*/ public CodeableConcept getCommunicationFirstRep() { if (getCommunication().isEmpty()) { addCommunication(); } return getCommunication().get(0); } protected void listChildren(List<Property> children) { super.listChildren(children);
*/ public PractitionerQualificationComponent getQualificationFirstRep() { if (getQualification().isEmpty()) { addQualification(); } return getQualification().get(0); } /** * @return {@link #communication} (A language the practitioner can use in patient communication.)
* @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); } /**
public org.hl7.fhir.r4.model.Practitioner convertPractitioner(org.hl7.fhir.instance.model.Practitioner src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Practitioner tgt = new org.hl7.fhir.r4.model.Practitioner(); copyDomainResource(src, tgt); for (org.hl7.fhir.instance.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); tgt.setActive(src.getActive()); if (src.hasName()) tgt.addName(convertHumanName(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.setGender(convertAdministrativeGender(src.getGender())); tgt.setBirthDate(src.getBirthDate()); for (org.hl7.fhir.instance.model.Attachment t : src.getPhoto()) tgt.addPhoto(convertAttachment(t)); // for (org.hl7.fhir.instance.model.Practitioner.PractitionerPractitionerRoleComponent t : src.getPractitionerRole()) // tgt.addRole(convertPractitionerPractitionerRoleComponent(t)); for (org.hl7.fhir.instance.model.Practitioner.PractitionerQualificationComponent t : src.getQualification()) tgt.addQualification(convertPractitionerQualificationComponent(t)); for (org.hl7.fhir.instance.model.CodeableConcept t : src.getCommunication()) tgt.addCommunication(convertCodeableConcept(t)); return tgt; }
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")) { return addIdentifier(); else if (name.equals("active")) { throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active"); return addName(); else if (name.equals("telecom")) { return addTelecom(); else if (name.equals("address")) { return addAddress(); else if (name.equals("gender")) { throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender"); return addPhoto(); else if (name.equals("qualification")) { return addQualification(); else if (name.equals("communication")) { return addCommunication(); else return super.addChild(name);
* @return The first repetition of repeating field {@link #name}, creating it if it does not already exist */ public HumanName getNameFirstRep() { if (getName().isEmpty()) { addName(); } return getName().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 Address getAddressFirstRep() { if (getAddress().isEmpty()) { addAddress(); } return getAddress().get(0); } /** * @return {@link #gender} (Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.). This is the underlying object with id, value and extensions. The accessor "getGender" gives direct access to the value