Skip to content

Commit 2e72673

Browse files
author
Noa Junod
committed
add analyzeOutcomeWithAIOnError to docs
1 parent 216042c commit 2e72673

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

docs/matchbox-server.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ They can be set in the Spring configuration (e.g. `application.properties`/`appl
1818
| `matchbox.fhir.context.suppressWarnInfo` | `{}` | The list of warnings/infos to suppress in validation reports. See [_Suppress warning/information-level issues in validation_](validation.md#suppress-warnings). |
1919
| `matchbox.fhir.context.httpReadOnly` | `false` | Whether the server is in read-only mode or not. See the section [_Read-only mode_](#read-only) below. |
2020
| `matchbox.fhir.context.extensions` | `any` | The list of domains allowed in extensions while validating resources; `any` will allow all extensions. |
21-
| `matchbox.fhir.context.analyzeOutcomeWithAI` | `false` | Whether the validation outcome should be analyzed by a LLM or not. Requires the LLM parameters to be correctly set. |
21+
| `matchbox.fhir.context.analyzeOutcomeWithAI` | | Whether the validation outcome should be analyzed by a LLM or not. Requires the LLM parameters to be correctly set. |
22+
| `matchbox.fhir.context.analyzeOutcomeWithAIOnError` | | Whether the validation outcome should be analyzed by a LLM, when it includes `error` or `fatal` issues, or not. Requires the LLM parameters to be correctly set. |
2223
| `matchbox.fhir.context.llm.provider` | | The LLM provider used for the AI analysis of validation. |
2324
| `matchbox.fhir.context.llm.modelName` | | The LLM model used for the AI analysis of validation. |
2425
| `matchbox.fhir.context.llm.apiKey` | | Your API key for the desired LLM provider. |
@@ -37,6 +38,7 @@ matchbox:
3738
ch.fhir.ig.ch-elm:
3839
- "regex:Binding for path (.+) has no source, so can't be checked"
3940
- "regex:None of the codings provided are in the value set 'Observation Interpretation Codes'(.*)"
41+
analyzeOutcomeWithAIOnError: true
4042
llm:
4143
provider: anthropic
4244
modelName: claude-3-5-sonnet-20241022
@@ -153,4 +155,18 @@ Supported LLMs:
153155
| [OpenAI](https://openai.com/index/openai-api/) (`openai`) | `gpt-4o-mini` | `gpt-3.5-turbo`, `gpt-4`, `gpt-4o`, `gpt-4o-mini` |
154156
| [Anthropic](https://www.anthropic.com/api) (`anthropic`)| `claude-3-5-sonnet-20241022` | `claude-3-5-sonnet-20241022`, `claude-3-5-haiku-20241022`, `claude-3-sonnet-20240229`, `claude-3-opus-20240229`|
155157

156-
To use this feature, `analyzeOutcomeWithAI` must be set to `true` by the user in the validation settings.
158+
To use this feature, `analyzeOutcomeWithAI` or `analyzeOutcomeWithAIOnError` must be set to `true` by the user in the validation settings.
159+
160+
Setting `analyzeOutcomeWithAIOnError` to `true` will perform the AI analysis on all validations that include issues labeled `error` or `fatal`. Setting `analyzeOutcomeWithAI` to `false` will overwrite `analyzeOutcomeWithAIOnError` and the analysis is not performed. Check the following table for an overview.
161+
162+
| analyzeOutcomeWithAIOnError | analyzeOutcomeWithAI | Errors in validation | Perform analysis |
163+
| --------------------------- | -------------------- | -------------------- | ---------------- |
164+
| `false` | `false` | \- | no |
165+
| `false` | \- | \- | no |
166+
| `false` | `true` | \- | yes |
167+
| `true` | `false` | no | no |
168+
| `true` | `false` | yes | no |
169+
| `true` | \- | no | no |
170+
| `true` | \- | yes | yes |
171+
| `true` | `true` | no | yes |
172+
| `true` | `true` | yes | yes |

docs/validation.md

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ matchbox:
7171
suppressWarnInfo:
7272
hl7.fhir.r4.core#4.0.1:
7373
#- "Constraint failed: dom-6:"
74+
#analyzeOutcomeWithAIOnError: true
7475
#llm:
7576
# provider: anthropic
7677
# modelName: claude-3-5-sonnet-20241022

0 commit comments

Comments
 (0)