Merge pull request #1626 from hapifhir/2024-05-gg-snapshot-extension

Fix bug processing extension with explicit type slicing
This commit is contained in:
Grahame Grieve 2024-05-20 03:05:17 -05:00 committed by GitHub
commit ac11a1c5cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -284,7 +284,7 @@ public class FhirRequestBuilder {
reqid = response.header("X-Request-Id");
}
if (reqid != null) {
s = s + " ["+reqid+"]";
s = s + " [x-request-id: "+reqid+"]";
}
System.out.println("Error from "+source+": " + s);
throw new EFhirClientException("Error from "+source+": " + ResourceUtilities.getErrorDescription(error), error);

View File

@ -559,7 +559,7 @@ public class ProfilePathProcessor {
}
}
if (!allowedTypes.isEmpty()) {
if (currentBasePath.contains("xtension.value")) {
if (currentBasePath.contains("xtension.value") && shortCut) {
for (Iterator<ElementDefinition.TypeRefComponent> iter = elementDefinition.getType().iterator(); iter.hasNext(); ) {
ElementDefinition.TypeRefComponent tr = iter.next();
if (allowedTypes.contains(tr.getCode())) {

View File

@ -327,7 +327,7 @@ public class DataRenderer extends Renderer implements CodeResolver {
if (JurisdictionUtilities.isJurisdiction(system)) {
return JurisdictionUtilities.displayJurisdiction(system+"#"+code);
}
ValidationResult t = getContext().getWorker().validateCode(getContext().getTerminologyServiceOptions().withLanguage(context.getLocale().toString()).withVersionFlexible(true), system, version, code, null);
ValidationResult t = getContext().getWorker().validateCode(getContext().getTerminologyServiceOptions().withLanguage(context.getLocale().toString().replace("_", "-")).withVersionFlexible(true), system, version, code, null);
if (t != null && t.getDisplay() != null)
return t.getDisplay();