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

Custom liquid #2

wants to merge 3 commits into from

Conversation

Healthedata1
Copy link

This adds a custom liquid template for the subscription example. in order to do this it uses the beta version of Sushi.
https://chat.fhir.org/user_uploads/10155/noby3nemz5bCFUfc7j11sfmo/SUSHI_Config_and_Integration_v2.pptx

This allows for you to use a config.yml file to define all the stuff you need to publish in one place. including an easy peasy menu in yaml. (Just like the good old days before we were forced to use Lloyd's templates and atom scripts.) I had to define a home for the liquid files and also cleaned up the fsh folder as follows:
old...

.
├── 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

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 <--- here is the liquid file folder
│       │       └── Subscription.liquid  
│       └── pagecontent
│           ├── actors_and_transactions.md
│           ├── downloads.md <--- new placedholder - right in full of build notes but I have a template
│           ├── errors.md
│           ├── index.md
│           └── overview.md
├── package-list.json
└── package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant