Merge remote-tracking branch 'origin/master'

This commit is contained in:
Grahame Grieve 2022-11-08 10:08:01 +11:00
commit 9183326580
3 changed files with 31 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class JurisdictionUtilities {
}
public static String displayJurisdiction(String s) {
return displayJurisdiction(CodeSystemUtilities.readCoding(getJurisdictionFromLocale(s)));
return displayJurisdiction(CodeSystemUtilities.readCoding(s));
}
public static String displayJurisdiction(Coding c) {

View File

@ -0,0 +1,24 @@
package org.hl7.fhir.r5.terminology;
import org.hl7.fhir.r5.terminologies.JurisdictionUtilities;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class JurisdictionUtilitiesTests {
@ParameterizedTest
@CsvSource({
"uv,Global (Whole world)",
"world,Global (Whole world)",
"global,Global (Whole world)",
"ar,Argentina",
"bf,Burkina Faso"
})
void testDisplayJurisdiction(String cliString, String expectedDisplayString) {
final String jurisdiction = JurisdictionUtilities.getJurisdictionFromLocale(cliString);
assertEquals(expectedDisplayString, JurisdictionUtilities.displayJurisdiction(jurisdiction));
}
}

View File

@ -209,6 +209,12 @@ public class CliContext {
return extensions;
}
@JsonProperty("extensions")
public CliContext setExtensions(List<String> extensions) {
this.extensions = extensions;
return this;
}
@JsonProperty("hintAboutNonMustSupport")
public boolean isHintAboutNonMustSupport() {
return hintAboutNonMustSupport;