Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical model examples without resourceType or id #86

Merged
merged 4 commits into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions content/docs/SUSHI/tips/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -139,14 +140,19 @@ 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
```

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" %}}
Expand Down