FHIR Chat · process for publishing revisited · IG creation

Stream: IG creation

Topic: process for publishing revisited


view this post on Zulip Bob Milius (Jun 09 2020 at 21:37):

From reading these two threads:
IG releases
IG Publisher output
and this doc for the swiss IGs
I've tried to create my own workflow for publishing an IG on a non-HL7 site. This is what I tried:

git clone git@github.com:FHIR/ig-registry.git
git clone git@github.com:HL7/fhir-ig-history-template.git
# go to my ig project folder
cd profile-test
# create the IG using Sushi
sushi .
# no errors, build the IG
cd build
java -jar ../org.hl7.fhir.publisher.jar -ig ig.ini
# builds ok
java -jar ../org.hl7.fhir.publisher.jar -ig ig.ini -publish
# I see the yellow box containing 'Publication Build: This will be filled in by the publication tooling'
mkdir website
cp -r ../../fhir-ig-history-template/* website/
# create website/publish.ini
# create website/package-list.json
# create subdirectory for milestone
mkdir website/2020Jun
cp -r output/* website/
cp -r output/* website/2020Jun/
# update website/package-list.json
java -jar ../org.hl7.fhir.publisher.jar -publish-update -folder  website -registry  ../../ig-registry/fhir-ig-list.json

This is where I get an error message:

So it seems to be building correctly. Should I be seeing php being created in this site?

Here's my website/publish.ini

[website]
style=fhir.layout
server=apache
url=http://fhir.b12x.org/ig/profile-test
org=NMDP

[feeds]
package=package-feed.xml
publication=publication-feed.xml

And here's my website/package-list.json

{
    "package-id": "profile-test",
    "title": "Test Implementation Guide",
    "canonical": "http://fhir.b12x.org/ig/profile-test",
    "introduction": "Testing IG",
    "list": [
      {
        "version": "current",
        "desc": "Draft",
        "path": "http://fhir.b12x.org/ig/profile-test",
        "status": "draft",
        "fhirversion": "4.0.1",
        "current": true
      },
      {
        "version": "2020Jul",
        "desc": "Draft",
        "date": "2020-06",
        "path": "http://fhir.b12x.org/ig/profile-test/2020Jul",
        "status": "draft",
        "sequence": "2020Jul",
        "fhirversion": "4.0.1"
      }
    ]
  }

Also, in one of the threads, I see an -web option mentioned. What does it do?
Should I be running this before/after/same time as the -publish or -publish-update option?

Also, I've seen something called a publication manager mentioned.
Should I have this running too if I'm publishing a non-HL7 IG? Perhaps on my apache server?
If so, where do I find it?

Thanks!

view this post on Zulip Jose Costa Teixeira (Jun 15 2020 at 17:48):

@ Bob Milius using the procedure above do you get the publish box changing to "...This is the current published version...." ? I couldn't do it using your procedure. - I need to do it one IG at a time (but then I don't get the history page working)

view this post on Zulip Jose Costa Teixeira (Jun 15 2020 at 17:49):

Suggestion: Can we make a wiki page that walks through publishing the sample-ig in a few releases onto a website?

view this post on Zulip Grahame Grieve (Jun 15 2020 at 18:05):

doing that is on my todo list

view this post on Zulip Bob Milius (Jun 16 2020 at 14:29):

Jose Costa Teixeira said:

Bob Milius using the procedure above do you get the publish box changing to "...This is the current published version...." ? I couldn't do it using your procedure. - I need to do it one IG at a time (but then I don't get the history page working)

No, I think there's a last step I'm missing. But I don't see any php for redirections either. I do see the history page created based on the package-list.json.

view this post on Zulip Jose Costa Teixeira (Jun 16 2020 at 14:33):

thanks @ Bob Milius I traced my steps and put content in a repo. Discussion here

view this post on Zulip Jose Costa Teixeira (Jun 16 2020 at 14:33):

https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/IG.20releases

view this post on Zulip Jose Costa Teixeira (Jun 16 2020 at 14:34):

in this case I can get the publish box to change the content, but

  1. only on the 2020Jun folder (it seems it only detects the folder that has package-list.json)
  2. several errors

view this post on Zulip Jose Costa Teixeira (Jun 16 2020 at 14:35):

the commits corresponds to the steps that Grahame documented in another thread


Last updated: Apr 12 2022 at 19:14 UTC