mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-03-02 01:19:14 +00:00
Merge branch 'master' of https://github.com/hapifhir/org.hl7.fhir.core
This commit is contained in:
commit
e998722d1b
@ -3614,18 +3614,20 @@ private boolean isAnswerRequirementFulfilled(QuestionnaireItemComponent qItem, L
|
|||||||
// If it's the wrong type, just keep going
|
// If it's the wrong type, just keep going
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (list.isEmpty() && !openChoice) {
|
if (!openChoice) {
|
||||||
rule(errors, IssueType.STRUCTURE, v.line(), v.col(), stack.getLiteralPath(), false, "Option list has no option values of type string");
|
if (list.isEmpty()) {
|
||||||
} else {
|
rule(errors, IssueType.STRUCTURE, v.line(), v.col(), stack.getLiteralPath(), false, "Option list has no option values of type string");
|
||||||
boolean found = false;
|
} else {
|
||||||
for (StringType item : list) {
|
boolean found = false;
|
||||||
if (item.getValue().equals((v.primitiveValue()))) {
|
for (StringType item : list) {
|
||||||
found = true;
|
if (item.getValue().equals((v.primitiveValue()))) {
|
||||||
break;
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!found) {
|
||||||
|
rule(errors, IssueType.STRUCTURE, v.line(), v.col(), stack.getLiteralPath(), found, "The string " + v.primitiveValue() + " is not a valid option");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!found) {
|
|
||||||
rule(errors, IssueType.STRUCTURE, v.line(), v.col(), stack.getLiteralPath(), found, "The string "+v.primitiveValue()+" is not a valid option");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user