--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/4d02698d-8835-4031-9bd1-b2e76c57220c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Are you adding the patient to the actual appointment e.g. something like this
appointment.addParticipant().setActorTarget(fhirPatient);
Not sure if that works but you would need to point the
appointment to the contained patient.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/effa5674-00f2-43fa-920d-b4691ac18c56%40googlegroups.com.
Appointment appointment = new Appointment();
patient.setId("#1");
appointment.addContained(patient);
appointment.addParticipant().setActor(new Reference("#1"));
System.out.println(parser.setPrettyPrint(true).encodeResourceToString(appointment));
Bundle bundle = new Bundle();
patient.setId("#1");
Appointment appointment = new Appointment();
appointment.addParticipant().setActor(new Reference("#1"));
bundle.addEntry().setResource(appointment);
bundle.addEntry().setResource(patient);
System.out.println(parser.setPrettyPrint(true).encodeResourceToString(bundle));
appointment = new Appointment();
appointment.setId("1");
appointment.addParticipant().setActor(new Reference("Patient/1"));
System.out.println(parser.setPrettyPrint(true).encodeResourceToString(appointment));
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/0a00b357-d8ca-4d0a-acb0-ca11b4ebed33%40googlegroups.com.
Dear Kevin,