/** * Gets the first repetition for <b>identifier</b> (External Ids for this item), * creating it if it does not already exist. * * <p> * <b>Definition:</b> * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) * </p> */ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /**
/** * 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) * * <p> * <b>Definition:</b> * * </p> */ public BoundCodeableConceptDt<ParticipantTypeEnum> addParticipantType() { BoundCodeableConceptDt<ParticipantTypeEnum> retVal = new BoundCodeableConceptDt<ParticipantTypeEnum>(ParticipantTypeEnum.VALUESET_BINDER); getParticipantType().add(retVal); return retVal; }
/** * Adds and returns a new value for <b>identifier</b> (External Ids for this item) * * <p> * <b>Definition:</b> * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) * </p> */ public IdentifierDt addIdentifier() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; }
/** * Adds and returns a new value for <b>individual</b> (A Person of device that is participating in the appointment) * * <p> * <b>Definition:</b> * * </p> */ public ResourceReferenceDt addIndividual() { ResourceReferenceDt newType = new ResourceReferenceDt(); getIndividual().add(newType); return newType; }
/** * 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; }
/** * 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); }