don't send expansion if there's a compose when sending value sets

This commit is contained in:
Grahame Grieve 2024-10-10 19:30:26 +08:00
parent c7ccbb0110
commit a1c64498a0
1 changed files with 4 additions and 0 deletions

View File

@ -1764,6 +1764,10 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
} else if (options.getVsAsUrl()){
pin.addParameter().setName("url").setValue(new UriType(vs.getUrl()));
} else {
if (vs.hasCompose() && vs.hasExpansion()) {
vs = vs.copy();
vs.setExpansion(null);
}
pin.addParameter().setName("valueSet").setResource(vs);
if (vs.getUrl() != null) {
terminologyClientContext.getCached().add(vs.getUrl()+"|"+ vs.getVersion());