/** * If set to <code>true</code> (default is <code>false</code>) the server will allow * resources to have references to external servers. For example if this server is * running at <code>http://example.com/fhir</code> and this setting is set to * <code>true</code> the server will allow a Patient resource to be saved with a * Patient.organization value of <code>http://foo.com/Organization/1</code>. * <p> * Under the default behaviour if this value has not been changed, the above * resource would be rejected by the server because it requires all references * to be resolvable on the local server. * </p> * <p> * Note that external references will be indexed by the server and may be searched * (e.g. <code>Patient:organization</code>), but * chained searches (e.g. <code>Patient:organization.name</code>) will not work across * these references. * </p> * <p> * It is recommended to also set {@link #setTreatBaseUrlsAsLocal(Set)} if this value * is set to <code>true</code> * </p> * * @see #setTreatBaseUrlsAsLocal(Set) * @see #setAllowExternalReferences(boolean) */ public void setAllowExternalReferences(boolean theAllowExternalReferences) { myModelConfig.setAllowExternalReferences(theAllowExternalReferences); }
/** * If set to <code>true</code> (default is <code>false</code>) the server will allow * resources to have references to external servers. For example if this server is * running at <code>http://example.com/fhir</code> and this setting is set to * <code>true</code> the server will allow a Patient resource to be saved with a * Patient.organization value of <code>http://foo.com/Organization/1</code>. * <p> * Under the default behaviour if this value has not been changed, the above * resource would be rejected by the server because it requires all references * to be resolvable on the local server. * </p> * <p> * Note that external references will be indexed by the server and may be searched * (e.g. <code>Patient:organization</code>), but * chained searches (e.g. <code>Patient:organization.name</code>) will not work across * these references. * </p> * <p> * It is recommended to also set {@link #setTreatBaseUrlsAsLocal(Set)} if this value * is set to <code>true</code> * </p> * * @see #setTreatBaseUrlsAsLocal(Set) * @see #setAllowExternalReferences(boolean) */ public void setAllowExternalReferences(boolean theAllowExternalReferences) { myModelConfig.setAllowExternalReferences(theAllowExternalReferences); }