/** * Gets the first repetition for <b>participantType</b> (Role of participant in the appointment), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * * </p> */ public BoundCodeableConceptDt<ParticipantTypeEnum> getParticipantTypeFirstRep() { if (getParticipantType().size() == 0) { addParticipantType(); } return getParticipantType().get(0); }
/** * Add a value for <b>participantType</b> (Role of participant in the appointment) * * <p> * <b>Definition:</b> * * </p> */ public BoundCodeableConceptDt<ParticipantTypeEnum> addParticipantType() { BoundCodeableConceptDt<ParticipantTypeEnum> retVal = new BoundCodeableConceptDt<ParticipantTypeEnum>(ParticipantTypeEnum.VALUESET_BINDER); getParticipantType().add(retVal); return retVal; }
/** * Sets the value(s), and clears any existing value(s) for <b>participantType</b> (Role of participant in the appointment) * * <p> * <b>Definition:</b> * * </p> */ public AppointmentResponse setParticipantType(ParticipantTypeEnum theValue) { getParticipantType().clear(); addParticipantType(theValue); return this; }
/** * Add a value for <b>participantType</b> (Role of participant in the appointment) using an enumerated type. This * is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory * or contain the desirable codes. If you wish to use codes other than those which are built-in, * you may also use the {@link #addParticipantType()} method. * * <p> * <b>Definition:</b> * * </p> */ public BoundCodeableConceptDt<ParticipantTypeEnum> addParticipantType(ParticipantTypeEnum theValue) { BoundCodeableConceptDt<ParticipantTypeEnum> retVal = new BoundCodeableConceptDt<ParticipantTypeEnum>(ParticipantTypeEnum.VALUESET_BINDER, theValue); getParticipantType().add(retVal); return retVal; }