Skip to content

Commit

Permalink
mandatory string and integer example input
Browse files Browse the repository at this point in the history
  • Loading branch information
wetret committed Jul 31, 2023
1 parent 563ef0f commit af378fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<element id="Task.input:string-example">
<path value="Task.input" />
<sliceName value="string-example" />
<min value="0" />
<min value="1" />
<max value="*" />
</element>
<element id="Task.input:string-example.type">
Expand Down Expand Up @@ -88,7 +88,7 @@
<element id="Task.input:integer-example">
<path value="Task.input" />
<sliceName value="integer-example" />
<min value="0" />
<min value="1" />
<max value="1" />
</element>
<element id="Task.input:integer-example.type">
Expand Down
9 changes: 5 additions & 4 deletions src/test/java/dev/dsf/fhir/profile/TaskProfileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ public void testMaximalTaskHelloWorldValid()
{
Task task = createValidTaskHelloWorld();

task.addInput().setValue(new StringType("string-value")).getType().addCoding(
new Coding().setSystem("http://dsf.dev/fhir/CodeSystem/hello-world").setCode("string-example"));
task.addInput().setValue(new IntegerType(1)).getType().addCoding(
new Coding().setSystem("http://dsf.dev/fhir/CodeSystem/hello-world").setCode("integer-example"));
task.addInput().setValue(new DecimalType(1.1)).getType().addCoding(
new Coding().setSystem("http://dsf.dev/fhir/CodeSystem/hello-world").setCode("decimal-example"));
task.addInput().setValue(new BooleanType(true)).getType().addCoding(
Expand Down Expand Up @@ -130,6 +126,11 @@ private Task createValidTaskHelloWorld()
task.addInput().setValue(new StringType(ConstantsHelloWorld.PROFILE_DSF_TASK_HELLO_WORLD_MESSAGE_NAME))
.getType().addCoding(CodeSystems.BpmnMessage.messageName());

task.addInput().setValue(new StringType("string-value")).getType().addCoding(
new Coding().setSystem("http://dsf.dev/fhir/CodeSystem/hello-world").setCode("string-example"));
task.addInput().setValue(new IntegerType(1)).getType().addCoding(
new Coding().setSystem("http://dsf.dev/fhir/CodeSystem/hello-world").setCode("integer-example"));

return task;
}

Expand Down

0 comments on commit af378fe

Please sign in to comment.