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-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
- Loading branch information
Showing
14 changed files
with
403 additions
and
118 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
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": {} | ||
} |
Oops, something went wrong.