Search in sources :

Example 1 with AppointmentStatus

use of org.hl7.fhir.dstu3.model.Appointment.AppointmentStatus in project BridgeServer2 by Sage-Bionetworks.

the class CRCControllerTest method makeAppointment.

private String makeAppointment(String identifier, AppointmentStatus status) {
    Appointment appt = new Appointment();
    if (identifier != null) {
        addAppointmentSageId(appt, identifier);
    }
    addAppointmentParticipantComponent(appt, LOCATION_NS + "ny-location");
    appt.setStatus(status);
    return FHIR_CONTEXT.newJsonParser().encodeResourceToString(appt);
}
Also used : Appointment(org.hl7.fhir.dstu3.model.Appointment)

Aggregations

Appointment (org.hl7.fhir.dstu3.model.Appointment)1