diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/ReferenceParam.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/ReferenceParam.java
index 6f9e3babc32..7e59d6d08eb 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/ReferenceParam.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/ReferenceParam.java
@@ -200,6 +200,13 @@ public class ReferenceParam extends BaseParam /*implements IQueryParameterType*/
return myValue;
}
+ /**
+ * Note that the parameter to this method must be a resource reference, e.g
+ * 123
or Patient/123
or http://example.com/fhir/Patient/123
+ * or something like this. This is not appropriate for cases where a chain is being used and
+ * the value is for a different type of parameter (e.g. a token). In that case, use one of the
+ * setter constructors.
+ */
public ReferenceParam setValue(String theValue) {
IdDt id = new IdDt(theValue);
String qualifier= null;