if (getParticipant().isEmpty()) { addParticipant(); } return getParticipant().get(0); } /** * @return {@link #appointment} (The appointment that scheduled this encounter.) */ public Reference getAppointment() {
public static EncounterParticipantComponent getParticipantByType(Encounter encounter, Coding participationType) { for (EncounterParticipantComponent p : encounter.getParticipant()) { if (hasType(p, participationType)) { return p; } } return null; }
public static boolean isPrepared(Encounter encounter) { return encounter != null && !encounter.getLocation().isEmpty() && !encounter.getParticipant().isEmpty() && getServiceCategory(encounter) != null; }
@Override public void pending(ISurveyResponse response) { Encounter encounter = EncounterContext.getEncounterContext().getContextObject(true); changeParticipant(encounter == null ? null : FhirUtil.getFirst(encounter.getParticipant())); } }
this.appointment = castToReference(value); // Reference } else if (name.equals("period")) { this.period = castToPeriod(value); // Period } else if (name.equals("length")) { this.length = castToDuration(value); // Duration
for (org.hl7.fhir.dstu3.model.Reference t : src.getIncomingReferral()) tgt.addIncomingReferral(convertReference(t)); for (org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t)); tgt.setAppointment(convertReference(src.getAppointment()));
case -1474995297: // appointment this.appointment = castToReference(value); // Reference return value; case -991726143: // period this.period = castToPeriod(value); // Period
for (org.hl7.fhir.dstu3.model.Reference t : src.getIncomingReferral()) tgt.addIncomingReferral(convertReference(t)); for (org.hl7.fhir.dstu3.model.Encounter.EncounterParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertEncounterParticipantComponent(t)); tgt.setAppointment(convertReference(src.getAppointment()));