Skip to content

Commit

Permalink
Bump core version + update tests (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek authored Nov 20, 2024
1 parent 8823e1c commit 78fd3a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
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"))
});
%}

0 comments on commit 78fd3a3

Please sign in to comment.