Add missing methods

This commit is contained in:
dotasek.dev 2024-02-02 10:39:51 -05:00
parent af09f43e81
commit ed0c388bbf
2 changed files with 40 additions and 0 deletions

View File

@ -284,6 +284,10 @@ public final class HapiWorkerContext extends I18nBase implements IWorkerContext
}
@Override
public void setExpansionParameters(Parameters expParameters) {
setExpansionProfile(expParameters);
}
public void setExpansionProfile(Parameters theExpParameters) {
myExpansionProfile = theExpParameters;
}
@ -616,4 +620,19 @@ public final class HapiWorkerContext extends I18nBase implements IWorkerContext
public Set<String> urlsForOid(boolean codeSystem, String oid) {
throw new UnsupportedOperationException(Msg.code(2473));
}
@Override
public <T extends Resource> T findTxResource(Class<T> class_, String canonical, Resource sourceOfReference) {
throw new UnsupportedOperationException(Msg.code(2461));
}
@Override
public <T extends Resource> T findTxResource(Class<T> class_, String canonical) {
throw new UnsupportedOperationException(Msg.code(2461));
}
@Override
public <T extends Resource> T findTxResource(Class<T> class_, String canonical, String version) {
throw new UnsupportedOperationException(Msg.code(2461));
}
}

View File

@ -26,6 +26,7 @@ import org.hl7.fhir.r5.model.CodeSystem;
import org.hl7.fhir.r5.model.Coding;
import org.hl7.fhir.r5.model.NamingSystem;
import org.hl7.fhir.r5.model.PackageInformation;
import org.hl7.fhir.r5.model.Parameters;
import org.hl7.fhir.r5.model.Resource;
import org.hl7.fhir.r5.model.StructureDefinition;
import org.hl7.fhir.r5.model.ValueSet;
@ -218,6 +219,11 @@ public class VersionSpecificWorkerContextWrapper extends I18nBase implements IWo
}
@Override
public void setExpansionParameters(Parameters expParameters) {
setExpansionProfile(expParameters);
}
public void setExpansionProfile(org.hl7.fhir.r5.model.Parameters expParameters) {
myExpansionProfile = expParameters;
}
@ -806,6 +812,21 @@ public class VersionSpecificWorkerContextWrapper extends I18nBase implements IWo
return null;
}
@Override
public <T extends Resource> T findTxResource(Class<T> class_, String canonical, Resource sourceOfReference) {
throw new UnsupportedOperationException(Msg.code(650));
}
@Override
public <T extends Resource> T findTxResource(Class<T> class_, String canonical) {
throw new UnsupportedOperationException(Msg.code(650));
}
@Override
public <T extends Resource> T findTxResource(Class<T> class_, String canonical, String version) {
throw new UnsupportedOperationException(Msg.code(650));
}
public static ConceptValidationOptions convertConceptValidationOptions(ValidationOptions theOptions) {
ConceptValidationOptions retVal = new ConceptValidationOptions();
if (theOptions.isGuessSystem()) {