-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass Validation Simple Terminology Tests
Closes: #2292
- Loading branch information
1 parent
73d3da0
commit e8b459a
Showing
117 changed files
with
6,386 additions
and
2,738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash -e | ||
|
||
VERSION="1.0.60" | ||
VERSION="1.0.61" | ||
|
||
curl -sLO "https://github.com/hapifhir/org.hl7.fhir.validator-wrapper/releases/download/$VERSION/validator_cli.jar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/bin/bash -e | ||
|
||
java -jar validator_cli.jar -txTests -version 4.0.1 \ | ||
java -jar validator_cli.jar -txTests -version current \ | ||
-tx http://localhost:8080/fhir \ | ||
-source fhir-tx-ecosystem-ig/tests \ | ||
-output .github/terminology-tests/output \ | ||
-mode flat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
java -jar validator_cli.jar -txTests -version current \ | ||
-tx http://localhost:8080/fhir \ | ||
-output .github/terminology-tests/output \ | ||
-mode flat \ | ||
-filter good |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,7 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" | ||
|
||
# remove test cases that need the R5 representation of the ValueSet resource | ||
jq -f "$SCRIPT_DIR/remove-r5-tests.jq" fhir-tx-ecosystem-ig/tests/test-cases.json > fhir-tx-ecosystem-ig/tests/test-cases-new.json | ||
mv fhir-tx-ecosystem-ig/tests/test-cases-new.json fhir-tx-ecosystem-ig/tests/test-cases.json | ||
|
||
java -jar validator_cli.jar -txTests -version 4.0.1 \ | ||
java -jar validator_cli.jar -txTests -version current \ | ||
-tx http://localhost:8080/fhir \ | ||
-source fhir-tx-ecosystem-ig/tests \ | ||
-output .github/terminology-tests/output \ | ||
-mode flat \ | ||
-filter parameters-expand | ||
|
||
exit $((! $?)) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
#!/bin/bash | ||
|
||
java -jar validator_cli.jar -txTests -version 4.0.1 \ | ||
java -jar validator_cli.jar -txTests -version current \ | ||
-tx http://localhost:8080/fhir \ | ||
-source fhir-tx-ecosystem-ig/tests \ | ||
-output .github/terminology-tests/output \ | ||
-mode flat \ | ||
-filter simple-expand | ||
|
||
exit $((! $?)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
#!/bin/bash | ||
|
||
java -jar validator_cli.jar -txTests -version 4.0.1 \ | ||
java -jar validator_cli.jar -txTests -version current \ | ||
-tx http://localhost:8080/fhir \ | ||
-source fhir-tx-ecosystem-ig/tests \ | ||
-output .github/terminology-tests/output \ | ||
-mode flat \ | ||
-filter validation-simple | ||
|
||
exit $((! $?)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"dependencies": { | ||
"fsh-sushi": "^3.13.1" | ||
"fsh-sushi": "^3.14.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(ns blaze.fhir.util | ||
(:require | ||
[blaze.fhir.spec.type :as type])) | ||
|
||
(defn parameters [& nvs] | ||
{:fhir/type :fhir/Parameters | ||
:parameter | ||
(into | ||
[] | ||
(keep | ||
(fn [[name value]] | ||
(when (some? value) | ||
{:fhir/type :fhir.Parameters/parameter | ||
:name (type/string name) | ||
(if (:fhir/type value) :resource :value) value}))) | ||
(partition 2 nvs))}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
(ns blaze.fhir.util-test | ||
(:require | ||
[blaze.fhir.util :as u] | ||
[blaze.test-util :as tu] | ||
[clojure.spec.test.alpha :as st] | ||
[clojure.test :as test :refer [deftest]] | ||
[juxt.iota :refer [given]])) | ||
|
||
(st/instrument) | ||
|
||
(test/use-fixtures :each tu/fixture) | ||
|
||
(deftest parameters-test | ||
(given (u/parameters) | ||
:fhir/type := :fhir/Parameters | ||
:parameter :? empty?) | ||
|
||
(given (u/parameters "foo" #fhir/string"bar") | ||
:fhir/type := :fhir/Parameters | ||
[:parameter 0 :name] := #fhir/string"foo" | ||
[:parameter 0 :value] := #fhir/string"bar") | ||
|
||
(given (u/parameters "foo" nil) | ||
:fhir/type := :fhir/Parameters | ||
:parameter :? empty?) | ||
|
||
(given (u/parameters "foo" {:fhir/type :fhir/ValueSet}) | ||
:fhir/type := :fhir/Parameters | ||
[:parameter 0 :name] := #fhir/string"foo" | ||
[:parameter 0 :resource] := {:fhir/type :fhir/ValueSet})) |
Oops, something went wrong.