Skip to content

Commit

Permalink
Remove IPS-NZ preset
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek committed Nov 21, 2024
1 parent d580f06 commit 243c20f
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 3,166 deletions.
29 changes: 0 additions & 29 deletions http-client-tests/resources/explicit-preset-requests/ips-nz.json

This file was deleted.

16 changes: 0 additions & 16 deletions http-client-tests/resources/preset-requests/ips-nz.json

This file was deleted.

6 changes: 0 additions & 6 deletions http-client-tests/resources/sources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ Validating through CDA and CCDA will give slightly different results.

This was taken directly from https://build.fhir.org/ig/HL7/fhir-ips/Bundle-bundle-minimal.json.html

# iss-nz.json

This was taken from the confluence page for the NZ IPS: https://confluence.hl7.org/display/HNZ/8.+NZ+Patient+Summary+%28NZPS%29+profiling+test+track?focusedCommentId=208470365

Specifically downloaded from this link: https://terminz.azurewebsites.net/fhir/Patient/$summary?profile=http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-uv-ips&identifier=https://standards.digital.health.nz/ns/nhi-id|ZKT9319&_format=json

# sql-on-fhir

This was taken directly from the simple example on https://build.fhir.org/ig/FHIR/sql-on-fhir-v2/ but with the additional
Expand Down
3,044 changes: 0 additions & 3,044 deletions http-client-tests/resources/sources/ips-nz.json

This file was deleted.

20 changes: 0 additions & 20 deletions http-client-tests/tests/explicit-queries.http
Original file line number Diff line number Diff line change
Expand Up @@ -122,26 +122,6 @@ Content-Type: application/json
});
%}

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

< ../resources/explicit-preset-requests/ips-nz.json

> {%
client.test("Validated Successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
import { containsIssue } from "../utilities/assertions";
client.test("Issues are Correct", function() {
let issues = response.body.outcomes[0].issues
client.log("issues:" + issues.length)
client.assert(issues.length === 100);
client.assert(containsIssue(issues, 12,10,"This element does not match any known slice defined in the profile https://standards.digital.health.nz/fhir/StructureDefinition/nzps-bundle|0.3.0 (this may not be a problem, but you should check that it's not intended to match a slice)", "INFORMATIONAL", "INFORMATION"))
});
%}

### SQL-ON-FHIR
# @name SQL-ON-FHIR
# Check that a request with explicit IG settings returns an expected response
Expand Down
20 changes: 0 additions & 20 deletions http-client-tests/tests/preset-queries.http
Original file line number Diff line number Diff line change
Expand Up @@ -120,26 +120,6 @@ Content-Type: application/json
});
%}

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

< ../resources/preset-requests/ips-nz.json

> {%
client.test("Validated Successfully", function() {
client.assert(response.status === 200, "Response status is not 200");
});
import { containsIssue } from "../utilities/assertions";
client.test("Issues are Correct", function() {
let issues = response.body.outcomes[0].issues
client.log("issues:" + issues.length)
client.assert(issues.length === 100);
client.assert(containsIssue(issues, 12,10,"This element does not match any known slice defined in the profile https://standards.digital.health.nz/fhir/StructureDefinition/nzps-bundle|0.3.0 (this may not be a problem, but you should check that it's not intended to match a slice)", "INFORMATIONAL", "INFORMATION"))
});
%}

### SQL-ON-FHIR
# @name SQL-ON-FHIR
# Check that a request with explicit IG settings returns an expected response
Expand Down
31 changes: 0 additions & 31 deletions src/commonMain/kotlin/constants/Preset.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ val IPS_AU_IG = PackageInfo(
"http://hl7.org.au/fhir/ips/ImplementationGuide/hl7.fhir.au.ips"
)

val IPS_NZ_IG = PackageInfo(
"tewhatuora.fhir.nzps",
"current",
"4.0.1",
"https://standards.digital.health.nz/ImplementationGuide/tewhatuora.fhir.ig.fhir-nzps"
)

val CDA_IG = PackageInfo(
"hl7.cda.uv.core",
"2.0.0-sd-snapshot1",
Expand All @@ -55,8 +48,6 @@ val IPS_BUNDLE_PROFILE = "http://hl7.org/fhir/uv/ips/StructureDefinition/Bundle-

val IPS_AU_BUNDLE_PROFILE = "http://hl7.org.au/fhir/ips/StructureDefinition/Bundle-au-ips"

val IPS_NZ_BUNDLE_PROFILE = "https://standards.digital.health.nz/fhir/StructureDefinition/nzps-bundle"

val IPS_CONTEXT = CliContext()
.setBaseEngine("IPS")
.setSv("4.0.1")
Expand All @@ -81,20 +72,6 @@ val IPS_AU_CONTEXT = CliContext()
.setProfile("http://hl7.org.au/fhir/ips/StructureDefinition/Composition-au-ips")
))

val IPS_NZ_CONTEXT = CliContext()
.setBaseEngine("IPS_NZ")
.setSv("4.0.1")
.addIg(PackageInfo.igLookupString(IPS_NZ_IG))
.setProfiles(listOf(IPS_NZ_BUNDLE_PROFILE))
.setExtensions(listOf(ANY_EXTENSION))
.setCheckIPSCodes(true)
.setBundleValidationRules(listOf(
BundleValidationRule()
.setRule("Composition:0")
.setProfile("https://standards.digital.health.nz/fhir/StructureDefinition/nzps-composition")
))


val CDA_CONTEXT = CliContext()
.setBaseEngine("CDA")
.setSv("5.0.0")
Expand Down Expand Up @@ -151,14 +128,6 @@ enum class Preset(
setOf(ANY_EXTENSION),
setOf(IPS_AU_BUNDLE_PROFILE)
),
IPS_NZ(
"IPS_NZ",
"preset_ips_nz",
IPS_NZ_CONTEXT,
setOf(IPS_NZ_IG),
setOf(ANY_EXTENSION),
setOf(IPS_NZ_BUNDLE_PROFILE)
),
CDA(
"CDA",
"present_cda",
Expand Down

0 comments on commit 243c20f

Please sign in to comment.