From 3d9a318e3315a31284769aececc9ff356dcdec99 Mon Sep 17 00:00:00 2001 From: Etienne Poirier <33007955+epeartree@users.noreply.github.com> Date: Thu, 9 Feb 2023 09:47:14 -0500 Subject: [PATCH] Making narrative_generation.md reference an html snippet (#4531) Co-authored-by: peartree --- .../fhir/docs/model/narrative_generation.md | 4 ++-- .../fhir/docs/snippet/OperationOutcome.html | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/snippet/OperationOutcome.html diff --git a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/model/narrative_generation.md b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/model/narrative_generation.md index adbf3f6929b..2dbe698260f 100644 --- a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/model/narrative_generation.md +++ b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/model/narrative_generation.md @@ -54,8 +54,8 @@ Note that these templates expect a few specific CSS definitions to be present in To use your own templates for narrative generation, simply create one or more templates, using the Thymeleaf HTML based syntax. -```java -{{snippet:classpath:/ca/uhn/fhir/narrative/OperationOutcome.html}} +```html +{{snippet:classpath:/ca/uhn/hapi/fhir/docs/snippet/OperationOutcome.html}} ``` Then create a properties file which describes your templates. In this properties file, each resource to be defined has a pair or properties. diff --git a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/snippet/OperationOutcome.html b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/snippet/OperationOutcome.html new file mode 100644 index 00000000000..35d2d07e0ba --- /dev/null +++ b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/snippet/OperationOutcome.html @@ -0,0 +1,23 @@ + + + + + + + +
+

Operation Outcome

+ + + + + + +
+
+ + + + + +