Skip to content

Support private (non-HL7) publication of templates#716

Draft
ElliotSilver wants to merge 4 commits intoHL7:masterfrom
ElliotSilver:es-non-hl7-templates
Draft

Support private (non-HL7) publication of templates#716
ElliotSilver wants to merge 4 commits intoHL7:masterfrom
ElliotSilver:es-non-hl7-templates

Conversation

@ElliotSilver
Copy link
Copy Markdown

This PR removes the requirement that templates are published to the fhir.org site.

It consists of 3 changes.

  • Previously, all templates were published by HL7 from a single source tree, the publisher could enforce that templates which depended on other templates would only depend on the most recent version. A template could use the "current" version of another template, and this gets converted to the most recent specific version on publication; and reverted back after.
    Because templates published to sites other than HL7 won't have all those parent templates in the publication tree, that check isn't possible for private publication. In this PR, the check is skipped if an environment variable is set, and specific versions of parent templates must be listed.
  • The template index page makes assumptions about the site address and structure. This is made more dynamic by reading that information from package-list.json.
  • The content of the index page also includes HL7-specific text. An environment variable specifying an a file containing alternate content is now supported.

Additionally, a couple of spelling errors were corrected.

@lmckenzi
Copy link
Copy Markdown
Contributor

Why package-list.json? Isn't that replaced by publication-request.json?

@ElliotSilver
Copy link
Copy Markdown
Author

Why package-list.json? Isn't that replaced by publication-request.json?

Unless I've missed something, template publication still uses package-list.json.

@lmckenzi
Copy link
Copy Markdown
Contributor

@ElliotSilver will review for next week

@lmckenzi lmckenzi marked this pull request as draft September 10, 2024 21:12
@lmckenzi lmckenzi added the NeedGrahame Need Grahame for discussion label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NeedGrahame Need Grahame for discussion

Projects

Status: Waiting for Input

Development

Successfully merging this pull request may close these issues.

3 participants