generated from inferno-framework/inferno-template
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FI-2460: Support for HL7 validator wrapper (#488)
* FI-2460: Start adding support for HL7 validator wrapper * Add cliContext with fields matching original validator settings * switch dockerfile to use ubuntu jammy instead of alpine * rework dockerfile to fetch release jar instead of completely rebuilding * add new env vars for HL7 validator, restore env vars for inferno validator * FI-2532: Add feature flag to toggle using HL7 validator wrapper (#497) * FI-2532: add feature flag to switch between inferno validator and hl7 validator wrapper * standardize name * default hl7 validator to false and comment out its services * use new inferno-resource-validator docker image, remove custom dockerfile * Fix HL7 validator wrapper version at 1.0.51 * Set env var so validator sessions never expire
- Loading branch information
Showing
15 changed files
with
382 additions
and
62 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,4 +1,6 @@ | ||
REDIS_URL=redis://redis:6379/0 | ||
G10_VALIDATOR_URL=http://validator_service:4567 | ||
VALIDATOR_URL=http://validator_service:4567 | ||
G10_FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500 | ||
FHIR_RESOURCE_VALIDATOR_URL=http://hl7_validator_service:3500 | ||
INFERNO_HOST=http://localhost |
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
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,10 +1,9 @@ | ||
module ONCCertificationG10TestKit | ||
module Feature | ||
class << self # rubocop:disable Lint/EmptyClass | ||
# This is how you can define feature flags to be used in the g10 test kit | ||
# def us_core_v4? | ||
# ENV.fetch('US_CORE_4_ENABLED', 'false')&.casecmp?('true') | ||
# end | ||
class << self | ||
def use_hl7_resource_validator? | ||
ENV.fetch('USE_HL7_RESOURCE_VALIDATOR', 'false')&.casecmp?('true') | ||
end | ||
end | ||
end | ||
end |
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,42 @@ | ||
{ | ||
"outcomes": [ | ||
{ | ||
"fileInfo": { | ||
"fileName": "manually_entered_file.json", | ||
"fileContent": "{\n \"resourceType\": \"Immunization\",\n \"subpotentReason\": [{\n \"coding\": [{\n \"system\": \"http://terminology.hl7.org/CodeSystem/immunization-subpotent-reason\",\n \"code\": \"partialdose\"\n }]\n }]\n}", | ||
"fileType": "json" | ||
}, | ||
"issues": [ | ||
{ | ||
"source": "TerminologyEngine", | ||
"server": null, | ||
"line": 3, | ||
"col": 4, | ||
"location": "Immunization.subpotentReason[0].coding[0].code", | ||
"message": "Unknown code 'partialdose' in the CodeSystem 'http://terminology.hl7.org/CodeSystem/immunization-subpotent-reason' version '1.0.0'", | ||
"messageId": null, | ||
"type": "CODEINVALID", | ||
"level": "ERROR", | ||
"html": "Unknown code 'partialdose' in the CodeSystem 'http://terminology.hl7.org/CodeSystem/immunization-subpotent-reason' version '1.0.0'", | ||
"locationLink": null, | ||
"txLink": null, | ||
"sliceHtml": null, | ||
"sliceText": null, | ||
"slicingHint": false, | ||
"signpost": false, | ||
"criticalSignpost": false, | ||
"ruleDate": null, | ||
"matched": false, | ||
"ignorableError": false, | ||
"invId": null, | ||
"comment": null, | ||
"sliceInfo": null, | ||
"error": true, | ||
"display": "ERROR: Immunization.subpotentReason[0].coding[0].code: Unknown code 'partialdose' in the CodeSystem 'http://terminology.hl7.org/CodeSystem/immunization-subpotent-reason' version '1.0.0'" | ||
} | ||
] | ||
} | ||
], | ||
"sessionId": "f4af8f4f-15d0-44f3-8401-dc9f9014aeaf", | ||
"validationTimes": {} | ||
} |
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,40 @@ | ||
{ | ||
"outcomes" : [ { | ||
"fileInfo" : { | ||
"fileName" : "manually_entered_file.json", | ||
"fileContent" : "{\n \"resourceType\": \"AllergyIntolerance\",\n \"clinicalStatus\": {\n \"coding\": [\n {\n \"system\": \"http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical\",\n \"code\": \"actives\",\n \"display\": \"Active\"\n }\n ]\n }\n}", | ||
"fileType" : "json" | ||
}, | ||
"issues" : [ | ||
{ | ||
"source" : "TerminologyEngine", | ||
"server" : null, | ||
"line" : 3, | ||
"col" : 4, | ||
"location" : "AllergyIntolerance.clinicalStatus", | ||
"message" : "None of the codings provided are in the value set 'AllergyIntolerance Clinical Status Codes' (http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1), and a coding from this value set is required) (codes = http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical#actives)", | ||
"messageId" : "Terminology_TX_NoValid_1_CC", | ||
"type" : "CODEINVALID", | ||
"level" : "ERROR", | ||
"html" : "None of the codings provided are in the value set 'AllergyIntolerance Clinical Status Codes' (http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1), and a coding from this value set is required) (codes = http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical#actives)", | ||
"locationLink" : null, | ||
"txLink" : null, | ||
"sliceHtml" : null, | ||
"sliceText" : null, | ||
"slicingHint" : false, | ||
"signpost" : false, | ||
"criticalSignpost" : false, | ||
"ruleDate" : null, | ||
"matched" : false, | ||
"ignorableError" : false, | ||
"invId" : null, | ||
"comment" : null, | ||
"sliceInfo" : null, | ||
"display" : "ERROR: AllergyIntolerance.clinicalStatus: None of the codings provided are in the value set 'AllergyIntolerance Clinical Status Codes' (http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1), and a coding from this value set is required) (codes = http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical#actives)", | ||
"error" : true | ||
} | ||
] | ||
} ], | ||
"sessionId" : "7c0cb248-4dd9-4063-9ed9-03623bbe221a", | ||
"validationTimes" : { } | ||
} |
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,38 @@ | ||
{ | ||
"outcomes" : [ { | ||
"fileInfo" : { | ||
"fileName" : "manually_entered_file.json", | ||
"fileContent" : "{\n \"resourceType\": \"Patient\",\n \n \"extension\": [ {\n \"url\": \"http://hl7.org/fhir/us/core/StructureDefinition/us-core-race\",\n \"extension\": [ {\n \"url\": \"ombCategory\",\n \"valueCoding\": {\n \"system\": \"urn:oid:2.16.840.1.113883.6.238\",\n \"code\": \"2299-0\",\n \"display\": \"Asian\"\n }\n }, {\n \"url\": \"text\",\n \"valueString\": \"Asian\"\n } ]\n }, \n {\n \"url\": \"http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity\",\n \"extension\": [ {\n \"url\": \"ombCategory\",\n \"valueCoding\": {\n \"system\": \"urn:oid:2.16.840.1.113883.6.238\",\n \"code\": \"2186-5\",\n \"display\": \"Not Hispanic or Latino\"\n }\n }, {\n \"url\": \"text\",\n \"valueString\": \"Not Hispanic or Latino\"\n } ]\n }\n ]\n}", | ||
"fileType" : "json" | ||
}, | ||
"issues" : [{ | ||
"source" : "TerminologyEngine", | ||
"server" : null, | ||
"line" : 8, | ||
"col" : 12, | ||
"location" : "Patient.extension[0].extension[0].value.ofType(Coding)", | ||
"message" : "The Coding provided (urn:oid:2.16.840.1.113883.6.238#2106-3) is not in the value set http://hl7.org/fhir/us/core/ValueSet/omb-race-category, and a code is required from this value set. (error message = Not in value set http://hl7.org/fhir/us/core/ValueSet/omb-race-category)", | ||
"messageId" : "Terminology_TX_Confirm_4a", | ||
"type" : "CODEINVALID", | ||
"level" : "ERROR", | ||
"html" : "The Coding provided (urn:oid:2.16.840.1.113883.6.238#2106-3) is not in the value set http://hl7.org/fhir/us/core/ValueSet/omb-race-category, and a code is required from this value set. (error message = Not in value set http://hl7.org/fhir/us/core/ValueSet/omb-race-category)", | ||
"locationLink" : null, | ||
"txLink" : null, | ||
"sliceHtml" : null, | ||
"sliceText" : null, | ||
"slicingHint" : false, | ||
"signpost" : false, | ||
"criticalSignpost" : false, | ||
"ruleDate" : null, | ||
"matched" : false, | ||
"ignorableError" : false, | ||
"invId" : null, | ||
"comment" : null, | ||
"sliceInfo" : null, | ||
"display" : "ERROR: Patient.extension[0].extension[0].value.ofType(Coding): The Coding provided (urn:oid:2.16.840.1.113883.6.238#2106-3) is not in the value set http://hl7.org/fhir/us/core/ValueSet/omb-race-category, and a code is required from this value set. (error message = Not in value set http://hl7.org/fhir/us/core/ValueSet/omb-race-category)", | ||
"error" : true | ||
}] | ||
} ], | ||
"sessionId" : "7c0cb248-4dd9-4063-9ed9-03623bbe221a", | ||
"validationTimes" : { } | ||
} |
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,38 @@ | ||
{ | ||
"outcomes" : [ { | ||
"fileInfo" : { | ||
"fileName" : "manually_entered_file.json", | ||
"fileContent" : "{ \"resourceType\": \"Patient\" }", | ||
"fileType" : "json" | ||
}, | ||
"issues" : [{ | ||
"source" : "InstanceValidator", | ||
"server" : null, | ||
"line" : 1, | ||
"col" : 30, | ||
"location" : "Patient", | ||
"message" : "Patient.name: minimum required = 1, but only found 0 (from http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|3.1.1)", | ||
"messageId" : "Validation_VAL_Profile_Minimum", | ||
"type" : "STRUCTURE", | ||
"level" : "ERROR", | ||
"html" : "Patient.name: minimum required = 1, but only found 0 (from http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|3.1.1)", | ||
"locationLink" : null, | ||
"txLink" : null, | ||
"sliceHtml" : null, | ||
"sliceText" : null, | ||
"slicingHint" : false, | ||
"signpost" : false, | ||
"criticalSignpost" : false, | ||
"ruleDate" : null, | ||
"matched" : false, | ||
"ignorableError" : false, | ||
"invId" : null, | ||
"comment" : null, | ||
"sliceInfo" : null, | ||
"display" : "ERROR: Patient: Patient.name: minimum required = 1, but only found 0 (from http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|3.1.1)", | ||
"error" : true | ||
} ] | ||
} ], | ||
"sessionId" : "4d9d2dc3-5df1-461f-a4d6-bfc2788a1933", | ||
"validationTimes" : { } | ||
} |
Oops, something went wrong.