@Test public void patchPatientPutsSpecifiedLabeledIdInJson() { Response response = this.component.patchPatient(EMPTY_JSON, ID_LABEL, ID_VALUE, true); assertEquals(Response.Status.CREATED.getStatusCode(), response.getStatus()); ArgumentCaptor<JSONObject> json = ArgumentCaptor.forClass(JSONObject.class); verify(this.patient).updateFromJSON(json.capture(), Matchers.eq(PatientWritePolicy.UPDATE)); assertEquals("[{\"label\":\"a_label\",\"value\":\"eid\"}]", json.getValue().optString(KEY_LABELED_EIDS)); }
@Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); } }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }  }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }  @Override Response getPatient(String label, String id); @Override Response updatePatient(final String json, final String label, final String id,
        final String policy, final boolean create); @Override Response patchPatient(String json, String label, String id, boolean create); @Override Response deletePatient(String label, String id); }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }  @Override Response getPatient(String label, String id); @Override Response updatePatient(final String json, final String label, final String id,
        final String policy, final boolean create); @Override Response patchPatient(String json, String label, String id, boolean create); @Override Response deletePatient(String label, String id);  }