Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump core version + update tests #194

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kotlin.code.style=official
kotlin.js.generate.executable.default=false

# versions
fhirCoreVersion= 6.3.32
fhirCoreVersion= 6.4.2

junitVersion=5.7.1
mockk_version=1.10.2
Expand Down
13 changes: 8 additions & 5 deletions http-client-tests/tests/explicit-queries.http
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Content-Type: application/json
### US-CDA
# @name US-CDA
# Check that a request with explicit IG settings returns an expected response
# @timeout 120
POST {{host}}/validate
Content-Type: application/json

Expand All @@ -73,6 +74,7 @@ Content-Type: application/json

### IPS
# @name IPS
# @timeout 120
POST {{host}}/validate
Content-Type: application/json

Expand All @@ -86,7 +88,7 @@ Content-Type: application/json
client.test("Issues are Correct", function() {
let issues = response.body.outcomes[0].issues
client.log("issues:" + issues.length)
client.assert(issues.length === 45);
client.assert(issues.length === 44);
client.assert(containsIssue(issues, 1, 2, "The Snomed CT code 373270004 (Substance with penicillin structure and antibacterial mechanism of action) is not a member of the IPS free set", "BUSINESSRULE", "INFORMATION"))
client.assert(containsIssue(issues, 1, 2, "The Snomed CT code 108774000 (Product containing anastrozole (medicinal product)) is not a member of the IPS free set", "BUSINESSRULE", "INFORMATION"))

Expand All @@ -98,6 +100,7 @@ Content-Type: application/json

### IPS-AU
# @name IPS-AU
# @timeout 120
POST {{host}}/validate
Content-Type: application/json

Expand All @@ -111,7 +114,7 @@ Content-Type: application/json
client.test("Issues are Correct", function() {
let issues = response.body.outcomes[0].issues
client.log("issues:" + issues.length)
client.assert(issues.length === 53);
client.assert(issues.length === 49);
client.assert(containsIssue(issues, 1, 2, "The Snomed CT code 373270004 (Substance with penicillin structure and antibacterial mechanism of action) is not a member of the IPS free set", "BUSINESSRULE", "INFORMATION"))
client.assert(containsIssue(issues, 1, 2, "The Snomed CT code 108774000 (Product containing anastrozole (medicinal product)) is not a member of the IPS free set", "BUSINESSRULE", "INFORMATION"))
client.assert(containsIssue(issues, 314, 4, "This element does not match any known slice defined in the profile http://hl7.org.au/fhir/ips/StructureDefinition/Bundle-au-ips|0.0.1 (this may not be a problem, but you should check that it's not intended to match a slice)", "INFORMATIONAL", "INFORMATION"))
Expand Down Expand Up @@ -156,8 +159,8 @@ Content-Type: application/json
let issues = response.body.outcomes[0].issues
client.log("issues:" + issues.length)
client.assert(issues.length === 3);
client.assert(containsIssue(issues, 20, 21, "The column 'use' appears to be a collection based on it's path. Collections are not supported in all execution contexts", "BUSINESSRULE", "WARNING"))
client.assert(containsIssue(issues, 24, 21, "The column 'city' appears to be a collection based on it's path. Collections are not supported in all execution contexts", "BUSINESSRULE", "WARNING"))
client.assert(containsIssue(issues, 28, 21, "The column 'zip' appears to be a collection based on it's path. Collections are not supported in all execution contexts", "BUSINESSRULE", "WARNING"))
client.assert(containsIssue(issues, 19, 11, "This column is not defined as a collection, but the path statement 'use' might return multiple values for the column 'use' for some inputs", "BUSINESSRULE", "WARNING"))
client.assert(containsIssue(issues, 23, 11, "This column is not defined as a collection, but the path statement 'city' might return multiple values for the column 'city' for some inputs", "BUSINESSRULE", "WARNING"))
client.assert(containsIssue(issues, 27, 11, "This column is not defined as a collection, but the path statement 'postalCode' might return multiple values for the column 'zip' for some inputs", "BUSINESSRULE", "WARNING"))
});
%}
8 changes: 4 additions & 4 deletions http-client-tests/tests/preset-queries.http
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ Content-Type: application/json
client.test("Issues are Correct", function() {
let issues = response.body.outcomes[0].issues
client.log("issues:" + issues.length)
client.assert(issues.length === 8);
client.assert(containsIssue(issues, 20, 21, "The column 'use' appears to be a collection based on it's path. Collections are not supported in all execution contexts", "BUSINESSRULE", "WARNING"))
client.assert(containsIssue(issues, 24, 21, "The column 'city' appears to be a collection based on it's path. Collections are not supported in all execution contexts", "BUSINESSRULE", "WARNING"))
client.assert(containsIssue(issues, 28, 21, "The column 'zip' appears to be a collection based on it's path. Collections are not supported in all execution contexts", "BUSINESSRULE", "WARNING"))
client.assert(issues.length === 3);
client.assert(containsIssue(issues, 19, 11, "This column is not defined as a collection, but the path statement 'use' might return multiple values for the column 'use' for some inputs", "BUSINESSRULE", "WARNING"))
client.assert(containsIssue(issues, 23, 11, "This column is not defined as a collection, but the path statement 'city' might return multiple values for the column 'city' for some inputs", "BUSINESSRULE", "WARNING"))
client.assert(containsIssue(issues, 27, 11, "This column is not defined as a collection, but the path statement 'postalCode' might return multiple values for the column 'zip' for some inputs", "BUSINESSRULE", "WARNING"))
});
%}
Loading