From 683a034134e2add6c1fee4c29c8a4d6c6d3aea63 Mon Sep 17 00:00:00 2001 From: Julia Afeltra <30803904+jafeltra@users.noreply.github.com> Date: Wed, 7 Feb 2024 09:01:30 -0500 Subject: [PATCH] Logical model examples without resourceType or id (#86) * Logical model examples without resource type or id * Use updated ig resource format extension url * Use full canonical URL for resourceType. Add id element * Use id data type for id element --- content/docs/SUSHI/tips/_index.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/content/docs/SUSHI/tips/_index.md b/content/docs/SUSHI/tips/_index.md index 31bce7b..65fcab7 100644 --- a/content/docs/SUSHI/tips/_index.md +++ b/content/docs/SUSHI/tips/_index.md @@ -120,14 +120,15 @@ Logical: MyLM Id: MyLM Title: "My LM" Description: "This is mine" -* important 1..1 SU boolean "Is this resource important" +* id 1..1 SU id "Identifier for the logical model" +* important 1..1 SU boolean "Is this logical model important" ``` Create the file `input/examples/Binary-my-logical-example.json`: ```json { - "resourceType": "MyLM", + "resourceType": "http://example.org/StructureDefinition/MyLM", "id": "my-logical-example", "important": true } @@ -139,7 +140,7 @@ And add the following in your `sushi-config.yaml`: resources: Binary/my-logical-example: extension: - - url: http://hl7.org/fhir/StructureDefinition/implementationguide-resource-format + - url: http://hl7.org/fhir/tools/StructureDefinition/implementationguide-resource-format valueCode: application/fhir+json name: Example of LM exampleCanonical: http://example.org/StructureDefinition/MyLM @@ -147,6 +148,11 @@ resources: Both approaches will result in your logical model example being listed and displayed as a proper example of the logical model. +If the logical model does not have `resourceType` or `id`, the same steps as above can be used with a few small adjustments: + +- In step 1, the file name of the example can be any valid file name (e.g. `hook-example.json`) +- In step 2, the key in the resources list should be `Binary/{filename}`, where `{filename}` matches the the file name of the example without the file extension (e.g. `Binary/hook-example`) + ## Manual Slice Ordering {{% small-pageinfo color="primary" %}}