Fix bug becuase Operation doesn't have copyright.

This commit is contained in:
Grahame Grieve 2020-09-09 13:33:55 +10:00
parent f696804509
commit 14348bb6f1
2 changed files with 15 additions and 5 deletions

View File

@ -533,11 +533,11 @@ public abstract class CanonicalResource extends DomainResource {
}
// Manual code (from Configuration.txt)t:
@Override
@Override
public String toString() {
return fhirType()+"["+getUrl()+"]";
}
public String present() {
if (hasTitle())
return getTitle();
@ -545,10 +545,14 @@ public abstract class CanonicalResource extends DomainResource {
return getName();
return toString();
}
public String getVUrl() {
public String getVUrl() {
return getUrl() + (hasVersion() ? "|"+getVersion() : "");
}
}
public boolean supportsCopyright() {
return true;
}
// end addition
}

View File

@ -4779,5 +4779,11 @@ public class OperationDefinition extends CanonicalResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
//Manual code (from Configuration.txt)t:
public boolean supportsCopyright() {
return false;
}
// end
}