0

I made the first publication to FHIR IG Builds from the GitHub repository, using the Auto-Builder and webhook. The first publication went well, but subsequent builds gave me the following error:

Publishing Content Failed: Cannot invoke "org.hl7.fhir.utilities.npm.PackageList.versions()" because "pl" is null (00:00.985 / 00:49.765, 1Gb)
                                                                                                     (00:00.000 / 00:49.765, 1Gb)
Use -? to get command line help                                                                      (00:00.000 / 00:49.765, 1Gb)
                                                                                                     (00:00.000 / 00:49.765, 1Gb)
Stack Dump (for debugging):                                                                          (00:00.000 / 00:49.765, 1Gb)
java.lang.NullPointerException: Cannot invoke "org.hl7.fhir.utilities.npm.PackageList.versions()" because "pl" is null
    at org.hl7.fhir.igtools.renderers.PublicationChecker.checkPublicationRequest(PublicationChecker.java:202)
    at org.hl7.fhir.igtools.renderers.PublicationChecker.checkFolder(PublicationChecker.java:122)
    at org.hl7.fhir.igtools.renderers.PublicationChecker.check(PublicationChecker.java:56)
    at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:1237)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:1034)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:15034)

The directory structure is as follows:

│   .gitignore
│   CODE_OF_CONDUCT.md
│   CODING_STYLE_GUIDES.md
│   CONTRIBUTING.md
│   fsh.ini
│   ig.ini
│   LICENSE
│   package-list.json
│   publication-request.json
│   README.md
│   sushi-config.yaml
│   _gencontinuous.bat
│   _gencontinuous.sh
│   _genonce.bat
│   _genonce.sh
│   _updatePublisher.bat
│   _updatePublisher.sh
│
├───.github
│   ├───ISSUE_TEMPLATE
│   │       config.yml
│   │       public-comment-issue-template.yml
│   │
│   └───workflows
│           sushi-and-publisher.yml
│
├───input
│   │   ignoreWarnings.txt
│   │
│   ├───data
│   │       features.yml
│   │
│   ├───fsh
│   │   │
│   │   ├───dataTypes
│   │   │       ...
│   │   │
│   │   ├───logicals
│   │   │       ...
│   │   │
│   │   └───profiles
│   │           ...
│   │
│   ├───intro-notes
│   │       ...
│   │
│   └───pagecontent
│           index.md
│
├───template-core
│   ├───content
│   │   │   ...
│   │   │
│   │   └───assets
│   │       │   ...
│   │       │
│   │       ├───css
│   │       │       ...
│   │       │
│   │       ├───images
│   │       │       ...
│   │       │
│   │       └───js
│   │               ...
│   │
│   ├───includes
│   │       ...
│   │
│   ├───layouts
│   │       ...
│   │
│   └───package
│           ...
│           package.json
│
└───translations
    └───es
        ├───json
        │       ...
        ├───po
        │       ...
        │
        └───xliff
                ...

My package-list.json, publication-request.json, and package.json files are constructed as follows: package-list.json

{
    "package-id" : "hl7.fhir.cr.core",
    "title" : "Guías de Implementación HL7 FHIR: CR Core", 
    "canonical" : "https://ministeriodesalud.go.cr/fhir/core", 
    "category" : "National Base",
    "introduction" : "Esta IG define los perfiles de recursos y extensiones de CR Core.",
    "list" : [
        {
            "version" : "current",
            "desc" : "Continuous Integration Build (latest in version control)",
            "path" : "https://ministeriodesalud.go.cr/fhir/core",
            "status" : "ci-build",
            "current" : true
        },
        {
            "version" : "0.1.0-draft",
            "date" : "2025-03-07",
            "desc" : "Versión en desarrollo",
            "path" : "https://ministeriodesalud.go.cr/fhir/core/0.1.0-draft",
            "fhirversion" : "5.0.0",
            "status" : "draft",
            "sequence" : "CR Core R1"
          }
    ]
}

publication-request.json

{
    "package-id": "hl7.fhir.cr.core",
    "version": "0.1.0-draft",
    "path": "https://ig.cr.openfhir.org/core/",
    "mode": "working",
    "status": "draft",
    "sequence": "CR Core R1",
    "desc": "Versión de desarrollo | ",
    "changes": "changes.html",
    "first": true,
    "title": "Guías de Implementación HL7 FHIR: CR Core",
    "category": "National Base",
    "fhirversion": "5.0.0",
    "introduction": "Esta IG define los perfiles de recursos y extensiones de CR Core."
}

template-core-cr/package/package.json

{
    "name": "hl7.fhir.cr.core",
    "version": "0.1.0-draft",
    "canonical": "https://ministeriodesalud.go.cr/fhir/core",
    "url": "https://ministeriodesalud.go.cr/fhir/core/0.1.0-draft",
    "title": "Guías de Implementación HL7 FHIR: CR Core",
    "description": "Esta IG define los perfiles de recursos y extensiones de CR Core.",
    "fhirversion": "5.0.0",
    "base": "fhir.base.template",
    "dependencies": {
        "fhir.base.template": "current"
    },
    "keywords": [
        "CR",
        "Core",
        "Costa Rica",
        "HL7",
        "FHIR",
        "Implementation Guide"
    ],
    "author": "Ministerio de Salud de Costa Rica",
    "maintainers": [
        {
            "name": "Ministerio de Salud de Costa Rica",
            "url": "https://ministeriodesalud.go.cr"
        },
        {
            "name": "Meddyg",
            "email": "[email protected]"
        }
    ],
    "jurisdiction": "http://unstats.un.org/unsd/methods/m49/m49.htm#188",
    "license": "CC0-1.0"
}

What am I doing wrong?

1 Answer 1

0

Community, the way to fix this issues is removing the publication-request.json file ... credits to Jose Costa

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.