From 037b615bfc421693aa4c9c02f7292330ecd5b3f3 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Mon, 5 Dec 2022 13:41:50 +1100 Subject: [PATCH] allow https://example... in questionnaires as example links --- .../fhir/validation/instance/type/QuestionnaireValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/QuestionnaireValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/QuestionnaireValidator.java index c70a3598f..091faa5dc 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/QuestionnaireValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/QuestionnaireValidator.java @@ -260,7 +260,7 @@ public class QuestionnaireValidator extends BaseValidator { if (questionnaireMode == QuestionnaireMode.REQUIRED) { qok = rule(errors, NO_RULE_DATE, IssueType.REQUIRED, q.line(), q.col(), stack.getLiteralPath(), qsrc != null, I18nConstants.QUESTIONNAIRE_QR_Q_NOTFOUND, questionnaire); ok = qok && ok; - } else if (questionnaire.startsWith("http://example.org")) { + } else if (questionnaire.startsWith("http://example.org") || questionnaire.startsWith("https://example.org")) { qok = hint(errors, NO_RULE_DATE, IssueType.REQUIRED, q.line(), q.col(), stack.getLiteralPath(), qsrc != null, I18nConstants.QUESTIONNAIRE_QR_Q_NOTFOUND, questionnaire); } else { qok = warning(errors, NO_RULE_DATE, IssueType.REQUIRED, q.line(), q.col(), stack.getLiteralPath(), qsrc != null, I18nConstants.QUESTIONNAIRE_QR_Q_NOTFOUND, questionnaire);