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

Custom liquid #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/save/
/bin/
/target/
/docs/
86 changes: 86 additions & 0 deletions fsh/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# ╭────────────────────────────────────────────────────────────────────────────────────────────────╮
# │ ACTION REQUIRED: REVIEW AND EDIT THIS FILE TO ENSURE IT ACCURATELY REFLECTS YOUR PROJECT! │
# │ │
# │ This file was generated from your existing project files and will be used for SUSHI │
# │ configuration from now on. You may delete your package.json as it is no longer needed. │
# ╰────────────────────────────────────────────────────────────────────────────────────────────────╯

# ╭──────────────────ImplementationGuide-hl7.fhir.us.subscriptions-backport.json───────────────────╮
# │ The properties below are used to create the ImplementationGuide resource. For a list of │
# │ supported properties, see: │
# │ http://build.fhir.org/ig/HL7/fhir-shorthand/branches/beta/sushi.html#ig-development │
# ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
id: hl7.fhir.us.subscriptions-backport
canonical: http://hl7.org/fhir/us/subscriptions-backport
version: 0.1.0
name: SubscriptionsR5Backport
title: Subscriptions R5 Backport
status: active
publisher:
name: The Argonaut Project
url: https://argonautwiki.hl7.org
contact:
- name: HL7 FHIR Infrastructure WG
telecom:
- system: url
value: http://hl7.org/Special/committees/fiwg/index.cfm
- name: Microsoft
telecom:
- system: url
value: https://microsoft.com
- name: Gino Canessa
telecom:
- system: email
value: mailto:[email protected]
description: The Subscription R5 Backport Implementation Guide enables servers running
verions of FHIR earlier than R5 to implement a subset of R5 Subscriptions in a
standardized way.
license: CC0-1.0
fhirVersion: 4.0.1
parameters:
show-inherited-invariants: false
usage-stats-opt-out: false
path-output: output #docs
#- code: path-liquid #yes
# value: #path #A relative path that contains liquid templates for generating narrative
path-liquid: input/images/liquid
excludexml: true
escludejsn: false
excludettl: true
excludemap: true
excludeexample: true
# custom parameter also possible too
#foo: bar
copyrightYear: 2020+
releaseLabel: CI Build


# ╭────────────────────────────────────────────menu.xml────────────────────────────────────────────╮
# │ To use a provided ig-data/input/includes/menu.xml file, delete the "menu" property below. │
# ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
menu:
IG Home: index.html
Framework:
Overview: overview.html
Interactions: actors_and_transactions.html
#Table of Contents: toc.html
Artifact Index: artifacts.html
Downloads: downloads.html
# ╭───────────────────────────────────────package-list.json────────────────────────────────────────╮
# │ To use a provided ig-data/package-list.json file, delete the "history" property below. │
# ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
#history:
#current: http://build.fhir.org/ig/example/example-ig
#0.0.1:
#fhirversion: 4.0.1
#date: 2099-01-01
#desc: Initial STU ballot (Mmm yyyy Ballot)
#path: http://example.org/fhir/STU1
#status: ballot
#sequence: STU 1
#current: true

# ╭─────────────────────────────────────────────ig.ini─────────────────────────────────────────────╮
# │ To control the ig.ini using this config, uncomment and set the "template" property. │
# ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
template: fhir.base.template
13 changes: 0 additions & 13 deletions fsh/ig-data/ig.ini

This file was deleted.

Binary file added fsh/ig-data/input/images/cat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fsh/ig-data/input/images/custom_org_logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions fsh/ig-data/input/images/liquid/Subscription.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<div xmlns="http://www.w3.org/1999/xhtml">
<p><strong>id:</strong> {{Subscription.id}}</p>
<p><strong>modifierExtension:</strong></p>

<ul>
{% for var in Subscription.modifierExtension %}
<li><strong>url:</strong> {{var.url}}, <strong>value: </strong>{{var.valueUri}}</li>
{% endfor %}
</ul>

<p><strong>status:</strong> {{Subscription.status}}</p>
<p><strong>end:</strong> {{Subscription.end}}</p>
<p><strong>reason:</strong> {{Subscription.reason}}</p>
<p><strong>criteria:</strong> {{Subscription.criteria}}</p>
<p><strong>channel:</strong></p>
<ul>
<li><p><strong>extension:</strong></p>

<ul>
{% for var in Subscription.channel.extension %}
<li><strong>url:</strong> {{var.url}}, <strong>value: </strong>{{var.valueUnsignedInt}}</li>
{% endfor %}
</ul>

</li>
<li><p><strong>type:</strong> {{Subscription.channel.type}}</p>
</li>
<li><p><strong>endpoint:</strong> {{Subscription.channel.endpoint}}</p>
</li>
<li><p><strong>payload:</strong> {{Subscription.channel.payload}}</p>
<ul>
<li><strong>extension:</strong>

<ul>
{% for var in Subscription.channel.payload.extension %}
<li><strong>url:</strong> {{var.url}}, <strong>value: </strong> {{var.valueCode}}</li>
{% endfor %}
</ul>

</li>
</ul>
</li>
<li><p><strong>header:</strong></p>

<ul>
{% for var in Subscription.channel.header %}
<li>{{var}}</li>
{% endfor %}
</ul>

</li>
</ul>
</div>
81 changes: 81 additions & 0 deletions fsh/ig-data/input/pagecontent/downloads.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
---

![Meow](cat.jpg)

![Meow](custom_org_logo.jpg)

here is the master file tree

~~~
.
├── BackportNotification.fsh
├── BackportSubscription.fsh
├── SUSHI-GENERATED-FILES.md
├── ig-data
│   ├── ig.ini
│   └── input
│   ├── examples
│   ├── operations
│   │   ├── OperationDefinition-subscription-status.json
│   │   └── OperationDefinition-subscriptiontopic-list.json
│   └── pagecontent
│   ├── actors_and_transactions.md
│   ├── conformance.md
│   ├── errors.md
│   ├── index.md
│   └── overview.md
├── ig.ini
├── input
│   ├── ImplementationGuide-hl7.fhir.us.subscriptions-backport.json
│   ├── extensions
│   │   ├── StructureDefinition-backport-bundle-event-count.json
│   │   ├── StructureDefinition-backport-heartbeat-period.json
│   │   ├── StructureDefinition-backport-notification-type.json
│   │   ├── StructureDefinition-backport-payload-content.json
│   │   ├── StructureDefinition-backport-subscription-event-count.json
│   │   ├── StructureDefinition-backport-subscription-topic-url.json
│   │   ├── StructureDefinition-backport-subscription-url.json
│   │   ├── StructureDefinition-backport-timeout.json
│   │   └── StructureDefinition-backport-topic-canonical.json
│   ├── pagecontent
│   │   ├── actors_and_transactions.md
│   │   ├── index.md
│   │   └── overview.md
│   ├── profiles
│   │   ├── StructureDefinition-backport-subscription-notification.json
│   │   └── StructureDefinition-backport-subscription.json
│   └── vocabulary
│   ├── CodeSystem-backport-content-code-system.json
│   ├── CodeSystem-backport-notification-type-code-system.json
│   ├── ValueSet-backport-content-value-set.json
│   └── ValueSet-backport-notification-type-value-set.json
├── package-list.json
└── package.json
~~~

I put all my pages etc in input folder but that is not the right place it should go in the optional ig-data/input. The input folder is generated output and belongs it root. This is confusing to simplify FSH is now:

~~~
.
├── BackportNotification.fsh
├── BackportSubscription.fsh
├── SUSHI-GENERATED-FILES.md
├── config.yaml <- NEW in Beta Sushi- see http://build.fhir.org/ig/HL7/fhir-shorthand/branches/beta/sushi.html#configuration-file obviates the need for a separate ig.ini ( which I removed ), menu.xml (which I edited) and package-list.json (which I did not remove)
├── ig-data
│   └── input
│   ├── examples
│   ├── images
│   │   ├── cat.jpg
│   │   ├── custom_org_logo.jpg
│   │   └── liquid
│   │   └── Subscription.liquid
│   └── pagecontent
│   ├── actors_and_transactions.md
│   ├── downloads.md
│   ├── errors.md
│   ├── index.md
│   └── overview.md
├── package-list.json
└── package.json
~~~
20 changes: 0 additions & 20 deletions fsh/ig.ini

This file was deleted.

Loading