diff --git a/pom.xml b/pom.xml index 73ccd7b..5811410 100644 --- a/pom.xml +++ b/pom.xml @@ -65,7 +65,7 @@ 2.25.2 test - + dev.dsf dsf-fhir-validation @@ -91,7 +91,7 @@ - + org.apache.maven.plugins @@ -216,7 +216,7 @@ - + diff --git a/src/main/resources/fhir/CodeSystem/dsf-hello-world.xml b/src/main/resources/fhir/CodeSystem/dsf-hello-world.xml index 0b76ea0..c90bcba 100644 --- a/src/main/resources/fhir/CodeSystem/dsf-hello-world.xml +++ b/src/main/resources/fhir/CodeSystem/dsf-hello-world.xml @@ -90,6 +90,11 @@ - + - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/src/main/resources/fhir/Questionnaire/dsf-hello-user.xml b/src/main/resources/fhir/Questionnaire/dsf-hello-user.xml index 842505a..f87831a 100644 --- a/src/main/resources/fhir/Questionnaire/dsf-hello-user.xml +++ b/src/main/resources/fhir/Questionnaire/dsf-hello-user.xml @@ -90,4 +90,16 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/fhir/StructureDefinition/dsf-task-hello-world.xml b/src/main/resources/fhir/StructureDefinition/dsf-task-hello-world.xml index 14424db..d567e20 100644 --- a/src/main/resources/fhir/StructureDefinition/dsf-task-hello-world.xml +++ b/src/main/resources/fhir/StructureDefinition/dsf-task-hello-world.xml @@ -545,5 +545,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/fhir/Task/dsf-task-hello-world.xml b/src/main/resources/fhir/Task/dsf-task-hello-world.xml index 9c87b56..77460fa 100644 --- a/src/main/resources/fhir/Task/dsf-task-hello-world.xml +++ b/src/main/resources/fhir/Task/dsf-task-hello-world.xml @@ -166,4 +166,19 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/java/dev/dsf/fhir/profile/TaskProfileTest.java b/src/test/java/dev/dsf/fhir/profile/TaskProfileTest.java index 031b488..af96017 100644 --- a/src/test/java/dev/dsf/fhir/profile/TaskProfileTest.java +++ b/src/test/java/dev/dsf/fhir/profile/TaskProfileTest.java @@ -15,6 +15,7 @@ import org.hl7.fhir.r4.model.Identifier; import org.hl7.fhir.r4.model.InstantType; import org.hl7.fhir.r4.model.IntegerType; +import org.hl7.fhir.r4.model.Quantity; import org.hl7.fhir.r4.model.Reference; import org.hl7.fhir.r4.model.ResourceType; import org.hl7.fhir.r4.model.StringType; @@ -102,6 +103,11 @@ public void testMaximalTaskHelloWorldValid() new Coding().setSystem("http://dsf.dev/fhir/CodeSystem/hello-world").setCode("coding-example")) .getType().addCoding( new Coding().setSystem("http://dsf.dev/fhir/CodeSystem/hello-world").setCode("coding-example")); + task.addInput() + .setValue(new Quantity().setSystem("http://unitsofmeasure.org").setCode("m").setUnit("m").setValue(1) + .setComparator(Quantity.QuantityComparator.LESS_OR_EQUAL)) + .getType().addCoding(new Coding().setSystem("http://dsf.dev/fhir/CodeSystem/hello-world") + .setCode("quantity-example")); ValidationResult result = resourceValidator.validate(task); ValidationSupportRule.logValidationMessages(logger, result);