/** * Gets the first repetition for <b>type</b> (), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * Role of participant in encounter * </p> */ public BoundCodeableConceptDt<ParticipantTypeEnum> getTypeFirstRep() { if (getType().size() == 0) { addType(); } return getType().get(0); }
/** * Sets the value(s), and clears any existing value(s) for <b>type</b> () * * <p> * <b>Definition:</b> * Role of participant in encounter * </p> */ public Participant setType(ParticipantTypeEnum theValue) { getType().clear(); addType(theValue); return this; }
public static boolean addType(Participant participant, CodingDt participationType) { if (!hasType(participant, participationType)) { CodeableConceptDt cpt = participant.addType(); cpt.getCoding().add(participationType); return true; } return false; }