diff --git a/prime-router/docs/schema_documentation/az-az-covid-19-hl7.md b/prime-router/docs/schema_documentation/az-az-covid-19-hl7.md index 71f67045130..8c0526e33c7 100644 --- a/prime-router/docs/schema_documentation/az-az-covid-19-hl7.md +++ b/prime-router/docs/schema_documentation/az-az-covid-19-hl7.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/co-co-covid-19-redox.md b/prime-router/docs/schema_documentation/co-co-covid-19-redox.md index aefdc534af5..c6941514d53 100644 --- a/prime-router/docs/schema_documentation/co-co-covid-19-redox.md +++ b/prime-router/docs/schema_documentation/co-co-covid-19-redox.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/covid-19-gaen.md b/prime-router/docs/schema_documentation/covid-19-gaen.md index 63d57a44dfd..9a42986bf67 100644 --- a/prime-router/docs/schema_documentation/covid-19-gaen.md +++ b/prime-router/docs/schema_documentation/covid-19-gaen.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/covid-19-redox.md b/prime-router/docs/schema_documentation/covid-19-redox.md index 06d366473bd..7972267f96f 100644 --- a/prime-router/docs/schema_documentation/covid-19-redox.md +++ b/prime-router/docs/schema_documentation/covid-19-redox.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/covid-19.md b/prime-router/docs/schema_documentation/covid-19.md index 2e8afc0b774..213bf80d876 100644 --- a/prime-router/docs/schema_documentation/covid-19.md +++ b/prime-router/docs/schema_documentation/covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/direct-careevolution-covid-19.md b/prime-router/docs/schema_documentation/direct-careevolution-covid-19.md index 77533d11ef5..9c2d2faa59e 100644 --- a/prime-router/docs/schema_documentation/direct-careevolution-covid-19.md +++ b/prime-router/docs/schema_documentation/direct-careevolution-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/direct-hca-covid-19.md b/prime-router/docs/schema_documentation/direct-hca-covid-19.md index d8f54efb5bf..03ef4e8ed4b 100644 --- a/prime-router/docs/schema_documentation/direct-hca-covid-19.md +++ b/prime-router/docs/schema_documentation/direct-hca-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/fl-fl-covid-19.md b/prime-router/docs/schema_documentation/fl-fl-covid-19.md index a9ccf6bae4a..a503bb99d2f 100644 --- a/prime-router/docs/schema_documentation/fl-fl-covid-19.md +++ b/prime-router/docs/schema_documentation/fl-fl-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/gu-gu-covid-19.md b/prime-router/docs/schema_documentation/gu-gu-covid-19.md index 356876c86fd..8073ad55be6 100644 --- a/prime-router/docs/schema_documentation/gu-gu-covid-19.md +++ b/prime-router/docs/schema_documentation/gu-gu-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/hl7-hl7-ingest-covid-19.md b/prime-router/docs/schema_documentation/hl7-hl7-ingest-covid-19.md index 45ac043b589..89ed69da645 100644 --- a/prime-router/docs/schema_documentation/hl7-hl7-ingest-covid-19.md +++ b/prime-router/docs/schema_documentation/hl7-hl7-ingest-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/hl7-lifepoint-covid-19.md b/prime-router/docs/schema_documentation/hl7-lifepoint-covid-19.md index 1889e9f8e63..650d36b1bdd 100644 --- a/prime-router/docs/schema_documentation/hl7-lifepoint-covid-19.md +++ b/prime-router/docs/schema_documentation/hl7-lifepoint-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/hl7-prescryptive-covid-19.md b/prime-router/docs/schema_documentation/hl7-prescryptive-covid-19.md index 8bb7523f6e7..edb63fde1e3 100644 --- a/prime-router/docs/schema_documentation/hl7-prescryptive-covid-19.md +++ b/prime-router/docs/schema_documentation/hl7-prescryptive-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/hl7-primary-covid-19.md b/prime-router/docs/schema_documentation/hl7-primary-covid-19.md index dcd22632ee3..9175d222c8f 100644 --- a/prime-router/docs/schema_documentation/hl7-primary-covid-19.md +++ b/prime-router/docs/schema_documentation/hl7-primary-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/hl7-test-covid-19.md b/prime-router/docs/schema_documentation/hl7-test-covid-19.md index d89cce60003..d799f00dd8f 100644 --- a/prime-router/docs/schema_documentation/hl7-test-covid-19.md +++ b/prime-router/docs/schema_documentation/hl7-test-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/la-la-covid-19.md b/prime-router/docs/schema_documentation/la-la-covid-19.md index 525e96cce3e..cd1c663c42d 100644 --- a/prime-router/docs/schema_documentation/la-la-covid-19.md +++ b/prime-router/docs/schema_documentation/la-la-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/mt-mt-covid-19.md b/prime-router/docs/schema_documentation/mt-mt-covid-19.md index 0406502c93e..7f893168b84 100644 --- a/prime-router/docs/schema_documentation/mt-mt-covid-19.md +++ b/prime-router/docs/schema_documentation/mt-mt-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/nd-nd-covid-19.md b/prime-router/docs/schema_documentation/nd-nd-covid-19.md index 43a7299e651..6f6df5587e9 100644 --- a/prime-router/docs/schema_documentation/nd-nd-covid-19.md +++ b/prime-router/docs/schema_documentation/nd-nd-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/nm-nm-covid-19.md b/prime-router/docs/schema_documentation/nm-nm-covid-19.md index 7433ecc71d7..d41a3f93810 100644 --- a/prime-router/docs/schema_documentation/nm-nm-covid-19.md +++ b/prime-router/docs/schema_documentation/nm-nm-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/oh-oh-covid-19.md b/prime-router/docs/schema_documentation/oh-oh-covid-19.md index 2805c520f6a..96dcc1922cd 100644 --- a/prime-router/docs/schema_documentation/oh-oh-covid-19.md +++ b/prime-router/docs/schema_documentation/oh-oh-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/or-or-covid-19-hl7.md b/prime-router/docs/schema_documentation/or-or-covid-19-hl7.md index 93ab29eaa40..230e7a4ff1e 100644 --- a/prime-router/docs/schema_documentation/or-or-covid-19-hl7.md +++ b/prime-router/docs/schema_documentation/or-or-covid-19-hl7.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/pa-pa-covid-19-hl7.md b/prime-router/docs/schema_documentation/pa-pa-covid-19-hl7.md index 5b2d03cb06f..a614bf30292 100644 --- a/prime-router/docs/schema_documentation/pa-pa-covid-19-hl7.md +++ b/prime-router/docs/schema_documentation/pa-pa-covid-19-hl7.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/pa-pa-covid-19-redox.md b/prime-router/docs/schema_documentation/pa-pa-covid-19-redox.md index 81e5f297e63..e0ad29aeea0 100644 --- a/prime-router/docs/schema_documentation/pa-pa-covid-19-redox.md +++ b/prime-router/docs/schema_documentation/pa-pa-covid-19-redox.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/primedatainput-pdi-covid-19.md b/prime-router/docs/schema_documentation/primedatainput-pdi-covid-19.md index 2be6d9ce858..9eafb3c8829 100644 --- a/prime-router/docs/schema_documentation/primedatainput-pdi-covid-19.md +++ b/prime-router/docs/schema_documentation/primedatainput-pdi-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/standard-standard-covid-19.md b/prime-router/docs/schema_documentation/standard-standard-covid-19.md index d9677bcac49..717839cf436 100644 --- a/prime-router/docs/schema_documentation/standard-standard-covid-19.md +++ b/prime-router/docs/schema_documentation/standard-standard-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/strac-strac-covid-19.md b/prime-router/docs/schema_documentation/strac-strac-covid-19.md index d562f77238a..fc411b5cc27 100644 --- a/prime-router/docs/schema_documentation/strac-strac-covid-19.md +++ b/prime-router/docs/schema_documentation/strac-strac-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/tpca-tpca-covid-19.md b/prime-router/docs/schema_documentation/tpca-tpca-covid-19.md index f6959169a06..745ee981d6e 100644 --- a/prime-router/docs/schema_documentation/tpca-tpca-covid-19.md +++ b/prime-router/docs/schema_documentation/tpca-tpca-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/tx-tx-covid-19.md b/prime-router/docs/schema_documentation/tx-tx-covid-19.md index 64ef7fe703e..73cf30b8dd5 100644 --- a/prime-router/docs/schema_documentation/tx-tx-covid-19.md +++ b/prime-router/docs/schema_documentation/tx-tx-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/vt-vt-covid-19.md b/prime-router/docs/schema_documentation/vt-vt-covid-19.md index ace494db9e0..1735fe80017 100644 --- a/prime-router/docs/schema_documentation/vt-vt-covid-19.md +++ b/prime-router/docs/schema_documentation/vt-vt-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/docs/schema_documentation/waters-waters-covid-19.md b/prime-router/docs/schema_documentation/waters-waters-covid-19.md index 48db31549b5..ee5a3c752f5 100644 --- a/prime-router/docs/schema_documentation/waters-waters-covid-19.md +++ b/prime-router/docs/schema_documentation/waters-waters-covid-19.md @@ -17,7 +17,7 @@ Code | Display ---- | ------- A|Abnormal (applies to non-numeric results) ->|Above absolute high-off instrument scale +>|Above absolute high-off instrument scale H|Above high normal HH|Above upper panic limits AC|Anti-complementary substances present diff --git a/prime-router/src/main/kotlin/DocumentationFactory.kt b/prime-router/src/main/kotlin/DocumentationFactory.kt index 722f5d7a669..331ad14b101 100644 --- a/prime-router/src/main/kotlin/DocumentationFactory.kt +++ b/prime-router/src/main/kotlin/DocumentationFactory.kt @@ -197,7 +197,8 @@ ${element.documentation} appendable.appendLine("---- | -------") values.forEach { vs -> - appendable.appendLine("${vs.code}|${vs.display}") + val code = if (vs.code == ">") ">" else vs.code // This to solve the markdown blockquote '>' + appendable.appendLine("$code|${vs.display}") } appendable.appendLine("") } diff --git a/prime-router/src/test/kotlin/DocumentationTests.kt b/prime-router/src/test/kotlin/DocumentationTests.kt index 6bdc826da7f..6af1f90631e 100644 --- a/prime-router/src/test/kotlin/DocumentationTests.kt +++ b/prime-router/src/test/kotlin/DocumentationTests.kt @@ -79,4 +79,35 @@ $documentation val actual = DocumentationFactory.getElementDocumentation(elemWithDocumentation) assertThat(actual).isEqualTo(expected) } + + @Test + fun `test documentation for element with type CODE and valueSet table with special char`() { + + val valueSetA = ValueSet( + "a", + ValueSet.SetSystem.HL7, + values = listOf(ValueSet.Value(">", "Above absolute high-off instrument scale")) + ) + + val elemWithTypeCode = Element(name = "a", type = Element.Type.CODE, valueSetRef = valueSetA) + val expected = """ +**Name**: a + +**Type**: CODE + +**PII**: No + +**Cardinality**: [0..1] + +**Value Sets** + +Code | Display +---- | ------- +>|Above absolute high-off instrument scale + +--- +""" + val actual = DocumentationFactory.getElementDocumentation(elemWithTypeCode) + assertThat(actual).isEqualTo(expected) + } } \ No newline at end of file